nrf24l01/nrf24.c
// Enables Payload With Ack. NB Refer to the datasheet for proper retransmit timing.
// input:
//   mode - status, 1 or 0
Enables Payload With Ack. NB Refer to the datasheet for proper retransmit timing.
input:
mode - status, 1 or 0
Enables Payload With Ack . NB Refer to the datasheet for proper retransmit timing . input : mode - status 1 or 0
void nRF24_SetPayloadWithAck(uint8_t mode) {
	uint8_t reg;
	reg  = nRF24_ReadReg(nRF24_REG_FEATURE);
	if(mode) {
		nRF24_WriteReg(nRF24_REG_FEATURE, reg | nRF24_FEATURE_EN_ACK_PAY);
	} else {
		nRF24_WriteReg(nRF24_REG_FEATURE, reg &~ nRF24_FEATURE_EN_ACK_PAY);
	}
}
void nRF24_SetPayloadWithAck ( uint8_t mode ) { uint8_t reg ; reg = nRF24_ReadReg ( nRF24_REG_FEATURE ) ; if ( mode ) { nRF24_WriteReg ( nRF24_REG_FEATURE , reg | nRF24_FEATURE_EN_ACK_PAY ) ; } else { nRF24_WriteReg ( nRF24_REG_FEATURE , reg & ~ nRF24_FEATURE_EN_ACK_PAY ) ; } }
Enables Payload With Ack.
Enables Payload With Ack .