Added notes about getPacketLength (#214)

pull/801/head
jgromes 2023-07-15 19:40:07 +02:00
rodzic 5f2e5a1997
commit d1e3691c32
7 zmienionych plików z 14 dodań i 7 usunięć

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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