![]() |
Demo HCI Implementation for WiMOD-LR Devices
V2.0.3
|
Implementation for the ServiceAccessPoint DeviceManagement. More...
#include <SAP/WiMOD_SAP_DEVMGMT.h>

Public Member Functions | |
| WiMOD_SAP_DevMgmt (TWiMODLRHCI *hci, UINT8 *buffer, UINT16 bufferSize) | |
| Constructor. More... | |
| virtual | ~WiMOD_SAP_DevMgmt (void) |
| Destructor. | |
| virtual TWiMODLRResultCodes | Ping (UINT8 *statusRsp) |
| Ping Cmd - Checks if the serial connection of to the WiMOD module is OK. More... | |
| virtual TWiMODLRResultCodes | Reset (UINT8 *statusRsp) |
| Reset Cmd - Do a reset / reboot of the WiMOD. More... | |
| virtual TWiMODLRResultCodes | GetDeviceInfo (TWiMODLR_DevMgmt_DevInfo *info, UINT8 *statusRsp) |
| Get Device Info - Basic Information about the WiMOD module. More... | |
| virtual TWiMODLRResultCodes | GetFirmwareInfo (TWiMODLR_DevMgmt_FwInfo *info, UINT8 *statusRsp) |
| GetFirmwareInfo Cmd - Get basic info about the running firmware. More... | |
| virtual TWiMODLRResultCodes | GetSystemStatus (TWiMODLR_DevMgmt_SystemStatus *info, UINT8 *statusRsp) |
| GetSystemStatus Cmd - Get basic info about the system status of WiMOD. More... | |
| virtual TWiMODLRResultCodes | GetRtc (UINT32 *rtcTime, UINT8 *statusRsp) |
| GetRtc Cmd - Get the current RTC time/date from WiMOD. More... | |
| virtual TWiMODLRResultCodes | SetRtc (const UINT32 rtcTime, UINT8 *statusRsp) |
| SetRtc Cmd - Set the current RTC time/date of WiMOD. More... | |
| virtual TWiMODLRResultCodes | GetRadioConfig (TWiMODLR_DevMgmt_RadioConfig *radioCfg, UINT8 *statusRsp) |
| GetRadioConfig Cmd - Get the radio settings of the WiMOD. More... | |
| virtual TWiMODLRResultCodes | SetRadioConfig (const TWiMODLR_DevMgmt_RadioConfig *radioCfg, UINT8 *statusRsp) |
| SetRadioConfig Cmd - Set the radio settings of the WiMOD. More... | |
| virtual TWiMODLRResultCodes | ResetRadioConfig (UINT8 *statusRsp) |
| ResetRadioConfig Cmd - Reset the radio config to factory defaults. More... | |
| virtual TWiMODLRResultCodes | GetOperationMode (TWiMOD_OperationMode *opMode, UINT8 *statusRsp) |
| GetOperationMode Cmd - Get the current operation mode of the WiMOD. More... | |
| virtual TWiMODLRResultCodes | SetOperationMode (const TWiMOD_OperationMode opMode, UINT8 *statusRsp) |
| SetOperationMode Cmd - Set the current operation mode of the WiMOD. More... | |
| virtual TWiMODLRResultCodes | SetRadioMode (const TRadioCfg_RadioMode radioMode, UINT8 *statusRsp) |
| SetRadioMode - Set the current radio mode of the WiMOD. 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 | SetRtcAlarm (const TWiMODLR_DevMgmt_RtcAlarm *rtcAlarm, UINT8 *statusRsp) |
| SetRtcAlarm Cmd - Set a new RTC alarm config. More... | |
| virtual TWiMODLRResultCodes | GetRtcAlarm (TWiMODLR_DevMgmt_RtcAlarm *rtcAlarm, UINT8 *statusRsp) |
| GetRtcAlarm Cmd - Get information about RTC alarm feature. More... | |
| virtual TWiMODLRResultCodes | ClearRtcAlarm (UINT8 *statusRsp) |
| ClearRtcAlarm Cmd - Clear a pending RTC alarm. More... | |
| virtual TWiMODLRResultCodes | SetHCIConfig (TWiMODLR_DevMgmt_HciConfig &hciConfig, UINT8 *statusRsp) |
| SetHCIConfig Cmd - Sets the HCI config options for the LR-BASE_PLUS firmware. More... | |
| virtual TWiMODLRResultCodes | GetHCIConfig (TWiMODLR_DevMgmt_HciConfig *hciConfig, UINT8 *statusRsp) |
| SetHCIConfig Cmd - Gets the HCI config options for the LR-BASE_PLUS firmware. More... | |
| void | RegisterPowerUpIndicationClient (TDevMgmtPowerUpCallback cb) |
| Register a callback function for processing a PowerUp Indication message. More... | |
| void | RegisterRtcAlarmIndicationClient (TDevMgmtRtcAlarmCallback cb) |
| Register a callback function for processing a RTC Alarm Indication message. More... | |
| void | DispatchDeviceMgmtMessage (TWiMODLR_HCIMessage &rxMsg) |
Implementation for the ServiceAccessPoint DeviceManagement.
| WiMOD_SAP_DevMgmt::WiMOD_SAP_DevMgmt | ( | 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 |
ClearRtcAlarm Cmd - Clear a pending RTC alarm.
| statusRsp | pointer to store status byte of response mesg from WiMOD |
| WiMODLR_RESULT_OK | if command transmit to WiMOD was ok |
|
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 |
Reimplemented in WiMOD_SAP_DevMgmt_Lorawan.
|
virtual |
Get Device Info - Basic Information about the WiMOD module.
| info | 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 |
Reimplemented in WiMOD_SAP_DevMgmt_Lorawan.
|
virtual |
GetFirmwareInfo Cmd - Get basic info about the running firmware.
| info | 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 |
SetHCIConfig Cmd - Gets the HCI config options for the LR-BASE_PLUS firmware.
| hciConfig | 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 |
GetOperationMode Cmd - Get the current operation mode of the WiMOD.
| opMode | 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 |
GetRadioConfig Cmd - Get the radio settings of the WiMOD.
| 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 |
Reimplemented in WiMOD_SAP_DevMgmt_Lorawan, and WiMOD_SAP_DevMgmt_Plus.
|
virtual |
GetRtc Cmd - Get the current RTC time/date from WiMOD.
| rtcTime | 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 |
GetRtcAlarm Cmd - Get information about RTC alarm feature.
| rtcAlarm | pointer where to store the RTC alarm parameter set |
| statusRsp | pointer to store status byte of response mesg from WiMOD |
| WiMODLR_RESULT_OK | if command transmit to WiMOD was ok |
|
virtual |
GetSystemStatus Cmd - Get basic info about the system status of WiMOD.
| info | 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 |
Reimplemented in WiMOD_SAP_DevMgmt_ProLink, WiMOD_SAP_DevMgmt_Lorawan, and WiMOD_SAP_DevMgmt_Plus.
|
virtual |
Ping Cmd - Checks if the serial connection of to the WiMOD module is OK.
| statusRsp | pointer to store status byte of response mesg from WiMOD |
| WiMODLR_RESULT_OK | if command transmit to WiMOD was ok |
| void WiMOD_SAP_DevMgmt::RegisterPowerUpIndicationClient | ( | TDevMgmtPowerUpCallback | cb | ) |
Register a callback function for processing a PowerUp Indication message.
| cb | pointer to callback function |
| void WiMOD_SAP_DevMgmt::RegisterRtcAlarmIndicationClient | ( | TDevMgmtRtcAlarmCallback | cb | ) |
Register a callback function for processing a RTC Alarm Indication message.
| cb | pointer to callback function |
|
virtual |
Reset Cmd - Do a reset / reboot of the WiMOD.
| 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 to factory defaults.
| statusRsp | pointer to store status byte of response mesg from WiMOD |
| WiMODLR_RESULT_OK | if command transmit to WiMOD was ok |
Reimplemented in WiMOD_SAP_DevMgmt_Lorawan.
|
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 |
Reimplemented in WiMOD_SAP_DevMgmt_Lorawan.
|
virtual |
SetHCIConfig Cmd - Sets the HCI config options for the LR-BASE_PLUS firmware.
| hciConfig | pointer to the new configuration |
| statusRsp | pointer to store status byte of response mesg from WiMOD |
| WiMODLR_RESULT_OK | if command transmit to WiMOD was ok |
|
virtual |
SetOperationMode Cmd - Set the current operation mode of the WiMOD.
| opMode | the new operation mode to set |
| 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 WiMOD.
| 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 |
Reimplemented in WiMOD_SAP_DevMgmt_Lorawan, and WiMOD_SAP_DevMgmt_Plus.
|
virtual |
SetRadioMode - Set the current radio mode of the WiMOD.
| radioMode | the new radio mode to set |
| statusRsp | pointer to store status byte of response mesg from WiMOD |
| WiMODLR_RESULT_OK | if command transmit to WiMOD was ok |
Reimplemented in WiMOD_SAP_DevMgmt_Lorawan.
|
virtual |
SetRtc Cmd - Set the current RTC time/date of WiMOD.
| rtcTime | 32bit data containing the new RTC timestamp |
| statusRsp | pointer to store status byte of response mesg from WiMOD |
| WiMODLR_RESULT_OK | if command transmit to WiMOD was ok |
|
virtual |
SetRtcAlarm Cmd - Set a new RTC alarm config.
| rtcAlarm | pointer to write the RTC alarm relevant parameter set to |
| statusRsp | pointer to store status byte of response mesg from WiMOD |
| WiMODLR_RESULT_OK | if command transmit to WiMOD was ok |