摘要
基于Linux字符设备操作接口和各类串行总线的共性,按照分层的思想,抽象出各种总线的统一接口。统一接口的应用层API与底层的具体总线操作形式无关,而且便于应用系统的升级和移植。文中给出了一种多种串行总线统一接口的实现方法,并以ARM9为平台,以I2C、1-Wire、SPI为例,验证了新方法的可行性。
In this paper, we abstract a unified interface from the various buses according to the commonality of the character device operation interface and serial buses based on Linux. Due to the independence of the underlying specific buses, the uniform interface is convenient to upgrade and transplant the application system, The implementation of the unified interface abstracted from multi buses is elaborated and the experiment conducted on the ARM9 platform, taking I2C, 1-Wire and SP1 as examples, verifies the feasibility of the new method finally.
出处
《物联网技术》
2012年第6期61-64,共4页
Internet of things technologies