Internal helper class for processing SLIP frames.
More...
#include <HCI/WiMODLRHCI.h>
Internal helper class for processing SLIP frames.
TWiMODLRHCI::TWiMODLRHCI |
( |
Stream & |
s | ) |
|
Constructor.
- Parameters
-
s | Reference to the serial interface the the WiMOD. The interface must be initialized before any other function of this class can be used. |
void TWiMODLRHCI::begin |
( |
void |
| ) |
|
|
virtual |
Init function of the generic HCI message handler.
This function must be called once before any other service can be used.
Reimplemented in WiMODLRBASE, and WiMODLoRaWAN.
void TWiMODLRHCI::Process |
( |
void |
| ) |
|
Handle the receiver path; process all incomming bytes from the WiMOD.
This function checks if there are any bytes from the WiMOD available and tries to start decoding the received data.
- Note
- this function must be called at regular base from the main loop.
TWiMDLRResultCodes TWiMODLRHCI::SendHCIMessage |
( |
UINT8 |
dstSapID, |
|
|
UINT8 |
msgID, |
|
|
UINT8 |
rxMsgID, |
|
|
UINT8 * |
payload, |
|
|
UINT16 |
length |
|
) |
| |
Generic function for transferring a HCI message to the WiMOD module.
- Parameters
-
dstSapID | the SAP endpoint to address |
msgID | the command ID to address within the SAP |
rxMsgID | the expected response ID according to the msgID |
payload | pointer to the payload bytes to send |
length | the number of payload bytes to send |
- Return values
-
WiMODLR_RESULT_OK | if everything was OK |
The documentation for this class was generated from the following files: