FRDM-K64F UART Control Problems...

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FRDM-K64F UART Control Problems...

1,033 Views
leocaporalini
Contributor I

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

Labels (1)
0 Kudos
Reply
1 Reply

643 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

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