gpiod_direction_input
时间: 2023-09-03 20:08:29 浏览: 154
Gpio_TEST.rar_linux gpio测试
gpio_direction_input函数是一个用于设置GPIO为输入功能的函数。它的函数原型为int gpio_direction_input(unsigned gpio),其中gpio表示GPIO的编号。通过调用这个函数,可以将指定的GPIO设置为输入模式,以便读取外部输入信号。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [Linux驱动函数总结:gpio_set_value();](https://blog.csdn.net/uunubt/article/details/127187076)[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: 100%"]
[ .reference_list ]
阅读全文