1。缓存配置有大小的限制吗?
2。我的程序中,上下行都配置了大于1024的缓存,SetupComm(hHandle,1024*3,1024*3),但是当写入数据大于1024时,
查询cbInQue还是1024,为什么呢?
3。怎么查询当前串口的缓存大小?
2。我的程序中,上下行都配置了大于1024的缓存,SetupComm(hHandle,1024*3,1024*3),但是当写入数据大于1024时,
查询cbInQue还是1024,为什么呢?
3。怎么查询当前串口的缓存大小?
调试欢乐多
Number of bytes received by the serial provider but not yet read by a ReadFile operation. 试试GetCommProperties
} COMMPROP;dwMaxTxQueue:
Maximum size of the driver's internal output buffer, in bytes. A value of zero indicates that no maximum value is imposed by the serial provider.
dwMaxRxQueue:
Maximum size of the driver's internal input buffer, in bytes. A value of zero indicates that no maximum value is imposed by the serial provider.