RTEMS 6.1-rc4
Loading...
Searching...
No Matches
Data Fields
imx_gpio_pin Struct Reference

#include <imx-gpio.h>

Data Fields

volatile struct imx_gpiogpio
 
uint32_t mask
 
unsigned int shift
 
enum imx_gpio_mode mode
 
bool is_active_low
 

Detailed Description

A i.MX GPIO pin or set of pins.

Use this structures to handle pins in the application. You can either get them from an FDT entry (with imx_gpio_init_from_fde_property) or fill them by hand.

Field Documentation

◆ gpio

volatile struct imx_gpio* imx_gpio_pin::gpio

Management structure for the GPIO. Get with imx_gpio_get_by_index.

◆ is_active_low

bool imx_gpio_pin::is_active_low

Whether the pin is active low. Only used to store the last field of the FDT entries. Can be queried via the imx_gpio_get_active_level.

◆ mask

uint32_t imx_gpio_pin::mask

Select the pins you want to handle with this mask. The mask is not influenced by the shift field.

◆ mode

enum imx_gpio_mode imx_gpio_pin::mode

Whether the pin is an input, output, interrupt, ...

◆ shift

unsigned int imx_gpio_pin::shift

If set to something != 0: Shift the pins that many bits.


The documentation for this struct was generated from the following file: