Hello! There was a problem with data read-out from UART -
I want to accept packages on 500 byte, on package reception should expose
Flag of the end of reception, but it is not clear during what moment occurs?
while(1)
{
adl_eventWait( EventHandle,
RX_EVENT_WAIT_MASK,
NULL,
ADL_EVENT_WAIT_ALL,
ADL_EVENT_NO_TIMEOUT);
/* clear Rx Available event */
adl_eventClear( EventHandle, RX_EVENT_WAIT_MASK, NULL );
while(0!=(nb_read = uart_itf.read( uart_handle, r_buff, DATA_MAX )))
{
r_buff += nb_read;
lamd += nb_read; // Number accepted byte
}
“Flag of the end of reception”; // ? ? ?
break;
}
That is on what condition I can break a cycle?