GPIO_ReadInputDataBit用法
时间: 2023-12-07 14:06:01 浏览: 150
GPIB数据读取
3星 · 编辑精心推荐
GPIO_ReadInputDataBit函数用于读取指定GPIO引脚的电平状态。该函数的参数包括GPIO端口和GPIO引脚号。例如,如果要读取GPIOA.5的电平状态,可以使用以下方法调用:GPIO_ReadInputDataBit(GPIOA, GPIO_Pin_5)。该函数的返回值为1(Bit_SET)表示引脚电平为高,返回值为0(Bit_RESET)表示引脚电平为低。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [STM32调试报告.docx](https://download.csdn.net/download/qq_39966571/15765215)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [STM32基础之库函数GPIO的使用(点亮小灯)](https://blog.csdn.net/m0_58832575/article/details/124009997)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文