Added setRetries()

This commit is contained in:
maniacbug
2011-06-28 06:44:41 -07:00
parent 1c6cc96fb7
commit a22906f961
3 changed files with 23 additions and 1 deletions
+7
View File
@@ -631,5 +631,12 @@ void RF24::setCRCLength(rf24_crclength_e length)
write_register(CONFIG,config);
}
/******************************************************************/
void RF24::setRetries(uint8_t delay, uint8_t count)
{
write_register(SETUP_RETR,(delay&0xf)<<ARD | (count&0xf)<<ARC);
}
// vim:ai:cin:sts=2 sw=2 ft=cpp