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

Overview

Modules

 FGPIO Driver
 
 RGPIO Driver
 

Data Structures

struct  rgpio_pin_config_t
 The RGPIO pin configuration structure. More...
 

Enumerations

enum  rgpio_pin_direction_t {
  kRGPIO_DigitalInput = 0U,
  kRGPIO_DigitalOutput = 1U
}
 RGPIO direction definition. More...
 

Driver version

#define FSL_RGPIO_DRIVER_VERSION   (MAKE_VERSION(2, 0, 1))
 RGPIO driver version 2.0.1. More...
 

Data Structure Documentation

struct rgpio_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

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

Macro Definition Documentation

#define FSL_RGPIO_DRIVER_VERSION   (MAKE_VERSION(2, 0, 1))

Enumeration Type Documentation

Enumerator
kRGPIO_DigitalInput 

Set current pin as digital input.

kRGPIO_DigitalOutput 

Set current pin as digital output.