CC13xx Driver Library
gpio.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include <inc/hw_types.h>
#include <inc/hw_memmap.h>
#include <inc/hw_gpio.h>
#include <driverlib/debug.h>

Go to the source code of this file.

Macros

#define NUM_GPIO_PINS   32
 
#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_PIN_8   0x00000100
 
#define GPIO_PIN_9   0x00000200
 
#define GPIO_PIN_10   0x00000400
 
#define GPIO_PIN_11   0x00000800
 
#define GPIO_PIN_12   0x00001000
 
#define GPIO_PIN_13   0x00002000
 
#define GPIO_PIN_14   0x00004000
 
#define GPIO_PIN_15   0x00008000
 
#define GPIO_PIN_16   0x00010000
 
#define GPIO_PIN_17   0x00020000
 
#define GPIO_PIN_18   0x00040000
 
#define GPIO_PIN_19   0x00080000
 
#define GPIO_PIN_20   0x00100000
 
#define GPIO_PIN_21   0x00200000
 
#define GPIO_PIN_22   0x00400000
 
#define GPIO_PIN_23   0x00800000
 
#define GPIO_PIN_24   0x01000000
 
#define GPIO_PIN_25   0x02000000
 
#define GPIO_PIN_26   0x04000000
 
#define GPIO_PIN_27   0x08000000
 
#define GPIO_PIN_28   0x10000000
 
#define GPIO_PIN_29   0x20000000
 
#define GPIO_PIN_30   0x40000000
 
#define GPIO_PIN_31   0x80000000
 
#define GPIO_PIN_UNUSED   0x00000000
 
#define GPIO_PIN_MASK   0xFFFFFFFF
 
#define GPIO_DIR_MODE_IN   0x00000000
 
#define GPIO_DIR_MODE_OUT   0x00000001
 

Functions

static void GPIODirModeSet (uint32_t ui32Pins, uint32_t ui32Dir)
 Sets the direction of the specified pin(s). More...
 
static uint32_t GPIODirModeGet (uint32_t ui32Pin)
 Gets the direction of a pin. More...
 
static void GPIOPinWrite (uint32_t ui32Pins, uint32_t ui32Val)
 Write to pin(s). More...
 
static uint32_t GPIOPinRead (uint32_t ui32Pins)
 Read the value of specific pin(s). More...
 
static void GPIOPinClear (uint32_t ui32Pins)
 Clear specific pin(s). More...
 
static void GPIOPinToggle (uint32_t ui32Pins)
 Toggle specific pin(s). More...
 
static uint32_t GPIOEventGet (uint32_t ui32Pin)
 Get the event status of a specific pin. More...
 
static void GPIOEventClear (uint32_t ui32Pins)
 Clear an IO event on a pin. More...