rusEFI
The most advanced open source ECU
|
Data Structures | |
struct | _port_digital_filter_config |
PORT digital filter feature configuration definition. More... | |
struct | _port_pin_config |
PORT pin configuration structure. More... | |
Variables | |
uint32_t | _port_digital_filter_config::digitalFilterWidth |
port_digital_filter_clock_source_t | _port_digital_filter_config::clockSource |
uint16_t | _port_pin_config::pullSelect: 2 |
uint16_t | : 2 |
uint16_t | _port_pin_config::slewRate: 1 |
uint16_t | : 1 |
uint16_t | : 1 |
uint16_t | _port_pin_config::passiveFilterEnable: 1 |
uint16_t | : 1 |
uint16_t | _port_pin_config::openDrainEnable: 1 |
uint16_t | : 1 |
uint16_t | _port_pin_config::driveStrength: 1 |
uint16_t | : 1 |
uint16_t | : 1 |
uint16_t | _port_pin_config::mux: 3 |
uint16_t | : 4 |
uint16_t | : 3 |
uint16_t | : 7 |
uint16_t uint16_t | _port_pin_config::lockRegister: 1 |
uint16_t | : 1 |
Configuration | |
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. | |
Interrupt | |
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. | |
Digital filter clock source selection.
typedef struct _port_digital_filter_config port_digital_filter_config_t |
PORT digital filter feature configuration definition.
typedef enum _port_interrupt port_interrupt_t |
Configures the interrupt generation condition.
typedef enum _port_mux port_mux_t |
Pin mux selection.
typedef struct _port_pin_config port_pin_config_t |
PORT pin configuration structure.
Digital filter clock source selection.
Enumerator | |
---|---|
kPORT_BusClock | Digital filters are clocked by the bus clock. |
kPORT_LpoClock | Digital filters are clocked by the 1 kHz LPO clock. |
Definition at line 140 of file fsl_port.h.
enum _port_drive_strength |
Configures the drive strength.
Enumerator | |
---|---|
kPORT_LowDriveStrength | Low-drive strength is configured. |
kPORT_HighDriveStrength | High-drive strength is configured. |
Definition at line 72 of file fsl_port.h.
enum _port_interrupt |
Configures the interrupt generation condition.
Definition at line 113 of file fsl_port.h.
enum _port_lock_register |
Unlock/lock the pin control register field[15:0].
Enumerator | |
---|---|
kPORT_UnlockRegister | Pin Control Register fields [15:0] are not locked. |
kPORT_LockRegister | Pin Control Register fields [15:0] are locked. |
Definition at line 81 of file fsl_port.h.
enum _port_mux |
Pin mux selection.
Definition at line 90 of file fsl_port.h.
Open Drain feature enable/disable.
Enumerator | |
---|---|
kPORT_OpenDrainDisable | Open drain output is disabled. |
kPORT_OpenDrainEnable | Open drain output is enabled. |
Definition at line 54 of file fsl_port.h.
Passive filter feature enable/disable.
Enumerator | |
---|---|
kPORT_PassiveFilterDisable | Passive input filter is disabled. |
kPORT_PassiveFilterEnable | Passive input filter is enabled. |
Definition at line 63 of file fsl_port.h.
enum _port_pull |
Internal resistor pull feature selection.
Enumerator | |
---|---|
kPORT_PullDisable | Internal pull-up/down resistor is disabled. |
kPORT_PullDown | Internal pull-down resistor is enabled. |
kPORT_PullUp | Internal pull-up resistor is enabled. |
Definition at line 35 of file fsl_port.h.
enum _port_slew_rate |
Slew rate selection.
Enumerator | |
---|---|
kPORT_FastSlewRate | Fast slew rate is configured. |
kPORT_SlowSlewRate | Slow slew rate is configured. |
Definition at line 45 of file fsl_port.h.
|
inlinestatic |
Clears the multiple pin interrupt status flag.
base | PORT peripheral base pointer. |
mask | PORT pin number macro. |
Definition at line 462 of file fsl_port.h.
Referenced by _pal_lld_disablepadevent(), and _pal_lld_irq_handler().
|
inlinestatic |
Enables the digital filter in one port, each bit of the 32-bit register represents one pin.
base | PORT peripheral base pointer. |
mask | PORT pin number macro. |
Definition at line 360 of file fsl_port.h.
|
inlinestatic |
Reads the whole port status flag.
If a pin is configured to generate the DMA request, the corresponding flag is cleared automatically at the completion of the requested DMA transfer. Otherwise, the flag remains set until a logic one is written to that flag. If configured for a level sensitive interrupt that remains asserted, the flag is set again immediately.
base | PORT peripheral base pointer. |
Definition at line 451 of file fsl_port.h.
Referenced by _pal_lld_irq_handler().
|
inlinestatic |
Sets the digital filter in one port, each bit of the 32-bit register represents one pin.
base | PORT peripheral base pointer. |
config | PORT digital filter configuration structure. |
Definition at line 378 of file fsl_port.h.
|
inlinestatic |
Sets the port interrupt configuration in PCR register for multiple pins.
base | PORT peripheral base pointer. |
mask | PORT pin number macro. |
config | PORT pin interrupt configuration.
|
Definition at line 310 of file fsl_port.h.
|
inlinestatic |
Sets the port PCR register for multiple pins.
This is an example to define input pins or output pins PCR configuration.
base | PORT peripheral base pointer. |
mask | PORT pin number macro. |
config | PORT PCR register configuration structure. |
Definition at line 272 of file fsl_port.h.
|
inlinestatic |
Sets the port PCR register.
This is an example to define an input pin or output pin PCR configuration.
base | PORT peripheral base pointer. |
pin | PORT pin number. |
config | PORT PCR register configuration structure. |
Definition at line 243 of file fsl_port.h.
|
inlinestatic |
Configures the port pin drive strength.
base | PORT peripheral base pointer. |
pin | PORT pin number. |
config | PORT pin drive strength
|
Definition at line 431 of file fsl_port.h.
Referenced by _pal_lld_setpadmode().
|
inlinestatic |
Configures the port pin interrupt/DMA request.
base | PORT peripheral base pointer. |
pin | PORT pin number. |
config | PORT pin interrupt configuration.
|
Definition at line 415 of file fsl_port.h.
Referenced by _pal_lld_disablepadevent(), and _pal_lld_enablepadevent().
|
inlinestatic |
Configures the pin muxing.
base | PORT peripheral base pointer. |
pin | PORT pin number. |
mux | pin muxing slot selection.
|
Definition at line 346 of file fsl_port.h.
uint16_t _port_pin_config::__pad0__ |
Definition at line 161 of file fsl_port.h.
uint16_t _port_pin_config::__pad10__ |
Definition at line 205 of file fsl_port.h.
uint16_t _port_pin_config::__pad1__ |
Definition at line 167 of file fsl_port.h.
uint16_t _port_pin_config::__pad2__ |
Definition at line 170 of file fsl_port.h.
uint16_t _port_pin_config::__pad3__ |
Definition at line 175 of file fsl_port.h.
uint16_t _port_pin_config::__pad4__ |
Definition at line 181 of file fsl_port.h.
uint16_t _port_pin_config::__pad5__ |
Definition at line 187 of file fsl_port.h.
uint16_t _port_pin_config::__pad6__ |
Definition at line 190 of file fsl_port.h.
uint16_t _port_pin_config::__pad7__ |
Definition at line 194 of file fsl_port.h.
uint16_t _port_pin_config::__pad8__ |
Definition at line 197 of file fsl_port.h.
uint16_t _port_pin_config::__pad9__ |
Definition at line 199 of file fsl_port.h.
port_digital_filter_clock_source_t _port_digital_filter_config::clockSource |
Set digital filter clockSource
Definition at line 150 of file fsl_port.h.
uint32_t _port_digital_filter_config::digitalFilterWidth |
Set digital filter width
Definition at line 149 of file fsl_port.h.
uint16_t _port_pin_config::driveStrength |
Fast/slow drive strength configure
Definition at line 185 of file fsl_port.h.
uint16_t uint16_t _port_pin_config::lockRegister |
Lock/unlock the PCR field[15:0]
Definition at line 203 of file fsl_port.h.
uint16_t _port_pin_config::mux |
Pin mux Configure
Definition at line 193 of file fsl_port.h.
uint16_t _port_pin_config::openDrainEnable |
Open drain enable/disable
Definition at line 179 of file fsl_port.h.
uint16_t _port_pin_config::passiveFilterEnable |
Passive filter enable/disable
Definition at line 173 of file fsl_port.h.
uint16_t _port_pin_config::pullSelect |
No-pull/pull-down/pull-up select
Definition at line 159 of file fsl_port.h.
uint16_t _port_pin_config::slewRate |
Fast/slow slew rate Configure
Definition at line 165 of file fsl_port.h.