void NRF24L01_Send(char Buf[_Buffer_Size]) { NRF24L01_Write_TX_Buf(Buf, _Buffer_Size); NRF24L01_RF_TX(); while ((NRF24L01_Get_Status() & _TX_DS) != _TX_DS); NRF24L01_Clear_Interrupts(); }
void NRF24L01_Receive(char Buf[_Buffer_Size]) { NRF24L01_CE_HIGH; Delay_us(130); while ((NRF24L01_Get_Status() & _RX_DR) != _RX_DR); NRF24L01_CE_LOW; NRF24L01_Read_RX_Buf(Buf, _Buffer_Size); NRF24L01_Clear_Interrupts(); }
void NRF24L01_Send(char Buf[_Buffer_Size]) { NRF24L01_Write_TX_Buf(Buf, _Buffer_Size); if((NRF24L01_ReadReg(FIFO_STATUS) & TX_EMPTY) == TX_EMPTY ) NRF24L01_RF_TX(); while ((NRF24L01_Get_Status() & _TX_DS) != _TX_DS) { } NRF24L01_Clear_Interrupts(); }