【摘要】:GPIO的API分为三个函数组:①配置GPIO引脚。中断处理的常用函数●GPIOIntTypeSet()。访问GPIO引脚状态的函数●GPIOPinRead()。详细的GPIO固件库函数功能介绍请参考书后附录C。
GPIO的API分为三个函数组:
①配置GPIO引脚。
②中断处理。
③访问引脚状态。
(1)配置GPIO引脚的常用函数
●GPIODirModeSet()。
●GPIOPadConfigSet()。
●GPIOPinConfigure()。
●GPIODirModeGet()。
●GPIOPadConfigGet()。
●GPIOPinTypeCAN()。
●GPIOPinTypeComparator()。
●GPIOPinTypeGPIOInput()。
●GPIOPinTypeGPIOOutput()。
●GPIOPinTypeGPIOOutputOD()。
●GPIOPinTypeI2C()。
●GPIOPinTypePWM()。
●GPIOPinTypeQEI()。(www.xing528.com)
●GPIOPinTypeSSI()。
●GPIOPinTypeTimer()。
●GPIOPinTypeUART()。
(2)中断处理的常用函数
●GPIOIntTypeSet()。
●GPIOIntTypeGet()。
●GPIOIntEnable()。
●GPIOIntDisable()。
●GPIOIntStatus()。
●GPIOIntClear()。
●GPIOIntRegister()。
●GPIOIntUnregister()。
(3)访问GPIO引脚状态的函数
●GPIOPinRead()。
●GPIOPinWrite()。
详细的GPIO固件库函数功能介绍请参考书后附录C。
免责声明:以上内容源自网络,版权归原作者所有,如有侵犯您的原创版权请告知,我们将尽快删除相关内容。