博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Linux 内核设备驱动之GPIO驱动之GPIO API
阅读量:4153 次
发布时间:2019-05-25

本文共 2516 字,大约阅读时间需要 8 分钟。

 
gpio_get_value(unsigned int gpio)
gpio_set_value(unsigned int gpio, int value)
 gpio_to_irq(unsigned int gpio)
 
int gpiod_count(struct device *dev, const char *con_id);
/* Acquire and dispose GPIOs */struct gpio_desc *__must_check gpiod_get(struct device *dev,      const char *con_id,      enum gpiod_flags flags);struct gpio_desc *__must_check gpiod_get_index(struct device *dev,            const char *con_id,            unsigned int idx,            enum gpiod_flags flags);struct gpio_desc *__must_check gpiod_get_optional(struct device *dev,        const char *con_id,        enum gpiod_flags flags);struct gpio_desc *__must_check gpiod_get_index_optional(struct device *dev,       const char *con_id,       unsigned int index,       enum gpiod_flags flags);struct gpio_descs *__must_check gpiod_get_array(struct device *dev,      const char *con_id,      enum gpiod_flags flags);struct gpio_descs *__must_check gpiod_get_array_optional(struct device *dev,       const char *con_id,       enum gpiod_flags flags);void gpiod_put(struct gpio_desc *desc);void gpiod_put_array(struct gpio_descs *descs);
 
void devm_gpiod_put(struct device *dev, struct gpio_desc *desc);void devm_gpiod_put_array(struct device *dev, struct gpio_descs *descs); int gpiod_get_direction(struct gpio_desc *desc);int gpiod_direction_input(struct gpio_desc *desc);int gpiod_direction_output(struct gpio_desc *desc, int value);int gpiod_direction_output_raw(struct gpio_desc *desc, int value); /* Value get/set from non-sleeping context */int gpiod_get_value(const struct gpio_desc *desc);void gpiod_set_value(struct gpio_desc *desc, int value);void gpiod_set_array_value(unsigned int array_size,      struct gpio_desc **desc_array, int *value_array);int gpiod_get_raw_value(const struct gpio_desc *desc);void gpiod_set_raw_value(struct gpio_desc *desc, int value);void gpiod_set_raw_array_value(unsigned int array_size,          struct gpio_desc **desc_array,          int *value_array); /* Value get/set from sleeping context */int gpiod_get_value_cansleep(const struct gpio_desc *desc);void gpiod_set_value_cansleep(struct gpio_desc *desc, int value);void gpiod_set_array_value_cansleep(unsigned int array_size,        struct gpio_desc **desc_array,        int *value_array);int gpiod_get_raw_value_cansleep(const struct gpio_desc *desc);void gpiod_set_raw_value_cansleep(struct gpio_desc *desc, int value);void gpiod_set_raw_array_value_cansleep(unsigned int array_size,     struct gpio_desc **desc_array,     int *value_array);
 
 

转载地址:http://xgqti.baihongyu.com/

你可能感兴趣的文章
JAVA集合--ArrayList实现原理
查看>>
synchronized与Lock
查看>>
数据库索引
查看>>
实现包含min,max,push,pop函数的栈
查看>>
实验2-6 字符型数据的输入输出
查看>>
实验3-5 编程初步
查看>>
实验4-1 逻辑量的编码和关系操作符
查看>>
实验5-2 for循环结构
查看>>
实验5-3 break语句和continue语句
查看>>
实验5-4 循环的嵌套
查看>>
实验5-5 循环的合并
查看>>
实验5-6 do-while循环结构
查看>>
实验5-7 程序调试入门
查看>>
实验5-8 综合练习
查看>>
第2章实验补充C语言中如何计算补码
查看>>
深入入门正则表达式(java) - 命名捕获
查看>>
使用bash解析xml
查看>>
android系统提供的常用命令行工具
查看>>
【Python基础1】变量和字符串定义
查看>>
【Python基础2】python字符串方法及格式设置
查看>>