Embedded Wireless Framework
ewf_adapter_api_modem.h
Go to the documentation of this file.
1 /************************************************************************/
10 #ifndef __ewf_adapter_modem__h__included__
11 #define __ewf_adapter_modem__h__included__
12 
13 #include "ewf.h"
14 
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 /************************************************************************/
34 {
36  volatile uint32_t current_context;
37 
39 
40 /************************************************************************/
54 ewf_result ewf_adapter_modem_custom_command_send(ewf_adapter* adapter_ptr, const char* command_str);
55 
63 ewf_result ewf_adapter_modem_custom_command_receive(ewf_adapter* adapter_ptr, char** buffer_ptr_ptr, uint32_t * buffer_length_ptr);
64 
65 #define EWF_ADAPTER_MODEM_FUNCTIONALITY_MINIMUM ("0")
66 #define EWF_ADAPTER_MODEM_FUNCTIONALITY_FULL ("1")
67 #define EWF_ADAPTER_MODEM_FUNCTIONALITY_DISABLE_TX ("2")
68 #define EWF_ADAPTER_MODEM_FUNCTIONALITY_DISABLE_RX ("3")
69 #define EWF_ADAPTER_MODEM_FUNCTIONALITY_DISABLE_ME ("4")
77 ewf_result ewf_adapter_modem_functionality_set(ewf_adapter* adapter_ptr, const char * fun_str);
78 
86 
94 
102 
118 ewf_result ewf_adapter_modem_alarm_set(ewf_adapter* adapter_ptr, ewf_adapter_modem_time * alarm_info_ptr, uint8_t n, uint32_t type, const char * text_str, uint32_t text_len, const char * recurr_str, uint32_t recurr_len, bool silent);
119 
127 
135 ewf_result ewf_adapter_modem_commands_list_read(ewf_adapter* adapter_ptr, const char ** buffer_ptr_ptr, uint32_t * response_length_ptr);
136 
145 
155 ewf_result ewf_adapter_modem_indicator_status_read(ewf_adapter* adapter_ptr, char * indicator_ptr, uint32_t * indicator_len);
156 
157 /************************************************************************/
161 /************************************************************************/
165 #ifdef __cplusplus
166 }
167 #endif
168 
169 #endif /* __ewf_adapter_modem__h__included__ */
The Embedded Wireless Framework.
ewf_result ewf_adapter_modem_clock_set(ewf_adapter *adapter_ptr, ewf_adapter_modem_time *time_info_ptr)
Set the clock (+cclk)
ewf_result ewf_adapter_modem_functionality_set(ewf_adapter *adapter_ptr, const char *fun_str)
Set the modem functionality (+cfun)
Definition: ewf_adapter_api_modem.c:39
ewf_result ewf_adapter_modem_clock_read(ewf_adapter *adapter_ptr, ewf_adapter_modem_time *time_info_ptr)
Read the clock (+cclk)
ewf_result ewf_adapter_modem_alarm_set(ewf_adapter *adapter_ptr, ewf_adapter_modem_time *alarm_info_ptr, uint8_t n, uint32_t type, const char *text_str, uint32_t text_len, const char *recurr_str, uint32_t recurr_len, bool silent)
Set the alarm (+cala)
ewf_result ewf_adapter_modem_custom_command_receive(ewf_adapter *adapter_ptr, char **buffer_ptr_ptr, uint32_t *buffer_length_ptr)
Function to read command that is not implmented in the framework.
Definition: ewf_adapter_api_modem.c:26
ewf_result ewf_adapter_modem_extended_err_report_read(ewf_adapter *adapter_ptr, uint16_t *report)
Read extended error report (+ceer)
ewf_result ewf_adapter_modem_functionality_read(ewf_adapter *adapter_ptr, uint8_t *fun)
Read the modem functionality (+cfun?)
ewf_result ewf_adapter_modem_alarm_delete(ewf_adapter *adapter_ptr, uint32_t index)
Delete the alarm (+cald)
ewf_result ewf_adapter_modem_custom_command_send(ewf_adapter *adapter_ptr, const char *command_str)
Function to send command that is not implmented in the framework.
Definition: ewf_adapter_api_modem.c:13
ewf_result ewf_adapter_modem_indicator_status_read(ewf_adapter *adapter_ptr, char *indicator_ptr, uint32_t *indicator_len)
Read status of MT indicators (+cind)
ewf_result ewf_adapter_modem_commands_list_read(ewf_adapter *adapter_ptr, const char **buffer_ptr_ptr, uint32_t *response_length_ptr)
Read the list of commands (+clac)
enum _ewf_result ewf_result
Success and error result codes specific to the EWF API.
Definition: ewf_adapter_api_modem.h:34
volatile uint32_t current_context
Definition: ewf_adapter_api_modem.h:36
Definition: ewf_adapter_api_modem_types.h:29
The EWF network adapter control structure definition.
Definition: ewf_adapter.h:50