![]() |
Demo HCI Implementation for WiMOD-LR Devices
V2.0.3
|
Implementation for the ServiceAccessPoint RadioLink (LR-Base firmware only) More...
#include <SAP/WiMOD_SAP_RadioLink_ProLink.h>


Public Member Functions | |
| WiMOD_SAP_RadioLink_ProLink (TWiMODLRHCI *hci, UINT8 *buffer, UINT16 bufferSize) | |
| Constructor. More... | |
| virtual | ~WiMOD_SAP_RadioLink_ProLink (void) |
| Destructor. More... | |
| virtual TWiMODLRResultCodes | SendCData (const TWiMODLR_RadioLink_Msg *txMsg, UINT8 *statusRsp) |
| Tries to send transmit C-Data to peer module via RF link. More... | |
| virtual bool | convert (TWiMODLR_HCIMessage &RxMsg, TWiMODLR_RadioLink_CdataInd *cDataTxInfo) |
| Convert a received low level HCI-Msg to a high-level CDataTx Info. More... | |
| virtual bool | convert (TWiMODLR_HCIMessage &RxMsg, TWiMODLR_AckTxInd_Msg *txAckIndInfo) |
| Convert a received low level HCI-Msg to a high-level AckTxInd Info. More... | |
| virtual bool | convert (TWiMODLR_HCIMessage &RxMsg, TWiMODLR_RadioLink_Msg *radioLinkMsg) |
| Convert a received low level HCI-Msg to a high-level RadioLink-Msg. More... | |
| virtual bool | convert (TWiMODLR_HCIMessage &RxMsg, TWiMODLR_RadioLink_UdataInd *uDataTxInfo) |
| Convert a received low level HCI-Msg to a high-level UDataTx Info. More... | |
| virtual TWiMODLRResultCodes | SetAckData (const TWiMODLR_RadioLink_Msg *txMsg, UINT8 *statusRsp) |
| Sets additional user payload for the next ack frame to send. More... | |
| virtual TWiMODLRResultCodes | SetAesKey (const UINT8 *key, UINT8 *statusRsp) |
| SetAesKey Cmd - Set the 128bit AES that is to be used for encryption. More... | |
| virtual TWiMODLRResultCodes | GetAesKey (UINT8 *key, UINT8 *statusRsp) |
| GetAesKey Cmd - Get the 128bit AES that that is used for encryption. More... | |
| virtual TWiMODLRResultCodes | GetRadioConfig (TWiMODLR_ProLinkRadioLink_RadioConfig *radioCfg, UINT8 *statusRsp) |
| GetRadioConfig Cmd - Get the radio settings of the proprietary LR-BASE mode. More... | |
| virtual TWiMODLRResultCodes | SetRadioConfig (const TWiMODLR_ProLinkRadioLink_RadioConfig *radioCfg, UINT8 *statusRsp) |
| SetRadioConfig Cmd - Set the radio settings of the of the proprietary LR-BASE mode. More... | |
| virtual TWiMODLRResultCodes | ResetRadioConfig (UINT8 *statusRsp) |
| ResetRadioConfig Cmd - Reset the radio config of the proprietary LR-BASE mode to factory defaults. More... | |
| virtual void | DispatchRadioLinkProLinkMessage (TWiMODLR_HCIMessage &rxMsg) |
Public Member Functions inherited from WiMOD_SAP_RadioLink | |
| WiMOD_SAP_RadioLink (TWiMODLRHCI *hci, UINT8 *buffer, UINT16 bufferSize) | |
| Constructor. More... | |
| virtual | ~WiMOD_SAP_RadioLink (void) |
| Destructor. More... | |
| virtual TWiMODLRResultCodes | SendUData (const TWiMODLR_RadioLink_Msg *txMsg, UINT8 *statusRsp) |
| Tries to send transmit U-Data to peer module via RF link. More... | |
| virtual bool | convert (TWiMODLR_HCIMessage &RxMsg, TWiMODLR_RadioLink_RawMsg *radioLinkRawMsg) |
| virtual void | RegisterUDataRxClient (TRadioLinkUDataRxIndicationCallback cb) |
| Register a callback function for the RX U-Data Indication - optional -. More... | |
| virtual void | RegisterUDataTxClient (TRadioLinkUDataTxIndicationCallback cb) |
| Register a callback function for the TX U-Data Indication - optional -. More... | |
| virtual void | RegisterRawDataRxClient (TRadioLinkRawDataRxIndicationCallback cb) |
| Register a callback function for the RX Raw-Data Indication - optional -. More... | |
| virtual void | RegisterCDataRxClient (TRadioLinkCDataRxIndicationCallback cb) |
| Register a callback function for the RX C-Data Indication - optional -. More... | |
| virtual void | RegisterCDataTxClient (TRadioLinkCDataTxIndicationCallback cb) |
| Register a callback function for the TX C-Data Indication - optional -. More... | |
| virtual void | RegisterAckRxClient (TRadioLinkAckRxIndicationCallback cb) |
| Register a callback function for the RX Ack (+data) Indication - optional -. More... | |
| virtual void | RegisterAckRxTimeoutClient (TRadioLinkAckRxTimeoutIndicationCallback cb) |
| Register a callback function for the Ack Timeout Indication - optional -. More... | |
| virtual void | RegisterAckTxCallback (TRadioLinkAckTxIndicationCallback cb) |
| Register a callback function for the TX Ack Indication - optional -. More... | |
| virtual void | DispatchRadioLinkMessage (TWiMODLR_HCIMessage &rxMsg) |
Protected Member Functions | |
| virtual TWiMODLRResultCodes | unsupportedCmd (UINT8 *statusRsp) |
Implementation for the ServiceAccessPoint RadioLink (LR-Base firmware only)
| WiMOD_SAP_RadioLink_ProLink::WiMOD_SAP_RadioLink_ProLink | ( | TWiMODLRHCI * | hci, |
| UINT8 * | buffer, | ||
| UINT16 | bufferSize | ||
| ) |
Constructor.
| hci | Pointer to HCI processor object |
| buffer | pointer to storage area for building tx frames; MUST BE VALID |
| bufferSize | size of the buffer |
|
virtual |
Destructor.
|
virtual |
Convert a received low level HCI-Msg to a high-level AckTxInd Info.
This function should be used by the AckTx Indication Callback functions prior processing the received data message.
| RxMsg | Reference to low-level HCI message. |
| txAckIndInfo | Pointer to the buffer where to store the received data |
| true | if the conversion was successful |
Reimplemented from WiMOD_SAP_RadioLink.
|
virtual |
Convert a received low level HCI-Msg to a high-level CDataTx Info.
This function should be used by the Tx-C-Data Indication Callback functions prior processing the received data message.
| RxMsg | Reference to low-level HCI message. |
| cDataTxInfo | Pointer to the buffer where to store the received data |
| true | if the conversion was successful |
Reimplemented from WiMOD_SAP_RadioLink.
|
inlinevirtual |
Convert a received low level HCI-Msg to a high-level RadioLink-Msg.
This function should be used by the RxUData / RxCData callback functions prior processing the received data message.
| RxMsg | Reference to low-level HCI message. |
| radioLinkMsg | Pointer to the buffer where to store the received data |
| true | if the conversion was successful |
Reimplemented from WiMOD_SAP_RadioLink.

|
inlinevirtual |
Convert a received low level HCI-Msg to a high-level UDataTx Info.
This function should be used by the Tx-U-Data Indication Callback functions prior processing the received data message.
| RxMsg | Reference to low-level HCI message. |
| uDataTxInfo | Pointer to the buffer where to store the received data |
| true | if the conversion was successful |
Reimplemented from WiMOD_SAP_RadioLink.

|
virtual |
GetAesKey Cmd - Get the 128bit AES that that is used for encryption.
| key | pointer where to store the 128bit AES key (pointer to array of 16 UINT8 entries) |
| statusRsp | pointer to store status byte of response mesg from WiMOD |
| WiMODLR_RESULT_OK | if command transmit to WiMOD was ok |
|
virtual |
GetRadioConfig Cmd - Get the radio settings of the proprietary LR-BASE mode.
| radioCfg | pointer to store the received information |
| statusRsp | pointer to store status byte of response mesg from WiMOD |
| WiMODLR_RESULT_OK | if command transmit to WiMOD was ok |
|
virtual |
ResetRadioConfig Cmd - Reset the radio config of the proprietary LR-BASE mode to factory defaults.
| statusRsp | pointer to store status byte of response mesg from WiMOD |
| WiMODLR_RESULT_OK | if command transmit to WiMOD was ok |
|
virtual |
Tries to send transmit C-Data to peer module via RF link.
| txMsg | Data structure containing the TX-data and options. |
| statusRsp | Status byte contained in the local response of the module |
| WiMODLR_RESULT_OK | if command transmit to WiMOD was ok |
Reimplemented from WiMOD_SAP_RadioLink.
|
virtual |
Sets additional user payload for the next ack frame to send.
| txMsg | Pointer to data structure containing the payload data. note: Max ack payload size is 8 byte! |
| statusRsp | Status byte contained in the local response of the module |
| WiMODLR_RESULT_OK | if command transmit to WiMOD was ok |
Reimplemented from WiMOD_SAP_RadioLink.
|
virtual |
SetAesKey Cmd - Set the 128bit AES that is to be used for encryption.
| key | pointer to the 128bit AES key (pointer to array of 16 UINT8 entries) |
| statusRsp | pointer to store status byte of response mesg from WiMOD |
| WiMODLR_RESULT_OK | if command transmit to WiMOD was ok |
|
virtual |
SetRadioConfig Cmd - Set the radio settings of the of the proprietary LR-BASE mode.
| radioCfg | pointer to the new radio configuration |
| statusRsp | pointer to store status byte of response mesg from WiMOD |
| WiMODLR_RESULT_OK | if command transmit to WiMOD was ok |