CE_TXFULL是什么意思? (Win32 通讯错误标志)

发布于 2024-10-04 07:06:42 字数 373 浏览 0 评论 0原文

有人可以向我解释一下 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不必在意 2024-10-11 07:06:42

天哪:)

我应该在线检查MSDN,而不仅仅是VS 2005安装的本地版本。

http://msdn.microsoft.com/en-us/library/aa363180.aspx

The following values are not supported:
    CE_DNS 
    CE_IOE 
    CE_MODE 
    CE_OOP 
    CE_PTO 
    CE_TXFULL

难怪我在网上找不到任何关于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

The following values are not supported:
    CE_DNS 
    CE_IOE 
    CE_MODE 
    CE_OOP 
    CE_PTO 
    CE_TXFULL

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文