The KSDK provides driver for the Trigger Mux module of Kinetis devices.
Typical use case
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, |
|
|
trgmux_device_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. |
status_t TRGMUX_SetTriggerSource |
( |
TRGMUX_Type * |
base, |
|
|
trgmux_device_t |
index, |
|
|
trgmux_trigger_input_t |
input, |
|
|
trgmux_source_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. |
input | The MUX select for peripheral trigger input |
trigger_src | The trigger inputs for various peripherals. |
- Return values
-
kStatus_Success | Configured successfully. |
kStatus_TRGMUX_Locked | Configuration failed because the register is locked. |