RTEMS 6.1-rc4
|
Data Structures | |
struct | _gpio_pin_config |
GPIO Init structure definition. More... | |
Variables | |
gpio_pin_direction_t | _gpio_pin_config::direction |
uint8_t | _gpio_pin_config::outputLogic |
gpio_interrupt_mode_t | _gpio_pin_config::interruptMode |
Driver version | |
enum | _gpio_pin_direction { kGPIO_DigitalInput = 0U , kGPIO_DigitalOutput = 1U } |
GPIO direction definition. More... | |
enum | _gpio_interrupt_mode { kGPIO_NoIntmode = 0U , kGPIO_IntLowLevel = 1U , kGPIO_IntHighLevel = 2U , kGPIO_IntRisingEdge = 3U , kGPIO_IntFallingEdge = 4U , kGPIO_IntRisingOrFallingEdge = 5U } |
GPIO interrupt mode definition. More... | |
typedef enum _gpio_pin_direction | gpio_pin_direction_t |
GPIO direction definition. | |
typedef enum _gpio_interrupt_mode | gpio_interrupt_mode_t |
GPIO interrupt mode definition. | |
typedef struct _gpio_pin_config | gpio_pin_config_t |
GPIO Init structure definition. | |
#define | FSL_GPIO_DRIVER_VERSION (MAKE_VERSION(2, 0, 6)) |
GPIO driver version. | |
GPIO Initialization and Configuration functions | |
void | GPIO_PinInit (GPIO_Type *base, uint32_t pin, const gpio_pin_config_t *Config) |
Initializes the GPIO peripheral according to the specified parameters in the initConfig. | |
GPIO Reads and Write Functions | |
void | GPIO_PinWrite (GPIO_Type *base, uint32_t pin, uint8_t output) |
Sets the output level of the individual GPIO pin to logic 1 or 0. | |
Interrupts and flags management functions | |
void | GPIO_PinSetInterruptConfig (GPIO_Type *base, uint32_t pin, gpio_interrupt_mode_t pinInterruptMode) |
Sets the current pin interrupt mode. | |
enum _gpio_interrupt_mode |
GPIO interrupt mode definition.
enum _gpio_pin_direction |
void GPIO_PinInit | ( | GPIO_Type * | base, |
uint32_t | pin, | ||
const gpio_pin_config_t * | Config | ||
) |
Initializes the GPIO peripheral according to the specified parameters in the initConfig.
base | GPIO base pointer. |
pin | Specifies the pin number |
Config | pointer to a gpio_pin_config_t structure that contains the configuration information. |
brief Initializes the GPIO peripheral according to the specified parameters in the initConfig.
param base GPIO base pointer. param pin Specifies the pin number param initConfig pointer to a ref gpio_pin_config_t structure that contains the configuration information.
void GPIO_PinSetInterruptConfig | ( | GPIO_Type * | base, |
uint32_t | pin, | ||
gpio_interrupt_mode_t | pinInterruptMode | ||
) |
Sets the current pin interrupt mode.
base | GPIO base pointer. |
pin | GPIO port pin number. |
pinInterruptMode | pointer to a gpio_interrupt_mode_t structure that contains the interrupt mode information. |
brief Sets the current pin interrupt mode.
param base GPIO base pointer. param pin GPIO port pin number. param pininterruptMode pointer to a ref gpio_interrupt_mode_t structure that contains the interrupt mode information.
void GPIO_PinWrite | ( | GPIO_Type * | base, |
uint32_t | pin, | ||
uint8_t | output | ||
) |
Sets the output level of the individual GPIO pin to logic 1 or 0.
base | GPIO base pointer. |
pin | GPIO port pin number. |
output | GPIOpin output logic level.
|
brief Sets the output level of the individual GPIO pin to logic 1 or 0.
param base GPIO base pointer. param pin GPIO port pin number. param output GPIOpin output logic level.
gpio_pin_direction_t _gpio_pin_config::direction |
Specifies the pin direction.
gpio_interrupt_mode_t _gpio_pin_config::interruptMode |
Specifies the pin interrupt mode, a value of gpio_interrupt_mode_t.
uint8_t _gpio_pin_config::outputLogic |
Set a default output logic, which has no use in input