开发者

Win32 Api Serial Port setting shake?

I'm trying to set up the com port the same way a vendor's utility app does. The following is what the utility app sets:

0.00000200  PtiDReaderSetup IOCTL_SERIAL_SET_HANDFLOW   
Serial1 SUCCESS Shake:80000040 
Replace:80000000 
XonLimit:2048 
XoffLimit:512

XonLimit and Xofflimit aren't a problem. I can set them easily. It's the shake and replace that I can't seem to figure out. From what I can tell, its values are represented by the combination of other settings.

I can't seem to fi开发者_运维百科nd any reference material pertaining to this.


MSDN contains a listing of the file Ntddser.h.

The header file ntddser.h lists serial port driver interfaces, structures and device control codes

Serach for typedef struct _SERIAL_HANDFLOW to get to the relevant part. I'm sorry, but I can't tell you anything about the exact meaning of these defines, but Google might be your friend.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜