nrf24l01/nrf24.c
// Configure transceiver CRC scheme
// input:
//   scheme - CRC scheme, one of nRF24_CRC_xx values
// note: transceiver will forcibly turn on the CRC in case if auto acknowledgment
//       enabled for at least one RX pipe
Configure transceiver CRC scheme
input:
scheme - CRC scheme, one of nRF24_CRC_xx values
note: transceiver will forcibly turn on the CRC in case if auto acknowledgment
enabled for at least one RX pipe
Configure transceiver CRC scheme input : scheme - CRC scheme one of nRF24_CRC_xx values note : transceiver will forcibly turn on the CRC in case if auto acknowledgment enabled for at least one RX pipe
void nRF24_SetCRCScheme(uint8_t scheme) {
	uint8_t reg;
	reg  = nRF24_ReadReg(nRF24_REG_CONFIG);
	reg &= ~nRF24_MASK_CRC;
	reg |= (scheme & nRF24_MASK_CRC);
	nRF24_WriteReg(nRF24_REG_CONFIG, reg);
}
void nRF24_SetCRCScheme ( uint8_t scheme ) { uint8_t reg ; reg = nRF24_ReadReg ( nRF24_REG_CONFIG ) ; reg &= ~ nRF24_MASK_CRC ; reg |= ( scheme & nRF24_MASK_CRC ) ; nRF24_WriteReg ( nRF24_REG_CONFIG , reg ) ; }
Configure transceiver CRC scheme
input:
scheme - CRC scheme, one of nRF24_CRC_xx values
note: transceiver will forcibly turn on the CRC in case if auto acknowledgment
enabled for at least one RX pipe
Configure transceiver CRC scheme input : scheme - CRC scheme one of nRF24_CRC_xx values note : transceiver will forcibly turn on the CRC in case if auto acknowledgment enabled for at least one RX pipe
// Configure EN_CRC[3] and CRCO[2] bits of the CONFIG register