nrf24l01/nrf24.c
// Disable the auto retransmit (a.k.a. enhanced ShockBurst) for one or all RX pipes
// input:
//   pipe - number of the RX pipe, value from 0 to 5, any other value will disable AA for all RX pipes
Disable the auto retransmit (a.k.a. enhanced ShockBurst) for one or all RX pipes
input:
pipe - number of the RX pipe, value from 0 to 5, any other value will disable AA for all RX pipes
Disable the auto retransmit ( a . k . a . enhanced ShockBurst ) for one or all RX pipes input : pipe - number of the RX pipe value from 0 to 5 any other value will disable AA for all RX pipes
void nRF24_DisableAA(uint8_t pipe) {
	uint8_t reg;
	if (pipe > 5) {
		nRF24_WriteReg(nRF24_REG_EN_AA, 0x00);
	} else {
		reg  = nRF24_ReadReg(nRF24_REG_EN_AA);
		reg &= ~(1 << pipe);
		nRF24_WriteReg(nRF24_REG_EN_AA, reg);
	}
}
void nRF24_DisableAA ( uint8_t pipe ) { uint8_t reg ; if ( pipe > 5 ) { nRF24_WriteReg ( nRF24_REG_EN_AA , 0x00 ) ; } else { reg = nRF24_ReadReg ( nRF24_REG_EN_AA ) ; reg &= ~ ( 1 << pipe ) ; nRF24_WriteReg ( nRF24_REG_EN_AA , reg ) ; } }
Disable the auto retransmit (a.k.a.
Disable the auto retransmit ( a . k . a .
// Disable Auto-ACK for ALL pipes // Clear bit in the EN_AA register