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... | |
|
inlinestatic |
Gets the direction of a pin.
This function gets the direction and control mode for a specified pin on the selected GPIO port. The pin can be configured as either an input or output under software control.
ui32Pin | is the pin number. |
|
inlinestatic |
Sets the direction of the specified pin(s).
This function will set the specified pin(s) on the GPIO port as either an input or output under software control.
ui32Pins | is the bit-packed representation of the pin(s) The parameter must be a bitwise OR'ed combination of the following: |
ui32Dir | is the direction of the pin(s):
|
Definition at line 151 of file gpio.h.
Referenced by IOCPinTypeGpioInput(), and IOCPinTypeGpioOutput().
|
inlinestatic |
Clear an IO event on a pin.
ui32Pins | specifies the pins to clear the events on. The parameter must be a bitwise OR'ed combination of the following: |
Definition at line 380 of file gpio.h.
Referenced by IOCIntClear().
|
inlinestatic |
Get the event status of a specific pin.
ui32Pin | is the pins to toggle. The parameter must be one of: |
Definition at line 353 of file gpio.h.
Referenced by IOCIntStatus().
|
inlinestatic |
Clear specific pin(s).
ui32Pins | are the pins to clear The parameter must be a bitwise OR'ed combination of the following: |
|
inlinestatic |
Read the value of specific pin(s).
ui32Pins | is the bit-packed representation of the pin(s) to read. The parameter must be a bitwise OR'ed combination of the following: |
|
inlinestatic |
Toggle specific pin(s).
ui32Pins | is the pins to toggle. The parameter must be a bitwise OR'ed combination of the following: |
|
inlinestatic |
Write to pin(s).
All the specified pins will be set to the same value, either '0' or '1'.
ui32Pins | is the bit-packed representation of the GPIO(s) to set. The parameter must be a bitwise OR'ed combination of the following: |
ui32Val | is the value to write on the specified GPIO(s):
|
#define GPIO_DIR_MODE_IN 0x00000000 |
Definition at line 122 of file gpio.h.
Referenced by GPIODirModeGet(), GPIODirModeSet(), and IOCPinTypeGpioInput().
#define GPIO_DIR_MODE_OUT 0x00000001 |
Definition at line 123 of file gpio.h.
Referenced by GPIODirModeGet(), GPIODirModeSet(), and IOCPinTypeGpioOutput().
#define GPIO_PIN_0 0x00000001 |
Definition at line 81 of file gpio.h.
Referenced by GPIODirModeGet(), and GPIOPinRead().
#define GPIO_PIN_31 0x80000000 |
Definition at line 112 of file gpio.h.
Referenced by GPIODirModeGet(), and GPIOPinRead().
#define GPIO_PIN_MASK 0xFFFFFFFF |
Definition at line 114 of file gpio.h.
Referenced by GPIODirModeSet(), GPIOEventClear(), GPIOEventGet(), GPIOPinClear(), GPIOPinToggle(), and GPIOPinWrite().