Classes | |
| struct | _gpio_pin_config |
| GPIO Init structure definition. More... | |
Variables | |
| gpio_pin_direction_t | _gpio_pin_config::direction |
| gpio_interrupt_mode_t | _gpio_pin_config::interruptMode |
| uint8_t | _gpio_pin_config::outputLogic |
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. More... | |
| typedef enum _gpio_interrupt_mode | gpio_interrupt_mode_t |
| GPIO interrupt mode definition. More... | |
| typedef struct _gpio_pin_config | gpio_pin_config_t |
| GPIO Init structure definition. More... | |
| #define | FSL_GPIO_DRIVER_VERSION (MAKE_VERSION(2, 0, 3)) |
| GPIO driver version 2.0.3. More... | |
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. More... | |
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. More... | |
| static void | GPIO_WritePinOutput (GPIO_Type *base, uint32_t pin, uint8_t output) |
| Sets the output level of the individual GPIO pin to logic 1 or 0. More... | |
| static void | GPIO_PortSet (GPIO_Type *base, uint32_t mask) |
| Sets the output level of the multiple GPIO pins to the logic 1. More... | |
| static void | GPIO_SetPinsOutput (GPIO_Type *base, uint32_t mask) |
| Sets the output level of the multiple GPIO pins to the logic 1. More... | |
| static void | GPIO_PortClear (GPIO_Type *base, uint32_t mask) |
| Sets the output level of the multiple GPIO pins to the logic 0. More... | |
| static void | GPIO_ClearPinsOutput (GPIO_Type *base, uint32_t mask) |
| Sets the output level of the multiple GPIO pins to the logic 0. More... | |
| static void | GPIO_PortToggle (GPIO_Type *base, uint32_t mask) |
| Reverses the current output logic of the multiple GPIO pins. More... | |
| static uint32_t | GPIO_PinRead (GPIO_Type *base, uint32_t pin) |
| Reads the current input value of the GPIO port. More... | |
| static uint32_t | GPIO_ReadPinInput (GPIO_Type *base, uint32_t pin) |
| Reads the current input value of the GPIO port. More... | |
GPIO Reads Pad Status Functions | |
| static uint8_t | GPIO_PinReadPadStatus (GPIO_Type *base, uint32_t pin) |
| Reads the current GPIO pin pad status. More... | |
| static uint8_t | GPIO_ReadPadStatus (GPIO_Type *base, uint32_t pin) |
| Reads the current GPIO pin pad status. More... | |
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. More... | |
| static void | GPIO_SetPinInterruptConfig (GPIO_Type *base, uint32_t pin, gpio_interrupt_mode_t pinInterruptMode) |
| Sets the current pin interrupt mode. More... | |
| static void | GPIO_PortEnableInterrupts (GPIO_Type *base, uint32_t mask) |
| Enables the specific pin interrupt. More... | |
| static void | GPIO_EnableInterrupts (GPIO_Type *base, uint32_t mask) |
| Enables the specific pin interrupt. More... | |
| static void | GPIO_PortDisableInterrupts (GPIO_Type *base, uint32_t mask) |
| Disables the specific pin interrupt. More... | |
| static void | GPIO_DisableInterrupts (GPIO_Type *base, uint32_t mask) |
| Disables the specific pin interrupt. More... | |
| static uint32_t | GPIO_PortGetInterruptFlags (GPIO_Type *base) |
| Reads individual pin interrupt status. More... | |
| static uint32_t | GPIO_GetPinsInterruptFlags (GPIO_Type *base) |
| Reads individual pin interrupt status. More... | |
| static void | GPIO_PortClearInterruptFlags (GPIO_Type *base, uint32_t mask) |
| Clears pin interrupt flag. Status flags are cleared by writing a 1 to the corresponding bit position. More... | |
| static void | GPIO_ClearPinsInterruptFlags (GPIO_Type *base, uint32_t mask) |
| Clears pin interrupt flag. Status flags are cleared by writing a 1 to the corresponding bit position. More... | |
| #define FSL_GPIO_DRIVER_VERSION (MAKE_VERSION(2, 0, 3)) |
GPIO driver version 2.0.3.
Definition at line 26 of file fsl_gpio.h.
| 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.
| typedef enum _gpio_pin_direction gpio_pin_direction_t |
GPIO direction definition.
| enum _gpio_interrupt_mode |
GPIO interrupt mode definition.
Definition at line 37 of file fsl_gpio.h.
| enum _gpio_pin_direction |
GPIO direction definition.
| Enumerator | |
|---|---|
| kGPIO_DigitalInput | Set current pin as digital input. |
| kGPIO_DigitalOutput | Set current pin as digital output. |
Definition at line 30 of file fsl_gpio.h.
|
inlinestatic |
Clears pin interrupt flag. Status flags are cleared by writing a 1 to the corresponding bit position.
| base | GPIO base pointer. |
| mask | GPIO pin number macro. |
Definition at line 328 of file fsl_gpio.h.
|
inlinestatic |
Sets the output level of the multiple GPIO pins to the logic 0.
Definition at line 149 of file fsl_gpio.h.
|
inlinestatic |
Disables the specific pin interrupt.
Definition at line 282 of file fsl_gpio.h.
|
inlinestatic |
Enables the specific pin interrupt.
| base | GPIO base pointer. |
| mask | GPIO pin number macro. |
Definition at line 262 of file fsl_gpio.h.
|
inlinestatic |
Reads individual pin interrupt status.
| base | GPIO base pointer. |
| current | pin interrupt status flag. |
Definition at line 304 of file fsl_gpio.h.
| 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.
Definition at line 71 of file fsl_gpio.c.
|
inlinestatic |
Reads the current input value of the GPIO port.
| base | GPIO base pointer. |
| pin | GPIO port pin number. |
| GPIO | port input value. |
Definition at line 174 of file fsl_gpio.h.
|
inlinestatic |
Reads the current GPIO pin pad status.
| base | GPIO base pointer. |
| pin | GPIO port pin number. |
| GPIO | pin pad status value. |
Definition at line 203 of file fsl_gpio.h.
| 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.
Definition at line 132 of file fsl_gpio.c.
| 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.
Definition at line 111 of file fsl_gpio.c.
|
inlinestatic |
Sets the output level of the multiple GPIO pins to the logic 0.
| base | GPIO peripheral base pointer (GPIO1, GPIO2, GPIO3, and so on.) |
| mask | GPIO pin number macro |
Definition at line 136 of file fsl_gpio.h.
|
inlinestatic |
Clears pin interrupt flag. Status flags are cleared by writing a 1 to the corresponding bit position.
| base | GPIO base pointer. |
| mask | GPIO pin number macro. |
Definition at line 316 of file fsl_gpio.h.
|
inlinestatic |
Disables the specific pin interrupt.
| base | GPIO base pointer. |
| mask | GPIO pin number macro. |
Definition at line 273 of file fsl_gpio.h.
|
inlinestatic |
Enables the specific pin interrupt.
| base | GPIO base pointer. |
| mask | GPIO pin number macro. |
Definition at line 251 of file fsl_gpio.h.
|
inlinestatic |
Reads individual pin interrupt status.
| base | GPIO base pointer. |
| current | pin interrupt status flag. |
Definition at line 293 of file fsl_gpio.h.
|
inlinestatic |
Sets the output level of the multiple GPIO pins to the logic 1.
| base | GPIO peripheral base pointer (GPIO1, GPIO2, GPIO3, and so on.) |
| mask | GPIO pin number macro |
Definition at line 112 of file fsl_gpio.h.
|
inlinestatic |
Reverses the current output logic of the multiple GPIO pins.
| base | GPIO peripheral base pointer (GPIO1, GPIO2, GPIO3, and so on.) |
| mask | GPIO pin number macro |
Definition at line 160 of file fsl_gpio.h.
|
inlinestatic |
Reads the current GPIO pin pad status.
Definition at line 214 of file fsl_gpio.h.
|
inlinestatic |
Reads the current input value of the GPIO port.
Definition at line 185 of file fsl_gpio.h.
|
inlinestatic |
Sets the current pin interrupt mode.
Definition at line 240 of file fsl_gpio.h.
|
inlinestatic |
Sets the output level of the multiple GPIO pins to the logic 1.
Definition at line 125 of file fsl_gpio.h.
|
inlinestatic |
Sets the output level of the individual GPIO pin to logic 1 or 0.
Definition at line 101 of file fsl_gpio.h.
| gpio_pin_direction_t _gpio_pin_config::direction |
Specifies the pin direction.
Definition at line 50 of file fsl_gpio.h.
| gpio_interrupt_mode_t _gpio_pin_config::interruptMode |
Specifies the pin interrupt mode, a value of gpio_interrupt_mode_t.
Definition at line 53 of file fsl_gpio.h.
| uint8_t _gpio_pin_config::outputLogic |
Set a default output logic, which has no use in input
Definition at line 51 of file fsl_gpio.h.