Refactor repeated parts of printDetails into own methods

This commit is contained in:
maniacbug
2011-06-27 12:54:42 -07:00
parent aa7a7c647a
commit 92373ba7f5
3 changed files with 53 additions and 46 deletions

16
RF24.h
View File

@@ -161,6 +161,22 @@ protected:
*/
void print_observe_tx(uint8_t value) ;
/**
* Print the name and value of an 8-bit register to stdout
*
* @param name Name of the register
* @param reg Which register. Use constants from nRF24L01.h
*/
void print_byte_register(prog_char* name, uint8_t reg);
/**
* Print the name and value of a 40-bit address register to stdout
*
* @param name Name of the register
* @param reg Which register. Use constants from nRF24L01.h
*/
void print_address_register(prog_char* name, uint8_t reg);
/**
* Turn on or off the special features of the chip
*