My fork during debugging.
Fork of NRF2401P by
Diff: NRF2401P.h
- Revision:
- 11:07f76589f00a
- Parent:
- 10:8a217441c38e
- Child:
- 13:5cbc726f2bbb
--- a/NRF2401P.h Sat Jul 11 11:18:37 2015 +0000 +++ b/NRF2401P.h Sat Jul 11 14:56:17 2015 +0000 @@ -174,8 +174,25 @@ void start(); char* statusString(); + + /** Print out 1 byte content of register + * + * @param name Name of register to print. + * @param address Register address of interest. + * @param newline By default print a trailing newline, can disable by setting false. + */ + void printReg(char* name, char address, bool newline=true); - /** Print details about the radio setup and configuration + /** Print out 'width' bytes content of register + * + * @param name Name of register to print. + * @param address Register address of interest. + * @param width Number of bytes to print. + * @param newline By default print a trailing newline, can disable by setting false. + */ + void printReg(char* name, char address, char width, bool newline=true); + + /** Print verbose details about the radio setup and configuration * */ void printDetails();