Embedded Wireless Framework
|
The common modem functions. More...
Functions | |
ewf_result | ewf_adapter_modem_eps_network_registration_urc_set (ewf_adapter *adapter_ptr, const char *n_str) |
EPS Network Registration (+cereg) More... | |
ewf_result | ewf_adapter_modem_eps_network_registration_read (ewf_adapter *adapter_ptr, ewf_adapter_modem_network_status *epsregistrationstatus_ptr, ewf_adapter_modem_act *act_ptr, uint32_t *tac_ptr, uint32_t *ci_ptr, uint32_t rac_ptr, uint8_t *cause_type_ptr, uint8_t *reject_cause_ptr) |
Read EPS Network Registration (+cereg?) More... | |
ewf_result | ewf_adapter_modem_gprs_network_registration_urc_set (ewf_adapter *adapter_ptr, const char *n_str) |
GPRS Network Registration (+cgreg) More... | |
ewf_result | ewf_adapter_modem_gprs_network_registration_read (ewf_adapter *adapter_ptr, ewf_adapter_modem_network_status *status_ptr, ewf_adapter_modem_act *act_ptr, uint32_t *tac_ptr, uint32_t *ci_ptr, uint32_t *rac_ptr, uint8_t *cause_type_ptr, uint8_t *reject_cause_ptr) |
Read GPRS Network Registration (+cgreg) More... | |
ewf_result | ewf_adapter_modem_init_pdp_activate (ewf_adapter *adapter_ptr, uint32_t n, bool attachPDN) |
Initial PDP context activation (+cipca) More... | |
ewf_result | ewf_adapter_modem_init_pdp_activation_config_read (ewf_adapter *adapter_ptr, uint32_t *n_ptr, bool *attachpdn_ptr) |
Read Initial PDP context activation config(+cipca) More... | |
ewf_result | ewf_adapter_modem_pdp_apn_set (ewf_adapter *adapter_ptr, uint32_t context_id, const char *pdptype_ptr, const char *apn_ptr) |
Set PDP context APN (+cgdcont) More... | |
ewf_result | ewf_adapter_modem_pdp_apn_read (ewf_adapter *adapter_ptr, uint32_t context_id, char *pdptype_ptr, char *apn_ptr, uint8_t apn_str_len) |
Read PDP context APN (+cgdcont?) More... | |
ewf_result | ewf_adapter_modem_pdp_context_authentication_set (ewf_adapter *adapter_ptr, uint32_t context_id, const char *userid_str, const char *password_str) |
Set PDP context authentication parameter (+cgauth) More... | |
ewf_result | ewf_adapter_modem_pdp_data_mode_enter (ewf_adapter *adapter_ptr, const char *l2p_str, uint32_t context_id) |
Enter data state (+cgdata) More... | |
ewf_result | ewf_adapter_modem_packet_service_activate (ewf_adapter *adapter_ptr, uint32_t context_id) |
Activate context (+cgact) More... | |
ewf_result | ewf_adapter_modem_packet_service_deactivate (ewf_adapter *adapter_ptr, uint32_t context_id) |
De-activate context (+cgact) More... | |
ewf_result | ewf_adapter_modem_packet_service_attach (ewf_adapter *adapter_ptr) |
Attach to the Packet domain service (+cgatt) More... | |
ewf_result | ewf_adapter_modem_packet_service_detach (ewf_adapter *adapter_ptr) |
Detach form the Packet domain service (+cgatt) More... | |
ewf_result | ewf_adapter_modem_network_attach_status_read (ewf_adapter *adapter_ptr, bool *state_ptr) |
Read the network attach status (+cgatt?) More... | |
The common modem functions.
ewf_result ewf_adapter_modem_eps_network_registration_read | ( | ewf_adapter * | adapter_ptr, |
ewf_adapter_modem_network_status * | epsregistrationstatus_ptr, | ||
ewf_adapter_modem_act * | act_ptr, | ||
uint32_t * | tac_ptr, | ||
uint32_t * | ci_ptr, | ||
uint32_t | rac_ptr, | ||
uint8_t * | cause_type_ptr, | ||
uint8_t * | reject_cause_ptr | ||
) |
Read EPS Network Registration (+cereg?)
[in] | adapter_ptr | A pointer to the adapter structure |
[out] | n_ptr | Pointer to integer value for network registration URC options |
[out] | epsregistrationstatus_ptr | Pointer to eps network registration status |
[out] | act_ptr | Access technology integer |
[out] | tac_ptr | Pointer to integer value for tracking area code in hex format |
[out] | ci_ptr | Pointer to integer value for cell id in hex format |
[out] | rac_ptr | Pointer to integer value for routing area code in hex format |
[out] | cause_type_ptr | Pointer to integer value for cause type for registration rejection |
[out] | reject_cause_ptr | Pointer to integer value for reject cause for registration |
ewf_result ewf_adapter_modem_eps_network_registration_urc_set | ( | ewf_adapter * | adapter_ptr, |
const char * | n_str | ||
) |
EPS Network Registration (+cereg)
[in] | adapter_ptr | A pointer to the adapter structure |
[in] | n_str | String indicating EPS network registration URC options |
ewf_result ewf_adapter_modem_gprs_network_registration_read | ( | ewf_adapter * | adapter_ptr, |
ewf_adapter_modem_network_status * | status_ptr, | ||
ewf_adapter_modem_act * | act_ptr, | ||
uint32_t * | tac_ptr, | ||
uint32_t * | ci_ptr, | ||
uint32_t * | rac_ptr, | ||
uint8_t * | cause_type_ptr, | ||
uint8_t * | reject_cause_ptr | ||
) |
Read GPRS Network Registration (+cgreg)
[in] | adapter_ptr | A pointer to the adapter structure |
[out] | n_ptr | Pointer to integer value for network registration URC options |
[out] | status_ptr | Pointer to eps network registration status |
[out] | act_ptr | Access technology integer |
[out] | tac_ptr | Pointer to integer value for tracking area code in hex format |
[out] | ci_ptr | Pointer to integer value for cell If in hex format |
[out] | rac_ptr | Pointer to integer value for routing area code in hex format |
[out] | cause_type_ptr | Pointer to integer value for cause type for registration rejection |
[out] | reject_cause_ptr | Pointer to integer value for reject cause for registration |
ewf_result ewf_adapter_modem_gprs_network_registration_urc_set | ( | ewf_adapter * | adapter_ptr, |
const char * | n_str | ||
) |
GPRS Network Registration (+cgreg)
[in] | adapter_ptr | A pointer to the adapter structure |
[in] | n_str | String indicating gprs network registration URC options |
ewf_result ewf_adapter_modem_init_pdp_activate | ( | ewf_adapter * | adapter_ptr, |
uint32_t | n, | ||
bool | attachPDN | ||
) |
Initial PDP context activation (+cipca)
[in] | adapter_ptr | A pointer to the adapter structure |
[in] | n | Activation option |
[in] | attachPDN | EPS attach with or without PDN connection |
ewf_result ewf_adapter_modem_init_pdp_activation_config_read | ( | ewf_adapter * | adapter_ptr, |
uint32_t * | n_ptr, | ||
bool * | attachpdn_ptr | ||
) |
Read Initial PDP context activation config(+cipca)
[in] | adapter_ptr | A pointer to the adapter structure |
[out] | n_ptr | Activation option |
[out] | attachpdn_ptr | EPS attach with or without PDN connection |
ewf_result ewf_adapter_modem_network_attach_status_read | ( | ewf_adapter * | adapter_ptr, |
bool * | state_ptr | ||
) |
Read the network attach status (+cgatt?)
[in] | adapter_ptr | A pointer to the adapter structure |
[out] | state_ptr | Pointer to integer value indicating status of network attachment |
ewf_result ewf_adapter_modem_packet_service_activate | ( | ewf_adapter * | adapter_ptr, |
uint32_t | context_id | ||
) |
Activate context (+cgact)
[in] | adapter_ptr | A pointer to the adapter structure |
[in] | context_id | Integer indicating context definition id |
ewf_result ewf_adapter_modem_packet_service_attach | ( | ewf_adapter * | adapter_ptr | ) |
Attach to the Packet domain service (+cgatt)
[in] | adapter_ptr | A pointer to the adapter structure |
ewf_result ewf_adapter_modem_packet_service_deactivate | ( | ewf_adapter * | adapter_ptr, |
uint32_t | context_id | ||
) |
De-activate context (+cgact)
[in] | adapter_ptr | A pointer to the adapter structure |
[in] | context_id | Integer indicating context definition id |
ewf_result ewf_adapter_modem_packet_service_detach | ( | ewf_adapter * | adapter_ptr | ) |
Detach form the Packet domain service (+cgatt)
[in] | adapter_ptr | A pointer to the adapter structure |
ewf_result ewf_adapter_modem_pdp_apn_read | ( | ewf_adapter * | adapter_ptr, |
uint32_t | context_id, | ||
char * | pdptype_ptr, | ||
char * | apn_ptr, | ||
uint8_t | apn_str_len | ||
) |
Read PDP context APN (+cgdcont?)
[in] | adapter_ptr | A pointer to the adapter structure |
[in] | contextid | Integer value for PDP context definition id. |
[out] | pdptype_ptr | Integer for PDP type |
[out] | apn_str | Pointer to string holding apn |
[out] | apn_str_len | Pointer to lenght of apn string |
ewf_result ewf_adapter_modem_pdp_apn_set | ( | ewf_adapter * | adapter_ptr, |
uint32_t | context_id, | ||
const char * | pdptype_ptr, | ||
const char * | apn_ptr | ||
) |
Set PDP context APN (+cgdcont)
[in] | adapter_ptr | A pointer to the adapter structure |
[in] | contextid | Integer value for PDP context definition id. |
[in] | pdptype | Integer for PDP type |
[in] | apn_str | Pointer to string holding apn |
ewf_result ewf_adapter_modem_pdp_context_authentication_set | ( | ewf_adapter * | adapter_ptr, |
uint32_t | context_id, | ||
const char * | userid_str, | ||
const char * | password_str | ||
) |
Set PDP context authentication parameter (+cgauth)
[in] | adapter_ptr | A pointer to the adapter structure |
[in] | contextid | Integer value for PDP context definition id. |
[in] | userid_str | Pointer to username/user id string |
[in] | pdptype | Integer for PDP type |
[in] | password_str | Pointer to a string with the password for accessing the facility |
ewf_result ewf_adapter_modem_pdp_data_mode_enter | ( | ewf_adapter * | adapter_ptr, |
const char * | l2p_str, | ||
uint32_t | context_id | ||
) |
Enter data state (+cgdata)
[in] | adapter_ptr | A pointer to the adapter structure |
[in] | l2p_str | String inidicating the layer 2 protocol to be used between TE and the MT |
[in] | contextid | Integer value for PDP context definition id. |