![]() |
RAFW Flexible Software Package Documentation
Release v2.0.1
|
|
Functions | |
| fsp_err_t | RM_ATCMD_W_CORE_Open (atcmd_w_ctrl_t *const p_at_ctrl, atcmd_w_cfg_t const *const p_cfg) |
| fsp_err_t | RM_ATCMD_W_CORE_Read (atcmd_w_ctrl_t *const p_at_ctrl, uint8_t *const p_dest, uint32_t const bytes) |
| fsp_err_t | RM_ATCMD_W_CORE_Write (atcmd_w_ctrl_t *const p_at_ctrl, uint8_t const *const p_src, uint32_t const bytes) |
| fsp_err_t | RM_ATCMD_W_CORE_InfoGet (atcmd_w_ctrl_t *const p_at_ctrl, atcmd_w_info_t *const p_info) |
| fsp_err_t | RM_ATCMD_W_CORE_Abort (atcmd_w_ctrl_t *const p_at_ctrl) |
| fsp_err_t | RM_ATCMD_W_CORE_CallbackSet (atcmd_w_ctrl_t *const p_at_ctrl, void(*p_callback)(atcmd_w_callback_args_t *), void const *const p_context, atcmd_w_callback_args_t *const p_callback_memory) |
| fsp_err_t | RM_ATCMD_W_CORE_Close (atcmd_w_ctrl_t *const p_at_ctrl) |
| fsp_err_t | RM_ATCMD_W_CORE_ReadStop (atcmd_w_ctrl_t *const p_at_ctrl, uint32_t *remaining_bytes) |
| fsp_err_t | RM_ATCMD_W_CORE_SecureChannelKeySet (atcmd_w_ctrl_t *const p_at_ctrl, uint8_t *key) |
Data Structures | |
| struct | atcmd_w_core_instance_ctrl_t |
| struct | atcmd_w_conf_t |
| struct atcmd_w_core_instance_ctrl_t |
AT module control block. DO NOT INITIALIZE. Initialization occurs when atcmd_w_api_t::open is called.
Data Fields | |
| atcmd_transport_w_instance_t * | p_transport_instance |
| Transport instance of the communication channel. | |
| uint8_t | fifo_depth |
| FIFO depth of the UART channel. | |
| uint32_t | open |
| Used to determine if the channel is configured. | |
| uint8_t const * | p_tx_src |
| Source buffer pointer used to fill hardware FIFO from transmit ISR. | |
| uint32_t | tx_src_bytes |
| Size of source buffer pointer used to fill hardware FIFO from transmit ISR. | |
| uint8_t | rx_dest [ATCMD_W_RESP_LEN_MAX] |
| Destination buffer used for receiving data. | |
| uint32_t | rx_dest_bytes |
| Number of data bytes received. | |
| uint32_t | rx_dest_idx |
| Pointer to current octet read. | |
| atcmd_w_cfg_t const * | p_cfg |
| Pointer to the configuration block. | |
| void(* | p_callback )(atcmd_w_callback_args_t *) |
| Pointer to callback that is called when a uart_event_t occurs. | |
| atcmd_w_callback_args_t * | p_callback_memory |
| Pointer to non-secure memory that can be used to pass arguments to a callback in non-secure memory. | |
| void const * | p_context |
| Pointer to context to be passed into callback function. | |
| atcmd_w_core_module_list_t | list |
| List of AT-CMD. | |
| uint8_t | echo_on |
| Echo. | |
| uint8_t | uart_echo_on |
| UART Echo. | |
| struct atcmd_w_conf_t |
AT configuration struct.
| Data Fields | ||
|---|---|---|
| atcmd_w_cfg_t | conf | Instruction configuration for the AT module. |
| fsp_err_t RM_ATCMD_W_CORE_Open | ( | atcmd_w_ctrl_t *const | p_at_ctrl, |
| atcmd_w_cfg_t const *const | p_cfg | ||
| ) |
This functions initializes the AT communication module. Implements atcmd_w_api_t::open.
This function performs the following tasks:
| FSP_SUCCESS | Module initialized successfully. |
| FSP_ERR_ALREADY_OPEN | Instance was already initialized. |
| fsp_err_t RM_ATCMD_W_CORE_Read | ( | atcmd_w_ctrl_t *const | p_at_ctrl, |
| uint8_t *const | p_dest, | ||
| uint32_t const | bytes | ||
| ) |
This function receives data from a AT transport layer. Implements atcmd_w_api_t::read.
The function performs the following tasks:
| FSP_SUCCESS | Read operation successfully completed. |
| FSP_ERR_ASSERTION | NULL pointer to control or destination parameters or transfer length is zero. |
| FSP_ERR_NOT_OPEN | The transport has not been opened. Open transport first. |
| FSP_ERR_IN_USE | A transfer is already in progress. |
| FSP_ERR_TIMEOUT | Timeout reading data. |
| fsp_err_t RM_ATCMD_W_CORE_Write | ( | atcmd_w_ctrl_t *const | p_at_ctrl, |
| uint8_t const *const | p_src, | ||
| uint32_t const | bytes | ||
| ) |
This function transmits data to a AT transport layer. Implements atcmd_w_api_t::write.
The function performs the following tasks:
| FSP_SUCCESS | Write operation successfully completed. |
| FSP_ERR_ASSERTION | NULL pointer to control or source parameters or transfer length is zero. |
| FSP_ERR_NOT_OPEN | The transport has not been opened. Open the transport first. |
| FSP_ERR_IN_USE | A transfer is already in progress. |
| fsp_err_t RM_ATCMD_W_CORE_InfoGet | ( | atcmd_w_ctrl_t *const | p_at_ctrl, |
| atcmd_w_info_t *const | p_info | ||
| ) |
Provides the middleware information, including the maximum number of bytes that can be received or transmitted at a time. Implements atcmd_w_api_t::infoGet
| FSP_SUCCESS | Information stored in provided p_info. |
| FSP_ERR_ASSERTION | Pointer to AT control block is NULL. |
| FSP_ERR_NOT_OPEN | The control block has not been opened |
| fsp_err_t RM_ATCMD_W_CORE_Abort | ( | atcmd_w_ctrl_t *const | p_at_ctrl | ) |
Provides API to abort ongoing transfer. Transmission is aborted after the current character is transmitted. Reception is still enabled after abort(). Any characters received after abort() and before the transfer is reset in the next call to read(), will arrive via the callback function. Implements atcmd_w_api_t::communicationAbort
| FSP_SUCCESS | AT transaction aborted successfully. |
| FSP_ERR_ASSERTION | Pointer to AT control block is NULL. |
| FSP_ERR_NOT_OPEN | The control block has not been opened. |
| FSP_ERR_UNSUPPORTED | The requested Abort direction is unsupported. |
| fsp_err_t RM_ATCMD_W_CORE_CallbackSet | ( | atcmd_w_ctrl_t *const | p_at_ctrl, |
| void(*)(atcmd_w_callback_args_t *) | p_callback, | ||
| void const *const | p_context, | ||
| atcmd_w_callback_args_t *const | p_callback_memory | ||
| ) |
Updates the user callback and has option of providing memory for callback structure. Implements atcmd_w_api_t::callbackSet
| FSP_SUCCESS | Callback updated successfully. |
| FSP_ERR_ASSERTION | A required pointer is NULL. |
| FSP_ERR_NOT_OPEN | The control block has not been opened. |
| fsp_err_t RM_ATCMD_W_CORE_Close | ( | atcmd_w_ctrl_t *const | p_at_ctrl | ) |
This function manages the closing of the module by the following task. Implements atcmd_w_api_t::close.
Disables AT operations by disabling the selected communication bus (UART,SPI or SDIO).
| FSP_SUCCESS | Module successfully closed. |
| FSP_ERR_ASSERTION | A required pointer argument is NULL. |
| FSP_ERR_NOT_OPEN | The module has not been opened. Open the module first. |
| fsp_err_t RM_ATCMD_W_CORE_ReadStop | ( | atcmd_w_ctrl_t *const | p_at_ctrl, |
| uint32_t * | remaining_bytes | ||
| ) |
Provides API to abort ongoing read. Reception is still enabled after abort(). Any characters received after abort() and before the transfer is reset in the next call to read(). Implements atcmd_w_api_t::readStop
| FSP_SUCCESS | AT transaction aborted successfully. |
| FSP_ERR_ASSERTION | Pointer to AT control block is NULL. |
| FSP_ERR_NOT_OPEN | The control block has not been opened. |
| fsp_err_t RM_ATCMD_W_CORE_SecureChannelKeySet | ( | atcmd_w_ctrl_t *const | p_at_ctrl, |
| uint8_t * | key | ||
| ) |
Sets the secure channel key for AT command core.
This function copies the provided key into the internal control structure if secure channel support is enabled (ATCMD_SECURE_CHANNEL == 1).
| [in] | p_at_ctrl | Pointer to the AT command control structure. |
| [in] | key | Pointer to the secure key to be set. |
| FSP_SUCCESS | Key was set successfully (or no operation if secure channel is disabled). |