#include <IQRF.h>
Function perform a TR-module driver initialization Function performes initialization of trInfo identification data structure
- Parameters
-
rxCallback | Pointer to callback function. Function is called when the driver receives data from the TR module |
txCallback | Pointer to callback function. unction is called when the driver sent data to the TR module |
- Examples:
- Get-info.ino, and Hello-world.ino.
uint8_t IQRF::getAttepmtsCount |
( |
| ) |
|
Get count of attepmts to send data
- Returns
- Count of attepmts to send data
uint8_t IQRF::getByteCount |
( |
| ) |
|
Get byte count
- Returns
- Byte count
void IQRF::getData |
( |
uint8_t * |
dataBuffer, |
|
|
uint8_t |
dataLength |
|
) |
| |
Function is usually called inside the callback function, whitch is called when the driver receives data from TR module
- Parameters
-
dataBuffer | Pointer to my buffer, to which I want to load data received from the TR module |
dataLength | Number of bytes I want to read |
- Examples:
- Get-info.ino, and Hello-world.ino.
uint8_t IQRF::getDataLength |
( |
| ) |
|
uint8_t IQRF::getPTYPE |
( |
| ) |
|
unsigned long IQRF::getUsCount0 |
( |
| ) |
|
Get count of microseconds form counter
- Returns
- Count of microseconds
unsigned long IQRF::getUsCount1 |
( |
| ) |
|
Get count of microseconds form counter
- Returns
- Count of microseconds
uint8_t IQRF::sendData |
( |
uint8_t * |
dataBuffer, |
|
|
uint8_t |
dataLength, |
|
|
uint8_t |
unallocationFlag |
|
) |
| |
Function sends data from buffer to TR module
- Parameters
-
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 pDataBuffer 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
- Tx packet ID (number 1-255)
- Examples:
- Hello-world.ino.
void IQRF::setAttepmtsCount |
( |
uint8_t |
attepmts | ) |
|
Set count of attepmts to send data
- Parameters
-
attepmts | Count of attepmts to send data |
void IQRF::setByteCount |
( |
uint8_t |
count | ) |
|
Set byte count
- Parameters
-
void IQRF::setPTYPE |
( |
uint8_t |
PTYPE | ) |
|
void IQRF::setUsCount0 |
( |
unsigned long |
us | ) |
|
Set count of microseconds from counter
- Parameters
-
void IQRF::setUsCount1 |
( |
unsigned long |
us | ) |
|
Set count of microseconds from counter
- Parameters
-
The documentation for this class was generated from the following files: