MSP432E4 DriverLib API Guide  1.11.00.03
Macros | Functions
gpio.h File Reference
#include <stdint.h>
#include <stdbool.h>
Include dependency graph for gpio.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GPIO_PIN_0   0x00000001
 
#define GPIO_PIN_1   0x00000002
 
#define GPIO_PIN_2   0x00000004
 
#define GPIO_PIN_3   0x00000008
 
#define GPIO_PIN_4   0x00000010
 
#define GPIO_PIN_5   0x00000020
 
#define GPIO_PIN_6   0x00000040
 
#define GPIO_PIN_7   0x00000080
 
#define GPIO_DIR_MODE_IN   0x00000000
 
#define GPIO_DIR_MODE_OUT   0x00000001
 
#define GPIO_DIR_MODE_HW   0x00000002
 
#define GPIO_FALLING_EDGE   0x00000000
 
#define GPIO_RISING_EDGE   0x00000004
 
#define GPIO_BOTH_EDGES   0x00000001
 
#define GPIO_LOW_LEVEL   0x00000002
 
#define GPIO_HIGH_LEVEL   0x00000006
 
#define GPIO_DISCRETE_INT   0x00010000
 
#define GPIO_STRENGTH_2MA   0x00000001
 
#define GPIO_STRENGTH_4MA   0x00000002
 
#define GPIO_STRENGTH_6MA   0x00000065
 
#define GPIO_STRENGTH_8MA   0x00000066
 
#define GPIO_STRENGTH_8MA_SC   0x0000006E
 
#define GPIO_STRENGTH_10MA   0x00000075
 
#define GPIO_STRENGTH_12MA   0x00000077
 
#define GPIO_PIN_TYPE_STD   0x00000008
 
#define GPIO_PIN_TYPE_STD_WPU   0x0000000A
 
#define GPIO_PIN_TYPE_STD_WPD   0x0000000C
 
#define GPIO_PIN_TYPE_OD   0x00000009
 
#define GPIO_PIN_TYPE_ANALOG   0x00000000
 
#define GPIO_PIN_TYPE_WAKE_HIGH   0x00000208
 
#define GPIO_PIN_TYPE_WAKE_LOW   0x00000108
 
#define GPIO_INT_PIN_0   0x00000001
 
#define GPIO_INT_PIN_1   0x00000002
 
#define GPIO_INT_PIN_2   0x00000004
 
#define GPIO_INT_PIN_3   0x00000008
 
#define GPIO_INT_PIN_4   0x00000010
 
#define GPIO_INT_PIN_5   0x00000020
 
#define GPIO_INT_PIN_6   0x00000040
 
#define GPIO_INT_PIN_7   0x00000080
 
#define GPIO_INT_DMA   0x00000100
 

Functions

void GPIODirModeSet (uint32_t ui32Port, uint8_t ui8Pins, uint32_t ui32PinIO)
 
uint32_t GPIODirModeGet (uint32_t ui32Port, uint8_t ui8Pin)
 
void GPIOIntTypeSet (uint32_t ui32Port, uint8_t ui8Pins, uint32_t ui32IntType)
 
uint32_t GPIOIntTypeGet (uint32_t ui32Port, uint8_t ui8Pin)
 
void GPIOPadConfigSet (uint32_t ui32Port, uint8_t ui8Pins, uint32_t ui32Strength, uint32_t ui32PadType)
 
void GPIOPadConfigGet (uint32_t ui32Port, uint8_t ui8Pin, uint32_t *pui32Strength, uint32_t *pui32PadType)
 
void GPIOIntEnable (uint32_t ui32Port, uint32_t ui32IntFlags)
 
void GPIOIntDisable (uint32_t ui32Port, uint32_t ui32IntFlags)
 
uint32_t GPIOIntStatus (uint32_t ui32Port, bool bMasked)
 
void GPIOIntClear (uint32_t ui32Port, uint32_t ui32IntFlags)
 
void GPIOIntRegister (uint32_t ui32Port, void(*pfnIntHandler)(void))
 
void GPIOIntUnregister (uint32_t ui32Port)
 
void GPIOIntRegisterPin (uint32_t ui32Port, uint32_t ui32Pin, void(*pfnIntHandler)(void))
 
void GPIOIntUnregisterPin (uint32_t ui32Port, uint32_t ui32Pin)
 
int32_t GPIOPinRead (uint32_t ui32Port, uint8_t ui8Pins)
 
void GPIOPinWrite (uint32_t ui32Port, uint8_t ui8Pins, uint8_t ui8Val)
 
void GPIOPinConfigure (uint32_t ui32PinConfig)
 
void GPIOPinTypeADC (uint32_t ui32Port, uint8_t ui8Pins)
 
void GPIOPinTypeCAN (uint32_t ui32Port, uint8_t ui8Pins)
 
void GPIOPinTypeComparator (uint32_t ui32Port, uint8_t ui8Pins)
 
void GPIOPinTypeComparatorOutput (uint32_t ui32Port, uint8_t ui8Pins)
 
void GPIOPinTypeDIVSCLK (uint32_t ui32Port, uint8_t ui8Pins)
 
void GPIOPinTypeEPI (uint32_t ui32Port, uint8_t ui8Pins)
 
void GPIOPinTypeEthernetLED (uint32_t ui32Port, uint8_t ui8Pins)
 
void GPIOPinTypeEthernetMII (uint32_t ui32Port, uint8_t ui8Pins)
 
void GPIOPinTypeGPIOInput (uint32_t ui32Port, uint8_t ui8Pins)
 
void GPIOPinTypeGPIOOutput (uint32_t ui32Port, uint8_t ui8Pins)
 
void GPIOPinTypeGPIOOutputOD (uint32_t ui32Port, uint8_t ui8Pins)
 
void GPIOPinTypeHibernateRTCCLK (uint32_t ui32Port, uint8_t ui8Pins)
 
void GPIOPinTypeI2C (uint32_t ui32Port, uint8_t ui8Pins)
 
void GPIOPinTypeI2CSCL (uint32_t ui32Port, uint8_t ui8Pins)
 
void GPIOPinTypeLCD (uint32_t ui32Port, uint8_t ui8Pins)
 
void GPIOPinTypeOneWire (uint32_t ui32Port, uint8_t ui8Pins)
 
void GPIOPinTypePWM (uint32_t ui32Port, uint8_t ui8Pins)
 
void GPIOPinTypeQEI (uint32_t ui32Port, uint8_t ui8Pins)
 
void GPIOPinTypeSSI (uint32_t ui32Port, uint8_t ui8Pins)
 
void GPIOPinTypeTimer (uint32_t ui32Port, uint8_t ui8Pins)
 
void GPIOPinTypeTrace (uint32_t ui32Port, uint8_t ui8Pins)
 
void GPIOPinTypeUART (uint32_t ui32Port, uint8_t ui8Pins)
 
void GPIOPinTypeUSBAnalog (uint32_t ui32Port, uint8_t ui8Pins)
 
void GPIOPinTypeUSBDigital (uint32_t ui32Port, uint8_t ui8Pins)
 
void GPIOPinTypeWakeHigh (uint32_t ui32Port, uint8_t ui8Pins)
 
void GPIOPinTypeWakeLow (uint32_t ui32Port, uint8_t ui8Pins)
 
uint32_t GPIOPinWakeStatus (uint32_t ui32Port)
 
void GPIODMATriggerEnable (uint32_t ui32Port, uint8_t ui8Pins)
 
void GPIODMATriggerDisable (uint32_t ui32Port, uint8_t ui8Pins)
 
void GPIOADCTriggerEnable (uint32_t ui32Port, uint8_t ui8Pins)
 
void GPIOADCTriggerDisable (uint32_t ui32Port, uint8_t ui8Pins)
 

Macro Definition Documentation

§ GPIO_PIN_0

#define GPIO_PIN_0   0x00000001

§ GPIO_PIN_1

#define GPIO_PIN_1   0x00000002

§ GPIO_PIN_2

#define GPIO_PIN_2   0x00000004

§ GPIO_PIN_3

#define GPIO_PIN_3   0x00000008

§ GPIO_PIN_4

#define GPIO_PIN_4   0x00000010

§ GPIO_PIN_5

#define GPIO_PIN_5   0x00000020

§ GPIO_PIN_6

#define GPIO_PIN_6   0x00000040

§ GPIO_PIN_7

#define GPIO_PIN_7   0x00000080

§ GPIO_DIR_MODE_IN

#define GPIO_DIR_MODE_IN   0x00000000

§ GPIO_DIR_MODE_OUT

#define GPIO_DIR_MODE_OUT   0x00000001

§ GPIO_DIR_MODE_HW

#define GPIO_DIR_MODE_HW   0x00000002

§ GPIO_FALLING_EDGE

#define GPIO_FALLING_EDGE   0x00000000

Referenced by GPIOIntTypeSet().

§ GPIO_RISING_EDGE

#define GPIO_RISING_EDGE   0x00000004

Referenced by GPIOIntTypeSet().

§ GPIO_BOTH_EDGES

#define GPIO_BOTH_EDGES   0x00000001

Referenced by GPIOIntTypeSet().

§ GPIO_LOW_LEVEL

#define GPIO_LOW_LEVEL   0x00000002

Referenced by GPIOIntTypeSet().

§ GPIO_HIGH_LEVEL

#define GPIO_HIGH_LEVEL   0x00000006

Referenced by GPIOIntTypeSet().

§ GPIO_DISCRETE_INT

#define GPIO_DISCRETE_INT   0x00010000

Referenced by GPIOIntTypeSet().

§ GPIO_STRENGTH_2MA

#define GPIO_STRENGTH_2MA   0x00000001

§ GPIO_STRENGTH_4MA

#define GPIO_STRENGTH_4MA   0x00000002

Referenced by GPIOPadConfigSet().

§ GPIO_STRENGTH_6MA

#define GPIO_STRENGTH_6MA   0x00000065

Referenced by GPIOPadConfigSet().

§ GPIO_STRENGTH_8MA

#define GPIO_STRENGTH_8MA   0x00000066

§ GPIO_STRENGTH_8MA_SC

#define GPIO_STRENGTH_8MA_SC   0x0000006E

Referenced by GPIOPadConfigSet().

§ GPIO_STRENGTH_10MA

#define GPIO_STRENGTH_10MA   0x00000075

Referenced by GPIOPadConfigSet().

§ GPIO_STRENGTH_12MA

#define GPIO_STRENGTH_12MA   0x00000077

Referenced by GPIOPadConfigSet().

§ GPIO_PIN_TYPE_STD

#define GPIO_PIN_TYPE_STD   0x00000008

§ GPIO_PIN_TYPE_STD_WPU

#define GPIO_PIN_TYPE_STD_WPU   0x0000000A

Referenced by GPIOPadConfigSet(), and GPIOPinTypeQEI().

§ GPIO_PIN_TYPE_STD_WPD

#define GPIO_PIN_TYPE_STD_WPD   0x0000000C

Referenced by GPIOPadConfigSet().

§ GPIO_PIN_TYPE_OD

#define GPIO_PIN_TYPE_OD   0x00000009

§ GPIO_PIN_TYPE_ANALOG

#define GPIO_PIN_TYPE_ANALOG   0x00000000

§ GPIO_PIN_TYPE_WAKE_HIGH

#define GPIO_PIN_TYPE_WAKE_HIGH   0x00000208

§ GPIO_PIN_TYPE_WAKE_LOW

#define GPIO_PIN_TYPE_WAKE_LOW   0x00000108

§ GPIO_INT_PIN_0

#define GPIO_INT_PIN_0   0x00000001

§ GPIO_INT_PIN_1

#define GPIO_INT_PIN_1   0x00000002

§ GPIO_INT_PIN_2

#define GPIO_INT_PIN_2   0x00000004

§ GPIO_INT_PIN_3

#define GPIO_INT_PIN_3   0x00000008

§ GPIO_INT_PIN_4

#define GPIO_INT_PIN_4   0x00000010

§ GPIO_INT_PIN_5

#define GPIO_INT_PIN_5   0x00000020

§ GPIO_INT_PIN_6

#define GPIO_INT_PIN_6   0x00000040

§ GPIO_INT_PIN_7

#define GPIO_INT_PIN_7   0x00000080

§ GPIO_INT_DMA

#define GPIO_INT_DMA   0x00000100
© Copyright 1995-2019, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale