Added notes about getPacketLength (#214)

This commit is contained in:
jgromes 2023-07-15 19:40:07 +02:00
parent 5f2e5a1997
commit d1e3691c32
7 changed files with 14 additions and 7 deletions

View file

@ -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.

View file

@ -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.

View file

@ -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.

View file

@ -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.

View file

@ -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.

View file

@ -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.

View file

@ -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