MCUXpresso SDK API Reference Manual  Rev. 0
NXP Semiconductors
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
GPIO: General-Purpose Input/Output Driver

Overview

Modules

 FGPIO Driver
 
 GPIO Driver
 

Data Structures

struct  gpio_pin_config_t
 The GPIO pin configuration structure. More...
 

Enumerations

enum  gpio_pin_direction_t {
  kGPIO_DigitalInput = 0U,
  kGPIO_DigitalOutput = 1U
}
 GPIO direction definition. More...
 
enum  gpio_checker_attribute_t {
  kGPIO_UsernonsecureRWUsersecureRWPrivilegedsecureRW,
  kGPIO_UsernonsecureRUsersecureRWPrivilegedsecureRW,
  kGPIO_UsernonsecureNUsersecureRWPrivilegedsecureRW,
  kGPIO_UsernonsecureRUsersecureRPrivilegedsecureRW,
  kGPIO_UsernonsecureNUsersecureRPrivilegedsecureRW,
  kGPIO_UsernonsecureNUsersecureNPrivilegedsecureRW,
  kGPIO_UsernonsecureNUsersecureNPrivilegedsecureR,
  kGPIO_UsernonsecureNUsersecureNPrivilegedsecureN,
  kGPIO_IgnoreAttributeCheck = 0x80U
}
 GPIO checker attribute. More...
 

Driver version

#define FSL_GPIO_DRIVER_VERSION   (MAKE_VERSION(2, 2, 0))
 GPIO driver version 2.2.0. More...
 

Data Structure Documentation

struct gpio_pin_config_t

Each pin can only be configured as either an output pin or an input pin at a time. If configured as an input pin, leave the outputConfig unused. Note that in some use cases, the corresponding port property should be configured in advance with the PORT_SetPinConfig().

Data Fields

gpio_pin_direction_t pinDirection
 GPIO direction, input or output.
 
uint8_t outputLogic
 Set a default output logic, which has no use in input.
 

Macro Definition Documentation

#define FSL_GPIO_DRIVER_VERSION   (MAKE_VERSION(2, 2, 0))

Enumeration Type Documentation

Enumerator
kGPIO_DigitalInput 

Set current pin as digital input.

kGPIO_DigitalOutput 

Set current pin as digital output.

Enumerator
kGPIO_UsernonsecureRWUsersecureRWPrivilegedsecureRW 

User nonsecure:Read+Write; User Secure:Read+Write; Privileged Secure:Read+Write.

kGPIO_UsernonsecureRUsersecureRWPrivilegedsecureRW 

User nonsecure:Read; User Secure:Read+Write; Privileged Secure:Read+Write.

kGPIO_UsernonsecureNUsersecureRWPrivilegedsecureRW 

User nonsecure:None; User Secure:Read+Write; Privileged Secure:Read+Write.

kGPIO_UsernonsecureRUsersecureRPrivilegedsecureRW 

User nonsecure:Read; User Secure:Read; Privileged Secure:Read+Write.

kGPIO_UsernonsecureNUsersecureRPrivilegedsecureRW 

User nonsecure:None; User Secure:Read; Privileged Secure:Read+Write.

kGPIO_UsernonsecureNUsersecureNPrivilegedsecureRW 

User nonsecure:None; User Secure:None; Privileged Secure:Read+Write.

kGPIO_UsernonsecureNUsersecureNPrivilegedsecureR 

User nonsecure:None; User Secure:None; Privileged Secure:Read.

kGPIO_UsernonsecureNUsersecureNPrivilegedsecureN 

User nonsecure:None; User Secure:None; Privileged Secure:None.

kGPIO_IgnoreAttributeCheck 

Ignores the attribute check.