The MCUXpresso SDK provides driver for the Trigger Mux (TRGMUX) module of MCUXpresso SDK devices.
Typical use case
#define FSL_TRGMUX_DRIVER_VERSION (MAKE_VERSION(2, 0, 0)) |
Enumerator |
---|
kStatus_TRGMUX_Locked |
Configure failed for register is locked.
|
Enumerator |
---|
kTRGMUX_TriggerInput0 |
The MUX select for peripheral trigger input 0.
|
kTRGMUX_TriggerInput1 |
The MUX select for peripheral trigger input 1.
|
kTRGMUX_TriggerInput2 |
The MUX select for peripheral trigger input 2.
|
kTRGMUX_TriggerInput3 |
The MUX select for peripheral trigger input 3.
|
static void TRGMUX_LockRegister |
( |
TRGMUX_Type * |
base, |
|
|
uint32_t |
index |
|
) |
| |
|
inlinestatic |
The function sets the flag of the register which is used to mark writeable. Example:
- Parameters
-
base | TRGMUX peripheral base address. |
index | The index of the TRGMUX register, see the enum trgmux_device_t defined in <SOC>.h. |
status_t TRGMUX_SetTriggerSource |
( |
TRGMUX_Type * |
base, |
|
|
uint32_t |
index, |
|
|
trgmux_trigger_input_t |
input, |
|
|
uint32_t |
trigger_src |
|
) |
| |
The function configures the trigger source of the appointed peripheral. Example:
- Parameters
-
base | TRGMUX peripheral base address. |
index | The index of the TRGMUX register, see the enum trgmux_device_t defined in <SOC>.h. |
input | The MUX select for peripheral trigger input |
trigger_src | The trigger inputs for various peripherals. See the enum trgmux_source_t defined in <SOC>.h. |
- Return values
-
kStatus_Success | Configured successfully. |
kStatus_TRGMUX_Locked | Configuration failed because the register is locked. |