Write bytes to sending by uart

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Write bytes to sending by uart

1,150件の閲覧回数
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 返信

863件の閲覧回数
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 件の賞賛
返信