Write bytes to sending by uart

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

Write bytes to sending by uart

678 Views
marceladuenas
Contributor II

Hello everybody, i am playing with a thermal printer and the kinetis FRDM _k64f , i send text by UART to the printer succesfuly but if i want change the printer settings i need to send not a char or a string , i need to send or writr a byte to the UART , i have been doing in arduino using write.byte but oviously in c it doesn´t work in the same way . Some one have any idea to send an hexadecimal byte ?

Labels (1)
0 Kudos
1 Reply

391 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi Marcela,

You may use UART_DRV_SendDataBlocking() or UART_DRV_SendData() to send the raw data out via UART. Please refer to C:\Freescale\KSDK_1.2.0\examples\frdmk64f\driver_examples\uart for more details.


Have a great day,
Kan

Freescale Technical Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos