尧图网络科技YAOTU DIGITAL 获取报价
获取报价
首页 / 资讯中心 / 文章详情

GPIO输入

发布时间:2026/9/20 20:27:52

资讯中心
01
ARTICLE

GPIO输入

GPIO输入
比较常见的按键接法按下时是低电平松手是高电平char int8_tunsigned short uint8_tshort int16_tint int32_t宏定义#define ABC 12345 //用ABC去替换12345引用宏定义int aABC //int a12345typedef定义typedef :typedef unsigned char uint8_t;引用typedef: uint8_t a; // unsighned char atypedef struct{uint16_t GPIO_Pin; /*! Specifies the GPIO pins to be configured.This parameter can be any value of ref GPIO_pins_define */GPIOSpeed_TypeDef GPIO_Speed; /*! Specifies the speed for the selected pins.This parameter can be a value of ref GPIOSpeed_TypeDef */GPIOMode_TypeDef GPIO_Mode; /*! Specifies the operating mode for the selected pins.This parameter can be a value of ref GPIOMode_TypeDef */}GPIO_InitTypeDef;C语言的枚举:用来限制变量取值范围enum{MON1,TUE2,WES3}week;typedef与枚举的结合typedef enum{MON1,TUE 2,WES3} week_tint main{week_tweek;weekMONDAY //week1}
02
RELATED NEWS

相关资讯

更多网站建设与数字化升级内容

03
WHY YAOTU

想打造同款高转化官网?

懂行业、懂生意,从建站到增长一站式陪跑

场景化定制

不做模板站,围绕你的业务场景量身设计,小众不撞款。

营销型架构

以转化目标组织内容与路径,让官网真正带来询盘。

全周期服务

设计、开发、运营、运维一体,上线只是开始。

免费获取你的建站方案

留下需求,专属顾问 24 小时内为你输出方案建议。