unsigned char nRFCMD_RegWrite (unsigned char reg, const unsigned char *buf, unsigned char count) { unsigned char res; CONFIG_PIN_CSN_LOW; res = nRFCMD_XcieveByte (reg); if (buf) while (count--) nRFCMD_XcieveByte (*buf++); CONFIG_PIN_CSN_HIGH; return res; }
unsigned char nRFCMD_RegExec(unsigned char reg) { unsigned char res; CONFIG_PIN_CSN = 0; res = nRFCMD_XcieveByte(reg); CONFIG_PIN_CSN = 1; return res; }
uint8_t nRFCMD_RegExec (uint8_t reg) { uint8_t res; CONFIG_PIN_CSN = 0; res = nRFCMD_XcieveByte (reg); CONFIG_PIN_CSN = 1; return res; }