![]() |
Demo HCI Implementation for WiMOD-LR Devices
V2.0.3
|
Implementation for the ServiceAccessPoint SensorApp (LR-Base_PLUS firmware only) More...
#include <SAP/WiMOD_SAP_SensorApp.h>
Public Member Functions | |
| WiMOD_SAP_SensorApp (TWiMODLRHCI *hci, UINT8 *buffer, UINT16 bufferSize) | |
| Constructor. More... | |
| virtual TWiMODLRResultCodes | SetSensorAppConfig (const TWiMODLR_SensorApp_Config *config, UINT8 *statusRsp) |
| Sets a new SensorApp configuration to the WiMOD. More... | |
| virtual TWiMODLRResultCodes | GetSensorAppConfig (TWiMODLR_SensorApp_Config *config, UINT8 *statusRsp) |
| Gets the current SensorApp configuration from the WiMOD. More... | |
| virtual bool | convert (TWiMODLR_HCIMessage &RxMsg, TWiMODLR_SensorApp_SensorData *sensorData) |
| Convert a received low level HCI-Msg to a high-level SensorData structure. More... | |
| virtual bool | convert (TWiMODLR_HCIMessage &RxMsg, TWiMODLR_SensorApp_AckSensorData *sensorAckData) |
| Convert a received low level HCI-Msg to a high-level SensorAckData structure. More... | |
| virtual void | RegisterSensorAckIndClient (TSensorAppAckIndicationCallback cb) |
| Register a callback function for the event "SensorApp Ack Data Indication". More... | |
| virtual void | RegisterSensorDataIndClient (TSensorAppSensorDataIndicationCallback cb) |
| Register a callback function for the event "SensorApp Data Indication". More... | |
| virtual void | DispatchSensorAppMessage (TWiMODLR_HCIMessage &rxMsg) |
Implementation for the ServiceAccessPoint SensorApp (LR-Base_PLUS firmware only)
| WiMOD_SAP_SensorApp::WiMOD_SAP_SensorApp | ( | 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 |
Convert a received low level HCI-Msg to a high-level SensorAckData structure.
This function should be used by the SensorAckData Indication Callback function prior processing the received data message.
| RxMsg | Reference to low-level HCI message. |
| sensorAckData | Pointer to the buffer where to store the received data |
| true | if the conversion was successful |
|
virtual |
Convert a received low level HCI-Msg to a high-level SensorData structure.
This function should be used by the SensorData Indication Callback function prior processing the received data message.
| RxMsg | Reference to low-level HCI message. |
| sensorData | Pointer to the buffer where to store the received data |
| true | if the conversion was successful |
|
virtual |
Gets the current SensorApp configuration from the WiMOD.
| config | pointer to data structure where to store the data |
| statusRsp | Status byte contained in the local response of the module |
| WiMODLR_RESULT_OK | if command transmit to WiMOD was ok |
|
virtual |
Register a callback function for the event "SensorApp Ack Data Indication".
This registered callback is called when the specified event is called by the WiMOD stack.
| cb | pointer to a callback function that should be called if the event occurs. |
|
virtual |
Register a callback function for the event "SensorApp Data Indication".
This registered callback is called when the specified event is called by the WiMOD stack.
| cb | pointer to a callback function that should be called if the event occurs. |
|
virtual |
Sets a new SensorApp configuration to the WiMOD.
| config | pointer to data structure containing the new parameters |
| statusRsp | Status byte contained in the local response of the module |
| WiMODLR_RESULT_OK | if command transmit to WiMOD was ok |