S32 SDK

Detailed Description

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...
 

Enumerations

enum  flexio_timer_polarity_t { FLEXIO_TIMER_POLARITY_POSEDGE = 0x00U, FLEXIO_TIMER_POLARITY_NEGEDGE = 0x01U }
 Shift clock polarity options Implements : flexio_timer_polarity_t_Class. More...
 
enum  flexio_pin_polarity_t { FLEXIO_PIN_POLARITY_HIGH = 0x00U, FLEXIO_PIN_POLARITY_LOW = 0x01U }
 Pin polarity options Implements : flexio_pin_polarity_t_Class. More...
 
enum  flexio_pin_config_t { FLEXIO_PIN_CONFIG_DISABLED = 0x00U, FLEXIO_PIN_CONFIG_OPEN_DRAIN = 0x01U, FLEXIO_PIN_CONFIG_BIDIR_OUTPUT = 0x02U, FLEXIO_PIN_CONFIG_OUTPUT = 0x03U }
 Pin configuration options Implements : flexio_pin_config_t_Class. More...
 
enum  flexio_shifter_mode_t {
  FLEXIO_SHIFTER_MODE_DISABLED = 0x00U, FLEXIO_SHIFTER_MODE_RECEIVE = 0x01U, FLEXIO_SHIFTER_MODE_TRANSMIT = 0x02U, FLEXIO_SHIFTER_MODE_MATCH_STORE = 0x04U,
  FLEXIO_SHIFTER_MODE_MATCH_CONTINUOUS = 0x05U
}
 Shifter mode options Implements : flexio_shifter_mode_t_Class. More...
 
enum  flexio_shifter_source_t { FLEXIO_SHIFTER_SOURCE_PIN = 0x00U, FLEXIO_SHIFTER_SOURCE_SHIFTER = 0x01U }
 Shifter input source options Implements : flexio_shifter_source_t_Class. More...
 
enum  flexio_shifter_buffer_mode_t { FLEXIO_SHIFTER_RW_MODE_NORMAL = 0x00U, FLEXIO_SHIFTER_RW_MODE_BIT_SWAP = 0x01U, FLEXIO_SHIFTER_RW_MODE_BYTE_SWAP = 0x02U, FLEXIO_SHIFTER_RW_MODE_BB_SWAP = 0x03U }
 Read/Write mode for shifter buffer Implements : flexio_shifter_buffer_mode_t_Class. More...
 
enum  flexio_trigger_polarity_t { FLEXIO_TRIGGER_POLARITY_HIGH = 0x00U, FLEXIO_TRIGGER_POLARITY_LOW = 0x01U }
 Trigger polarity Implements : flexio_trigger_polarity_t_Class. More...
 
enum  flexio_trigger_source_t { FLEXIO_TRIGGER_SOURCE_EXTERNAL = 0x00U, FLEXIO_TRIGGER_SOURCE_INTERNAL = 0x01U }
 Trigger sources Implements : flexio_trigger_source_t_Class. More...
 
enum  flexio_timer_mode_t { FLEXIO_TIMER_MODE_DISABLED = 0x00U, FLEXIO_TIMER_MODE_8BIT_BAUD = 0x01U, FLEXIO_TIMER_MODE_8BIT_PWM = 0x02U, FLEXIO_TIMER_MODE_16BIT = 0x03U }
 Timer mode options Implements : flexio_timer_mode_t_Class. More...
 
enum  flexio_timer_output_t { FLEXIO_TIMER_INITOUT_ONE = 0x00U, FLEXIO_TIMER_INITOUT_ZERO = 0x01U, FLEXIO_TIMER_INITOUT_ONE_RESET = 0x02U, FLEXIO_TIMER_INITOUT_ZERO_RESET = 0x03U }
 Timer initial output options Implements : flexio_timer_output_t_Class. More...
 
enum  flexio_timer_decrement_t { FLEXIO_TIMER_DECREMENT_CLK_SHIFT_TMR = 0x00U, FLEXIO_TIMER_DECREMENT_TRG_SHIFT_TMR = 0x01U, FLEXIO_TIMER_DECREMENT_PIN_SHIFT_PIN = 0x02U, FLEXIO_TIMER_DECREMENT_TRG_SHIFT_TRG = 0x03U }
 Timer decrement options Implements : flexio_timer_decrement_t_Class. More...
 
enum  flexio_timer_reset_t {
  FLEXIO_TIMER_RESET_NEVER = 0x00U, FLEXIO_TIMER_RESET_PIN_OUT = 0x02U, FLEXIO_TIMER_RESET_TRG_OUT = 0x03U, FLEXIO_TIMER_RESET_PIN_RISING = 0x04U,
  FLEXIO_TIMER_RESET_TRG_RISING = 0x06U, FLEXIO_TIMER_RESET_TRG_BOTH = 0x07U
}
 Timer reset options Implements : flexio_timer_reset_t_Class. More...
 
enum  flexio_timer_disable_t {
  FLEXIO_TIMER_DISABLE_NEVER = 0x00U, FLEXIO_TIMER_DISABLE_TIM_DISABLE = 0x01U, FLEXIO_TIMER_DISABLE_TIM_CMP = 0x02U, FLEXIO_TIMER_DISABLE_TIM_CMP_TRG_LOW = 0x03U,
  FLEXIO_TIMER_DISABLE_PIN = 0x04U, FLEXIO_TIMER_DISABLE_PIN_TRG_HIGH = 0x05U, FLEXIO_TIMER_DISABLE_TRG = 0x06U
}
 Timer disable options Implements : flexio_timer_disable_t_Class. More...
 
enum  flexio_timer_enable_t {
  FLEXIO_TIMER_ENABLE_ALWAYS = 0x00U, FLEXIO_TIMER_ENABLE_TIM_ENABLE = 0x01U, FLEXIO_TIMER_ENABLE_TRG_HIGH = 0x02U, FLEXIO_TIMER_ENABLE_TRG_PIN_HIGH = 0x03U,
  FLEXIO_TIMER_ENABLE_PIN_POSEDGE = 0x04U, FLEXIO_TIMER_ENABLE_PIN_POSEDGE_TRG_HIGH = 0x05U, FLEXIO_TIMER_ENABLE_TRG_POSEDGE = 0x06U, FLEXIO_TIMER_ENABLE_TRG_EDGE = 0x07U
}
 Timer disable options Implements : flexio_timer_enable_t_Class. More...
 
enum  flexio_timer_stop_t { FLEXIO_TIMER_STOP_BIT_DISABLED = 0x00U, FLEXIO_TIMER_STOP_BIT_TIM_CMP = 0x01U, FLEXIO_TIMER_STOP_BIT_TIM_DIS = 0x02U, FLEXIO_TIMER_STOP_BIT_TIM_CMP_DIS = 0x03U }
 Timer stop bit options Implements : flexio_timer_stop_t_Class. More...
 
enum  flexio_shifter_stop_t { FLEXIO_SHIFTER_STOP_BIT_DISABLED = 0x00U, FLEXIO_SHIFTER_STOP_BIT_0 = 0x02U, FLEXIO_SHIFTER_STOP_BIT_1 = 0x03U }
 Timer stop bit options - for Transmit, Receive or Match Store modes only Implements : flexio_shifter_stop_t_Class. More...
 
enum  flexio_shifter_start_t { FLEXIO_SHIFTER_START_BIT_DISABLED = 0x00U, FLEXIO_SHIFTER_START_BIT_DISABLED_SH = 0x01U, FLEXIO_SHIFTER_START_BIT_0 = 0x02U, FLEXIO_SHIFTER_START_BIT_1 = 0x03U }
 Timer start bit options - for Transmit, Receive or Match Store modes only Implements : flexio_shifter_start_t_Class. More...
 
enum  flexio_timer_start_t { FLEXIO_TIMER_START_BIT_DISABLED = 0x00U, FLEXIO_TIMER_START_BIT_ENABLED = 0x01U }
 Timer start bit options Implements : flexio_timer_start_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...
 

Enumeration Type Documentation

Pin configuration options Implements : flexio_pin_config_t_Class.

Enumerator
FLEXIO_PIN_CONFIG_DISABLED 

Shifter pin output disabled

FLEXIO_PIN_CONFIG_OPEN_DRAIN 

Shifter pin open drain or bidirectional output enable

FLEXIO_PIN_CONFIG_BIDIR_OUTPUT 

Shifter pin bidirectional output data

FLEXIO_PIN_CONFIG_OUTPUT 

Shifter pin output

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.

Enumerator
FLEXIO_SHIFTER_RW_MODE_NORMAL 

Normal shifter buffer read/write

FLEXIO_SHIFTER_RW_MODE_BIT_SWAP 

Data is bit-swapped

FLEXIO_SHIFTER_RW_MODE_BYTE_SWAP 

Data is byte-swapped

FLEXIO_SHIFTER_RW_MODE_BB_SWAP 

Data in each byte is bit-swapped

Definition at line 126 of file flexio_hal.h.

Shifter mode options Implements : flexio_shifter_mode_t_Class.

Enumerator
FLEXIO_SHIFTER_MODE_DISABLED 

Shifter disabled

FLEXIO_SHIFTER_MODE_RECEIVE 

Receive mode

FLEXIO_SHIFTER_MODE_TRANSMIT 

Transmit mode

FLEXIO_SHIFTER_MODE_MATCH_STORE 

Match Store mode

FLEXIO_SHIFTER_MODE_MATCH_CONTINUOUS 

Match Continuous mode

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.

Enumerator
FLEXIO_SHIFTER_START_BIT_DISABLED 

Start bit disabled, transmitter loads data on enable

FLEXIO_SHIFTER_START_BIT_DISABLED_SH 

Start bit disabled, transmitter loads data on first shift

FLEXIO_SHIFTER_START_BIT_0 

Transmit/expect start bit value 0

FLEXIO_SHIFTER_START_BIT_1 

Transmit/expect start bit value 1

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.

Enumerator
FLEXIO_TIMER_DECREMENT_CLK_SHIFT_TMR 

Decrement counter on FlexIO clock, Shift clock equals Timer output.

FLEXIO_TIMER_DECREMENT_TRG_SHIFT_TMR 

Decrement counter on Trigger input (both edges), Shift clock equals Timer output.

FLEXIO_TIMER_DECREMENT_PIN_SHIFT_PIN 

Decrement counter on Pin input (both edges), Shift clock equals Pin input.

FLEXIO_TIMER_DECREMENT_TRG_SHIFT_TRG 

Decrement counter on Trigger input (both edges), Shift clock equals Trigger input.

Definition at line 177 of file flexio_hal.h.

Timer disable options Implements : flexio_timer_disable_t_Class.

Enumerator
FLEXIO_TIMER_DISABLE_NEVER 

Timer never disabled.

FLEXIO_TIMER_DISABLE_TIM_DISABLE 

Timer disabled on Timer N-1 disable.

FLEXIO_TIMER_DISABLE_TIM_CMP 

Timer disabled on Timer compare.

FLEXIO_TIMER_DISABLE_TIM_CMP_TRG_LOW 

Timer disabled on Timer compare and Trigger Low.

FLEXIO_TIMER_DISABLE_PIN 

Timer disabled on Pin rising or falling edge.

FLEXIO_TIMER_DISABLE_PIN_TRG_HIGH 

Timer disabled on Pin rising or falling edge provided Trigger is high.

FLEXIO_TIMER_DISABLE_TRG 

Timer disabled on Trigger falling edge.

Definition at line 201 of file flexio_hal.h.

Timer disable options Implements : flexio_timer_enable_t_Class.

Enumerator
FLEXIO_TIMER_ENABLE_ALWAYS 

Timer always enabled.

FLEXIO_TIMER_ENABLE_TIM_ENABLE 

Timer enabled on Timer N-1 enable.

FLEXIO_TIMER_ENABLE_TRG_HIGH 

Timer enabled on Trigger high.

FLEXIO_TIMER_ENABLE_TRG_PIN_HIGH 

Timer enabled on Trigger high and Pin high.

FLEXIO_TIMER_ENABLE_PIN_POSEDGE 

Timer enabled on Pin rising edge.

FLEXIO_TIMER_ENABLE_PIN_POSEDGE_TRG_HIGH 

Timer enabled on Pin rising edge and Trigger high.

FLEXIO_TIMER_ENABLE_TRG_POSEDGE 

Timer enabled on Trigger rising edge.

FLEXIO_TIMER_ENABLE_TRG_EDGE 

Timer enabled on Trigger rising or falling edge.

Definition at line 215 of file flexio_hal.h.

Timer mode options Implements : flexio_timer_mode_t_Class.

Enumerator
FLEXIO_TIMER_MODE_DISABLED 

Timer Disabled.

FLEXIO_TIMER_MODE_8BIT_BAUD 

Dual 8-bit counters baud/bit mode.

FLEXIO_TIMER_MODE_8BIT_PWM 

Dual 8-bit counters PWM mode.

FLEXIO_TIMER_MODE_16BIT 

Single 16-bit counter mode.

Definition at line 155 of file flexio_hal.h.

Timer initial output options Implements : flexio_timer_output_t_Class.

Enumerator
FLEXIO_TIMER_INITOUT_ONE 

Timer output is logic one when enabled, unaffected by timer reset.

FLEXIO_TIMER_INITOUT_ZERO 

Timer output is logic zero when enabled, unaffected by timer reset.

FLEXIO_TIMER_INITOUT_ONE_RESET 

Timer output is logic one when enabled and on timer reset.

FLEXIO_TIMER_INITOUT_ZERO_RESET 

Timer output is logic zero when enabled and on timer reset.

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.

Timer reset options Implements : flexio_timer_reset_t_Class.

Enumerator
FLEXIO_TIMER_RESET_NEVER 

Timer never reset.

FLEXIO_TIMER_RESET_PIN_OUT 

Timer reset on Timer Pin equal to Timer Output.

FLEXIO_TIMER_RESET_TRG_OUT 

Timer reset on Timer Trigger equal to Timer Output.

FLEXIO_TIMER_RESET_PIN_RISING 

Timer reset on Timer Pin rising edge.

FLEXIO_TIMER_RESET_TRG_RISING 

Timer reset on Trigger rising edge.

FLEXIO_TIMER_RESET_TRG_BOTH 

Timer reset on Trigger rising or falling edge.

Definition at line 188 of file flexio_hal.h.

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.

Timer stop bit options Implements : flexio_timer_stop_t_Class.

Enumerator
FLEXIO_TIMER_STOP_BIT_DISABLED 

Stop bit disabled.

FLEXIO_TIMER_STOP_BIT_TIM_CMP 

Stop bit is enabled on timer compare.

FLEXIO_TIMER_STOP_BIT_TIM_DIS 

Stop bit is enabled on timer disable.

FLEXIO_TIMER_STOP_BIT_TIM_CMP_DIS 

Stop bit is enabled on timer compare and disable.

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.

Function Documentation

static void FLEXIO_HAL_ClearShifterErrorStatus ( FLEXIO_Type baseAddr,
uint8_t  shifter 
)
inlinestatic

Clears the error status of the specified shifter.

This function clears the error status flag for the specified shifter.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]shifterNumber of the shifter. Implements : FLEXIO_HAL_ClearShifterErrorStatus_Activity

Definition at line 699 of file flexio_hal.h.

static void FLEXIO_HAL_ClearShifterStatus ( FLEXIO_Type baseAddr,
uint8_t  shifter 
)
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.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]shifterNumber of the shifter. Implements : FLEXIO_HAL_ClearShifterStatus_Activity

Definition at line 635 of file flexio_hal.h.

static void FLEXIO_HAL_ClearTimerStatus ( FLEXIO_Type baseAddr,
uint8_t  timer 
)
inlinestatic

Clears the status of the specified timer.

This function clears the status flag for the specified timer.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]timerNumber of the timer. Implements : FLEXIO_HAL_ClearTimerStatus_Activity

Definition at line 767 of file flexio_hal.h.

static uint32_t FLEXIO_HAL_GetAllShifterErrorInterrupt ( const FLEXIO_Type baseAddr)
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.

Parameters
[in]baseAddrBase address of the FlexIO module.
Returns
Status of the interrupts. Implements : FLEXIO_HAL_GetAllShifterErrorInterrupt_Activity

Definition at line 874 of file flexio_hal.h.

static uint32_t FLEXIO_HAL_GetAllShifterErrorStatus ( const FLEXIO_Type baseAddr)
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.

  • Transmit mode: shifter buffer was not written before it was transferred in the shifter (buffer overrun)
  • Receive mode: shifter buffer was not read before new data was transferred from the shifter (buffer underrun)
  • Match Store mode: match event occurred before the previous match data was read from shifter buffer (buffer overrun)
  • Match Continuous mode: match occurred between shifter buffer and shifter
Parameters
[in]baseAddrBase address of the FlexIO module.
Returns
Error status of the shifters. Implements : FLEXIO_HAL_GetAllShifterErrorStatus_Activity

Definition at line 684 of file flexio_hal.h.

static uint32_t FLEXIO_HAL_GetAllShifterInterrupt ( const FLEXIO_Type baseAddr)
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.

Parameters
[in]baseAddrBase address of the FlexIO module.
Returns
Status of the interrupts. Implements : FLEXIO_HAL_GetAllShifterInterrupt_Activity

Definition at line 806 of file flexio_hal.h.

static uint32_t FLEXIO_HAL_GetAllShifterStatus ( const FLEXIO_Type baseAddr)
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.

  • Transmit mode: shifter buffer is empty and ready to accept more data
  • Receive mode: shifter buffer is full and received data can be read from it
  • Match Store mode: match occurred between shifter buffer and shifter
  • Match Continuous mode: current match result between shifter buffer and shifter
Parameters
[in]baseAddrBase address of the FlexIO module.
Returns
Status of the shifters. Implements : FLEXIO_HAL_GetAllShifterStatus_Activity

Definition at line 619 of file flexio_hal.h.

static uint32_t FLEXIO_HAL_GetAllTimerInterrupt ( const FLEXIO_Type baseAddr)
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.

Parameters
[in]baseAddrBase address of the FlexIO module.
Returns
Status of the interrupts. Implements : FLEXIO_HAL_GetAllTimerInterrupt_Activity

Definition at line 942 of file flexio_hal.h.

static uint32_t FLEXIO_HAL_GetAllTimerStatus ( const FLEXIO_Type baseAddr)
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.

  • 8-bit counter mode: the timer status flag is set when the upper 8-bit counter equals zero and decrements. This also causes the counter to reload with the value in the compare register.
  • 8-bit PWM mode: the upper 8-bit counter equals zero and decrements. This also causes the counter to reload with the value in the compare register.
  • 16-bit counter mode: the 16-bit counter equals zero and decrements. This also causes the counter to reload with the value in the compare register.
Parameters
[in]baseAddrBase address of the FlexIO module.
Returns
Status of the timers. Implements : FLEXIO_HAL_GetAllTimerStatus_Activity

Definition at line 752 of file flexio_hal.h.

static bool FLEXIO_HAL_GetDebugMode ( const FLEXIO_Type baseAddr)
inlinestatic

Returns the current debug mode setting.

This function returns the current debug mode setting for the FlexIO module

Parameters
[in]baseAddrBase address of the FlexIO module
Returns
The current debug mode setting. Implements : FLEXIO_HAL_GetDebugMode_Activity

Definition at line 423 of file flexio_hal.h.

static bool FLEXIO_HAL_GetDozeMode ( const FLEXIO_Type baseAddr)
inlinestatic

Returns the current doze mode setting.

This function returns the current doze mode setting for the FlexIO module

Parameters
[in]baseAddrBase address of the FlexIO module
Returns
The current doze mode setting. Implements : FLEXIO_HAL_GetDozeMode_Activity

Definition at line 388 of file flexio_hal.h.

static bool FLEXIO_HAL_GetEnable ( const FLEXIO_Type baseAddr)
inlinestatic

Returns the current enable/disable setting of the FlexIO.

This function checks whether or not the FlexIO module is enabled.

Parameters
[in]baseAddrBase address of the FlexIO module
Returns
The current enable/disable setting. Implements : FLEXIO_HAL_GetEnable_Activity

Definition at line 534 of file flexio_hal.h.

static bool FLEXIO_HAL_GetFastAccess ( const FLEXIO_Type baseAddr)
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.

Parameters
[in]baseAddrBase address of the FlexIO module
Returns
The current fast access setting. Implements : FLEXIO_HAL_GetFastAccess_Activity

Definition at line 460 of file flexio_hal.h.

static uint8_t FLEXIO_HAL_GetPinData ( const FLEXIO_Type baseAddr)
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().

Parameters
[in]baseAddrBase address of the FlexIO module.
Returns
Data read from the FlexIO pins. Implements : FLEXIO_HAL_GetPinData_Activity

Definition at line 570 of file flexio_hal.h.

static uint8_t FLEXIO_HAL_GetPinNum ( const FLEXIO_Type baseAddr)
inlinestatic

Returns the number of pins of the FlexIO module.

This function returns the number of pins of the FlexIO module

Parameters
[in]baseAddrBase address of the FlexIO module
Returns
the number of pins of the FlexIO module. Implements : FLEXIO_HAL_GetPinNum_Activity

Definition at line 337 of file flexio_hal.h.

static bool FLEXIO_HAL_GetShifterDMARequest ( const FLEXIO_Type baseAddr,
uint8_t  requestNo 
)
inlinestatic

Returns the current status of the shifter DMA requests.

Returns the state of the DMA request for the specified shifter.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]requestNoNumber of the DMA request.
Returns
Status of the specified DMA request. Implements : FLEXIO_HAL_GetShifterDMARequest_Activity

Definition at line 989 of file flexio_hal.h.

static bool FLEXIO_HAL_GetShifterErrorInterrupt ( const FLEXIO_Type baseAddr,
uint8_t  interruptNo 
)
inlinestatic

Returns the current status of the shifter error interrupts.

Returns the state of the error interrupt for the specified shifter.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]interruptNoNumber of the interrupt.
Returns
Status of the specified interrupt. Implements : FLEXIO_HAL_GetShifterErrorInterrupt_Activity

Definition at line 853 of file flexio_hal.h.

static bool FLEXIO_HAL_GetShifterErrorStatus ( const FLEXIO_Type baseAddr,
uint8_t  shifter 
)
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.

  • Transmit mode: shifter buffer was not written before it was transferred in the shifter (buffer overrun)
  • Receive mode: shifter buffer was not read before new data was transferred from the shifter (buffer underrun)
  • Match Store mode: match event occurred before the previous match data was read from shifter buffer (buffer overrun)
  • Match Continuous mode: match occurred between shifter buffer and shifter
Parameters
[in]baseAddrBase address of the FlexIO module.
[in]shifterNumber of the shifter.
Returns
Error status of the specified shifter. Implements : FLEXIO_HAL_GetShifterErrorStatus_Activity

Definition at line 658 of file flexio_hal.h.

static flexio_shifter_source_t FLEXIO_HAL_GetShifterInputSource ( const FLEXIO_Type baseAddr,
uint8_t  shifter 
)
inlinestatic

Returns the input source of the specified shifter.

This function returns the input source of the specified shifter.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]shifterNumber of the shifter.
Returns
Input source selected for the shifter. Implements : FLEXIO_HAL_GetShifterInputSource_Activity

Definition at line 1256 of file flexio_hal.h.

static bool FLEXIO_HAL_GetShifterInterrupt ( const FLEXIO_Type baseAddr,
uint8_t  interruptNo 
)
inlinestatic

Returns the current status of the shifter interrupts.

Returns the state of the interrupt for the specified shifter.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]interruptNoNumber of the interrupt (shifter).
Returns
Status of the specified interrupt. Implements : FLEXIO_HAL_GetShifterInterrupt_Activity

Definition at line 785 of file flexio_hal.h.

static flexio_shifter_mode_t FLEXIO_HAL_GetShifterMode ( const FLEXIO_Type baseAddr,
uint8_t  shifter 
)
inlinestatic

Returns the mode of the specified shifter.

This function returns the currently configured mode for the specified shifter.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]shifterNumber of the shifter.
Returns
Mode assigned to the shifter. Implements : FLEXIO_HAL_GetShifterMode_Activity

Definition at line 1178 of file flexio_hal.h.

static uint8_t FLEXIO_HAL_GetShifterNum ( const FLEXIO_Type baseAddr)
inlinestatic

Returns the number of shifters of the FlexIO module.

This function returns the number of shifters of the FlexIO module

Parameters
[in]baseAddrBase address of the FlexIO module
Returns
the number of shifters of the FlexIO module. Implements : FLEXIO_HAL_GetShifterNum_Activity

Definition at line 371 of file flexio_hal.h.

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 
)
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.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]shifterNumber of the shifter.
[out]pinNumber of the pin.
[out]polarityPolarity of the pin.
[out]configPin configuration. Implements : FLEXIO_HAL_GetShifterPin_Activity

Definition at line 1096 of file flexio_hal.h.

static flexio_shifter_start_t FLEXIO_HAL_GetShifterStartBit ( const FLEXIO_Type baseAddr,
uint8_t  shifter 
)
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.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]shifterNumber of the shifter.
Returns
Start bit configuration for the shifter. Implements : FLEXIO_HAL_GetShifterStartBit_Activity

Definition at line 1347 of file flexio_hal.h.

static bool FLEXIO_HAL_GetShifterStatus ( const FLEXIO_Type baseAddr,
uint8_t  shifter 
)
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.

  • Transmit mode: shifter buffer is empty and ready to accept more data
  • Receive mode: shifter buffer is full and received data can be read from it
  • Match Store mode: match occurred between shifter buffer and shifter
  • Match Continuous mode: current match result between shifter buffer and shifter
Parameters
[in]baseAddrBase address of the FlexIO module.
[in]shifterNumber of the shifter.
Returns
Status of the specified shifter. Implements : FLEXIO_HAL_GetShifterStatus_Activity

Definition at line 593 of file flexio_hal.h.

static flexio_shifter_stop_t FLEXIO_HAL_GetShifterStopBit ( const FLEXIO_Type baseAddr,
uint8_t  shifter 
)
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.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]shifterNumber of the shifter.
Returns
Stop bit configuration for the shifter. Implements : FLEXIO_HAL_GetShifterStopBit_Activity

Definition at line 1302 of file flexio_hal.h.

static void FLEXIO_HAL_GetShifterTimer ( const FLEXIO_Type baseAddr,
uint8_t  shifter,
uint8_t *  timer,
flexio_timer_polarity_t polarity 
)
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.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]shifterNumber of the shifter.
[out]timerNumber of the timer.
[out]polarityPolarity of the timer. Implements : FLEXIO_HAL_GetShifterTimer_Activity

Definition at line 1041 of file flexio_hal.h.

static bool FLEXIO_HAL_GetSoftwareReset ( const FLEXIO_Type baseAddr)
inlinestatic

Returns the current software reset state.

This function returns the state of the FlexIO software reset bit.

Parameters
[in]baseAddrBase address of the FlexIO module
Returns
The current software reset setting. Implements : FLEXIO_HAL_GetSoftwareReset_Activity

Definition at line 497 of file flexio_hal.h.

static uint16_t FLEXIO_HAL_GetTimerCompare ( const FLEXIO_Type baseAddr,
uint8_t  timer 
)
inlinestatic

Returns the compare value of the specified timer.

This function returns the compare value currently set for the specified timer.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]timerNumber of the timer.
Returns
Compare value for the specified timer. Implements : FLEXIO_HAL_GetTimerCompare_Activity

Definition at line 2091 of file flexio_hal.h.

static flexio_timer_decrement_t FLEXIO_HAL_GetTimerDecrement ( const FLEXIO_Type baseAddr,
uint8_t  timer 
)
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.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]timerNumber of the timer.
Returns
Decrement configuration for the timer. Implements : FLEXIO_HAL_GetTimerDecrement_Activity

Definition at line 1765 of file flexio_hal.h.

static flexio_timer_disable_t FLEXIO_HAL_GetTimerDisable ( const FLEXIO_Type baseAddr,
uint8_t  timer 
)
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.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]timerNumber of the timer.
Returns
Disable configuration for the timer. Implements : FLEXIO_HAL_GetTimerDisable_Activity

Definition at line 1859 of file flexio_hal.h.

static flexio_timer_enable_t FLEXIO_HAL_GetTimerEnable ( const FLEXIO_Type baseAddr,
uint8_t  timer 
)
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.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]timerNumber of the timer.
Returns
Enable condition configuration for the timer. Implements : FLEXIO_HAL_GetTimerEnable_Activity

Definition at line 1905 of file flexio_hal.h.

static flexio_timer_output_t FLEXIO_HAL_GetTimerInitialOutput ( const FLEXIO_Type baseAddr,
uint8_t  timer 
)
inlinestatic

Returns the initial output configuration of the specified timer.

This function returns the initial output configuration of the specified timer.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]timerNumber of the timer.
Returns
Output configuration for the timer. Implements : FLEXIO_HAL_GetTimerInitialOutput_Activity

Definition at line 1720 of file flexio_hal.h.

static bool FLEXIO_HAL_GetTimerInterrupt ( const FLEXIO_Type baseAddr,
uint8_t  interruptNo 
)
inlinestatic

Returns the current status of the timer interrupts.

Returns the state of the interrupt for the specified timer.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]interruptNoNumber of the interrupt.
Returns
Status of the specified interrupt. Implements : FLEXIO_HAL_GetTimerInterrupt_Activity

Definition at line 921 of file flexio_hal.h.

static flexio_timer_mode_t FLEXIO_HAL_GetTimerMode ( const FLEXIO_Type baseAddr,
uint8_t  timer 
)
inlinestatic

Returns the mode of the specified timer.

This function returns the currently configured mode for the specified timer.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]timerNumber of the timer.
Returns
Mode assigned to the timer. Implements : FLEXIO_HAL_GetTimerMode_Activity

Definition at line 1629 of file flexio_hal.h.

static uint8_t FLEXIO_HAL_GetTimerNum ( const FLEXIO_Type baseAddr)
inlinestatic

Returns the number of timers of the FlexIO module.

This function returns the number of timers of the FlexIO module

Parameters
[in]baseAddrBase address of the FlexIO module
Returns
the number of timers of the FlexIO module. Implements : FLEXIO_HAL_GetTimerNum_Activity

Definition at line 354 of file flexio_hal.h.

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 
)
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.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]timerNumber of the timer.
[out]pinNumber of the pin.
[out]polarityPolarity of the pin.
[out]configPin configuration. Implements : FLEXIO_HAL_GetTimerPin_Activity

Definition at line 1571 of file flexio_hal.h.

static flexio_timer_reset_t FLEXIO_HAL_GetTimerReset ( const FLEXIO_Type baseAddr,
uint8_t  timer 
)
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.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]timerNumber of the timer.
Returns
Reset configuration for the timer. Implements : FLEXIO_HAL_GetTimerReset_Activity

Definition at line 1811 of file flexio_hal.h.

static flexio_timer_start_t FLEXIO_HAL_GetTimerStart ( const FLEXIO_Type baseAddr,
uint8_t  timer 
)
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.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]timerNumber of the timer.
Returns
Start bit configuration for the timer. Implements : FLEXIO_HAL_GetTimerStart_Activity

Definition at line 2006 of file flexio_hal.h.

static bool FLEXIO_HAL_GetTimerStatus ( const FLEXIO_Type baseAddr,
uint8_t  timer 
)
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.

  • 8-bit counter mode: the timer status flag is set when the upper 8-bit counter equals zero and decrements. This also causes the counter to reload with the value in the compare register.
  • 8-bit PWM mode: the upper 8-bit counter equals zero and decrements. This also causes the counter to reload with the value in the compare register.
  • 16-bit counter mode: the 16-bit counter equals zero and decrements. This also causes the counter to reload with the value in the compare register.
Parameters
[in]baseAddrBase address of the FlexIO module.
[in]timerNumber of the timer.
Returns
Status of the specified timer. Implements : FLEXIO_HAL_GetTimerStatus_Activity

Definition at line 724 of file flexio_hal.h.

static flexio_timer_stop_t FLEXIO_HAL_GetTimerStop ( const FLEXIO_Type baseAddr,
uint8_t  timer 
)
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.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]timerNumber of the timer.
Returns
Stop bit configuration for the timer. Implements : FLEXIO_HAL_GetTimerStop_Activity

Definition at line 1955 of file flexio_hal.h.

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 
)
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.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]timerNumber of the timer.
[out]triggerNumber of the trigger.
[out]polarityPolarity of the trigger.
[out]sourceTrigger source. Implements : FLEXIO_HAL_GetTimerTrigger_Activity

Definition at line 1506 of file flexio_hal.h.

static uint8_t FLEXIO_HAL_GetTriggerNum ( const FLEXIO_Type baseAddr)
inlinestatic

Returns the number of external triggers of the FlexIO module.

This function returns the number of external triggers of the FlexIO module

Parameters
[in]baseAddrBase address of the FlexIO module
Returns
the number of external triggers of the FlexIO module. Implements : FLEXIO_HAL_GetTriggerNum_Activity

Definition at line 320 of file flexio_hal.h.

static void FLEXIO_HAL_GetVersion ( const FLEXIO_Type baseAddr,
flexio_version_info_t versionInfo 
)
inlinestatic

Reads the version of the FlexIO module.

This function reads the version number of the FLEXIO hardware module

Parameters
[in]baseAddrBase address of the FlexIO module
[out]versionInfoDevice 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.

Parameters
[in]baseAddrBase address of the FlexIO module.

Definition at line 42 of file flexio_hal.c.

static uint32_t FLEXIO_HAL_ReadShifterBuffer ( const FLEXIO_Type baseAddr,
uint8_t  shifter,
flexio_shifter_buffer_mode_t  mode 
)
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.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]shifterNumber of the shifter.
[in]modeRead mode.
Returns
Value read from the shifter buffer. Implements : FLEXIO_HAL_ReadShifterBuffer_Activity

Definition at line 1421 of file flexio_hal.h.

static void FLEXIO_HAL_SetDebugMode ( FLEXIO_Type baseAddr,
bool  enable 
)
inlinestatic

Set the FlexIO module behavior in debug mode.

This function enables of disables FlexIO functionality in debug mode.

Parameters
[in]baseAddrBase address of the FlexIO module
[in]enableSpecifies whether to enable or disable FlexIO in debug mode Implements : FLEXIO_HAL_SetDebugMode_Activity

Definition at line 440 of file flexio_hal.h.

static void FLEXIO_HAL_SetDozeMode ( FLEXIO_Type baseAddr,
bool  enable 
)
inlinestatic

Set the FlexIO module behavior in doze mode.

This function enables of disables FlexIO functionality in doze mode.

Parameters
[in]baseAddrBase address of the FlexIO module
[in]enableSpecifies whether to enable or disable FlexIO in doze mode Implements : FLEXIO_HAL_SetDozeMode_Activity

Definition at line 405 of file flexio_hal.h.

static void FLEXIO_HAL_SetEnable ( FLEXIO_Type baseAddr,
bool  enable 
)
inlinestatic

Enables of disables the FlexIO module.

This function enables or disables the FlexIO module.

Parameters
[in]baseAddrBase address of the FlexIO module
[in]enableSpecifies the enable/disable state of the FlexIO module Implements : FLEXIO_HAL_SetEnable_Activity

Definition at line 551 of file flexio_hal.h.

static void FLEXIO_HAL_SetFastAccess ( FLEXIO_Type baseAddr,
bool  enable 
)
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.

Parameters
[in]baseAddrBase address of the FlexIO module
[in]enableEnables fast register accesses to FlexIO registers Implements : FLEXIO_HAL_SetFastAccess_Activity

Definition at line 479 of file flexio_hal.h.

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 
)
inlinestatic

Sets all configuration settings for specified shifter.

This function sets the following configurations for the specified shifter: start bit, stop bit, input source

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]shifterNumber of the shifter.
[in]startStart bit configuration for the shifter.
[in]stopStop bit configuration for the shifter.
[in]sourceInput source selected for the shifter. Implements : FLEXIO_HAL_SetShifterConfig_Activity

Definition at line 1396 of file flexio_hal.h.

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 
)
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()

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]shifterNumber of the shifter.
[in]modeMode assigned to the shifter.
[in]pinNumber of the pin.
[in]pinPolarityPolarity of the pin.
[in]pinConfigPin configuration.
[in]timerNumber of the timer.
[in]timerPolarityPolarity of the timer. Implements : FLEXIO_HAL_SetShifterControl_Activity

Definition at line 1228 of file flexio_hal.h.

static void FLEXIO_HAL_SetShifterDMARequest ( FLEXIO_Type baseAddr,
uint8_t  requestMask,
bool  enable 
)
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.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]requestMaskMask of the DMA requests to be enabled/disabled.
[in]enableSpecifies whether to enable or disable specified DMA requests. Implements : FLEXIO_HAL_SetShifterDMARequest_Activity

Definition at line 1010 of file flexio_hal.h.

static void FLEXIO_HAL_SetShifterErrorInterrupt ( FLEXIO_Type baseAddr,
uint8_t  interruptMask,
bool  enable 
)
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.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]interruptMaskMask of the interrupts to be enabled/disabled.
[in]enableSpecifies whether to enable or disable specified interrupts. Implements : FLEXIO_HAL_SetShifterErrorInterrupt_Activity

Definition at line 891 of file flexio_hal.h.

static void FLEXIO_HAL_SetShifterInputSource ( FLEXIO_Type baseAddr,
uint8_t  shifter,
flexio_shifter_source_t  source 
)
inlinestatic

Configures the input source of the specified shifter.

This function configures the input source of the specified shifter.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]shifterNumber of the shifter.
[in]sourceInput source selected for the shifter. Implements : FLEXIO_HAL_SetShifterInputSource_Activity

Definition at line 1277 of file flexio_hal.h.

static void FLEXIO_HAL_SetShifterInterrupt ( FLEXIO_Type baseAddr,
uint8_t  interruptMask,
bool  enable 
)
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.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]interruptMaskMask of the interrupts to be enabled/disabled.
[in]enableSpecifies whether to enable or disable specified interrupts. Implements : FLEXIO_HAL_SetShifterInterrupt_Activity

Definition at line 823 of file flexio_hal.h.

static void FLEXIO_HAL_SetShifterMode ( FLEXIO_Type baseAddr,
uint8_t  shifter,
flexio_shifter_mode_t  mode 
)
inlinestatic

Sets the mode of the specified shifter.

This function configures the mode for the specified shifter.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]shifterNumber of the shifter.
[in]modeMode assigned to the shifter. Implements : FLEXIO_HAL_SetShifterMode_Activity

Definition at line 1198 of file flexio_hal.h.

static void FLEXIO_HAL_SetShifterPin ( FLEXIO_Type baseAddr,
uint8_t  shifter,
uint8_t  pin,
flexio_pin_polarity_t  polarity,
flexio_pin_config_t  config 
)
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.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]shifterNumber of the shifter.
[in]pinNumber of the pin.
[in]polarityPolarity of the pin.
[in]configPin configuration. Implements : FLEXIO_HAL_SetShifterPin_Activity

Definition at line 1124 of file flexio_hal.h.

static void FLEXIO_HAL_SetShifterPinConfig ( FLEXIO_Type baseAddr,
uint8_t  shifter,
flexio_pin_config_t  config 
)
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.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]shifterNumber of the shifter.
[in]configPin configuration. Implements : FLEXIO_HAL_SetShifterPinConfig_Activity

Definition at line 1155 of file flexio_hal.h.

static void FLEXIO_HAL_SetShifterStartBit ( FLEXIO_Type baseAddr,
uint8_t  shifter,
flexio_shifter_start_t  start 
)
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.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]shifterNumber of the shifter.
[in]startStart bit configuration for the shifter. Implements : FLEXIO_HAL_SetShifterStartBit_Activity

Definition at line 1369 of file flexio_hal.h.

static void FLEXIO_HAL_SetShifterStopBit ( FLEXIO_Type baseAddr,
uint8_t  shifter,
flexio_shifter_stop_t  stop 
)
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.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]shifterNumber of the shifter.
[in]stopStop bit configuration for the shifter. Implements : FLEXIO_HAL_SetShifterStopBit_Activity

Definition at line 1324 of file flexio_hal.h.

static void FLEXIO_HAL_SetShifterTimer ( FLEXIO_Type baseAddr,
uint8_t  shifter,
uint8_t  timer,
flexio_timer_polarity_t  polarity 
)
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.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]shifterNumber of the shifter.
[in]timerNumber of the timer.
[in]polarityPolarity of the timer. Implements : FLEXIO_HAL_SetShifterTimer_Activity

Definition at line 1066 of file flexio_hal.h.

static void FLEXIO_HAL_SetSoftwareReset ( FLEXIO_Type baseAddr,
bool  enable 
)
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.

Parameters
[in]baseAddrBase address of the FlexIO module
[in]enableSpecifies the reset state of the FlexIO logic Implements : FLEXIO_HAL_SetSoftwareReset_Activity

Definition at line 516 of file flexio_hal.h.

static void FLEXIO_HAL_SetTimerCompare ( FLEXIO_Type baseAddr,
uint8_t  timer,
uint16_t  value 
)
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).

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]timerNumber of the timer.
[in]valueCompare value for the specified timer. Implements : FLEXIO_HAL_SetTimerCompare_Activity

Definition at line 2118 of file flexio_hal.h.

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 
)
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

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]timerNumber of the timer.
[in]startStart bit configuration for the timer.
[in]stopStop bit configuration for the timer.
[in]enableEnable condition configuration for the timer.
[in]disableDisable configuration for the timer.
[in]resetReset configuration for the timer.
[in]decrementDecrement configuration for the timer.
[in]outputOutput configuration for the timer. Implements : FLEXIO_HAL_SetTimerConfig_Activity

Definition at line 2060 of file flexio_hal.h.

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 
)
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()

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]timerNumber of the timer.
[in]triggerNumber of the trigger.
[in]triggerPolarityPolarity of the trigger.
[in]triggerSourceTrigger source.
[in]pinNumber of the pin.
[in]pinPolarityPolarity of the pin.
[in]pinConfigPin configuration.
[in]modeMode assigned to the timer. Implements : FLEXIO_HAL_SetTimerControl_Activity

Definition at line 1689 of file flexio_hal.h.

static void FLEXIO_HAL_SetTimerDecrement ( FLEXIO_Type baseAddr,
uint8_t  timer,
flexio_timer_decrement_t  decrement 
)
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.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]timerNumber of the timer.
[in]decrementDecrement configuration for the timer. Implements : FLEXIO_HAL_SetTimerDecrement_Activity

Definition at line 1787 of file flexio_hal.h.

static void FLEXIO_HAL_SetTimerDisable ( FLEXIO_Type baseAddr,
uint8_t  timer,
flexio_timer_disable_t  disable 
)
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.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]timerNumber of the timer.
[in]disableDisable configuration for the timer. Implements : FLEXIO_HAL_SetTimerDisable_Activity

Definition at line 1880 of file flexio_hal.h.

static void FLEXIO_HAL_SetTimerEnable ( FLEXIO_Type baseAddr,
uint8_t  timer,
flexio_timer_enable_t  enable 
)
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.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]timerNumber of the timer.
[in]enableEnable condition configuration for the timer. Implements : FLEXIO_HAL_SetTimerEnable_Activity

Definition at line 1927 of file flexio_hal.h.

static void FLEXIO_HAL_SetTimerInitialOutput ( FLEXIO_Type baseAddr,
uint8_t  timer,
flexio_timer_output_t  output 
)
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.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]timerNumber of the timer.
[in]outputOutput configuration for the timer. Implements : FLEXIO_HAL_SetTimerInitialOutput_Activity

Definition at line 1741 of file flexio_hal.h.

static void FLEXIO_HAL_SetTimerInterrupt ( FLEXIO_Type baseAddr,
uint8_t  interruptMask,
bool  enable 
)
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.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]interruptMaskMask of the interrupts to be enabled/disabled.
[in]enableSpecifies whether to enable or disable specified interrupts. Implements : FLEXIO_HAL_SetTimerInterrupt_Activity

Definition at line 959 of file flexio_hal.h.

static void FLEXIO_HAL_SetTimerMode ( FLEXIO_Type baseAddr,
uint8_t  timer,
flexio_timer_mode_t  mode 
)
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.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]timerNumber of the timer.
[in]modeMode assigned to the timer. Implements : FLEXIO_HAL_SetTimerMode_Activity

Definition at line 1658 of file flexio_hal.h.

static void FLEXIO_HAL_SetTimerPin ( FLEXIO_Type baseAddr,
uint8_t  timer,
uint8_t  pin,
flexio_pin_polarity_t  polarity,
flexio_pin_config_t  config 
)
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.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]timerNumber of the timer.
[in]pinNumber of the pin.
[in]polarityPolarity of the pin.
[in]configPin configuration. Implements : FLEXIO_HAL_SetTimerPin_Activity

Definition at line 1599 of file flexio_hal.h.

static void FLEXIO_HAL_SetTimerReset ( FLEXIO_Type baseAddr,
uint8_t  timer,
flexio_timer_reset_t  reset 
)
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.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]timerNumber of the timer.
[in]resetReset configuration for the timer. Implements : FLEXIO_HAL_SetTimerReset_Activity

Definition at line 1835 of file flexio_hal.h.

static void FLEXIO_HAL_SetTimerStart ( FLEXIO_Type baseAddr,
uint8_t  timer,
flexio_timer_start_t  start 
)
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.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]timerNumber of the timer.
[in]startStart bit configuration for the timer. Implements : FLEXIO_HAL_SetTimerStart_Activity

Definition at line 2029 of file flexio_hal.h.

static void FLEXIO_HAL_SetTimerStop ( FLEXIO_Type baseAddr,
uint8_t  timer,
flexio_timer_stop_t  stop 
)
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.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]timerNumber of the timer.
[in]stopStop bit configuration for the timer. Implements : FLEXIO_HAL_SetTimerStop_Activity

Definition at line 1980 of file flexio_hal.h.

static void FLEXIO_HAL_SetTimerTrigger ( FLEXIO_Type baseAddr,
uint8_t  timer,
uint8_t  trigger,
flexio_trigger_polarity_t  polarity,
flexio_trigger_source_t  source 
)
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:

  • 4*N - Pin 2*N input
  • 4*N+1 - Shifter N status flag
  • 4*N+2 - Pin 2*N+1 input
  • 4*N+3 - Timer N trigger output
Parameters
[in]baseAddrBase address of the FlexIO module.
[in]timerNumber of the timer.
[in]triggerNumber of the trigger.
[in]polarityPolarity of the trigger.
[in]sourceTrigger source. Implements : FLEXIO_HAL_SetTimerTrigger_Activity

Definition at line 1539 of file flexio_hal.h.

static void FLEXIO_HAL_WriteShifterBuffer ( FLEXIO_Type baseAddr,
uint8_t  shifter,
uint32_t  value,
flexio_shifter_buffer_mode_t  mode 
)
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.

Parameters
[in]baseAddrBase address of the FlexIO module.
[in]shifterNumber of the shifter.
[in]valueValue to write in the shifter buffer.
[in]modeWrite mode. Implements : FLEXIO_HAL_WriteShifterBuffer_Activity

Definition at line 1465 of file flexio_hal.h.