文件名称:IICMaster
介绍说明--下载内容均来自于网络,请自行研究使用
12Mhz标准51的100KHz IIC总线主器件模拟方式驱动程序。
本驱动程序即可以在没有Small RTOS的情况下使用。此时,要使用本驱动程序只需要配置IIC总线使用的IO口。在驱动程序的主文件iic_master.c仅包含一个文件config.h。用户需要的是在这个文件中设置IIC总线使用的IO口SDA和SCL。如果用户单独使用iic_master.c,还要在config.h包含iic_master.h文件和其它必须的文件如reg51等;并定义宏TRUE、FALSE和与编译器无关的数据类型。在使用Small RTOS的情况下,用户只要在config.h定义SDA和SCL和包含iic_master.h并将宏IICSem定义为分配给IIC总线驱动程序的信号量的索引。
在使用IIC总线驱动程序前应该调用函数IICInit()初始化IIC总线。单独使用或单任务IIC总线,使用函数IICRead()对IIC总线进行读操作,使用IICWrite()对IIC总线进行写操作。如果有多个任务需要对IIC总线进行操作,则分别调用宏OSIICRead()和OSIICWrite()对其进行读写。-12Mhz standards of 100KHz 51 IIC bus owners device simulation mode driver. The driver is not in the Small RTOS use. At this point, to use the driver only needs to use the allocation of the IIC bus IO mouth. Drivers in the main document iic_master.c document contains only a config.h. User needs in this document is to set up the IIC bus IO mouth SDA and SCL. If users alone iic_master.c. also included in config.h iic_master.h documents and other necessary documents reg5 1; and the definition of Acer TRUE, FALSE and compiler - independent data types. Small RTOS in the use of the circumstances, users in config.h definition of SDA and SCL and will include Acer iic_master.h IICSem definition allocated to the IIC bus driver signals of the index. IIC in the use of the former bus driver should call
本驱动程序即可以在没有Small RTOS的情况下使用。此时,要使用本驱动程序只需要配置IIC总线使用的IO口。在驱动程序的主文件iic_master.c仅包含一个文件config.h。用户需要的是在这个文件中设置IIC总线使用的IO口SDA和SCL。如果用户单独使用iic_master.c,还要在config.h包含iic_master.h文件和其它必须的文件如reg51等;并定义宏TRUE、FALSE和与编译器无关的数据类型。在使用Small RTOS的情况下,用户只要在config.h定义SDA和SCL和包含iic_master.h并将宏IICSem定义为分配给IIC总线驱动程序的信号量的索引。
在使用IIC总线驱动程序前应该调用函数IICInit()初始化IIC总线。单独使用或单任务IIC总线,使用函数IICRead()对IIC总线进行读操作,使用IICWrite()对IIC总线进行写操作。如果有多个任务需要对IIC总线进行操作,则分别调用宏OSIICRead()和OSIICWrite()对其进行读写。-12Mhz standards of 100KHz 51 IIC bus owners device simulation mode driver. The driver is not in the Small RTOS use. At this point, to use the driver only needs to use the allocation of the IIC bus IO mouth. Drivers in the main document iic_master.c document contains only a config.h. User needs in this document is to set up the IIC bus IO mouth SDA and SCL. If users alone iic_master.c. also included in config.h iic_master.h documents and other necessary documents reg5 1; and the definition of Acer TRUE, FALSE and compiler - independent data types. Small RTOS in the use of the circumstances, users in config.h definition of SDA and SCL and will include Acer iic_master.h IICSem definition allocated to the IIC bus driver signals of the index. IIC in the use of the former bus driver should call
(系统自动生成,下载前可以参看下载内容)
下载文件列表
压缩包 : 111186752iicmaster.rar 列表 IICMaster IICMaster\iic_master.c IICMaster\iic_master.h IICMaster\readme.TXT