2022年CSL学习笔记--第八章GPIO模块 .pdf
第八章GPIO 模块8.1 概述通过 GPIO 模块的设计以允许对C55x 器件中可用的非复用和地址GPIO 引脚的核心控制。以下三个表格列出了该模块有关的函数,寄存器和宏定义。表 8-1 GPIO 函数GPIO_pinDirection 设置 GPIO 引脚为输入或者输出GPIO_pinDisable 禁止一个引脚作为GPIO 引脚GPIO_pinEnable 使能一个引脚作为GPIO 引脚GPIO_pinRead 读 GPIO 引脚的值GPIO_pinWrite 向 GPIO 引脚写值下面的函数是C5501 和 C5502 器件所支持。GPIO_colse 释放一个或多个GPIO 引脚GPIO_config 配置 GPIO 引脚GPIO_open 分配一个或多个GPIO 引脚到当前进程中GPIO_pinReadAll 读一个或多个引脚的值GPIO_pinWriteAll 写一个或多个引脚GPIO_pinReset 复位一个或多个引脚表 8-2 GPIO 寄存器IODIR IO7DIR,IO6DIR,IO5DIR,IO4DIR,IO3DIR,IO2DIR,IO1DIR,IO0DIR IODATA IO7D,IO6D,IO5D,IO4D,IO3D,IO2D,IO1D,IO0D C5509 and C5509A 支持以下.AGPIOEN IO13,IO12,IO11,IO10,IO9,IO8 AGPIODIR IO13DIR,IO12DIR,IO11DIR,IO10DIR,IO9DIR,IO8DIR AGPIODATA IO13D,IO12D,IO11D,IO10D,IO9D,IO8D C5502 和 C5501 支持以下.PGPIOEN0 IO15EN,IO14EN,IO13EN,IO12EN,IO11EN,IO10EN,IO9EN,IO8EN,IO7EN,IO6EN,IO5EN,IO4EN,IO3EN,IO2EN,IO1EN,IO0EN PGPIODIR0 IO15DIR,IO14DIR,IO13DIR,IO12DIR,IO11DIR,IO10DIR,IO9DIR,IO8DIR,IO7DIR,IO6DIR,IO5DIR,IO4DIR,IO3DIR,IO2DIR,IO1DIR PGPIODAT0 IO15DA T,IO14DAT,IO13DAT,IO12DA T,IO11DAT,IO10DAT,IO9DAT,IO8DAT,IO7DAT,IO6DAT,IO5DAT,IO4DAT,IO3DAT,IO2DAT,IO1DAT,IO0DAT PGPIOEN1 IO31EN,IO30EN,IO29EN,IO28EN,IO27EN,IO26EN,IO25EN,IO24EN,IO23EN,IO22EN,IO21EN,IO20EN,IO19EN,IO18EN,IO17EN,IO16EN PGPIODIR1 IO31DIR,IO30DIR,IO29DIR,IO28DIR,IO27DIR,IO26DIR,IO25DIR,IO24DIR,IO23DIR,IO22DIR,IO21DIR,IO20DIR,IO19DIR,IO18DIR,IO17DIR,IO16DIR PGPIODAT1 IO31DA T,IO30DAT,IO29DAT,IO28DA T,IO27DAT,IO26DAT,IO25DA T,IO24DA T,IO23DAT,IO22DAT,IO20DA T,IO19DAT,IO18DAT,IO17DA T,IO16DA T PGPIOEN2 IO45EN,IO44EN,IO43EN,IO42EN,IO41EN,IO40EN,IO39EN,IO38EN,IO37EN,IO36EN,IO35EN,IO34EN,IO33EN,IO32EN PGPIODIR2 IO45DIR,IO44DIR,IO43DIR,IO42DIR,IO41DIR,IO40DIR,IO39DIR,IO38DIR,IO37DIR,IO36DIR,IO35DIR,IO34DIR,IO33DIR,IO32DIR PGPIODAT2 IO45DA T,IO44DAT,IO43DAT,IO42DA T,IO41DAT,IO40DAT,IO39DA T,IO38DA T,IO37DAT,IO36DAT,IO35DA T,IO34DAT,IO33DAT,IO32DA T 8.2 配置结构体以下是建立GPIO 的配置结构体GPIO_Config(非并行 GPIO 引脚配置结构体)成员列表:Uint16 ioen 引脚使能寄存器IOEN Uint16 iodir 引脚方向寄存器IODIR 说明:建立非并行GPIO 引脚的 GPIO 配置结构体.创建并初始化该结构体,接着向GPIO_config()函数船体其地址。你可以通过使用文本值或者GPIO_RMK宏来创建结构体成员值。GPIO_ConfigAll(并行和非并行GPIO 引脚的配置结构体)说明:GPIO 配置结构体是用于建立并行和非并行GPIO 引脚,.创建并初始化该结构体,接着向GPIO_configAll()函数船体其地址。你可以通过使用文本值或者GPIO_RMK宏来创建结构体成员值。成员列表:Uint16 ioen 非并行引脚使能寄存器IOEN Uint16 iodir 非并行 GPIO 引脚方向寄存器IODIR Uint16 pgpioen 并行 GPIO 引脚使能寄存器0 PGPIOEN0 Uint16 pgpiodir 并行 GPIO 引脚方向寄存器0 PGPIODIR0 Uint16 pgpioen1 并行 GPIO 引脚使能寄存器1 PGPIOEN1 Uint16 pgpiodir1 并行 GPIO 引脚方向寄存器1 PGPIODIR1 Uint16 pgpioen2 并行 GPIO 引脚使能寄存器2 PGPIOEN2 Uint16 pgpiodir2 并行 GPIO 引脚方向寄存器2 PGPIODIR2 文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3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1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G98.3 函数以下的函数被C5502 和 C5501 支持。GPIO_close(释放先前被GPIO_open 所占用的GPIO 引脚)函数Void GPIO_(GPIO_Handle hGpio);参数hGpio GPIO 引脚句柄(参见GPIO_open())返回值None 说明释放先前被GPIO_open 所占用的GPIO 引脚。实例GPIO_close(hGpio);GPIO_open(为单独使用占用GPIO)函数GPIO_Handle GPIO_open(Uint32 allocMask,Uint32 flags);参数allocMask 占用的 GPIO 引脚,可以参见GPIO_pinDirection 查看可用的引脚。flags 打开标志,当前未指定。返回值GPIO_Handle 器件句柄说明在一个 GPIO 引脚被使用前,必须要被该应用程序占用,一旦被占用了,就不会在响应其他的请求,直到被 GPIO_close()关闭。返回值是一个唯一的器件句柄,该句柄用于随后的API 调用中的GPIO 中。如果函数出错返回INV(-1)。对于 C5502 和 C5501,有四组 GPIO 引脚(见GPIO_pinDirection())在调用了GPIO_open()的同一时刻只能打开一组中的一个或几个引脚,在不同组中多次调用引脚的allocMask 会产生未知结果。例 如:GPIO_open()第 一 个 参 数 是 同 一 组 的(GPIO_GPIO_PIN4|GPIO_GPIO_PIN2),但是(GPIO_GPIO_PIN4|GPIO_PGPIO_PIN2)就会产生未知结果。如果 GPIO_open()在一个组中被调用了,在GPIO_close 被调用前,它就不能再次调用来打开同组的其他引脚。然而,GPIO_open()可以在此时被调用来打开其他组的引脚。例如:如果GPIO_open()第一次调用了GPIO_GPIO_PIN4,他就不能再被调用打开同组的的GPIO_GPIO_PIN2,但是可以打开GPIO_PGPIO_PIN2.实例GPIO_Handle hGpio;hGpio=GPIO_open(GPIO_PGPIO_PIN1,0);GPIO_config(向非并行寄存器写入值)函数void GPIO_config(GPIO_Handle hGpio,GPIO_Config*cfg);参数hGpio GPIO 器件句柄Cfg 初始化配置寄存器的指针返回值无说明使用配置结构体向非并行GPIO 控制寄存器写入值。注意:GPIO_Config 结构体对于GPIOhe PGPIO 是通用的,但 GPIO_config()函数只对使能的GPIO0:7.(The GPIO_config()function just discards the enable field in case of GPIO 0:7 pins.)实例GPIO_Handle hGpio;GPIO_Config myConfig=GPIO_PIN1_OUTPUT|GPIO_PIN3_OUTPUT 文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY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G5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9对 5501 和 5502 的配置hGpio=GPIO_open(GPIO_GPIO_PIN1|GPIO_GPIO_PIN3,0)GPIO_config(hGpio&myconfig);GPIO_configAll(向并行和非并行GPIO 控制寄存器写入值)函数void GPIO_config(GPIO_ConfigAll&gCfg)参数gCfg 上电和掉电非复用GPIO 引脚的配置结构体返回值无说明向并行和非并行GPIO 控制寄存器写入值,用法参见GPIO_ConfigAll 实例GPIO_ConfigAll gCfg=GPIO_PIN1_OUTPUT|GPIO_PIN3_OUTPUT,/*IODIR*/0,/*PGPIOEN0*/0,/*PGPIODIR0*/0,/*PGPIOEN1*/0,/*PGPIODIR1*/0,/*PGPIOEN2*/0,/*PGPIODIR2*/;/*5501 和 5502 的 gpio 配置*/GPIO_configAll(&gCfg);GPIO_pinDirection(设置 GPIO 为输入或者输出)函数对于 C5501 和 C5502 void GPIO_pinDirection(GPIO_Handle hGpio,Uint32 pinMask,Uint16 direction);对于 C5509/A 和 C5510 void GPIO_pinDirection(Uint32 pinMask,Uint16 direction);参数hGpio 之前调用GPIO_open()返回的 GPIO 句柄。(此参数只对C5501/2)pinMask 受方向影响的GPIO 引脚对于 5501/2,pinMask 可以是以下的:GPIO P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的 某 个 引 脚 或 者 是 同 组 几 个 引 脚 的 组 合(例 如:GPIO_PGPIO_PIN23|GPIO_PGPIO_PIN30)。direction pinMask 选定的引脚的方向标记文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4Q1U7D8E4 HG5Y7Y2J7F3 ZH1S8S9W3G9文档编码:CY4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