这个常见的SPI函数有什么作用呢?
我在使用 SPI 的 Arduino 脚本中看到此函数:ISR (SPI_STC_vect)。我熟悉 C,但这似乎不符合 - 它看起来像一个函数,尽管没有返回类型定义,并且参数没有意义。我是 SPI 新手,在网上找不到太多/任何文档。在中断期间运行的其他函数是使用 AttachInterrupt 调用的,但这似乎没有在任何地方调用。
I see this function in Arduino scripts using SPI: ISR (SPI_STC_vect). I am familiar with C but this doesn't seem to follow - it looks like a function though there is no return type definition, and the argument doesn't make sense. I am new to SPI and cannot find much/any documentation online. Other functions which run during an interrupt are called using attachInterrupt, however this doesn't seem to be called anywhere.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
ISR()
是一个引入中断处理程序的宏。SPI_STC_vect
是串行传输完成中断向量。请参阅此处了解完整文档,包括可用中断列表向量。
ISR()
is a macro that introduces an interrupt handler.SPI_STC_vect
is a Serial Transfer Complete interrupt vector.See here for complete documentation, including the list of available interrupt vectors.