Skip to content

Commit

Permalink
satisfy #782
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Aug 10, 2021
1 parent 1a17aee commit f9146ed
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions RF24.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,25 @@ class RF24 {

inline void endTransaction();

/**
* Read a chunk of data in from a register
*
* @param reg Which register. Use constants from nRF24L01.h
* @param buf Where to put the data
* @param len How many bytes of data to transfer
* @return Nothing. Older versions of this function returned the status
* byte, but that it now saved to a private member on all SPI transactions.
*/
void read_register(uint8_t reg, uint8_t* buf, uint8_t len);

/**
* Read single byte from a register
*
* @param reg Which register. Use constants from nRF24L01.h
* @return Current value of register @p reg
*/
uint8_t read_register(uint8_t reg);

public:

/**
Expand Down Expand Up @@ -1717,25 +1736,6 @@ class RF24 {
*/
void ce(bool level);

/**
* Read a chunk of data in from a register
*
* @param reg Which register. Use constants from nRF24L01.h
* @param buf Where to put the data
* @param len How many bytes of data to transfer
* @return Nothing. Older versions of this function returned the status
* byte, but that it now saved to a private member on all SPI transactions.
*/
void read_register(uint8_t reg, uint8_t* buf, uint8_t len);

/**
* Read single byte from a register
*
* @param reg Which register. Use constants from nRF24L01.h
* @return Current value of register @p reg
*/
uint8_t read_register(uint8_t reg);

/**
* Write a chunk of data to a register
*
Expand Down

0 comments on commit f9146ed

Please sign in to comment.