I have a question,NRF24LE1 -> AP2 in asynchronous mode
The RTS signal line has been found for low
BOOL ANT_UnAssignChannel(UCHAR ucChannel)
{
UCHAR sum_length=0;
TxMesgBuf[0]=MESG_Asyn; //
TxMesgBuf[1]=MESG_UNASSIGN_CHANNEL_SIZE; //
TxMesgBuf[2]=MESG_UNASSIGN_CHANNEL_ID; // message ID
TxMesgBuf[3]=ucChannel;
TxMesgBuf[4]=checksum(TxMesgBuf,(3+MESG_UNASSIGN_CHANNEL_SIZE));
TxMesgBuf[5]=Opt_Zero_Pad1;
TxMesgBuf[6]=Opt_Zero_Pad2;
sum_length=6+MESG_UNASSIGN_CHANNEL_SIZE;
cnt_respond_size=4+MESG_RESPONSE_EVENT_SIZE;
while(RTS);
do
{
Tx_data(TxMesgBuf,sum_length);
delay_us(50);
}while(!RTS);
delay_us(50);
if(flag_rx_respond) // check respond
{
flag_rx_respond=0;
if(uart_rx[BUFFER_INDEX_RESPONSE_CODE+1]!=RESPONSE_NO_ERROR)
{
return FALSE;
}
return TRUE;
}
else
return FALSE;
}
how can i check RTS signal is de-asserted for approximately 50 μs