Currently I am using the FRDM-K64F board with kds and KSDK and I need to use a serial port.
I can transmit and receive data, but when I want to control, I can't find the necessary functions:
1- I need to know how many bytes were received at a reception in the data block (UART_DRV_ReceiveData function) and
2- I need to know how many bytes are available in the receive buffer before reading data block from the reception buffer.
Thanks in advance
LeoCaporalini
Hi Leocaporatini,
You can refer to the Kinetis SDK API Reference Manual "C:\Freescale\KSDK_1.0.0\doc" about "25.2.3.9 uart_status_t UART_DRV_ReceiveData() "
the "rxSize" is the number of bytes of receive .
Hope it hepls
Alice