The common modem functions.
More...
|
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. More...
|
|
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. More...
|
|
ewf_result | ewf_adapter_modem_functionality_set (ewf_adapter *adapter_ptr, const char *fun_str) |
| Set the modem functionality (+cfun) More...
|
|
ewf_result | ewf_adapter_modem_functionality_read (ewf_adapter *adapter_ptr, uint8_t *fun) |
| Read the modem functionality (+cfun?) More...
|
|
ewf_result | ewf_adapter_modem_clock_set (ewf_adapter *adapter_ptr, ewf_adapter_modem_time *time_info_ptr) |
| Set the clock (+cclk) More...
|
|
ewf_result | ewf_adapter_modem_clock_read (ewf_adapter *adapter_ptr, ewf_adapter_modem_time *time_info_ptr) |
| Read the clock (+cclk) More...
|
|
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) More...
|
|
ewf_result | ewf_adapter_modem_alarm_delete (ewf_adapter *adapter_ptr, uint32_t index) |
| Delete the alarm (+cald) More...
|
|
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) More...
|
|
ewf_result | ewf_adapter_modem_extended_err_report_read (ewf_adapter *adapter_ptr, uint16_t *report) |
| Read extended error report (+ceer) More...
|
|
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) More...
|
|
The common modem functions.
- Parameters
-
[in] | adapter_ptr | A pointer to the adapter structure |
◆ EWF_ADAPTER_MODEM_FUNCTIONALITY_DISABLE_ME
#define EWF_ADAPTER_MODEM_FUNCTIONALITY_DISABLE_ME ("4") |
◆ EWF_ADAPTER_MODEM_FUNCTIONALITY_DISABLE_RX
#define EWF_ADAPTER_MODEM_FUNCTIONALITY_DISABLE_RX ("3") |
◆ EWF_ADAPTER_MODEM_FUNCTIONALITY_DISABLE_TX
#define EWF_ADAPTER_MODEM_FUNCTIONALITY_DISABLE_TX ("2") |
◆ EWF_ADAPTER_MODEM_FUNCTIONALITY_FULL
#define EWF_ADAPTER_MODEM_FUNCTIONALITY_FULL ("1") |
◆ EWF_ADAPTER_MODEM_FUNCTIONALITY_MINIMUM
#define EWF_ADAPTER_MODEM_FUNCTIONALITY_MINIMUM ("0") |
Minimum modem functionality
◆ ewf_adapter_modem_alarm_delete()
Delete the alarm (+cald)
- Parameters
-
[in] | adapter_ptr | A pointer to the adapter structure |
[in] | index | Index of the alarm to be deleted. |
- Returns
- ewf_result status code
◆ ewf_adapter_modem_alarm_set()
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)
- Parameters
-
[in] | adapter_ptr | A pointer to the adapter structure |
[in] | alarm_info | Pointer to structure holding alarm time values. |
[in] | n | Integer indicaitng the index of alarm |
[in] | type | Integer indicating type of alarm. Defaults are manufacturer specific |
[in] | text_str | Pointer to string indicating the text to be displayed |
[in] | text_len | Maximum Lenght of text |
[in] | recurr_str | Pointer to string indicating days of week for recurring alarm. Eg If alarm is to recurr on Monday, Wednesday and Sunday then the string will be "1,3,7". The string "1,2,3,4,5" is used to set an alarm for all weekdays. |
[in] | recurr_len | Maximum length of recurr string |
[in] | silent | Integer to indicate if alarm is silent or not. |
- Returns
- ewf_result status code
◆ ewf_adapter_modem_clock_read()
Read the clock (+cclk)
- Parameters
-
[in] | adapter_ptr | A pointer to the adapter structure |
[out] | time_info_ptr | pointer to structure holding clock time values. |
- Returns
- ewf_result status code
◆ ewf_adapter_modem_clock_set()
Set the clock (+cclk)
- Parameters
-
[in] | adapter_ptr | A pointer to the adapter structure |
[out] | time_info_ptr | pointer to structure holding clock time values. |
- Returns
- ewf_result status code
◆ ewf_adapter_modem_commands_list_read()
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)
- Parameters
-
[in] | adapter_ptr | A pointer to the adapter structure |
[out] | buffer_ptr_ptr | Pointer to buffer holding the output list of all the commands |
[out] | buffer_length_ptr_ptr | Pointer to lenght of buffer |
- Returns
- ewf_result status code
◆ ewf_adapter_modem_custom_command_receive()
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.
- Parameters
-
[in] | adapter_ptr | A pointer to the adapter structure |
[in] | buffer_ptr_ptr | A pointer to a string destination holding the output of read command |
[in] | buffer_length_ptr | Lenght of the data in output buffer |
- Returns
- ewf_result status code
◆ ewf_adapter_modem_custom_command_send()
Function to send command that is not implmented in the framework.
- Parameters
-
[in] | adapter_ptr | A pointer to the adapter structure |
[in] | buffer_ptr | A pointer to a string holding the command to be sent |
[in] | buffer_lenght_ptr | Lenght of the command to be sent to the modem |
- Returns
- ewf_result status code
◆ ewf_adapter_modem_extended_err_report_read()
Read extended error report (+ceer)
- Parameters
-
[in] | adapter_ptr | A pointer to the adapter structure |
[out] | report | Pointer to integer indicating report |
- Note
- This is an optional command and not all modems will have this implemented
- Returns
- ewf_result status code
◆ ewf_adapter_modem_functionality_read()
Read the modem functionality (+cfun?)
- Parameters
-
[in] | adapter_ptr | A pointer to the adapter structure |
[in] | option | A pointer to a integer with the functionality level |
- Returns
- ewf_result status code
◆ ewf_adapter_modem_functionality_set()
Set the modem functionality (+cfun)
- Parameters
-
[in] | adapter_ptr | A pointer to the adapter structure |
[in] | fun | String indicating the functionality value |
- Returns
- ewf_result status code
◆ ewf_adapter_modem_indicator_status_read()
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)
- Parameters
-
[in] | adapter_ptr | A pointer to the adapter structure |
[out] | indicator_ptr | Pointer to buffer contianing inidcator status options |
[out] | indicator_len | Lenght of data in indicator buffer |
- Note
- This api will output complete output string from +cind. User application is expected to parse the output to get required values as per the modem used as the descriptions will differ accross modem manufacturers
- Returns
- ewf_result status code