harlequin-tech/rf24HQ — pull request #2 by spirilis (2012-05-01 19:56:40+00:00)
Title: Expansion of the bitrate idea

I expanded upon your begin() modification with the following:

Changed setSpeed to setSpeedReg, getSpeed to getSpeedReg ... To keep this new "*Reg" naming scheme consistent, setPower is now setPowerReg and getPower is getPowerReg. I did not implement a setPower or getPower with a numeric value (I suppose I can do that, taking a signed integer representing the dBm strength, I'll think about that later)

setSpeed and getSpeed were implemented using two new private functions, _convertSpeedToReg and _convertRegToSpeed. The user can now set speed and get speed in bitrate-numeric form, and begin() was modified to make use of the new setSpeed() and its use of setPower() changed to setPowerReg()

I also added a getSpeedReg() and getPowerReg() at the beginning of getSpeedString() and getPowerString() to make sure the register is forcibly re-read before interpreting.