CE_TXFULL是什么意思? (Win32 通讯错误标志)
有人可以向我解释一下 CE_TXFULL
是什么吗?
据我了解,当其中一个 RX 队列(硬件 FIFO、软件缓冲区)溢出时,就会出现问题。
我还了解到,当 TX 队列用完要发送的字节时,这可能会出现问题。如果接收器有过于严格的时序限制,则可能会出现问题。
但如果 TX 队列已满,怎么会出现问题呢?我的意思是,在这种情况下,WriteFile
应该正常超时,并返回已写入的字节数(可能为零)。
问题是,我必须使用 Windows XxxCommXxx 函数来实现一个代表简单 UART 的接口。现在我需要知道是否必须将 CE_TXFULL
映射到“通用错误”位。
干杯,保罗
Can someone explain to me what CE_TXFULL
is about?
I understand that it's a problem when one of the RX queues runs over (HW FIFO, SW buffer).
I also understand that it could be a problem when the TX queue runs out of bytes to send. If the receiver has overly demanding timing restrictions that could be a problem.
But how can it ever be a problem if the TX queue is full? I mean WriteFile
should gracefully time out in that case, and return the number of bytes that were written (which may be zero).
Thing is, I have to implement an interface that represents a simple UART by using the Windows XxxCommXxx
functions. Now I need to know if I have to map CE_TXFULL
to the "generic error" bit or not.
Cheers, Paul
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
天哪:)
我应该在线检查MSDN,而不仅仅是VS 2005安装的本地版本。
http://msdn.microsoft.com/en-us/library/aa363180.aspx
难怪我在网上找不到任何关于
CE_TXFULL
的信息。所以我猜
CE_TXFULL
没有任何意义,因为它没有被使用,而且我永远不会看到它。Oh boy :)
I should have checked MSDN online, not only the local version installed by VS 2005.
http://msdn.microsoft.com/en-us/library/aa363180.aspx
No wonder I couldn't find any information about
CE_TXFULL
on the net.So I guess
CE_TXFULL
doesn't mean anything, since it's not used, and I will never see it.