Added notes about getPacketLength (#214)
This commit is contained in:
parent
5f2e5a1997
commit
d1e3691c32
7 changed files with 14 additions and 7 deletions
|
@ -714,7 +714,8 @@ class CC1101: public PhysicalLayer {
|
|||
int16_t startReceive(uint32_t timeout, uint16_t irqFlags, uint16_t irqMask, size_t len);
|
||||
|
||||
/*!
|
||||
\brief Reads data received after calling startReceive method.
|
||||
\brief Reads data received after calling startReceive method. When the packet length is not known in advance,
|
||||
getPacketLength method must be called BEFORE calling readData!
|
||||
\param data Pointer to array to save the received binary data.
|
||||
\param len Number of bytes that will be read. When set to 0, the packet length will be retreived automatically.
|
||||
When more bytes than received are requested, only the number of bytes requested will be returned.
|
||||
|
|
|
@ -712,7 +712,8 @@ class RF69: public PhysicalLayer {
|
|||
int16_t startReceive(uint32_t timeout, uint16_t irqFlags, uint16_t irqMask, size_t len);
|
||||
|
||||
/*!
|
||||
\brief Reads data received after calling startReceive method.
|
||||
\brief Reads data received after calling startReceive method. When the packet length is not known in advance,
|
||||
getPacketLength method must be called BEFORE calling readData!
|
||||
\param data Pointer to array to save the received binary data.
|
||||
\param len Number of bytes that will be read. When set to 0, the packet length will be retrieved automatically.
|
||||
When more bytes than received are requested, only the number of bytes requested will be returned.
|
||||
|
|
|
@ -671,7 +671,8 @@ class SX126x: public PhysicalLayer {
|
|||
uint16_t getIrqStatus();
|
||||
|
||||
/*!
|
||||
\brief Reads data received after calling startReceive method.
|
||||
\brief Reads data received after calling startReceive method. When the packet length is not known in advance,
|
||||
getPacketLength method must be called BEFORE calling readData!
|
||||
\param data Pointer to array to save the received binary data.
|
||||
\param len Number of bytes that will be read. When set to 0, the packet length will be retrieved automatically.
|
||||
When more bytes than received are requested, only the number of bytes requested will be returned.
|
||||
|
|
|
@ -820,7 +820,8 @@ class SX127x: public PhysicalLayer {
|
|||
int16_t startReceive(uint32_t mode, uint16_t irqFlags, uint16_t irqMask, size_t len);
|
||||
|
||||
/*!
|
||||
\brief Reads data that was received after calling startReceive method. This method reads len characters.
|
||||
\brief Reads data that was received after calling startReceive method. When the packet length is not known in advance,
|
||||
getPacketLength method must be called BEFORE calling readData!
|
||||
\param data Pointer to array to save the received binary data.
|
||||
\param len Number of bytes that will be read. When set to 0, the packet length will be retrieved automatically.
|
||||
When more bytes than received are requested, only the number of bytes requested will be returned.
|
||||
|
|
|
@ -562,7 +562,8 @@ class SX128x: public PhysicalLayer {
|
|||
uint16_t getIrqStatus();
|
||||
|
||||
/*!
|
||||
\brief Reads data received after calling startReceive method.
|
||||
\brief Reads data received after calling startReceive method. When the packet length is not known in advance,
|
||||
getPacketLength method must be called BEFORE calling readData!
|
||||
\param data Pointer to array to save the received binary data.
|
||||
\param len Number of bytes that will be read. When set to 0, the packet length will be retrieved automatically.
|
||||
When more bytes than received are requested, only the number of bytes requested will be returned.
|
||||
|
|
|
@ -710,7 +710,8 @@ class Si443x: public PhysicalLayer {
|
|||
int16_t startReceive(uint32_t timeout, uint16_t irqFlags, uint16_t irqMask, size_t len);
|
||||
|
||||
/*!
|
||||
\brief Reads data that was received after calling startReceive method. This method reads len characters.
|
||||
\brief Reads data that was received after calling startReceive method. When the packet length is not known in advance,
|
||||
getPacketLength method must be called BEFORE calling readData!
|
||||
\param data Pointer to array to save the received binary data.
|
||||
\param len Number of bytes that will be read. When set to 0, the packet length will be retrieved automatically.
|
||||
When more bytes than received are requested, only the number of bytes requested will be returned.
|
||||
|
|
|
@ -332,7 +332,8 @@ class nRF24: public PhysicalLayer {
|
|||
int16_t startReceive(uint32_t timeout, uint16_t irqFlags, uint16_t irqMask, size_t len);
|
||||
|
||||
/*!
|
||||
\brief Reads data received after calling startReceive method.
|
||||
\brief Reads data received after calling startReceive method. When the packet length is not known in advance,
|
||||
getPacketLength method must be called BEFORE calling readData!
|
||||
\param data Pointer to array to save the received binary data.
|
||||
\param len Number of bytes that will be received. Must be known in advance for binary transmissions.
|
||||
\returns \ref status_codes
|
||||
|
|
Loading…
Add table
Reference in a new issue