Functions | |
__STATIC_INLINE void | GPIODirModeSet (uint32_t ui32Pins, uint32_t ui32Dir) |
Sets the direction of the specified pin(s). More... | |
__STATIC_INLINE uint32_t | GPIODirModeGet (uint32_t ui32Pin) |
Gets the direction of a pin. More... | |
__STATIC_INLINE void | GPIOPinWrite (uint32_t ui32Pins, uint32_t ui32Val) |
Write to pin(s). More... | |
__STATIC_INLINE uint32_t | GPIOPinRead (uint32_t ui32Pins) |
Read the value of specific pin(s). More... | |
__STATIC_INLINE void | GPIOPinClear (uint32_t ui32Pins) |
Clear specific pin(s). More... | |
__STATIC_INLINE void | GPIOPinToggle (uint32_t ui32Pins) |
Toggle specific pin(s). More... | |
__STATIC_INLINE uint32_t | GPIOEventGet (uint32_t ui32Pin) |
Get the event status of a specific pin. More... | |
__STATIC_INLINE void | GPIOEventClear (uint32_t ui32Pins) |
Clear an IO event on a pin. More... | |
__STATIC_INLINE uint32_t GPIODirModeGet | ( | uint32_t | ui32Pin | ) |
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. |
__STATIC_INLINE void GPIODirModeSet | ( | uint32_t | ui32Pins, |
uint32_t | ui32Dir | ||
) |
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 149 of file gpio.h.
Referenced by IOCPinTypeGpioInput(), and IOCPinTypeGpioOutput().
__STATIC_INLINE void GPIOEventClear | ( | uint32_t | ui32Pins | ) |
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 375 of file gpio.h.
Referenced by IOCIntClear().
__STATIC_INLINE uint32_t GPIOEventGet | ( | uint32_t | ui32Pin | ) |
Get the event status of a specific pin.
ui32Pin | is the pins to toggle. The parameter must be one of: |
Definition at line 348 of file gpio.h.
Referenced by IOCIntStatus().
__STATIC_INLINE void GPIOPinClear | ( | uint32_t | ui32Pins | ) |
Clear specific pin(s).
ui32Pins | are the pins to clear The parameter must be a bitwise OR'ed combination of the following: |
__STATIC_INLINE uint32_t GPIOPinRead | ( | uint32_t | ui32Pins | ) |
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: |
__STATIC_INLINE void GPIOPinToggle | ( | uint32_t | ui32Pins | ) |
Toggle specific pin(s).
ui32Pins | is the pins to toggle. The parameter must be a bitwise OR'ed combination of the following: |
__STATIC_INLINE void GPIOPinWrite | ( | uint32_t | ui32Pins, |
uint32_t | ui32Val | ||
) |
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 120 of file gpio.h.
Referenced by GPIODirModeGet(), GPIODirModeSet(), and IOCPinTypeGpioInput().
#define GPIO_DIR_MODE_OUT 0x00000001 |
Definition at line 121 of file gpio.h.
Referenced by GPIODirModeGet(), GPIODirModeSet(), and IOCPinTypeGpioOutput().
#define GPIO_PIN_0 0x00000001 |
Definition at line 79 of file gpio.h.
Referenced by GPIODirModeGet(), and GPIOPinRead().
#define GPIO_PIN_31 0x80000000 |
Definition at line 110 of file gpio.h.
Referenced by GPIODirModeGet(), and GPIOPinRead().
#define GPIO_PIN_MASK 0xFFFFFFFF |
Definition at line 112 of file gpio.h.
Referenced by GPIODirModeSet(), GPIOEventClear(), GPIOEventGet(), GPIOPinClear(), GPIOPinToggle(), and GPIOPinWrite().