Write bytes to sending by uart

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Write bytes to sending by uart

1,152 次查看
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 ?

标签 (1)
0 项奖励
回复
1 回复

865 次查看
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 项奖励
回复