Esempio n. 1
0
File: main.c Progetto: DragonWar/RSL
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();

}
Esempio n. 2
0
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();

}