当前位置:网站首页>stm32读取IO高低电平状态
stm32读取IO高低电平状态
2022-06-27 04:51:00 【The Embers】

以PC13为例:
要是设置为输入:
GPIO_ReadInputDataBit(GPIOC,GPIO_Pin_13);//读取输入口PC13值
要是设置为输出:
GPIO_ReadOutputDataBit (GPIOC,GPIO_Pin_13); //读取输入口PC13值
我看的原函数,两个读取函数操作区别在于读取的寄存器不一样,分别是:
GPIOx->IDR
GPIOx->ODR
边栏推荐
- 渗透测试-文件上传/下载/包含
- Microservice system design -- microservice monitoring and system resource monitoring design
- 微服务系统设计——微服务调用设计
- 010 C language foundation: C function
- Redis high availability cluster (sentry, cluster)
- Penetration test - directory traversal vulnerability
- Chapter 1 Introduction
- QChart笔记2: 添加鼠标悬停显示
- Kotlin compose custom compositionlocalprovider compositionlocal
- 笔记本电脑没有WiFi选项 解决办法
猜你喜欢

【B站UP DR_CAN学习笔记】Kalman滤波3

Mysql database foundation: DQL data query language

微服务系统设计——服务熔断和降级设计

Installation of low code development platform nocobase
![Golang Hello installation environment exception [resolved]](/img/30/bddba695e4c0059102e86de346b58d.png)
Golang Hello installation environment exception [resolved]

快速排序(非递归)和归并排序

neo4j图数据库基本概念
![[C language] keyword supplement](/img/c5/171e0d8537d9f09c688e31b290ad65.jpg)
[C language] keyword supplement

Facing the "industry, University and research" gap in AI talent training, how can shengteng AI enrich the black land of industrial talents?

math_数集(数集符号)和集合论
随机推荐
pycharm 如何安装 package
Kotlin Compose compositionLocalOf 与 staticCompositionLocalOf
007 C语言基础:C运算符
Nignx configuring single IP current limiting
关于元器件封装的一些文章和一下我的体会
Tsinghua University open source software mirror website
Kotlin compose compositionlocalof and staticcompositionlocalof
MobileNet系列(4):MobileNetv3网络详解
跟着BUU学习Crypto(周更)
快速排序(非遞歸)和歸並排序
Kotlin Compose 隐式传参 CompositionLocalProvider
日志收集系统
流媒体协议初探(MPEG2-TS、RTSP、RTP、RTCP、SDP、RTMP、HLS、HDS、HSS、MPEG-DASH)
Cultural tourism night tour | stimulate tourists' enthusiasm with immersive visual experience
017 C语言基础:位域和typedef
Microservice system design -- distributed lock service design
Argo Workflows —— Kubernetes的工作流引擎入门
013 C语言基础:C指针
Learn crypto from Buu (Zhou Geng)
Microservice system design -- Distributed timing service design