![]() |
S32 SDK
|
FlexIO Hardware Abstraction Layer (FLEXIO_HAL)
This module covers the functionality of the Flexible I/O (FlexIO) peripheral.
FlexIO HAL provides the API for reading and writing register bit-fields belonging to the FlexIO module. It also provides an initialization function for bringing the module to the reset state.
For higher-level functionality, use the FlexIO driver.
Data Structures | |
struct | flexio_version_info_t |
FlexIO module version number Implements : flexio_version_info_t_Class. More... | |
Template Group | |
static void | FLEXIO_HAL_GetVersion (const FLEXIO_Type *baseAddr, flexio_version_info_t *versionInfo) |
Reads the version of the FlexIO module. More... | |
static uint8_t | FLEXIO_HAL_GetTriggerNum (const FLEXIO_Type *baseAddr) |
Returns the number of external triggers of the FlexIO module. More... | |
static uint8_t | FLEXIO_HAL_GetPinNum (const FLEXIO_Type *baseAddr) |
Returns the number of pins of the FlexIO module. More... | |
static uint8_t | FLEXIO_HAL_GetTimerNum (const FLEXIO_Type *baseAddr) |
Returns the number of timers of the FlexIO module. More... | |
static uint8_t | FLEXIO_HAL_GetShifterNum (const FLEXIO_Type *baseAddr) |
Returns the number of shifters of the FlexIO module. More... | |
static bool | FLEXIO_HAL_GetDozeMode (const FLEXIO_Type *baseAddr) |
Returns the current doze mode setting. More... | |
static void | FLEXIO_HAL_SetDozeMode (FLEXIO_Type *baseAddr, bool enable) |
Set the FlexIO module behavior in doze mode. More... | |
static bool | FLEXIO_HAL_GetDebugMode (const FLEXIO_Type *baseAddr) |
Returns the current debug mode setting. More... | |
static void | FLEXIO_HAL_SetDebugMode (FLEXIO_Type *baseAddr, bool enable) |
Set the FlexIO module behavior in debug mode. More... | |
static bool | FLEXIO_HAL_GetFastAccess (const FLEXIO_Type *baseAddr) |
Returns the current fast access setting. More... | |
static void | FLEXIO_HAL_SetFastAccess (FLEXIO_Type *baseAddr, bool enable) |
Configure the FlexIO fast access feature. More... | |
static bool | FLEXIO_HAL_GetSoftwareReset (const FLEXIO_Type *baseAddr) |
Returns the current software reset state. More... | |
static void | FLEXIO_HAL_SetSoftwareReset (FLEXIO_Type *baseAddr, bool enable) |
Set/clear the FlexIO reset command. More... | |
static bool | FLEXIO_HAL_GetEnable (const FLEXIO_Type *baseAddr) |
Returns the current enable/disable setting of the FlexIO. More... | |
static void | FLEXIO_HAL_SetEnable (FLEXIO_Type *baseAddr, bool enable) |
Enables of disables the FlexIO module. More... | |
static uint8_t | FLEXIO_HAL_GetPinData (const FLEXIO_Type *baseAddr) |
Returns the current input data read from the FlexIO pins. More... | |
static bool | FLEXIO_HAL_GetShifterStatus (const FLEXIO_Type *baseAddr, uint8_t shifter) |
Returns the current status of the specified shifter. More... | |
static uint32_t | FLEXIO_HAL_GetAllShifterStatus (const FLEXIO_Type *baseAddr) |
Returns the current status flags for all shifters. More... | |
static void | FLEXIO_HAL_ClearShifterStatus (FLEXIO_Type *baseAddr, uint8_t shifter) |
Clears the status of the specified shifter. More... | |
static bool | FLEXIO_HAL_GetShifterErrorStatus (const FLEXIO_Type *baseAddr, uint8_t shifter) |
Returns the current error status of the specified shifter. More... | |
static uint32_t | FLEXIO_HAL_GetAllShifterErrorStatus (const FLEXIO_Type *baseAddr) |
Returns the current error status for all shifters. More... | |
static void | FLEXIO_HAL_ClearShifterErrorStatus (FLEXIO_Type *baseAddr, uint8_t shifter) |
Clears the error status of the specified shifter. More... | |
static bool | FLEXIO_HAL_GetTimerStatus (const FLEXIO_Type *baseAddr, uint8_t timer) |
Returns the current status of the specified timer. More... | |
static uint32_t | FLEXIO_HAL_GetAllTimerStatus (const FLEXIO_Type *baseAddr) |
Returns the current status of all timers. More... | |
static void | FLEXIO_HAL_ClearTimerStatus (FLEXIO_Type *baseAddr, uint8_t timer) |
Clears the status of the specified timer. More... | |
static bool | FLEXIO_HAL_GetShifterInterrupt (const FLEXIO_Type *baseAddr, uint8_t interruptNo) |
Returns the current status of the shifter interrupts. More... | |
static uint32_t | FLEXIO_HAL_GetAllShifterInterrupt (const FLEXIO_Type *baseAddr) |
Returns the current status of all the shifter interrupts. More... | |
static void | FLEXIO_HAL_SetShifterInterrupt (FLEXIO_Type *baseAddr, uint8_t interruptMask, bool enable) |
Enables or disables the shifter interrupts. More... | |
static bool | FLEXIO_HAL_GetShifterErrorInterrupt (const FLEXIO_Type *baseAddr, uint8_t interruptNo) |
Returns the current status of the shifter error interrupts. More... | |
static uint32_t | FLEXIO_HAL_GetAllShifterErrorInterrupt (const FLEXIO_Type *baseAddr) |
Returns the current status of all the shifter error interrupts. More... | |
static void | FLEXIO_HAL_SetShifterErrorInterrupt (FLEXIO_Type *baseAddr, uint8_t interruptMask, bool enable) |
Enables or disables the shifter error interrupts. More... | |
static bool | FLEXIO_HAL_GetTimerInterrupt (const FLEXIO_Type *baseAddr, uint8_t interruptNo) |
Returns the current status of the timer interrupts. More... | |
static uint32_t | FLEXIO_HAL_GetAllTimerInterrupt (const FLEXIO_Type *baseAddr) |
Returns the current status of all the timer interrupts. More... | |
static void | FLEXIO_HAL_SetTimerInterrupt (FLEXIO_Type *baseAddr, uint8_t interruptMask, bool enable) |
Enables or disables the timer interrupts. More... | |
static bool | FLEXIO_HAL_GetShifterDMARequest (const FLEXIO_Type *baseAddr, uint8_t requestNo) |
Returns the current status of the shifter DMA requests. More... | |
static void | FLEXIO_HAL_SetShifterDMARequest (FLEXIO_Type *baseAddr, uint8_t requestMask, bool enable) |
Enables or disables the shifter DMA requests. More... | |
static void | FLEXIO_HAL_GetShifterTimer (const FLEXIO_Type *baseAddr, uint8_t shifter, uint8_t *timer, flexio_timer_polarity_t *polarity) |
Returns the timer currently assigned to control the specified shifter. More... | |
static void | FLEXIO_HAL_SetShifterTimer (FLEXIO_Type *baseAddr, uint8_t shifter, uint8_t timer, flexio_timer_polarity_t polarity) |
Assigns the specified timer to control the specified shifter. More... | |
static void | FLEXIO_HAL_GetShifterPin (const FLEXIO_Type *baseAddr, uint8_t shifter, uint8_t *pin, flexio_pin_polarity_t *polarity, flexio_pin_config_t *config) |
Returns the pin currently assigned to the specified shifter, and its configured settings. More... | |
static void | FLEXIO_HAL_SetShifterPin (FLEXIO_Type *baseAddr, uint8_t shifter, uint8_t pin, flexio_pin_polarity_t polarity, flexio_pin_config_t config) |
Assigns the specified pin to the specified shifter. More... | |
static void | FLEXIO_HAL_SetShifterPinConfig (FLEXIO_Type *baseAddr, uint8_t shifter, flexio_pin_config_t config) |
Configures the pin assigned to the specified shifter. More... | |
static flexio_shifter_mode_t | FLEXIO_HAL_GetShifterMode (const FLEXIO_Type *baseAddr, uint8_t shifter) |
Returns the mode of the specified shifter. More... | |
static void | FLEXIO_HAL_SetShifterMode (FLEXIO_Type *baseAddr, uint8_t shifter, flexio_shifter_mode_t mode) |
Sets the mode of the specified shifter. More... | |
static void | FLEXIO_HAL_SetShifterControl (FLEXIO_Type *baseAddr, uint8_t shifter, flexio_shifter_mode_t mode, uint8_t pin, flexio_pin_polarity_t pinPolarity, flexio_pin_config_t pinConfig, uint8_t timer, flexio_timer_polarity_t timerPolarity) |
Sets all control settings for the specified shifter. More... | |
static flexio_shifter_source_t | FLEXIO_HAL_GetShifterInputSource (const FLEXIO_Type *baseAddr, uint8_t shifter) |
Returns the input source of the specified shifter. More... | |
static void | FLEXIO_HAL_SetShifterInputSource (FLEXIO_Type *baseAddr, uint8_t shifter, flexio_shifter_source_t source) |
Configures the input source of the specified shifter. More... | |
static flexio_shifter_stop_t | FLEXIO_HAL_GetShifterStopBit (const FLEXIO_Type *baseAddr, uint8_t shifter) |
Returns the stop bit configuration for the specified shifter. More... | |
static void | FLEXIO_HAL_SetShifterStopBit (FLEXIO_Type *baseAddr, uint8_t shifter, flexio_shifter_stop_t stop) |
Configures the stop bit of the specified shifter. More... | |
static flexio_shifter_start_t | FLEXIO_HAL_GetShifterStartBit (const FLEXIO_Type *baseAddr, uint8_t shifter) |
Returns the start bit configuration for the specified shifter. More... | |
static void | FLEXIO_HAL_SetShifterStartBit (FLEXIO_Type *baseAddr, uint8_t shifter, flexio_shifter_start_t start) |
Configures the start bit of the specified shifter. More... | |
static void | FLEXIO_HAL_SetShifterConfig (FLEXIO_Type *baseAddr, uint8_t shifter, flexio_shifter_start_t start, flexio_shifter_stop_t stop, flexio_shifter_source_t source) |
Sets all configuration settings for specified shifter. More... | |
static uint32_t | FLEXIO_HAL_ReadShifterBuffer (const FLEXIO_Type *baseAddr, uint8_t shifter, flexio_shifter_buffer_mode_t mode) |
Reads the value from the specified shifter buffer. More... | |
static void | FLEXIO_HAL_WriteShifterBuffer (FLEXIO_Type *baseAddr, uint8_t shifter, uint32_t value, flexio_shifter_buffer_mode_t mode) |
Writes a value in the specified shifter buffer. More... | |
static void | FLEXIO_HAL_GetTimerTrigger (const FLEXIO_Type *baseAddr, uint8_t timer, uint8_t *trigger, flexio_trigger_polarity_t *polarity, flexio_trigger_source_t *source) |
Returns the currently configured trigger for the specified timer. More... | |
static void | FLEXIO_HAL_SetTimerTrigger (FLEXIO_Type *baseAddr, uint8_t timer, uint8_t trigger, flexio_trigger_polarity_t polarity, flexio_trigger_source_t source) |
Configures the trigger for the specified timer. More... | |
static void | FLEXIO_HAL_GetTimerPin (const FLEXIO_Type *baseAddr, uint8_t timer, uint8_t *pin, flexio_pin_polarity_t *polarity, flexio_pin_config_t *config) |
Returns the currently configured pin for the specified timer. More... | |
static void | FLEXIO_HAL_SetTimerPin (FLEXIO_Type *baseAddr, uint8_t timer, uint8_t pin, flexio_pin_polarity_t polarity, flexio_pin_config_t config) |
Configures the pin for the specified timer. More... | |
static flexio_timer_mode_t | FLEXIO_HAL_GetTimerMode (const FLEXIO_Type *baseAddr, uint8_t timer) |
Returns the mode of the specified timer. More... | |
static void | FLEXIO_HAL_SetTimerMode (FLEXIO_Type *baseAddr, uint8_t timer, flexio_timer_mode_t mode) |
Sets the mode of the specified timer. More... | |
static void | FLEXIO_HAL_SetTimerControl (FLEXIO_Type *baseAddr, uint8_t timer, uint8_t trigger, flexio_trigger_polarity_t triggerPolarity, flexio_trigger_source_t triggerSource, uint8_t pin, flexio_pin_polarity_t pinPolarity, flexio_pin_config_t pinConfig, flexio_timer_mode_t mode) |
Sets all control settings for specified timer. More... | |
static flexio_timer_output_t | FLEXIO_HAL_GetTimerInitialOutput (const FLEXIO_Type *baseAddr, uint8_t timer) |
Returns the initial output configuration of the specified timer. More... | |
static void | FLEXIO_HAL_SetTimerInitialOutput (FLEXIO_Type *baseAddr, uint8_t timer, flexio_timer_output_t output) |
Configures the initial output of the specified timer. More... | |
static flexio_timer_decrement_t | FLEXIO_HAL_GetTimerDecrement (const FLEXIO_Type *baseAddr, uint8_t timer) |
Returns the decrement configuration of the specified timer. More... | |
static void | FLEXIO_HAL_SetTimerDecrement (FLEXIO_Type *baseAddr, uint8_t timer, flexio_timer_decrement_t decrement) |
Configures the decrement condition for the specified timer. More... | |
static flexio_timer_reset_t | FLEXIO_HAL_GetTimerReset (const FLEXIO_Type *baseAddr, uint8_t timer) |
Returns the reset configuration of the specified timer. More... | |
static void | FLEXIO_HAL_SetTimerReset (FLEXIO_Type *baseAddr, uint8_t timer, flexio_timer_reset_t reset) |
Configures the reset condition for the specified timer. More... | |
static flexio_timer_disable_t | FLEXIO_HAL_GetTimerDisable (const FLEXIO_Type *baseAddr, uint8_t timer) |
Returns the disable configuration of the specified timer. More... | |
static void | FLEXIO_HAL_SetTimerDisable (FLEXIO_Type *baseAddr, uint8_t timer, flexio_timer_disable_t disable) |
Configures the disable condition for the specified timer. More... | |
static flexio_timer_enable_t | FLEXIO_HAL_GetTimerEnable (const FLEXIO_Type *baseAddr, uint8_t timer) |
Returns the enable condition configuration of the specified timer. More... | |
static void | FLEXIO_HAL_SetTimerEnable (FLEXIO_Type *baseAddr, uint8_t timer, flexio_timer_enable_t enable) |
Configures the enable condition for the specified timer. More... | |
static flexio_timer_stop_t | FLEXIO_HAL_GetTimerStop (const FLEXIO_Type *baseAddr, uint8_t timer) |
Returns the stop bit configuration of the specified timer. More... | |
static void | FLEXIO_HAL_SetTimerStop (FLEXIO_Type *baseAddr, uint8_t timer, flexio_timer_stop_t stop) |
Configures the stop bit for the specified timer. More... | |
static flexio_timer_start_t | FLEXIO_HAL_GetTimerStart (const FLEXIO_Type *baseAddr, uint8_t timer) |
Returns the start bit configuration of the specified timer. More... | |
static void | FLEXIO_HAL_SetTimerStart (FLEXIO_Type *baseAddr, uint8_t timer, flexio_timer_start_t start) |
Configures the start bit for the specified timer. More... | |
static void | FLEXIO_HAL_SetTimerConfig (FLEXIO_Type *baseAddr, uint8_t timer, flexio_timer_start_t start, flexio_timer_stop_t stop, flexio_timer_enable_t enable, flexio_timer_disable_t disable, flexio_timer_reset_t reset, flexio_timer_decrement_t decrement, flexio_timer_output_t output) |
Sets all configuration settings for specified timer. More... | |
static uint16_t | FLEXIO_HAL_GetTimerCompare (const FLEXIO_Type *baseAddr, uint8_t timer) |
Returns the compare value of the specified timer. More... | |
static void | FLEXIO_HAL_SetTimerCompare (FLEXIO_Type *baseAddr, uint8_t timer, uint16_t value) |
Configures the compare value for the specified timer. More... | |
void | FLEXIO_HAL_Init (FLEXIO_Type *baseAddr) |
Initializes the FlexIO module to a known state. More... | |
enum flexio_pin_config_t |
Pin configuration options Implements : flexio_pin_config_t_Class.
Definition at line 94 of file flexio_hal.h.
Pin polarity options Implements : flexio_pin_polarity_t_Class.
Enumerator | |
---|---|
FLEXIO_PIN_POLARITY_HIGH |
Pin is active high |
FLEXIO_PIN_POLARITY_LOW |
Pin is active low |
Definition at line 85 of file flexio_hal.h.
Read/Write mode for shifter buffer Implements : flexio_shifter_buffer_mode_t_Class.
Definition at line 126 of file flexio_hal.h.
Shifter mode options Implements : flexio_shifter_mode_t_Class.
Definition at line 105 of file flexio_hal.h.
Shifter input source options Implements : flexio_shifter_source_t_Class.
Enumerator | |
---|---|
FLEXIO_SHIFTER_SOURCE_PIN |
Input source is selected pin |
FLEXIO_SHIFTER_SOURCE_SHIFTER |
Input source is shifter N+1 output |
Definition at line 117 of file flexio_hal.h.
Timer start bit options - for Transmit, Receive or Match Store modes only Implements : flexio_shifter_start_t_Class.
Definition at line 251 of file flexio_hal.h.
Timer stop bit options - for Transmit, Receive or Match Store modes only Implements : flexio_shifter_stop_t_Class.
Enumerator | |
---|---|
FLEXIO_SHIFTER_STOP_BIT_DISABLED |
Stop bit disabled. |
FLEXIO_SHIFTER_STOP_BIT_0 |
Transmit/expect stop bit value 0 |
FLEXIO_SHIFTER_STOP_BIT_1 |
Transmit/expect stop bit value 1 |
Definition at line 241 of file flexio_hal.h.
Timer decrement options Implements : flexio_timer_decrement_t_Class.
Definition at line 177 of file flexio_hal.h.
Timer disable options Implements : flexio_timer_disable_t_Class.
Definition at line 201 of file flexio_hal.h.
Timer disable options Implements : flexio_timer_enable_t_Class.
Definition at line 215 of file flexio_hal.h.
enum flexio_timer_mode_t |
Timer mode options Implements : flexio_timer_mode_t_Class.
Definition at line 155 of file flexio_hal.h.
Timer initial output options Implements : flexio_timer_output_t_Class.
Definition at line 166 of file flexio_hal.h.
Shift clock polarity options Implements : flexio_timer_polarity_t_Class.
Enumerator | |
---|---|
FLEXIO_TIMER_POLARITY_POSEDGE |
Shift on positive edge of Shift clock |
FLEXIO_TIMER_POLARITY_NEGEDGE |
Shift on negative edge of Shift clock |
Definition at line 76 of file flexio_hal.h.
enum flexio_timer_reset_t |
Timer reset options Implements : flexio_timer_reset_t_Class.
Definition at line 188 of file flexio_hal.h.
enum flexio_timer_start_t |
Timer start bit options Implements : flexio_timer_start_t_Class.
Enumerator | |
---|---|
FLEXIO_TIMER_START_BIT_DISABLED |
Start bit disabled. |
FLEXIO_TIMER_START_BIT_ENABLED |
Start bit enabled. |
Definition at line 262 of file flexio_hal.h.
enum flexio_timer_stop_t |
Timer stop bit options Implements : flexio_timer_stop_t_Class.
Definition at line 230 of file flexio_hal.h.
Trigger polarity Implements : flexio_trigger_polarity_t_Class.
Enumerator | |
---|---|
FLEXIO_TRIGGER_POLARITY_HIGH |
Trigger is active high |
FLEXIO_TRIGGER_POLARITY_LOW |
Trigger is active low |
Definition at line 137 of file flexio_hal.h.
Trigger sources Implements : flexio_trigger_source_t_Class.
Enumerator | |
---|---|
FLEXIO_TRIGGER_SOURCE_EXTERNAL |
External trigger selected |
FLEXIO_TRIGGER_SOURCE_INTERNAL |
Internal trigger selected |
Definition at line 146 of file flexio_hal.h.
|
inlinestatic |
Clears the error status of the specified shifter.
This function clears the error status flag for the specified shifter.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | shifter | Number of the shifter. Implements : FLEXIO_HAL_ClearShifterErrorStatus_Activity |
Definition at line 699 of file flexio_hal.h.
|
inlinestatic |
Clears the status of the specified shifter.
This function clears the status flag for the specified shifter. This is possible in all modes except Match Continuous mode.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | shifter | Number of the shifter. Implements : FLEXIO_HAL_ClearShifterStatus_Activity |
Definition at line 635 of file flexio_hal.h.
|
inlinestatic |
Clears the status of the specified timer.
This function clears the status flag for the specified timer.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | timer | Number of the timer. Implements : FLEXIO_HAL_ClearTimerStatus_Activity |
Definition at line 767 of file flexio_hal.h.
|
inlinestatic |
Returns the current status of all the shifter error interrupts.
Returns the state of the error interrupt for all shifters. Each bit in the returned value specifies the interrupt state for one shifter, starting with shifter 0 from least significant bit.
[in] | baseAddr | Base address of the FlexIO module. |
Definition at line 874 of file flexio_hal.h.
|
inlinestatic |
Returns the current error status for all shifters.
This function returns the value of the error status flags for all shifters. Each bit in the returned value specifies the error status for one shifter, starting with shifter 0 from least significant bit. The meaning of the error status flag depends on the current mode.
[in] | baseAddr | Base address of the FlexIO module. |
Definition at line 684 of file flexio_hal.h.
|
inlinestatic |
Returns the current status of all the shifter interrupts.
Returns the state of the interrupt for all shifters. Each bit in the returned value specifies the interrupt state for one shifter, starting with shifter 0 from least significant bit.
[in] | baseAddr | Base address of the FlexIO module. |
Definition at line 806 of file flexio_hal.h.
|
inlinestatic |
Returns the current status flags for all shifters.
This function returns the value of the status flags for all shifters. Each bit in the returned value specifies the status for one shifter, starting with shifter 0 from least significant bit. The meaning of the status flag depends on the current mode.
[in] | baseAddr | Base address of the FlexIO module. |
Definition at line 619 of file flexio_hal.h.
|
inlinestatic |
Returns the current status of all the timer interrupts.
Returns the state of the interrupt for all timers. Each bit in the returned value specifies the interrupt state for one timer, starting with timer 0 from least significant bit.
[in] | baseAddr | Base address of the FlexIO module. |
Definition at line 942 of file flexio_hal.h.
|
inlinestatic |
Returns the current status of all timers.
This function returns the value of the status flags for all timers. Each bit in the returned value specifies the status for one timer, starting with timer 0 from least significant bit. The meaning of the status flag depends on the current mode.
[in] | baseAddr | Base address of the FlexIO module. |
Definition at line 752 of file flexio_hal.h.
|
inlinestatic |
Returns the current debug mode setting.
This function returns the current debug mode setting for the FlexIO module
[in] | baseAddr | Base address of the FlexIO module |
Definition at line 423 of file flexio_hal.h.
|
inlinestatic |
Returns the current doze mode setting.
This function returns the current doze mode setting for the FlexIO module
[in] | baseAddr | Base address of the FlexIO module |
Definition at line 388 of file flexio_hal.h.
|
inlinestatic |
Returns the current enable/disable setting of the FlexIO.
This function checks whether or not the FlexIO module is enabled.
[in] | baseAddr | Base address of the FlexIO module |
Definition at line 534 of file flexio_hal.h.
|
inlinestatic |
Returns the current fast access setting.
This function returns the current fast access setting for the FlexIO module. Fast access allows faster accesses to FlexIO registers, but requires the FlexIO clock to be at least twice the frequency of the bus clock.
[in] | baseAddr | Base address of the FlexIO module |
Definition at line 460 of file flexio_hal.h.
|
inlinestatic |
Returns the current input data read from the FlexIO pins.
This function returns the data read from all the FLEXIO pins. Only the lower n bits are valid, where n is the number of pins returned by FLEXIO_HAL_GetPinNum().
[in] | baseAddr | Base address of the FlexIO module. |
Definition at line 570 of file flexio_hal.h.
|
inlinestatic |
Returns the number of pins of the FlexIO module.
This function returns the number of pins of the FlexIO module
[in] | baseAddr | Base address of the FlexIO module |
Definition at line 337 of file flexio_hal.h.
|
inlinestatic |
Returns the current status of the shifter DMA requests.
Returns the state of the DMA request for the specified shifter.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | requestNo | Number of the DMA request. |
Definition at line 989 of file flexio_hal.h.
|
inlinestatic |
Returns the current status of the shifter error interrupts.
Returns the state of the error interrupt for the specified shifter.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | interruptNo | Number of the interrupt. |
Definition at line 853 of file flexio_hal.h.
|
inlinestatic |
Returns the current error status of the specified shifter.
This function returns the value of the error status flag for the specified shifter. The meaning of the error status flag depends on the current mode.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | shifter | Number of the shifter. |
Definition at line 658 of file flexio_hal.h.
|
inlinestatic |
Returns the input source of the specified shifter.
This function returns the input source of the specified shifter.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | shifter | Number of the shifter. |
Definition at line 1256 of file flexio_hal.h.
|
inlinestatic |
Returns the current status of the shifter interrupts.
Returns the state of the interrupt for the specified shifter.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | interruptNo | Number of the interrupt (shifter). |
Definition at line 785 of file flexio_hal.h.
|
inlinestatic |
Returns the mode of the specified shifter.
This function returns the currently configured mode for the specified shifter.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | shifter | Number of the shifter. |
Definition at line 1178 of file flexio_hal.h.
|
inlinestatic |
Returns the number of shifters of the FlexIO module.
This function returns the number of shifters of the FlexIO module
[in] | baseAddr | Base address of the FlexIO module |
Definition at line 371 of file flexio_hal.h.
|
inlinestatic |
Returns the pin currently assigned to the specified shifter, and its configured settings.
This function returns the pin currently assigned to the specified shifter, and also its polarity and configuration.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | shifter | Number of the shifter. |
[out] | pin | Number of the pin. |
[out] | polarity | Polarity of the pin. |
[out] | config | Pin configuration. Implements : FLEXIO_HAL_GetShifterPin_Activity |
Definition at line 1096 of file flexio_hal.h.
|
inlinestatic |
Returns the start bit configuration for the specified shifter.
This function returns the current configuration for sending or receiving a start bit in Transmit, Receive or Match Store modes.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | shifter | Number of the shifter. |
Definition at line 1347 of file flexio_hal.h.
|
inlinestatic |
Returns the current status of the specified shifter.
This function returns the value of the status flag for the specified shifter. The meaning of the status flag depends on the current mode.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | shifter | Number of the shifter. |
Definition at line 593 of file flexio_hal.h.
|
inlinestatic |
Returns the stop bit configuration for the specified shifter.
This function returns the current configuration for sending or receiving a stop bit in Transmit, Receive or Match Store modes.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | shifter | Number of the shifter. |
Definition at line 1302 of file flexio_hal.h.
|
inlinestatic |
Returns the timer currently assigned to control the specified shifter.
This function returns the timer currently assigned to control the specified shifter, and also its polarity.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | shifter | Number of the shifter. |
[out] | timer | Number of the timer. |
[out] | polarity | Polarity of the timer. Implements : FLEXIO_HAL_GetShifterTimer_Activity |
Definition at line 1041 of file flexio_hal.h.
|
inlinestatic |
Returns the current software reset state.
This function returns the state of the FlexIO software reset bit.
[in] | baseAddr | Base address of the FlexIO module |
Definition at line 497 of file flexio_hal.h.
|
inlinestatic |
Returns the compare value of the specified timer.
This function returns the compare value currently set for the specified timer.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | timer | Number of the timer. |
Definition at line 2091 of file flexio_hal.h.
|
inlinestatic |
Returns the decrement configuration of the specified timer.
This function returns the decrement configuration for the specified timer. See description of type flexio_timer_decrement_t for a list of options.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | timer | Number of the timer. |
Definition at line 1765 of file flexio_hal.h.
|
inlinestatic |
Returns the disable configuration of the specified timer.
This function returns the condition that cause the specified timer to be disabled. See description of type flexio_timer_disable_t for a list of options.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | timer | Number of the timer. |
Definition at line 1859 of file flexio_hal.h.
|
inlinestatic |
Returns the enable condition configuration of the specified timer.
This function returns the condition that cause the specified timer to be enabled and start decrementing. See description of type flexio_timer_disable_t for a list of options.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | timer | Number of the timer. |
Definition at line 1905 of file flexio_hal.h.
|
inlinestatic |
Returns the initial output configuration of the specified timer.
This function returns the initial output configuration of the specified timer.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | timer | Number of the timer. |
Definition at line 1720 of file flexio_hal.h.
|
inlinestatic |
Returns the current status of the timer interrupts.
Returns the state of the interrupt for the specified timer.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | interruptNo | Number of the interrupt. |
Definition at line 921 of file flexio_hal.h.
|
inlinestatic |
Returns the mode of the specified timer.
This function returns the currently configured mode for the specified timer.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | timer | Number of the timer. |
Definition at line 1629 of file flexio_hal.h.
|
inlinestatic |
Returns the number of timers of the FlexIO module.
This function returns the number of timers of the FlexIO module
[in] | baseAddr | Base address of the FlexIO module |
Definition at line 354 of file flexio_hal.h.
|
inlinestatic |
Returns the currently configured pin for the specified timer.
This function returns the pin currently assigned to the specified timer, and also its polarity and configuration.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | timer | Number of the timer. |
[out] | pin | Number of the pin. |
[out] | polarity | Polarity of the pin. |
[out] | config | Pin configuration. Implements : FLEXIO_HAL_GetTimerPin_Activity |
Definition at line 1571 of file flexio_hal.h.
|
inlinestatic |
Returns the reset configuration of the specified timer.
This function returns the reset configuration for the specified timer. See description of type flexio_timer_reset_t for a list of options.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | timer | Number of the timer. |
Definition at line 1811 of file flexio_hal.h.
|
inlinestatic |
Returns the start bit configuration of the specified timer.
This function returns the current start bit configuration for the specified timer. When start bit is enabled, configured shifters will output the contents of the start bit when the timer is enabled and the timer counter will reload from the compare register on the first rising edge of the shift clock.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | timer | Number of the timer. |
Definition at line 2006 of file flexio_hal.h.
|
inlinestatic |
Returns the current status of the specified timer.
This function returns the value of the status flag for the specified timer. The meaning of the status flag depends on the current mode.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | timer | Number of the timer. |
Definition at line 724 of file flexio_hal.h.
|
inlinestatic |
Returns the stop bit configuration of the specified timer.
This function returns the current stop bit configuration for the specified timer. The stop bit can be added on a timer compare (between each word) or on a timer disable. When stop bit is enabled, configured shifters will output the contents of the stop bit when the timer is disabled. When stop bit is enabled on timer disable, the timer remains disabled until the next rising edge of the shift clock. If configured for both timer compare and timer disable, only one stop bit is inserted on timer disable.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | timer | Number of the timer. |
Definition at line 1955 of file flexio_hal.h.
|
inlinestatic |
Returns the currently configured trigger for the specified timer.
This function returns the currently configured trigger for the specified timer, and also its source (internal or external) and polarity settings.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | timer | Number of the timer. |
[out] | trigger | Number of the trigger. |
[out] | polarity | Polarity of the trigger. |
[out] | source | Trigger source. Implements : FLEXIO_HAL_GetTimerTrigger_Activity |
Definition at line 1506 of file flexio_hal.h.
|
inlinestatic |
Returns the number of external triggers of the FlexIO module.
This function returns the number of external triggers of the FlexIO module
[in] | baseAddr | Base address of the FlexIO module |
Definition at line 320 of file flexio_hal.h.
|
inlinestatic |
Reads the version of the FlexIO module.
This function reads the version number of the FLEXIO hardware module
[in] | baseAddr | Base address of the FlexIO module |
[out] | versionInfo | Device Version Number Implements : FLEXIO_HAL_GetVersion_Activity |
Definition at line 301 of file flexio_hal.h.
void FLEXIO_HAL_Init | ( | FLEXIO_Type * | baseAddr | ) |
Initializes the FlexIO module to a known state.
This function initializes all the registers of the FlexIO module to their reset value.
[in] | baseAddr | Base address of the FlexIO module. |
Definition at line 42 of file flexio_hal.c.
|
inlinestatic |
Reads the value from the specified shifter buffer.
This function reads data from the specified shifter buffer. The data can be read in any of the four ways allowed by the hardware - see description of type flexio_shifter_buffer_mode_t for details.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | shifter | Number of the shifter. |
[in] | mode | Read mode. |
Definition at line 1421 of file flexio_hal.h.
|
inlinestatic |
Set the FlexIO module behavior in debug mode.
This function enables of disables FlexIO functionality in debug mode.
[in] | baseAddr | Base address of the FlexIO module |
[in] | enable | Specifies whether to enable or disable FlexIO in debug mode Implements : FLEXIO_HAL_SetDebugMode_Activity |
Definition at line 440 of file flexio_hal.h.
|
inlinestatic |
Set the FlexIO module behavior in doze mode.
This function enables of disables FlexIO functionality in doze mode.
[in] | baseAddr | Base address of the FlexIO module |
[in] | enable | Specifies whether to enable or disable FlexIO in doze mode Implements : FLEXIO_HAL_SetDozeMode_Activity |
Definition at line 405 of file flexio_hal.h.
|
inlinestatic |
Enables of disables the FlexIO module.
This function enables or disables the FlexIO module.
[in] | baseAddr | Base address of the FlexIO module |
[in] | enable | Specifies the enable/disable state of the FlexIO module Implements : FLEXIO_HAL_SetEnable_Activity |
Definition at line 551 of file flexio_hal.h.
|
inlinestatic |
Configure the FlexIO fast access feature.
This function enables of disables the fast access feature for the FlexIO module. Fast access allows faster accesses to FlexIO registers, but requires the FlexIO clock to be at least twice the frequency of the bus clock.
[in] | baseAddr | Base address of the FlexIO module |
[in] | enable | Enables fast register accesses to FlexIO registers Implements : FLEXIO_HAL_SetFastAccess_Activity |
Definition at line 479 of file flexio_hal.h.
|
inlinestatic |
Sets all configuration settings for specified shifter.
This function sets the following configurations for the specified shifter: start bit, stop bit, input source
[in] | baseAddr | Base address of the FlexIO module. |
[in] | shifter | Number of the shifter. |
[in] | start | Start bit configuration for the shifter. |
[in] | stop | Stop bit configuration for the shifter. |
[in] | source | Input source selected for the shifter. Implements : FLEXIO_HAL_SetShifterConfig_Activity |
Definition at line 1396 of file flexio_hal.h.
|
inlinestatic |
Sets all control settings for the specified shifter.
This function configures the control settings for the specified shifter: mode settings, pin settings and timer settings. It sums up all settings from FLEXIO_HAL_SetShifterMode(), FLEXIO_HAL_SetShifterPin() and FLEXIO_HAL_SetShifterTimer()
[in] | baseAddr | Base address of the FlexIO module. |
[in] | shifter | Number of the shifter. |
[in] | mode | Mode assigned to the shifter. |
[in] | pin | Number of the pin. |
[in] | pinPolarity | Polarity of the pin. |
[in] | pinConfig | Pin configuration. |
[in] | timer | Number of the timer. |
[in] | timerPolarity | Polarity of the timer. Implements : FLEXIO_HAL_SetShifterControl_Activity |
Definition at line 1228 of file flexio_hal.h.
|
inlinestatic |
Enables or disables the shifter DMA requests.
Enable or disable specified shifter DMA requests. The request mask must contain a bit of 1 for each shifter who's DMA requests must be enabled or disabled.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | requestMask | Mask of the DMA requests to be enabled/disabled. |
[in] | enable | Specifies whether to enable or disable specified DMA requests. Implements : FLEXIO_HAL_SetShifterDMARequest_Activity |
Definition at line 1010 of file flexio_hal.h.
|
inlinestatic |
Enables or disables the shifter error interrupts.
Enable or disable specified shifter error interrupts. The interrupt mask must contain a bit of 1 for each shifter who's error interrupt must be enabled or disabled.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | interruptMask | Mask of the interrupts to be enabled/disabled. |
[in] | enable | Specifies whether to enable or disable specified interrupts. Implements : FLEXIO_HAL_SetShifterErrorInterrupt_Activity |
Definition at line 891 of file flexio_hal.h.
|
inlinestatic |
Configures the input source of the specified shifter.
This function configures the input source of the specified shifter.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | shifter | Number of the shifter. |
[in] | source | Input source selected for the shifter. Implements : FLEXIO_HAL_SetShifterInputSource_Activity |
Definition at line 1277 of file flexio_hal.h.
|
inlinestatic |
Enables or disables the shifter interrupts.
Enable or disable specified shifter interrupts. The interrupt mask must contain a bit of 1 for each shifter who's interrupt must be enabled or disabled.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | interruptMask | Mask of the interrupts to be enabled/disabled. |
[in] | enable | Specifies whether to enable or disable specified interrupts. Implements : FLEXIO_HAL_SetShifterInterrupt_Activity |
Definition at line 823 of file flexio_hal.h.
|
inlinestatic |
Sets the mode of the specified shifter.
This function configures the mode for the specified shifter.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | shifter | Number of the shifter. |
[in] | mode | Mode assigned to the shifter. Implements : FLEXIO_HAL_SetShifterMode_Activity |
Definition at line 1198 of file flexio_hal.h.
|
inlinestatic |
Assigns the specified pin to the specified shifter.
This function assigns the specified pin to the specified shifter, and also sets its polarity and configuration.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | shifter | Number of the shifter. |
[in] | pin | Number of the pin. |
[in] | polarity | Polarity of the pin. |
[in] | config | Pin configuration. Implements : FLEXIO_HAL_SetShifterPin_Activity |
Definition at line 1124 of file flexio_hal.h.
|
inlinestatic |
Configures the pin assigned to the specified shifter.
This function configures the pin assigned to the specified specified shifter. It does not change the other pin-related settings.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | shifter | Number of the shifter. |
[in] | config | Pin configuration. Implements : FLEXIO_HAL_SetShifterPinConfig_Activity |
Definition at line 1155 of file flexio_hal.h.
|
inlinestatic |
Configures the start bit of the specified shifter.
This function configures the sending or receiving of a start bit in Transmit, Receive or Match Store modes.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | shifter | Number of the shifter. |
[in] | start | Start bit configuration for the shifter. Implements : FLEXIO_HAL_SetShifterStartBit_Activity |
Definition at line 1369 of file flexio_hal.h.
|
inlinestatic |
Configures the stop bit of the specified shifter.
This function configures the sending or receiving of a stop bit in Transmit, Receive or Match Store modes.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | shifter | Number of the shifter. |
[in] | stop | Stop bit configuration for the shifter. Implements : FLEXIO_HAL_SetShifterStopBit_Activity |
Definition at line 1324 of file flexio_hal.h.
|
inlinestatic |
Assigns the specified timer to control the specified shifter.
This function assigns a timer to control the specified shifter, and also configures its polarity.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | shifter | Number of the shifter. |
[in] | timer | Number of the timer. |
[in] | polarity | Polarity of the timer. Implements : FLEXIO_HAL_SetShifterTimer_Activity |
Definition at line 1066 of file flexio_hal.h.
|
inlinestatic |
Set/clear the FlexIO reset command.
Calling this function with enable parameter set to true resets all internal master logic and registers, except the FlexIO Control Register. The reset state persists until this function is called with enable parameter set to false.
[in] | baseAddr | Base address of the FlexIO module |
[in] | enable | Specifies the reset state of the FlexIO logic Implements : FLEXIO_HAL_SetSoftwareReset_Activity |
Definition at line 516 of file flexio_hal.h.
|
inlinestatic |
Configures the compare value for the specified timer.
This function configures the compare value for the specified timer. The timer compare value is loaded into the timer counter when the timer is first enabled, when the timer is reset and when the timer decrements down to zero. In dual 8-bit counters baud/bit mode, the lower 8-bits configure the baud rate divider and the upper 8-bits configure the number of bits in each word. In dual 8-bit counters PWM mode, the lower 8-bits configure the high period of the output and the upper 8-bits configure the low period. In 16-bit counter mode, the compare value can be used to generate the baud rate divider (if shift clock source is timer output) or the number of bits in each word (when the shift clock source is a pin or trigger input).
[in] | baseAddr | Base address of the FlexIO module. |
[in] | timer | Number of the timer. |
[in] | value | Compare value for the specified timer. Implements : FLEXIO_HAL_SetTimerCompare_Activity |
Definition at line 2118 of file flexio_hal.h.
|
inlinestatic |
Sets all configuration settings for specified timer.
This function sets the following configurations for the specified timer: start bit, stop bit, enable condition, disable condition, reset condition, decrement condition, initial output
[in] | baseAddr | Base address of the FlexIO module. |
[in] | timer | Number of the timer. |
[in] | start | Start bit configuration for the timer. |
[in] | stop | Stop bit configuration for the timer. |
[in] | enable | Enable condition configuration for the timer. |
[in] | disable | Disable configuration for the timer. |
[in] | reset | Reset configuration for the timer. |
[in] | decrement | Decrement configuration for the timer. |
[in] | output | Output configuration for the timer. Implements : FLEXIO_HAL_SetTimerConfig_Activity |
Definition at line 2060 of file flexio_hal.h.
|
inlinestatic |
Sets all control settings for specified timer.
This function configures the control settings for the specified timer: mode settings, pin settings and trigger settings. It sums up all settings from FLEXIO_HAL_SetTimerMode(), FLEXIO_HAL_SetTimerPin() and FLEXIO_HAL_SetTimerTrigger()
[in] | baseAddr | Base address of the FlexIO module. |
[in] | timer | Number of the timer. |
[in] | trigger | Number of the trigger. |
[in] | triggerPolarity | Polarity of the trigger. |
[in] | triggerSource | Trigger source. |
[in] | pin | Number of the pin. |
[in] | pinPolarity | Polarity of the pin. |
[in] | pinConfig | Pin configuration. |
[in] | mode | Mode assigned to the timer. Implements : FLEXIO_HAL_SetTimerControl_Activity |
Definition at line 1689 of file flexio_hal.h.
|
inlinestatic |
Configures the decrement condition for the specified timer.
This function configures the decrement condition for the specified timer and the source of the shift clock. See description of type flexio_timer_decrement_t for a list of options.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | timer | Number of the timer. |
[in] | decrement | Decrement configuration for the timer. Implements : FLEXIO_HAL_SetTimerDecrement_Activity |
Definition at line 1787 of file flexio_hal.h.
|
inlinestatic |
Configures the disable condition for the specified timer.
This function configures the condition that cause the specified timer to be disabled. See description of type flexio_timer_disable_t for a list of options.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | timer | Number of the timer. |
[in] | disable | Disable configuration for the timer. Implements : FLEXIO_HAL_SetTimerDisable_Activity |
Definition at line 1880 of file flexio_hal.h.
|
inlinestatic |
Configures the enable condition for the specified timer.
This function configures the condition that cause the specified timer to be enabled and start decrementing. See description of type flexio_timer_disable_t for a list of options.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | timer | Number of the timer. |
[in] | enable | Enable condition configuration for the timer. Implements : FLEXIO_HAL_SetTimerEnable_Activity |
Definition at line 1927 of file flexio_hal.h.
|
inlinestatic |
Configures the initial output of the specified timer.
This function configures the initial output of the specified timer and whether it is affected by the Timer reset.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | timer | Number of the timer. |
[in] | output | Output configuration for the timer. Implements : FLEXIO_HAL_SetTimerInitialOutput_Activity |
Definition at line 1741 of file flexio_hal.h.
|
inlinestatic |
Enables or disables the timer interrupts.
Enable or disable specified timer interrupts. The interrupt mask must contain a bit of 1 for each timer who's interrupt must be enabled or disabled.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | interruptMask | Mask of the interrupts to be enabled/disabled. |
[in] | enable | Specifies whether to enable or disable specified interrupts. Implements : FLEXIO_HAL_SetTimerInterrupt_Activity |
Definition at line 959 of file flexio_hal.h.
|
inlinestatic |
Sets the mode of the specified timer.
This function configures the mode for the specified timer. In 8-bit counter mode, the lower 8-bits of the counter and compare register are used to configure the baud rate of the timer shift clock and the upper 8-bits are used to configure the shifter bit count. In 8-bit PWM mode, the lower 8-bits of the counter and compare register are used to configure the high period of the timer shift clock and the upper 8-bits are used to configure the low period of the timer shift clock. The shifter bit count is configured using another timer or external signal. In 16-bit counter mode, the full 16-bits of the counter and compare register are used to configure either the baud rate of the shift clock or the shifter bit count.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | timer | Number of the timer. |
[in] | mode | Mode assigned to the timer. Implements : FLEXIO_HAL_SetTimerMode_Activity |
Definition at line 1658 of file flexio_hal.h.
|
inlinestatic |
Configures the pin for the specified timer.
This function assigns the specified pin to the specified timer, and also sets its polarity and configuration.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | timer | Number of the timer. |
[in] | pin | Number of the pin. |
[in] | polarity | Polarity of the pin. |
[in] | config | Pin configuration. Implements : FLEXIO_HAL_SetTimerPin_Activity |
Definition at line 1599 of file flexio_hal.h.
|
inlinestatic |
Configures the reset condition for the specified timer.
This function configures the conditions that cause the timer counter (and optionally output) to be reset. In 8-bit counter mode, the timer reset will only reset the lower 8-bits that configure the baud rate. In all other modes, the timer reset will reset the full 16-bits of the counter. See description of type flexio_timer_decrement_t for a list of options.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | timer | Number of the timer. |
[in] | reset | Reset configuration for the timer. Implements : FLEXIO_HAL_SetTimerReset_Activity |
Definition at line 1835 of file flexio_hal.h.
|
inlinestatic |
Configures the start bit for the specified timer.
This function configures start bit insertion for the specified timer. When start bit is enabled, configured shifters will output the contents of the start bit when the timer is enabled and the timer counter will reload from the compare register on the first rising edge of the shift clock.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | timer | Number of the timer. |
[in] | start | Start bit configuration for the timer. Implements : FLEXIO_HAL_SetTimerStart_Activity |
Definition at line 2029 of file flexio_hal.h.
|
inlinestatic |
Configures the stop bit for the specified timer.
This function configures stop bit insertion for the specified timer. The stop bit can be added on a timer compare (between each word) or on a timer disable. When stop bit is enabled, configured shifters will output the contents of the stop bit when the timer is disabled. When stop bit is enabled on timer disable, the timer remains disabled until the next rising edge of the shift clock. If configured for both timer compare and timer disable, only one stop bit is inserted on timer disable.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | timer | Number of the timer. |
[in] | stop | Stop bit configuration for the timer. Implements : FLEXIO_HAL_SetTimerStop_Activity |
Definition at line 1980 of file flexio_hal.h.
|
inlinestatic |
Configures the trigger for the specified timer.
This function configures the trigger for the specified timer, and also its source (internal or external) and polarity settings. For internal triggers, the selection is as follows:
[in] | baseAddr | Base address of the FlexIO module. |
[in] | timer | Number of the timer. |
[in] | trigger | Number of the trigger. |
[in] | polarity | Polarity of the trigger. |
[in] | source | Trigger source. Implements : FLEXIO_HAL_SetTimerTrigger_Activity |
Definition at line 1539 of file flexio_hal.h.
|
inlinestatic |
Writes a value in the specified shifter buffer.
This function writes data in the specified shifter buffer. The data can be written in any of the four ways allowed by the hardware - see description of type flexio_shifter_buffer_mode_t for details.
[in] | baseAddr | Base address of the FlexIO module. |
[in] | shifter | Number of the shifter. |
[in] | value | Value to write in the shifter buffer. |
[in] | mode | Write mode. Implements : FLEXIO_HAL_WriteShifterBuffer_Activity |
Definition at line 1465 of file flexio_hal.h.