写中断驱动的循环缓冲区 [英] Writing interrupt driven circular buffer
问题描述
有人可以指出安全循环缓冲接收器的源代码
发射器吗?这是通过RS232发送和接收字节。
提前谢谢。
Can someone point out source code for a safe circular buffer receiver
transmitter? It''s for sending and receiving bytes via RS232.
Thanks in advance.
推荐答案
Sven写道:
Sven wrote:
有人能指出安全循环缓冲接收器的源代码
发射器吗?这是通过RS232发送和接收字节。
提前感谢。
Can someone point out source code for a safe circular buffer receiver
transmitter? It''s for sending and receiving bytes via RS232.
Thanks in advance.
http://home.planet.nl/~burry004/COMPORT.ZIP
不需要一个中断,确实需要端口访问,你可以根据你的harts欲望修改它。
http://home.planet.nl/~burry004/COMPORT.ZIP
Does not need an interrupt, does need port access, and you can
modify it to your harts desire.
Sven写道:
Sven wrote:
有人能指出安全循环缓冲接收器的源代码
发射器吗?这是通过RS232发送和接收字节。
提前谢谢。
Can someone point out source code for a safe circular buffer receiver
transmitter? It''s for sending and receiving bytes via RS232.
Thanks in advance.
Sven,
你要求的是comp.lang.c上的偏离主题。像中断,
接收器,发射器和RS232这样的东西是平台相关的,因此不是ISO / ANSI C标准所涵盖的
。您最好的选择是找到一个讨论您的平台的新闻组
。
常见问题解答中包含所有内容,可在 http://c-faq.com/
您的问题适用于Qs 19.7和19.40b,但我建议阅读
整个第19节。
< off-topic>
当我在96年做了类似的事情时,我在
a bookSerial Communication中找到了很多帮助。作者:Peter W Gofton,SYBEX Inc.,1994。它是
涵盖DOS和Windows(但请参阅发布日期)。我相信
现在更好,更新的书籍。
< / off-topic>
祝你好运,
Peter
Sven,
What you ask for is off-topic on comp.lang.c. Things like interrupts,
receivers, transmitters and RS232 are platform dependent and hence not
covered by the ISO/ANSI C Standard. Your best bet is finding a newsgroup
that discusses your platform.
It is all covered in the FAQ, which can be found at http://c-faq.com/
Your question pertains to Qs 19.7 and 19.40b, but I recommend reading
the whole section 19.
<off-topic>
When I was doing something like that back in ''96, I found great help in
a book "Serial Communication" by Peter W Gofton, SYBEX Inc., 1994. It
covers DOS and Windows (but see the publishing date). I am sure there
are better and more up-to-date books available now.
</off-topic>
Good luck,
Peter
Sven写道:
Sven wrote:
>
有人能指出安全循环缓冲区的源代码
接收器发送器吗?这是通过
RS232发送和接收字节。
>
Can someone point out source code for a safe circular buffer
receiver transmitter? It''s for sending and receiving bytes via
RS232.
您需要做的就是在更改计数器和标志之前禁用中断(或等效物)
。
-
Chuck F(cinefalconer at maineline dot net)
可用于咨询/临时嵌入式和系统。
< http://cbfalconer.home.att.net>
-
通过 http://www.teranews.com
All you need to do is disable interrupts (or their equivalents)
before altering the counters and flags.
--
Chuck F (cbfalconer at maineline dot net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net>
--
Posted via a free Usenet account from http://www.teranews.com
这篇关于写中断驱动的循环缓冲区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!