淄博周村网站建设定制,成都百度推广的关键词,设计常用网站,网页设计师入门一、结构 二、功能介绍 DIO#xff08;数字输入输出#xff09;驱动模块主要是对端口#xff08;Port#xff09;#xff0c;通道#xff08;Channel#xff09;和通道组#xff08;ChannelGroup#xff09;进行读写操作。
通道#xff08;Channel#xff09;…一、结构 二、功能介绍 DIO数字输入输出驱动模块主要是对端口Port通道Channel和通道组ChannelGroup进行读写操作。
通道Channel指引脚他们一般都具有复用功能 端口Port含有相同类复用功能的引脚组成一个端口Port 通道组端口Port中的部分或全部通道Channel又可组成一个通道组ChannelGroup。 三、通道组 通道组是指在同一个口上的一组相邻的通道。下图为通道组的说明以及对通道组进行操作的结果。 四、功能接口函数
Dio_LevelType Dio_ReadChannel(Dio_ChannelType ChannelId)
void Dio_WriteChannel(Dio_ChannelType ChannelId,Dio_LevelType Level)
Dio_PortLevelType Dio_ReadPort(Dio_PortType PortId)
void Dio_WritePort(Dio_PortType PortId,Dio_PortLevelType Level)
Dio_PortLevelType Dio_ReadChannelGroup(const Dio_ChannelGroupType* ChannelGroupIdPtr)
void Dio_WriteChannelGroup(const Dio_ChannelGroupType* ChannelGroupIdPtr,Dio_PortLevelType Level)
void Dio_GetVersionInfo(Std_VersionInfoType* VersionInfo)
Dio_LevelType Dio_FlipChannel(Dio_ChannelType ChannelId)
void Dio_MaskedWritePort(Dio_PortType PortId,Dio_PortLevelType Level,Dio_PortLevelType Mask)Dio_LevelType Dio_ReadChannel(Dio_ChannelType ChannelId) void Dio_WriteChannel(Dio_ChannelType ChannelId,Dio_LevelType Level) Dio_PortLevelType Dio_ReadPort(Dio_PortType PortId) void Dio_WritePort(Dio_PortType PortId,Dio_PortLevelType Level) Dio_PortLevelType Dio_ReadChannelGroup(const Dio_ChannelGroupType* ChannelGroupIdPtr) void Dio_WriteChannelGroup(const Dio_ChannelGroupType* ChannelGroupIdPtr,Dio_PortLevelType Level) void Dio_GetVersionInfo(Std_VersionInfoType* VersionInfo) Dio_LevelType Dio_FlipChannel(Dio_ChannelType ChannelId) void Dio_MaskedWritePort(Dio_PortType PortId,Dio_PortLevelType Level,Dio_PortLevelType Mask) 五、EB配置 1、结构 2、配置项