Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
gpio_driver_api Struct Reference

@driver_ops{GPIO} More...

#include <gpio.h>

Data Fields

gpio_api_pin_configure_t pin_configure
 @driver_ops_mandatory Configure a single pin.
gpio_api_pin_get_config_t pin_get_config
 @driver_ops_optional Get a configuration of a single pin.
gpio_api_port_get_raw_t port_get_raw
 @driver_ops_mandatory Get physical level of all input pins in a port.
gpio_api_port_set_masked_raw_t port_set_masked_raw
 @driver_ops_mandatory Set physical level of output pins in a port.
gpio_api_port_set_bits_raw_t port_set_bits_raw
 @driver_ops_mandatory Set physical level of selected output pins to high.
gpio_api_port_clear_bits_raw_t port_clear_bits_raw
 @driver_ops_mandatory Set physical level of selected output pins to low.
gpio_api_port_toggle_bits_t port_toggle_bits
 @driver_ops_mandatory Toggle level of selected output pins.
gpio_api_pin_interrupt_configure_t pin_interrupt_configure
 @driver_ops_optional Configure pin interrupt.
gpio_api_manage_callback_t manage_callback
 @driver_ops_optional Add or remove an application callback.
gpio_api_get_pending_int_t get_pending_int
 @driver_ops_optional Function to get pending interrupts.
gpio_api_port_get_direction_t port_get_direction
 @driver_ops_optional Get direction of select pins in a port.

Detailed Description

@driver_ops{GPIO}

Field Documentation

◆ get_pending_int

gpio_api_get_pending_int_t gpio_driver_api::get_pending_int

@driver_ops_optional Function to get pending interrupts.

◆ manage_callback

gpio_api_manage_callback_t gpio_driver_api::manage_callback

@driver_ops_optional Add or remove an application callback.

See gpio_add_callback() and gpio_remove_callback().

◆ pin_configure

gpio_api_pin_configure_t gpio_driver_api::pin_configure

@driver_ops_mandatory Configure a single pin.

◆ pin_get_config

gpio_api_pin_get_config_t gpio_driver_api::pin_get_config

@driver_ops_optional Get a configuration of a single pin.

Attention
Available only when the following Kconfig option is enabled:
CONFIG_GPIO_GET_CONFIG 
.

◆ pin_interrupt_configure

gpio_api_pin_interrupt_configure_t gpio_driver_api::pin_interrupt_configure

@driver_ops_optional Configure pin interrupt.

◆ port_clear_bits_raw

gpio_api_port_clear_bits_raw_t gpio_driver_api::port_clear_bits_raw

@driver_ops_mandatory Set physical level of selected output pins to low.

◆ port_get_direction

gpio_api_port_get_direction_t gpio_driver_api::port_get_direction

@driver_ops_optional Get direction of select pins in a port.

Attention
Available only when the following Kconfig option is enabled:
CONFIG_GPIO_GET_DIRECTION 
.

◆ port_get_raw

gpio_api_port_get_raw_t gpio_driver_api::port_get_raw

@driver_ops_mandatory Get physical level of all input pins in a port.

◆ port_set_bits_raw

gpio_api_port_set_bits_raw_t gpio_driver_api::port_set_bits_raw

@driver_ops_mandatory Set physical level of selected output pins to high.

◆ port_set_masked_raw

gpio_api_port_set_masked_raw_t gpio_driver_api::port_set_masked_raw

@driver_ops_mandatory Set physical level of output pins in a port.

◆ port_toggle_bits

gpio_api_port_toggle_bits_t gpio_driver_api::port_toggle_bits

@driver_ops_mandatory Toggle level of selected output pins.


The documentation for this struct was generated from the following file:
  • include/zephyr/drivers/gpio.h