#include <Gamma868.h>
Definition at line 34 of file Gamma868.h.
◆ Gamma868() [1/2]
Boardcore::Gamma868::Gamma868 |
( |
const char * | serialPath, |
|
|
const uint16_t | multiplier = 0 ) |
|
explicit |
◆ Gamma868() [2/2]
Boardcore::Gamma868::Gamma868 |
( |
const char * | serialPath, |
|
|
miosix::GpioPin * | learnModePin, |
|
|
const uint16_t | multiplier = 0 ) |
◆ ~Gamma868()
Boardcore::Gamma868::~Gamma868 |
( |
| ) |
|
◆ configure()
bool Boardcore::Gamma868::configure |
( |
const GammaConf & | newConf | ) |
|
◆ getConfig()
◆ readConfig()
GammaConf Boardcore::Gamma868::readConfig |
( |
| ) |
|
◆ receive()
ssize_t Boardcore::Gamma868::receive |
( |
uint8_t * | packet, |
|
|
size_t | packetLength ) |
|
overridevirtual |
Wait until a new packet is received.
- Parameters
-
packet | Buffer to store the packet (at least packetLength bytes). |
packetLength | Maximum length of the received data. |
- Returns
- Size of the data received or -1 if failure
Implements Boardcore::Transceiver.
Definition at line 77 of file Gamma868.cpp.
◆ send()
bool Boardcore::Gamma868::send |
( |
uint8_t * | packet, |
|
|
size_t | packetLength ) |
|
overridevirtual |
Send a packet.
The function must block the thread until the packet is sent (successfully or not).
- Parameters
-
packet | Pointer to the packet (at least packetLength bytes). |
packetLength | Length of the packet to be sent. |
- Returns
- True if the message was sent correctly.
Implements Boardcore::Transceiver.
Definition at line 67 of file Gamma868.cpp.
◆ LEARN_MODE_TIMEOUT
const int Boardcore::Gamma868::LEARN_MODE_TIMEOUT = 5000 |
The documentation for this class was generated from the following files: