struct gpio_desc *gpiod_get_index_optional(struct device *dev, const char *con_id, unsigned int index, enum gpiod_flags flags) 1. 2. 3. 4. 5. 6. 7. 8. 使用如下函数同时获取多个设备: struct gpio_descs *gpiod_get_array(struct device *dev, const char *con_id, enum gpiod_flags...
constchar*con_id,unsignedintidx,enumgpio_lookup_flags *flags){charprop_name[32];/* 32 is max size of property name */enumof_gpio_flagsof_flags;structgpio_desc*desc;unsignedinti;for(i =0; i < ARRAY_SIZE(gpio_suffixes); i++) {/* 如 "led-gpios" 或 "led...
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_...
gpiod_get gpiod_get_array gpiod_get_array_optiona gpiod_get_direction gpiod_get_index gpiod_get_index_optiona gpiod_get_optional gpiod_get_raw_value gpiod_get_raw_value_can gpiod_get_value gpiod_get_value_canslee gpiod_is_active_low gpiod_put gpiod_put_array gpiod_set_array_...
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_descgpiod_cansleepgpiod_countgpiod_direction_inputgpiod_direct...
5、gpiod_direction_output_gpiod_exportgpiod_export_linkgpiod_getgpiod_get_arraygpiod_get_array_optionagpiod_get_directiongpiod_get_indexgpiod_get_index_optionagpiod_get_optionalgpiod_get_raw_valuegpiod_get_raw_value_cangpiod_get_valuegpiod_get_value_cansleegpiod_is_active_lowgpiod_put...
pointer to array of &gpio_keys_button structures * describing buttons attached to the device * @nbuttons: number of elements in @buttons array * @poll_interval: polling interval in msecs - for polling driver only * @rep: enable input subsystem auto repeat * @enable: plat...
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_descgpiod_cansleepgpiod_countgpiod_direction_inputgpiod_direct...
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_direction_input gpiod_direction_output gpiod_direction_output_ gpiod_export
gpiod_get_array gpiod_get_array_optiona gpiod_get_direction gpiod_get_index gpiod_get_index_optiona gpiod_get_optional gpiod_get_raw_value gpiod_get_raw_value_can gpiod_get_value gpiod_get_value_canslee gpiod_is_active_low