📄 readme_nonblockreaddemo.txt
字号:
FILE LIST - nonBlockReadDemo.c DESCRIPTION - This code is an example of doing a nonBlocking read on a port in raw mode. The first read blocks and waits for a character. It then checks to see if additional characters have been sent as a result of pressing a special key such as <- (left arrow) If so, a special case is invoked to handle this (printf in this case) What to do with the data is left up to the customer. RUNNING DEMO - Place the nonBlockReadDemo.c in your <Tornado> dir. Add this file to your project, re-build projectName.out and download it. To run this code invoke the function nonBlockReadRawStart(). TESTED ON - Host/Target : Solaris 5.5.1 / mv2700 VxWorks : 5.4 OUTPUT - On VxWorks target: ================= ->nonBlockReadRawStart Starting Read Test Opening File Descriptors Setting to raw mode Flushing read and write ports initialization done value = 0 = 0x0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -