|
|
static void | PORT_SetPinConfig (PORT_Type *base, uint32_t pin, const port_pin_config_t *config) |
| Sets the port PCR register.
|
|
static void | PORT_SetMultiplePinsConfig (PORT_Type *base, uint32_t mask, const port_pin_config_t *config) |
| Sets the port PCR register for multiple pins.
|
|
static void | PORT_SetMultipleInterruptPinsConfig (PORT_Type *base, uint32_t mask, port_interrupt_t config) |
| Sets the port interrupt configuration in PCR register for multiple pins.
|
|
static void | PORT_SetPinMux (PORT_Type *base, uint32_t pin, port_mux_t mux) |
| Configures the pin muxing.
|
|
static void | PORT_EnablePinsDigitalFilter (PORT_Type *base, uint32_t mask, bool enable) |
| Enables the digital filter in one port, each bit of the 32-bit register represents one pin.
|
|
static void | PORT_SetDigitalFilterConfig (PORT_Type *base, const port_digital_filter_config_t *config) |
| Sets the digital filter in one port, each bit of the 32-bit register represents one pin.
|
|
|
static void | PORT_SetPinInterruptConfig (PORT_Type *base, uint32_t pin, port_interrupt_t config) |
| Configures the port pin interrupt/DMA request.
|
|
static void | PORT_SetPinDriveStrength (PORT_Type *base, uint32_t pin, uint8_t strength) |
| Configures the port pin drive strength.
|
|
static uint32_t | PORT_GetPinsInterruptFlags (PORT_Type *base) |
| Reads the whole port status flag.
|
|
static void | PORT_ClearPinsInterruptFlags (PORT_Type *base, uint32_t mask) |
| Clears the multiple pin interrupt status flag.
|
|
|
enum | _port_pull { kPORT_PullDisable = 0U
, kPORT_PullDown = 2U
, kPORT_PullUp = 3U
} |
| Internal resistor pull feature selection. More...
|
|
enum | _port_slew_rate { kPORT_FastSlewRate = 0U
, kPORT_SlowSlewRate = 1U
} |
| Slew rate selection. More...
|
|
enum | _port_open_drain_enable { kPORT_OpenDrainDisable = 0U
, kPORT_OpenDrainEnable = 1U
} |
| Open Drain feature enable/disable. More...
|
|
enum | _port_passive_filter_enable { kPORT_PassiveFilterDisable = 0U
, kPORT_PassiveFilterEnable = 1U
} |
| Passive filter feature enable/disable. More...
|
|
enum | _port_drive_strength { kPORT_LowDriveStrength = 0U
, kPORT_HighDriveStrength = 1U
} |
| Configures the drive strength. More...
|
|
enum | _port_lock_register { kPORT_UnlockRegister = 0U
, kPORT_LockRegister = 1U
} |
| Unlock/lock the pin control register field[15:0]. More...
|
|
enum | _port_mux {
kPORT_PinDisabledOrAnalog = 0U
, kPORT_MuxAsGpio = 1U
, kPORT_MuxAlt2 = 2U
, kPORT_MuxAlt3 = 3U
,
kPORT_MuxAlt4 = 4U
, kPORT_MuxAlt5 = 5U
, kPORT_MuxAlt6 = 6U
, kPORT_MuxAlt7 = 7U
,
kPORT_MuxAlt8 = 8U
, kPORT_MuxAlt9 = 9U
, kPORT_MuxAlt10 = 10U
, kPORT_MuxAlt11 = 11U
,
kPORT_MuxAlt12 = 12U
, kPORT_MuxAlt13 = 13U
, kPORT_MuxAlt14 = 14U
, kPORT_MuxAlt15 = 15U
} |
| Pin mux selection. More...
|
|
enum | _port_interrupt {
kPORT_InterruptOrDMADisabled = 0x0U
, kPORT_DMARisingEdge = 0x1U
, kPORT_DMAFallingEdge = 0x2U
, kPORT_DMAEitherEdge = 0x3U
,
kPORT_FlagRisingEdge = 0x05U
, kPORT_FlagFallingEdge = 0x06U
, kPORT_FlagEitherEdge = 0x07U
, kPORT_InterruptLogicZero = 0x8U
,
kPORT_InterruptRisingEdge = 0x9U
, kPORT_InterruptFallingEdge = 0xAU
, kPORT_InterruptEitherEdge = 0xBU
, kPORT_InterruptLogicOne = 0xCU
,
kPORT_ActiveHighTriggerOutputEnable = 0xDU
, kPORT_ActiveLowTriggerOutputEnable = 0xEU
} |
| Configures the interrupt generation condition. More...
|
|
enum | _port_digital_filter_clock_source { kPORT_BusClock = 0U
, kPORT_LpoClock = 1U
} |
| Digital filter clock source selection. More...
|
|
typedef enum _port_mux | port_mux_t |
| Pin mux selection.
|
|
typedef enum _port_interrupt | port_interrupt_t |
| Configures the interrupt generation condition.
|
|
typedef enum _port_digital_filter_clock_source | port_digital_filter_clock_source_t |
| Digital filter clock source selection.
|
|
typedef struct _port_digital_filter_config | port_digital_filter_config_t |
| PORT digital filter feature configuration definition.
|
|
typedef struct _port_pin_config | port_pin_config_t |
| PORT pin configuration structure.
|
|