desc_to_gpio devm_get_gpiod_from_chi devm_gpiod_get devm_gpiod_get_array devm_gpiod_get_array_op devm_gpiod_get_index devm_gpiod_get_index_op devm_gpiod_get_optional devm_gpiod_put devm_gpiod_put_array fwnode_get_named_gpiod gpio_to_desc gpiod_cansleep gpiod_count gpiod_direct...
devm_gpiod_put devm_gpiod_put_array fwnode_get_named_gpiod gpio_to_desc gpiod_cansleep gpiod_count gpiod_direction_input gpiod_direction_output gpiod_direction_output_ gpiod_export gpiod_export_link gpiod_get gpiod_get_array gpiod_get_array_optiona gpiod_get_direction gpiod_get_index...
desc_to_gpio devm_get_gpiod_from_chi devm_gpiod_get devm_gpiod_get_array devm_gpiod_get_array_op devm_gpiod_get_index devm_gpiod_get_index_op devm_gpiod_get_optional devm_gpiod_put devm_gpiod_put_array fwnode_get_named_gpiod gpio_to_desc gpiod_cansleep gpiod_count gpiod_direct...
devm_gpiod_get_optional() devm_gpiod_put() devm_gpiochip_add_data() devm_gpiochip_remove() devm_gpio_request() devm_gpio_request_one() devm_gpio_free() IIO //drivers/iio/industrialio-core.c devm_iio_device_alloc() devm_iio_device_free() devm_iio_device_register() devm_iio_device...
devm_gpiod_get_optional() devm_gpiod_put() devm_gpiochip_add_data() devm_gpiochip_remove() devm_gpio_request() devm_gpio_request_one() devm_gpio_free() IIO //drivers/iio/industrialio-core.c devm_iio_device_alloc() devm_iio_device_free() ...
structgpio_descs*gpiod_get_array_optional(structdevice *dev,constchar*con_id,enumgpiod_flags flags) 这些函数的变体: structgpio_desc*devm_gpiod_get(structdevice *dev,constchar*con_id,enumgpiod_flags flags)structgpio_desc*devm_gpiod_get_index(structdevice *dev,constchar*con_id,unsignedintidx...
#include <linux/gpio/consumer.h> 看头文件里面包含的函数列表 desc_to_gpiodevm_get_gpiod_from_chidevm_gpiod_getdevm_gpiod_get_arraydevm_gpiod_get_array_opdevm_gpiod_get_indexdevm_gpiod_get_index_opdevm_gpiod_get_optionaldevm_gpiod_putdevm_gpiod_put_arrayfwnode_get_named_gpiodgpio_to_...
devm_gpiod_get_array;// 2.设置方向gpiod_direction_input; gpiod_direction_output;// 3.读值、写值gpiod_get_value; gpiod_set_value; // 4. 设为中断(如果必要)request_irq(gpiod_to_irq(gpio_desc)...);//将gpio转为对应的irq,然后注册该irq的中断handler ...
devm_gpiod_get_optional devm_gpiod_put devm_gpiod_put_array fwnode_get_named_gpiod gpio_to_desc gpiod_cansleep gpiod_count gpiod_direction_input gpiod_direction_output gpiod_direction_output_ gpiod_export gpiod_export_link gpiod_get gpiod_get_array gpiod_get_array_optiona gpiod_get_...
659 gpio = devm_gpiod_get_optional(dev->dev, "scl", GPIOD_OUT_HIGH); /* 从dts或acpi中获得i2c节点中scl属性*/ 660 if (IS_ERR_OR_NULL(gpio)) 661 return PTR_ERR_OR_ZERO(gpio); /* 必须要有scl这个gpio节点 */ 662 663 rinfo->scl_gpiod = gpio; ...