#include <IQRFPackets.h>
Tx packet statuses
Enumerator |
---|
OK |
Packet sent OK.
|
ERROR |
Packet sent with ERROR.
|
uint8_t IQRFPackets::getId |
( |
| ) |
|
Get actual Tx packet ID
- Returns
- Actual Tx packet ID
uint8_t IQRFPackets::getIdCount |
( |
| ) |
|
Get count of packet IDs
- Returns
- Count of packet IDs
uint8_t IQRFPackets::getLength |
( |
| ) |
|
Get packet lenght
- Returns
- Packet length
uint8_t IQRFPackets::send |
( |
uint8_t |
spiCmd, |
|
|
uint8_t * |
dataBuffer, |
|
|
uint8_t |
dataLength, |
|
|
uint8_t |
unallocationFlag |
|
) |
| |
Prepare SPI packet to packet buffer
- Parameters
-
spiCmd | Command that I want to send to TR module |
dataBuffer | Pointer to a buffer that contains data that I want to send to TR module |
dataLength | Number of bytes to send |
unallocationFlag | If the dataBuffer is dynamically allocated using malloc function. If you wish to unallocate buffer after data is sent, set the unallocationFlag to 1, otherwise to 0. |
- Returns
- Packet ID
void IQRFPackets::setId |
( |
uint8_t |
id | ) |
|
Set actual Tx packet ID
- Parameters
-
void IQRFPackets::setIdCount |
( |
uint8_t |
count | ) |
|
Set count of packet IDs
- Parameters
-
void IQRFPackets::setLength |
( |
uint8_t |
length | ) |
|
Set packet length
- Parameters
-
The documentation for this class was generated from the following files: