![]() |
RUI3 (RAK Unified Interface 3) - RAK4631
|
Data Fields | |
uint8_t | Port |
void(* | Init )(void *params, uint8_t *dataBuffer, uint8_t dataBufferMaxSize) |
bool(* | IsInitialized )(void) |
bool(* | IsRunning )(void) |
void(* | Process )(void) |
void(* | OnMcpsConfirmProcess )(McpsConfirm_t *mcpsConfirm) |
void(* | OnMcpsIndicationProcess )(McpsIndication_t *mcpsIndication) |
void(* | OnMlmeConfirmProcess )(MlmeConfirm_t *mlmeConfirm) |
void(* | OnMlmeIndicationProcess )(MlmeIndication_t *mlmeIndication) |
void(* | OnMacMcpsRequest )(LoRaMacStatus_t status, McpsReq_t *mcpsReq, TimerTime_t nextTxDelay) |
void(* | OnMacMlmeRequest )(LoRaMacStatus_t status, MlmeReq_t *mlmeReq, TimerTime_t nextTxDelay) |
void(* | OnJoinRequest )(bool isOtaa) |
LmHandlerErrorStatus_t(* | OnSendRequest )(LmHandlerAppData_t *appData, LmHandlerMsgTypes_t isTxConfirmed) |
LmHandlerErrorStatus_t(* | OnDeviceTimeRequest )(void) |
void(* | OnSysTimeUpdate )(void) |
uint8_t Port |
void( * Init) (void *params, uint8_t *dataBuffer, uint8_t dataBufferMaxSize) |
Initializes the package with provided parameters
[IN] | params Pointer to the package parameters |
[IN] | dataBuffer Pointer to main application buffer |
[IN] | dataBufferMaxSize Main application buffer maximum size |
bool( * IsInitialized) (void) |
Returns the current package initialization status.
status | Package initialization status [true: Initialized, false: Not initialized] |
bool( * IsRunning) (void) |
Returns the package operation status.
status | Package operation status [true: Running, false: Not running] |
void( * Process) (void) |
Processes the internal package events.
void( * OnMcpsConfirmProcess) (McpsConfirm_t *mcpsConfirm) |
Processes the MCSP Confirm
[IN] | mcpsConfirm MCPS confirmation primitive data |
void( * OnMcpsIndicationProcess) (McpsIndication_t *mcpsIndication) |
Processes the MCPS Indication
[IN] | mcpsIndication MCPS indication primitive data |
void( * OnMlmeConfirmProcess) (MlmeConfirm_t *mlmeConfirm) |
Processes the MLME Confirm
[IN] | mlmeConfirm MLME confirmation primitive data |
void( * OnMlmeIndicationProcess) (MlmeIndication_t *mlmeIndication) |
Processes the MLME Indication
[IN] | mlmeIndication MLME indication primitive data |
void( * OnMacMcpsRequest) (LoRaMacStatus_t status, McpsReq_t *mcpsReq, TimerTime_t nextTxDelay) |
Notifies the upper layer that a MCPS request has been made to the MAC layer
[IN] | status - Request returned status |
[IN] | mcpsRequest - Performed MCPS-Request. Refer to McpsReq_t. |
[IN] | nextTxDelay - Time to wait until another TX is possible. |
void( * OnMacMlmeRequest) (LoRaMacStatus_t status, MlmeReq_t *mlmeReq, TimerTime_t nextTxDelay) |
Notifies the upper layer that a MLME request has been made to the MAC layer
[IN] | status - Request returned status |
[IN] | mlmeRequest - Performed MLME-Request. Refer to MlmeReq_t. |
[IN] | nextTxDelay - Time to wait until another TX is possible. |
void( * OnJoinRequest) (bool isOtaa) |
Join a LoRa Network in classA
if the device is ABP, this is a pass through function
[IN] | isOtaa Indicates which activation mode must be used |
LmHandlerErrorStatus_t( * OnSendRequest) (LmHandlerAppData_t *appData, LmHandlerMsgTypes_t isTxConfirmed) |
Instructs the MAC layer to send a ClassA uplink
[IN] | appData Data to be sent |
[IN] | isTxConfirmed Indicates if the uplink requires an acknowledgement |
status | Returns LORAMAC_HANDLER_SUCCESS if request has been processed else LORAMAC_HANDLER_ERROR |
LmHandlerErrorStatus_t( * OnDeviceTimeRequest) (void) |
Requests network server time update
status | Returns LORAMAC_HANDLER_SET if joined else LORAMAC_HANDLER_RESET |
void( * OnSysTimeUpdate) (void) |
Notifies the upper layer that the system time has been updated.