Classes
fsl_gpio.h File Reference
#include "fsl_common.h"
Include dependency graph for fsl_gpio.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _gpio_pin_config
 GPIO Init structure definition. More...
 

Functions

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
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 uint32_t GPIO_PinRead (GPIO_Type *base, uint32_t pin)
 Reads the current input value of the GPIO port. More...
 
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_PortClear (GPIO_Type *base, uint32_t mask)
 Sets the output level of the multiple GPIO pins to the logic 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_PortToggle (GPIO_Type *base, uint32_t mask)
 Reverses the current output logic of the multiple GPIO pins. More...
 
static uint32_t GPIO_ReadPinInput (GPIO_Type *base, uint32_t pin)
 Reads the current input value of the GPIO port. 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_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...
 
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
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...
 
static void GPIO_DisableInterrupts (GPIO_Type *base, uint32_t mask)
 Disables the specific pin interrupt. More...
 
static void GPIO_EnableInterrupts (GPIO_Type *base, uint32_t mask)
 Enables the specific pin interrupt. More...
 
static uint32_t GPIO_GetPinsInterruptFlags (GPIO_Type *base)
 Reads individual pin interrupt status. More...
 
void GPIO_PinSetInterruptConfig (GPIO_Type *base, uint32_t pin, gpio_interrupt_mode_t pinInterruptMode)
 Sets the current pin interrupt mode. 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_PortDisableInterrupts (GPIO_Type *base, uint32_t mask)
 Disables the specific pin interrupt. More...
 
static void GPIO_PortEnableInterrupts (GPIO_Type *base, uint32_t mask)
 Enables the specific pin interrupt. More...
 
static uint32_t GPIO_PortGetInterruptFlags (GPIO_Type *base)
 Reads individual pin interrupt status. More...
 
static void GPIO_SetPinInterruptConfig (GPIO_Type *base, uint32_t pin, gpio_interrupt_mode_t pinInterruptMode)
 Sets the current pin interrupt mode. More...
 

Driver version

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...
 
enum  _gpio_pin_direction { kGPIO_DigitalInput = 0U, kGPIO_DigitalOutput = 1U }
 GPIO direction definition. More...
 
#define FSL_GPIO_DRIVER_VERSION   (MAKE_VERSION(2, 0, 3))
 GPIO driver version 2.0.3. 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...
 
typedef enum _gpio_pin_direction gpio_pin_direction_t
 GPIO direction definition. More...
 


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:14:57