RA Flexible Software Package Documentation
Release v5.2.0
|
|
Functions | |
fsp_err_t | RM_BLE_MESH_LOWER_TRANS_Open (rm_ble_mesh_lower_trans_ctrl_t *const p_ctrl, rm_ble_mesh_lower_trans_cfg_t const *const p_cfg) |
fsp_err_t | RM_BLE_MESH_LOWER_TRANS_Close (rm_ble_mesh_provision_ctrl_t *const p_ctrl) |
fsp_err_t | RM_BLE_MESH_LOWER_TRANS_SendPdu (rm_ble_mesh_lower_trans_ctrl_t *const p_ctrl, rm_ble_mesh_lower_trans_transmit_setting_t const *const p_transmit_setting, rm_ble_mesh_buffer_t const *const p_buffer, rm_ble_mesh_lower_trans_reliable_t reliable) |
fsp_err_t | RM_BLE_MESH_LOWER_TRANS_ClearSarContexts (rm_ble_mesh_lower_trans_ctrl_t *const p_ctrl) |
fsp_err_t | RM_BLE_MESH_LOWER_TRANS_ClearSubnetSarContexts (rm_ble_mesh_lower_trans_ctrl_t *const p_ctrl, rm_ble_mesh_network_subnet_handle_t subnet_handle) |
fsp_err_t | RM_BLE_MESH_LOWER_TRANS_ReinitReplayCache (rm_ble_mesh_lower_trans_ctrl_t *const p_ctrl) |
fsp_err_t | RM_BLE_MESH_LOWER_TRANS_TriggerPendingTransmits (rm_ble_mesh_lower_trans_ctrl_t *const p_ctrl) |
The BLE Mesh Network Lower Trans module supports the following devices.
Configuration | Options | Default | Description |
---|
Configuration | Options | Default | Description |
---|---|---|---|
General | |||
Name | Name Must Be a Valid C Symbol | g_rm_ble_mesh_lower_trans0 | Module name. |
Channel Number | Invalid Channel Number | 0 | Select channel corresponding to the channel number of the hardware. |
Notification Enable |
| Disabled | Whether to enable the notification or not. |
Callback | Name Must Be a Valid C Symbol | NULL | Callback function name. |
Data Structures | |
struct | rm_ble_mesh_lower_trans_instance_ctrl_t |
struct rm_ble_mesh_lower_trans_instance_ctrl_t |
RM_BLE_MESH_LOWER_TRANS private control block. DO NOT MODIFY. Initialization occurs when RM_BLE_MESH_LOWER_TRANS_Open() is called.
fsp_err_t RM_BLE_MESH_LOWER_TRANS_Open | ( | rm_ble_mesh_lower_trans_ctrl_t *const | p_ctrl, |
rm_ble_mesh_lower_trans_cfg_t const *const | p_cfg | ||
) |
Register Inerface with Lower Transport Layer. This routine registers interface with the Lower Transport Layer. Transport Layer supports single Application, hence this rouine shall be called once.
Implements rm_ble_mesh_lower_trans_api_t::open.
Example:
FSP_SUCCESS | Module opened successfully. |
FSP_ERR_ASSERTION | Pointer to control block or configuration structure is NULL. |
FSP_ERR_ALREADY_OPEN | Module is already open. |
FSP_ERR_INVALID_STATE | Lower layer is invalid state. |
fsp_err_t RM_BLE_MESH_LOWER_TRANS_Close | ( | rm_ble_mesh_provision_ctrl_t *const | p_ctrl | ) |
Unregister Inerface with Lower Transport Layer. Implements rm_ble_mesh_lower_trans_api_t::close.
Example:
FSP_SUCCESS | Module successfully closed. |
FSP_ERR_ASSERTION | The parameter p_ctrl is NULL. |
FSP_ERR_NOT_OPEN | Module is not open. |
FSP_ERR_INVALID_STATE | Lower layer is invalid state. |
fsp_err_t RM_BLE_MESH_LOWER_TRANS_SendPdu | ( | rm_ble_mesh_lower_trans_ctrl_t *const | p_ctrl, |
rm_ble_mesh_lower_trans_transmit_setting_t const *const | p_transmit_setting, | ||
rm_ble_mesh_buffer_t const *const | p_buffer, | ||
rm_ble_mesh_lower_trans_reliable_t | reliable | ||
) |
API to send transport PDUs. This routine sends transport PDUs to peer device.
Implements rm_ble_mesh_lower_trans_api_t::sendPdu.
Example:
FSP_SUCCESS | Operation succeeded. |
FSP_ERR_ASSERTION | The parameter p_ctrl is NULL. |
FSP_ERR_INVALID_POINTER | The parameter p_transmit_setting and p_buffer are NULL. |
FSP_ERR_NOT_OPEN | Module is not open. |
FSP_ERR_OUT_OF_MEMORY | Memory allocation is failed. |
FSP_ERR_OVERFLOW | TX queue is full. |
FSP_ERR_UNDERFLOW | TX queue is empty. |
FSP_ERR_INVALID_ARGUMENT | Input parameter is invalid. |
FSP_ERR_NOT_FOUND | Input parameter is not found. |
fsp_err_t RM_BLE_MESH_LOWER_TRANS_ClearSarContexts | ( | rm_ble_mesh_lower_trans_ctrl_t *const | p_ctrl | ) |
To clear all segmentation and reassembly contexts. This routine clears all segmentation and reassembly contexts.
Implements rm_ble_mesh_lower_trans_api_t::clearSarContexts.
Example:
FSP_SUCCESS | Operation succeeded. |
FSP_ERR_ASSERTION | The parameter p_ctrl is NULL. |
FSP_ERR_NOT_OPEN | Module is not open. |
fsp_err_t RM_BLE_MESH_LOWER_TRANS_ClearSubnetSarContexts | ( | rm_ble_mesh_lower_trans_ctrl_t *const | p_ctrl, |
rm_ble_mesh_network_subnet_handle_t | subnet_handle | ||
) |
To clear all segmentation and reassembly contexts for a given subnet. This routine clears all segmentation and reassembly contexts.
Implements rm_ble_mesh_lower_trans_api_t::clearSubnetSarContexts.
Example:
FSP_SUCCESS | Operation succeeded. |
FSP_ERR_ASSERTION | The parameter p_ctrl is NULL. |
FSP_ERR_NOT_OPEN | Module is not open. |
fsp_err_t RM_BLE_MESH_LOWER_TRANS_ReinitReplayCache | ( | rm_ble_mesh_lower_trans_ctrl_t *const | p_ctrl | ) |
To reinitialize all Lower Transport replay cache entries. This routine clears and reinitializes all Transport Replay Cache Entries. This needs to be invoked by the upper layer when the Network moves to a newer IV Index (Normal State) and the Sequence numbers are reset.
Implements rm_ble_mesh_lower_trans_api_t::reinitReplayCache.
Example:
FSP_SUCCESS | Operation succeeded. |
FSP_ERR_ASSERTION | The parameter p_ctrl is NULL. |
FSP_ERR_NOT_OPEN | Module is not open. |
fsp_err_t RM_BLE_MESH_LOWER_TRANS_TriggerPendingTransmits | ( | rm_ble_mesh_lower_trans_ctrl_t *const | p_ctrl | ) |
To trigger any LTRN pending transmissions. Trigger pending transmits is an interface to check for pending segments in the tx queue and schedule for transmission, which is mainly used by the LPN operation.
Implements rm_ble_mesh_lower_trans_api_t::triggerPendingTransmits.
Example:
FSP_SUCCESS | Operation succeeded. |
FSP_ERR_ASSERTION | The parameter p_ctrl is NULL. |
FSP_ERR_NOT_OPEN | Module is not open. |