MCXN947

CACHE: CACHE Memory Controller

uint32_t CACHE64_GetInstance(CACHE64_POLSEL_Type *base)

Returns an instance number given peripheral base address.

Parameters:
  • base – The peripheral base address.

Returns:

CACHE64_POLSEL instance number starting from 0.

uint32_t CACHE64_GetInstanceByAddr(uint32_t address)

brief Returns an instance number given physical memory address.

param address The physical memory address.

Returns:

CACHE64_CTRL instance number starting from 0.

status_t CACHE64_Init(CACHE64_POLSEL_Type *base, const cache64_config_t *config)

Initializes an CACHE64 instance with the user configuration structure.

This function configures the CACHE64 module with user-defined settings. Call the CACHE64_GetDefaultConfig() function to configure the configuration structure and get the default configuration.

Parameters:
  • base – CACHE64_POLSEL peripheral base address.

  • config – Pointer to a user-defined configuration structure.

Return values:

kStatus_Success – CACHE64 initialize succeed

void CACHE64_GetDefaultConfig(cache64_config_t *config)

Gets the default configuration structure.

This function initializes the CACHE64 configuration structure to a default value. The default values are first region covers whole cacheable area, and policy set to write back.

Parameters:
  • config – Pointer to a configuration structure.

void CACHE64_EnableCache(CACHE64_CTRL_Type *base)

Enables the cache.

Parameters:
  • base – CACHE64_CTRL peripheral base address.

void CACHE64_DisableCache(CACHE64_CTRL_Type *base)

Disables the cache.

Parameters:
  • base – CACHE64_CTRL peripheral base address.

void CACHE64_InvalidateCache(CACHE64_CTRL_Type *base)

Invalidates the cache.

Parameters:
  • base – CACHE64_CTRL peripheral base address.

void CACHE64_InvalidateCacheByRange(uint32_t address, uint32_t size_byte)

Invalidates cache by range.

Note

Address and size should be aligned to “CACHE64_LINESIZE_BYTE”. The startAddr here will be forced to align to CACHE64_LINESIZE_BYTE if startAddr is not aligned. For the size_byte, application should make sure the alignment or make sure the right operation order if the size_byte is not aligned.

Parameters:
  • address – The physical address of cache.

  • size_byte – size of the memory to be invalidated, should be larger than 0.

void CACHE64_CleanCache(CACHE64_CTRL_Type *base)

Cleans the cache.

Parameters:
  • base – CACHE64_CTRL peripheral base address.

void CACHE64_CleanCacheByRange(uint32_t address, uint32_t size_byte)

Cleans cache by range.

Note

Address and size should be aligned to “CACHE64_LINESIZE_BYTE”. The startAddr here will be forced to align to CACHE64_LINESIZE_BYTE if startAddr is not aligned. For the size_byte, application should make sure the alignment or make sure the right operation order if the size_byte is not aligned.

Parameters:
  • address – The physical address of cache.

  • size_byte – size of the memory to be cleaned, should be larger than 0.

void CACHE64_CleanInvalidateCache(CACHE64_CTRL_Type *base)

Cleans and invalidates the cache.

Parameters:
  • base – CACHE64_CTRL peripheral base address.

void CACHE64_CleanInvalidateCacheByRange(uint32_t address, uint32_t size_byte)

Cleans and invalidate cache by range.

Note

Address and size should be aligned to “CACHE64_LINESIZE_BYTE”. The startAddr here will be forced to align to CACHE64_LINESIZE_BYTE if startAddr is not aligned. For the size_byte, application should make sure the alignment or make sure the right operation order if the size_byte is not aligned.

Parameters:
  • address – The physical address of cache.

  • size_byte – size of the memory to be Cleaned and Invalidated, should be larger than 0.

void CACHE64_EnableWriteBuffer(CACHE64_CTRL_Type *base, bool enable)

Enables/disables the write buffer.

Parameters:
  • base – CACHE64_CTRL peripheral base address.

  • enable – The enable or disable flag. true - enable the write buffer. false - disable the write buffer.

static inline void ICACHE_InvalidateByRange(uint32_t address, uint32_t size_byte)

Invalidates instruction cache by range.

Note

Address and size should be aligned to CACHE64_LINESIZE_BYTE due to the cache operation unit FSL_FEATURE_CACHE64_CTRL_LINESIZE_BYTE. The startAddr here will be forced to align to the cache line size if startAddr is not aligned. For the size_byte, application should make sure the alignment or make sure the right operation order if the size_byte is not aligned.

Parameters:
  • address – The physical address.

  • size_byte – size of the memory to be invalidated, should be larger than 0.

static inline void DCACHE_InvalidateByRange(uint32_t address, uint32_t size_byte)

Invalidates data cache by range.

Note

Address and size should be aligned to CACHE64_LINESIZE_BYTE due to the cache operation unit FSL_FEATURE_CACHE64_CTRL_LINESIZE_BYTE. The startAddr here will be forced to align to the cache line size if startAddr is not aligned. For the size_byte, application should make sure the alignment or make sure the right operation order if the size_byte is not aligned.

Parameters:
  • address – The physical address.

  • size_byte – size of the memory to be invalidated, should be larger than 0.

static inline void DCACHE_CleanByRange(uint32_t address, uint32_t size_byte)

Clean data cache by range.

Note

Address and size should be aligned to CACHE64_LINESIZE_BYTE due to the cache operation unit FSL_FEATURE_CACHE64_CTRL_LINESIZE_BYTE. The startAddr here will be forced to align to the cache line size if startAddr is not aligned. For the size_byte, application should make sure the alignment or make sure the right operation order if the size_byte is not aligned.

Parameters:
  • address – The physical address.

  • size_byte – size of the memory to be cleaned, should be larger than 0.

static inline void DCACHE_CleanInvalidateByRange(uint32_t address, uint32_t size_byte)

Cleans and Invalidates data cache by range.

Note

Address and size should be aligned to CACHE64_LINESIZE_BYTE due to the cache operation unit FSL_FEATURE_CACHE64_CTRL_LINESIZE_BYTE. The startAddr here will be forced to align to the cache line size if startAddr is not aligned. For the size_byte, application should make sure the alignment or make sure the right operation order if the size_byte is not aligned.

Parameters:
  • address – The physical address.

  • size_byte – size of the memory to be Cleaned and Invalidated, should be larger than 0.

FSL_CACHE_DRIVER_VERSION

cache driver version.

enum _cache64_policy

Level 2 cache controller way size.

Values:

enumerator kCACHE64_PolicyNonCacheable

Non-cacheable

enumerator kCACHE64_PolicyWriteThrough

Write through

enumerator kCACHE64_PolicyWriteBack

Write back

typedef enum _cache64_policy cache64_policy_t

Level 2 cache controller way size.

typedef struct _cache64_config cache64_config_t

CACHE64 configuration structure.

CACHE64_LINESIZE_BYTE

cache line size.

CACHE64_REGION_NUM

cache region number.

CACHE64_REGION_ALIGNMENT

cache region alignment.

struct _cache64_config
#include <fsl_cache.h>

CACHE64 configuration structure.

Public Members

uint32_t boundaryAddr[(3U) - 1]

< The cache controller can divide whole memory into 3 regions. Boundary address is the FlexSPI internal address (start from 0) instead of system address (start from FlexSPI AMBA base) to split adjacent regions and must be 1KB aligned. The boundary address itself locates in upper region. Cacheable policy for each region.

CACHE: LPCAC CACHE Memory Controller

static inline void L1CACHE_EnableCodeCache(void)

Enables the processor code bus cache.

static inline void L1CACHE_DisableCodeCache(void)

Disables the processor code bus cache.

static inline void L1CACHE_InvalidateCodeCache(void)

Clears cache.

static inline void L1CACHE_EnableAllocation(void)

Enables allocation.

static inline void L1CACHE_DisableAllocation(void)

Disables allocation.

static inline void L1CACHE_EnableParity(void)

Enables parity.

static inline void L1CACHE_DisableParity(void)

Disable parity.

FSL_CACHE_LPCAC_DRIVER_VERSION

cache driver version

CDOG

status_t CDOG_Init(CDOG_Type *base, cdog_config_t *conf)

Initialize CDOG.

This function initializes CDOG block and setting.

Parameters:
  • base – CDOG peripheral base address

  • conf – CDOG configuration structure

Returns:

Status of the init operation

void CDOG_Deinit(CDOG_Type *base)

Deinitialize CDOG.

This function deinitializes CDOG secure counter.

Parameters:
  • base – CDOG peripheral base address

void CDOG_GetDefaultConfig(cdog_config_t *conf)

Sets the default configuration of CDOG.

This function initialize CDOG config structure to default values.

Parameters:
  • conf – CDOG configuration structure

void CDOG_Stop(CDOG_Type *base, uint32_t stop)

Stops secure counter and instruction timer.

This function stops instruction timer and secure counter. This also change state od CDOG to IDLE.

Parameters:
  • base – CDOG peripheral base address

  • stop – expected value which will be compared with value of secure counter

void CDOG_Start(CDOG_Type *base, uint32_t reload, uint32_t start)

Sets secure counter and instruction timer values.

This function sets value in RELOAD and START registers for instruction timer and secure counter

Parameters:
  • base – CDOG peripheral base address

  • reload – reload value

  • start – start value

void CDOG_Check(CDOG_Type *base, uint32_t check)

Checks secure counter.

This function compares stop value in handler with secure counter value by writting to RELOAD refister.

Parameters:
  • base – CDOG peripheral base address

  • check – expected (stop) value

void CDOG_Set(CDOG_Type *base, uint32_t stop, uint32_t reload, uint32_t start)

Sets secure counter and instruction timer values.

This function sets value in STOP, RELOAD and START registers for instruction timer and secure counter.

Parameters:
  • base – CDOG peripheral base address

  • stop – expected value which will be compared with value of secure counter

  • reload – reload value for instruction timer

  • start – start value for secure timer

void CDOG_Add(CDOG_Type *base, uint32_t add)

Add value to secure counter.

This function add specified value to secure counter.

Parameters:
  • base – CDOG peripheral base address.

  • add – Value to be added.

void CDOG_Add1(CDOG_Type *base)

Add 1 to secure counter.

This function add 1 to secure counter.

Parameters:
  • base – CDOG peripheral base address.

void CDOG_Add16(CDOG_Type *base)

Add 16 to secure counter.

This function add 16 to secure counter.

Parameters:
  • base – CDOG peripheral base address.

void CDOG_Add256(CDOG_Type *base)

Add 256 to secure counter.

This function add 256 to secure counter.

Parameters:
  • base – CDOG peripheral base address.

void CDOG_Sub(CDOG_Type *base, uint32_t sub)

brief Substract value to secure counter

This function substract specified value to secure counter.

param base CDOG peripheral base address. param sub Value to be substracted.

void CDOG_Sub1(CDOG_Type *base)

Substract 1 from secure counter.

This function substract specified 1 from secure counter.

Parameters:
  • base – CDOG peripheral base address.

void CDOG_Sub16(CDOG_Type *base)

Substract 16 from secure counter.

This function substract specified 16 from secure counter.

Parameters:
  • base – CDOG peripheral base address.

void CDOG_Sub256(CDOG_Type *base)

Substract 256 from secure counter.

This function substract specified 256 from secure counter.

Parameters:
  • base – CDOG peripheral base address.

void CDOG_WritePersistent(CDOG_Type *base, uint32_t value)

Set the CDOG persistent word.

Parameters:
  • base – CDOG peripheral base address.

  • value – The value to be written.

uint32_t CDOG_ReadPersistent(CDOG_Type *base)

Get the CDOG persistent word.

Parameters:
  • base – CDOG peripheral base address.

Returns:

The persistent word.

FSL_CDOG_DRIVER_VERSION

Defines CDOG driver version 2.1.3.

Change log:

  • Version 2.1.3

    • Re-design multiple instance IRQs and Clocks

    • Add fix for RESTART command errata

  • Version 2.1.2

    • Support multiple IRQs

    • Fix default CONTROL values

  • Version 2.1.1

    • Remove bit CONTROL[CONTROL_CTRL]

  • Version 2.1.0

    • Rename CWT to CDOG

  • Version 2.0.2

    • Fix MISRA-2012 issues

  • Version 2.0.1

    • Fix doxygen issues

  • Version 2.0.0

    • initial version

enum __cdog_debug_Action_ctrl_enum

Values:

enumerator kCDOG_DebugHaltCtrl_Run
enumerator kCDOG_DebugHaltCtrl_Pause
enum __cdog_irq_pause_ctrl_enum

Values:

enumerator kCDOG_IrqPauseCtrl_Run
enumerator kCDOG_IrqPauseCtrl_Pause
enum __cdog_fault_ctrl_enum

Values:

enumerator kCDOG_FaultCtrl_EnableReset
enumerator kCDOG_FaultCtrl_EnableInterrupt
enumerator kCDOG_FaultCtrl_NoAction
enum __code_lock_ctrl_enum

Values:

enumerator kCDOG_LockCtrl_Lock
enumerator kCDOG_LockCtrl_Unlock
typedef uint32_t secure_counter_t
SC_ADD(add)
SC_ADD1
SC_ADD16
SC_ADD256
SC_SUB(sub)
SC_SUB1
SC_SUB16
SC_SUB256
SC_CHECK(val)
struct cdog_config_t
#include <fsl_cdog.h>

Clock Driver

enum _clock_ip_name

Clock gate name used for CLOCK_EnableClock/CLOCK_DisableClock.

Values:

enumerator kCLOCK_IpInvalid

Invalid Ip Name.

enumerator kCLOCK_None

None clock gate.

enumerator kCLOCK_Rom

Clock gate name: Rom.

enumerator kCLOCK_Sram1

Clock gate name: Sram1.

enumerator kCLOCK_Sram2

Clock gate name: Sram2.

enumerator kCLOCK_Sram3

Clock gate name: Sram3.

enumerator kCLOCK_Sram4

Clock gate name: Sram4.

enumerator kCLOCK_Sram5

Clock gate name: Sram5.

enumerator kCLOCK_Sram6

Clock gate name: Sram6.

enumerator kCLOCK_Sram7

Clock gate name: Sram7.

enumerator kCLOCK_Fmu

Clock gate name: Fmu.

enumerator kCLOCK_Fmc

Clock gate name: Fmc.

enumerator kCLOCK_Flexspi

Clock gate name: Flexspi.

enumerator kCLOCK_InputMux0

Clock gate name: InputMux0.

enumerator kCLOCK_InputMux

Clock gate name: InputMux0.

enumerator kCLOCK_Port0

Clock gate name: Port0.

enumerator kCLOCK_Port1

Clock gate name: Port1.

enumerator kCLOCK_Port2

Clock gate name: Port2.

enumerator kCLOCK_Port3

Clock gate name: Port3.

enumerator kCLOCK_Port4

Clock gate name: Port4.

enumerator kCLOCK_Gpio0

Clock gate name: Gpio0.

enumerator kCLOCK_Gpio1

Clock gate name: Gpio1.

enumerator kCLOCK_Gpio2

Clock gate name: Gpio2.

enumerator kCLOCK_Gpio3

Clock gate name: Gpio3.

enumerator kCLOCK_Gpio4

Clock gate name: Gpio4.

enumerator kCLOCK_Pint

Clock gate name: Pint.

enumerator kCLOCK_Dma0

Clock gate name: Dma0.

enumerator kCLOCK_Crc0

Clock gate name: Crc.

enumerator kCLOCK_Wwdt0

Clock gate name: Wwdt0.

enumerator kCLOCK_Wwdt1

Clock gate name: Wwdt1.

enumerator kCLOCK_Mailbox

Clock gate name: Mailbox.

enumerator kCLOCK_Mrt

Clock gate name: Mrt.

enumerator kCLOCK_OsTimer

Clock gate name: OsTimer.

enumerator kCLOCK_Sct

Clock gate name: Sct.

enumerator kCLOCK_Adc0

Clock gate name: Adc0.

enumerator kCLOCK_Adc1

Clock gate name: Adc1.

enumerator kCLOCK_Dac0

Clock gate name: Dac0.

enumerator kCLOCK_Rtc0

Clock gate name: Rtc.

enumerator kCLOCK_Evsim0

Clock gate name: Evsim0.

enumerator kCLOCK_Evsim1

Clock gate name: Evsim1.

enumerator kCLOCK_Utick

Clock gate name: Utick.

enumerator kCLOCK_LPFlexComm0

Clock gate name: LPFlexComm0.

enumerator kCLOCK_LPFlexComm1

Clock gate name: LPFlexComm1.

enumerator kCLOCK_LPFlexComm2

Clock gate name: LPFlexComm2.

enumerator kCLOCK_LPFlexComm3

Clock gate name: LPFlexComm3.

enumerator kCLOCK_LPFlexComm4

Clock gate name: LPFlexComm4.

enumerator kCLOCK_LPFlexComm5

Clock gate name: LPFlexComm5.

enumerator kCLOCK_LPFlexComm6

Clock gate name: LPFlexComm6.

enumerator kCLOCK_LPFlexComm7

Clock gate name: LPFlexComm7.

enumerator kCLOCK_LPFlexComm8

Clock gate name: LPFlexComm8.

enumerator kCLOCK_LPFlexComm9

Clock gate name: LPFlexComm9.

enumerator kCLOCK_LPUart0

Clock gate name: LPUart0.

enumerator kCLOCK_LPUart1

Clock gate name: LPUart1.

enumerator kCLOCK_LPUart2

Clock gate name: LPUart2.

enumerator kCLOCK_LPUart3

Clock gate name: LPUart3.

enumerator kCLOCK_LPUart4

Clock gate name: LPUart4.

enumerator kCLOCK_LPUart5

Clock gate name: LPUart5.

enumerator kCLOCK_LPUart6

Clock gate name: LPUart6.

enumerator kCLOCK_LPUart7

Clock gate name: LPUart7.

enumerator kCLOCK_LPUart8

Clock gate name: LPUart8.

enumerator kCLOCK_LPUart9

Clock gate name: LPUart9.

enumerator kCLOCK_LPSpi0

Clock gate name: LPSpi0.

enumerator kCLOCK_LPSpi1

Clock gate name: LPSpi1.

enumerator kCLOCK_LPSpi2

Clock gate name: LPSpi2.

enumerator kCLOCK_LPSpi3

Clock gate name: LPSpi3.

enumerator kCLOCK_LPSpi4

Clock gate name: LPSpi4.

enumerator kCLOCK_LPSpi5

Clock gate name: LPSpi5.

enumerator kCLOCK_LPSpi6

Clock gate name: LPSpi6.

enumerator kCLOCK_LPSpi7

Clock gate name: LPSpi7.

enumerator kCLOCK_LPSpi8

Clock gate name: LPSpi8.

enumerator kCLOCK_LPSpi9

Clock gate name: LSpi9.

enumerator kCLOCK_LPI2c0

Clock gate name: LPI2c0.

enumerator kCLOCK_LPI2c1

Clock gate name: LPI2c1.

enumerator kCLOCK_LPI2c2

Clock gate name: LPI2c2.

enumerator kCLOCK_LPI2c3

Clock gate name: LPI2c3.

enumerator kCLOCK_LPI2c4

Clock gate name: LPI2c4.

enumerator kCLOCK_LPI2c5

Clock gate name: LPI2c5.

enumerator kCLOCK_LPI2c6

Clock gate name: LPI2c6.

enumerator kCLOCK_LPI2c7

Clock gate name: LPI2c7.

enumerator kCLOCK_LPI2c8

Clock gate name: LPI2c8.

enumerator kCLOCK_LPI2c9

Clock gate name: LPI2c9.

enumerator kCLOCK_Micfil

Clock gate name: Micfil.

enumerator kCLOCK_Timer2

Clock gate name: Timer2.

enumerator kCLOCK_Usb0Ram

Clock gate name: Usb0Ram.

enumerator kCLOCK_Usb0FsDcd

Clock gate name: Usb0FsDcd.

enumerator kCLOCK_Usb0Fs

Clock gate name: Usb0Fs.

enumerator kCLOCK_Timer0

Clock gate name: Timer0.

enumerator kCLOCK_Timer1

Clock gate name: Timer1.

enumerator kCLOCK_PkcRam

Clock gate name: PkcRam.

enumerator kCLOCK_Smartdma

Clock gate name: SmartDma.

enumerator kCLOCK_Espi

Clock gate name: Espi.

enumerator kCLOCK_Dma1

Clock gate name: Dma1.

enumerator kCLOCK_Enet

Clock gate name: Enet.

enumerator kCLOCK_uSdhc

Clock gate name: uSdhc.

enumerator kCLOCK_Flexio

Clock gate name: Flexio.

enumerator kCLOCK_Sai0

Clock gate name: Sai0.

enumerator kCLOCK_Sai1

Clock gate name: Sai1.

enumerator kCLOCK_Tro

Clock gate name: Tro.

enumerator kCLOCK_Freqme

Clock gate name: Freqme.

enumerator kCLOCK_Trng

Clock gate name: Trng.

enumerator kCLOCK_Flexcan0

Clock gate name: Flexcan0.

enumerator kCLOCK_Flexcan1

Clock gate name: Flexcan1.

enumerator kCLOCK_UsbHs

Clock gate name: UsbHs.

enumerator kCLOCK_UsbHsPhy

Clock gate name: UsbHsPhy.

enumerator kCLOCK_Css

Clock gate name: Css.

enumerator kCLOCK_PowerQuad

Clock gate name: PowerQuad.

enumerator kCLOCK_PluLut

Clock gate name: PluLut.

enumerator kCLOCK_Timer3

Clock gate name: Timer3.

enumerator kCLOCK_Timer4

Clock gate name: Timer4.

enumerator kCLOCK_Puf

Clock gate name: Puf.

enumerator kCLOCK_Pkc

Clock gate name: Pkc.

enumerator kCLOCK_Scg

Clock gate name: Scg.

enumerator kCLOCK_Gdet

Clock gate name: Gdet.

enumerator kCLOCK_Sm3

Clock gate name: Sm3.

enumerator kCLOCK_I3c0

Clock gate name: I3c0.

enumerator kCLOCK_I3c1

Clock gate name: I3c1.

enumerator kCLOCK_Sinc

Clock gate name: Sinc.

enumerator kCLOCK_CoolFlux

Clock gate name: CoolFlux.

enumerator kCLOCK_Qdc0

Clock gate name: Qdc0.

enumerator kCLOCK_Qdc1

Clock gate name: Qdc1.

enumerator kCLOCK_Pwm0

Clock gate name: Pwm0.

enumerator kCLOCK_Pwm1

Clock gate name: Pwm1.

enumerator kCLOCK_Evtg

Clock gate name: Evtg.

enumerator kCLOCK_Dac1

Clock gate name: Dac1.

enumerator kCLOCK_Dac2

Clock gate name: Dac2.

enumerator kCLOCK_Opamp0

Clock gate name: Opamp0.

enumerator kCLOCK_Opamp1

Clock gate name: Opamp1.

enumerator kCLOCK_Opamp2

Clock gate name: Opamp2.

enumerator kCLOCK_Cmp2

Clock gate name: Cmp2.

enumerator kCLOCK_Vref

Clock gate name: Vref.

enumerator kCLOCK_CoolFluxApb

Clock gate name: CoolFluxApb.

enumerator kCLOCK_Neutron

Clock gate name: Neutron.

enumerator kCLOCK_Tsi

Clock gate name: Tsi.

enumerator kCLOCK_Ewm

Clock gate name: Ewm.

enumerator kCLOCK_Ewm0

Clock gate name: Ewm.

enumerator kCLOCK_Eim

Clock gate name: Eim.

enumerator kCLOCK_Erm

Clock gate name: Erm.

enumerator kCLOCK_Intm

Clock gate name: Intm.

enumerator kCLOCK_Sema42

Clock gate name: Sema42.

enumerator kCLOCK_Pwm0_Sm0

Clock gate name: PWM0 SM0.

enumerator kCLOCK_Pwm0_Sm1

Clock gate name: PWM0 SM1.

enumerator kCLOCK_Pwm0_Sm2

Clock gate name: PWM0 SM2.

enumerator kCLOCK_Pwm0_Sm3

Clock gate name: PWM0 SM3.

enumerator kCLOCK_Pwm1_Sm0

Clock gate name: PWM1 SM0.

enumerator kCLOCK_Pwm1_Sm1

Clock gate name: PWM1 SM1.

enumerator kCLOCK_Pwm1_Sm2

Clock gate name: PWM1 SM2.

enumerator kCLOCK_Pwm1_Sm3

Clock gate name: PWM1 SM3.

enum _clock_name

Clock name used to get clock frequency.

Values:

enumerator kCLOCK_MainClk

Main clock

enumerator kCLOCK_CoreSysClk

Core/system clock

enumerator kCLOCK_BusClk

Bus clock (AHB clock)

enumerator kCLOCK_SystickClk0

Systick clock0

enumerator kCLOCK_SystickClk1

Systick clock1

enumerator kCLOCK_ClockOut

CLOCKOUT

enumerator kCLOCK_Fro12M

FRO12M

enumerator kCLOCK_Clk1M

CLK1M

enumerator kCLOCK_FroHf

FRO48/144

enumerator kCLOCK_Clk48M

CLK48M

enumerator kCLOCK_Clk144M

CLK144M

enumerator kCLOCK_Clk16K0

CLK16K[0]

enumerator kCLOCK_Clk16K1

CLK16K[1]

enumerator kCLOCK_Clk16K2

CLK16K[2]

enumerator kCLOCK_Clk16K3

CLK16K[3]

enumerator kCLOCK_ExtClk

External Clock

enumerator kCLOCK_Osc32K0

OSC32K[0]

enumerator kCLOCK_Osc32K1

OSC32K[1]

enumerator kCLOCK_Osc32K2

OSC32K[2]

enumerator kCLOCK_Osc32K3

OSC32K[3]

enumerator kCLOCK_Pll0Out

PLL0 Output

enumerator kCLOCK_Pll1Out

PLL1 Output

enumerator kCLOCK_UsbPllOut

USB PLL Output

enumerator kCLOCK_LpOsc

lp_osc

enum _clock_attach_id

The enumerator of clock attach Id.

Values:

enumerator kCLK_IN_to_MAIN_CLK

Attach clk_in to MAIN_CLK.

enumerator kFRO12M_to_MAIN_CLK

Attach FRO_12M to MAIN_CLK.

enumerator kFRO_HF_to_MAIN_CLK

Attach FRO_HF to MAIN_CLK.

enumerator kXTAL32K2_to_MAIN_CLK

Attach xtal32k[2] to MAIN_CLK.

enumerator kPLL0_to_MAIN_CLK

Attach PLL0 to MAIN_CLK.

enumerator kPLL1_to_MAIN_CLK

Attach PLL1 to MAIN_CLK.

enumerator kUSB_PLL_to_MAIN_CLK

Attach USB PLL to MAIN_CLK.

enumerator kNONE_to_MAIN_CLK

Attach NONE to MAIN_CLK.

enumerator kSYSTICK_DIV0_to_SYSTICK0

Attach SYSTICK_DIV0 to SYSTICK0.

enumerator kCLK_1M_to_SYSTICK0

Attach Clk 1 MHz to SYSTICK0.

enumerator kLPOSC_to_SYSTICK0

Attach LP Oscillator to SYSTICK0.

enumerator kNONE_to_SYSTICK0

Attach NONE to SYSTICK0.

enumerator kSYSTICK_DIV1_to_SYSTICK1

Attach SYSTICK_DIV1 to SYSTICK1.

enumerator kCLK_1M_to_SYSTICK1

Attach Clk 1 MHz to SYSTICK1.

enumerator kLPOSC_to_SYSTICK1

Attach LP Oscillator to SYSTICK1.

enumerator kNONE_to_SYSTICK1

Attach NONE to SYSTICK1.

enumerator kTRACE_DIV_to_TRACE

Attach TRACE_DIV to TRACE.

enumerator kCLK_1M_to_TRACE

Attach Clk 1 MHz to TRACE.

enumerator kLPOSC_to_TRACE

Attach LP Oscillator to TRACE.

enumerator kNONE_to_TRACE

Attach NONE to TRACE.

enumerator kCLK_1M_to_CTIMER0

Attach CLK_1M to CTIMER0.

enumerator kPLL0_to_CTIMER0

Attach PLL0 to CTIMER0.

enumerator kPLL1_CLK0_to_CTIMER0

Attach PLL1_clk0 to CTIMER0.

enumerator kFRO_HF_to_CTIMER0

Attach FRO_HF to CTIMER0.

enumerator kFRO12M_to_CTIMER0

Attach FRO 12MHz to CTIMER0.

enumerator kSAI0_MCLK_IN_to_CTIMER0

Attach SAI0 MCLK IN to CTIMER0.

enumerator kLPOSC_to_CTIMER0

Attach LP Oscillator to CTIMER0.

enumerator kSAI1_MCLK_IN_to_CTIMER0

Attach SAI1 MCLK IN to CTIMER0.

enumerator kSAI0_TX_BCLK_to_CTIMER0

Attach SAI0 TX_BCLK to CTIMER0.

enumerator kSAI0_RX_BCLK_to_CTIMER0

Attach SAI0 RX_BCLK to CTIMER0.

enumerator kSAI1_TX_BCLK_to_CTIMER0

Attach SAI1 TX_BCLK to CTIMER0.

enumerator kSAI1_RX_BCLK_to_CTIMER0

Attach SAI1 RX_BCLK to CTIMER0.

enumerator kNONE_to_CTIMER0

Attach NONE to CTIMER0.

enumerator kCLK_1M_to_CTIMER1

Attach CLK_1M to CTIMER1.

enumerator kPLL0_to_CTIMER1

Attach PLL0 to CTIMER1.

enumerator kPLL1_CLK0_to_CTIMER1

Attach PLL1_clk0 to CTIMER1.

enumerator kFRO_HF_to_CTIMER1

Attach FRO_HF to CTIMER1.

enumerator kFRO12M_to_CTIMER1

Attach FRO 12MHz to CTIMER1.

enumerator kSAI0_MCLK_IN_to_CTIMER1

Attach SAI0 MCLK IN to CTIMER1.

enumerator kLPOSC_to_CTIMER1

Attach LP Oscillator to CTIMER1.

enumerator kSAI1_MCLK_IN_to_CTIMER1

Attach SAI1 MCLK IN to CTIMER1.

enumerator kSAI0_TX_BCLK_to_CTIMER1

Attach SAI0 TX_BCLK to CTIMER1.

enumerator kSAI0_RX_BCLK_to_CTIMER1

Attach SAI0 RX_BCLK to CTIMER1.

enumerator kSAI1_TX_BCLK_to_CTIMER1

Attach SAI1 TX_BCLK to CTIMER1.

enumerator kSAI1_RX_BCLK_to_CTIMER1

Attach SAI1 RX_BCLK to CTIMER1.

enumerator kNONE_to_CTIMER1

Attach NONE to CTIMER1.

enumerator kCLK_1M_to_CTIMER2

Attach CLK_1M to CTIMER2.

enumerator kPLL0_to_CTIMER2

Attach PLL0 to CTIMER2.

enumerator kPLL1_CLK0_to_CTIMER2

Attach PLL1_clk0 to CTIMER2.

enumerator kFRO_HF_to_CTIMER2

Attach FRO_HF to CTIMER2.

enumerator kFRO12M_to_CTIMER2

Attach FRO 12MHz to CTIMER2.

enumerator kSAI0_MCLK_IN_to_CTIMER2

Attach SAI0 MCLK IN to CTIMER2.

enumerator kLPOSC_to_CTIMER2

Attach LP Oscillator to CTIMER2.

enumerator kSAI1_MCLK_IN_to_CTIMER2

Attach SAI1 MCLK IN to CTIMER2.

enumerator kSAI0_TX_BCLK_to_CTIMER2

Attach SAI0 TX_BCLK to CTIMER2.

enumerator kSAI0_RX_BCLK_to_CTIMER2

Attach SAI0 RX_BCLK to CTIMER2.

enumerator kSAI1_TX_BCLK_to_CTIMER2

Attach SAI1 TX_BCLK to CTIMER2.

enumerator kSAI1_RX_BCLK_to_CTIMER2

Attach SAI1 RX_BCLK to CTIMER2.

enumerator kNONE_to_CTIMER2

Attach NONE to CTIMER2.

enumerator kCLK_1M_to_CTIMER3

Attach CLK_1M to CTIMER3.

enumerator kPLL0_to_CTIMER3

Attach PLL0 to CTIMER3.

enumerator kPLL1_CLK0_to_CTIMER3

Attach PLL1_clk0 to CTIMER3.

enumerator kFRO_HF_to_CTIMER3

Attach FRO_HF to CTIMER3.

enumerator kFRO12M_to_CTIMER3

Attach FRO 12MHz to CTIMER3.

enumerator kSAI0_MCLK_IN_to_CTIMER3

Attach SAI0 MCLK IN to CTIMER3.

enumerator kLPOSC_to_CTIMER3

Attach LP Oscillator to CTIMER3.

enumerator kSAI1_MCLK_IN_to_CTIMER3

Attach SAI1 MCLK IN to CTIMER3.

enumerator kSAI0_TX_BCLK_to_CTIMER3

Attach SAI0 TX_BCLK to CTIMER3.

enumerator kSAI0_RX_BCLK_to_CTIMER3

Attach SAI0 RX_BCLK to CTIMER3.

enumerator kSAI1_TX_BCLK_to_CTIMER3

Attach SAI1 TX_BCLK to CTIMER3.

enumerator kSAI1_RX_BCLK_to_CTIMER3

Attach SAI1 RX_BCLK to CTIMER3.

enumerator kNONE_to_CTIMER3

Attach NONE to CTIMER3.

enumerator kCLK_1M_to_CTIMER4

Attach CLK_1M to CTIMER4.

enumerator kPLL0_to_CTIMER4

Attach PLL0 to CTIMER4.

enumerator kPLL1_CLK0_to_CTIMER4

Attach PLL1_clk0 to CTIMER4.

enumerator kFRO_HF_to_CTIMER4

Attach FRO_HF to CTIMER4.

enumerator kFRO12M_to_CTIMER4

Attach FRO 12MHz to CTIMER4.

enumerator kSAI0_MCLK_IN_to_CTIMER4

Attach SAI0 MCLK IN to CTIMER4.

enumerator kLPOSC_to_CTIMER4

Attach LP Oscillator to CTIMER4.

enumerator kSAI1_MCLK_IN_to_CTIMER4

Attach SAI1 MCLK IN to CTIMER4.

enumerator kSAI0_TX_BCLK_to_CTIMER4

Attach SAI0 TX_BCLK to CTIMER4.

enumerator kSAI0_RX_BCLK_to_CTIMER4

Attach SAI0 RX_BCLK to CTIMER4.

enumerator kSAI1_TX_BCLK_to_CTIMER4

Attach SAI1 TX_BCLK to CTIMER4.

enumerator kSAI1_RX_BCLK_to_CTIMER4

Attach SAI1 RX_BCLK to CTIMER4.

enumerator kNONE_to_CTIMER4

Attach NONE to CTIMER4.

enumerator kMAIN_CLK_to_CLKOUT

Attach MAIN_CLK to CLKOUT.

enumerator kPLL0_to_CLKOUT

Attach PLL0 to CLKOUT.

enumerator kCLK_IN_to_CLKOUT

Attach Clk_in to CLKOUT.

enumerator kFRO_HF_to_CLKOUT

Attach FRO_HF to CLKOUT.

enumerator kFRO12M_to_CLKOUT

Attach FRO 12 MHz to CLKOUT.

enumerator kPLL1_CLK0_to_CLKOUT

Attach PLL1_clk0 to CLKOUT.

enumerator kLPOSC_to_CLKOUT

Attach LP Oscillator to CLKOUT.

enumerator kUSB_PLL_to_CLKOUT

Attach USB_PLL to CLKOUT.

enumerator kNONE_to_CLKOUT

Attach NONE to CLKOUT.

enumerator kPLL0_to_ADC0

Attach PLL0 to ADC0.

enumerator kFRO_HF_to_ADC0

Attach FRO_HF to ADC0.

enumerator kFRO12M_to_ADC0

Attach FRO 12 MHz to ADC0.

enumerator kCLK_IN_to_ADC0

Attach Clk_in to ADC0.

enumerator kPLL1_CLK0_to_ADC0

Attach PLL1_clk0 to ADC0.

enumerator kUSB_PLL_to_ADC0

Attach USB PLL to ADC0.

enumerator kNONE_to_ADC0

Attach NONE to ADC0.

enumerator kPLL0_to_USB0

Attach PLL0 to USB0.

enumerator kCLK_48M_to_USB0

Attach Clk 48 MHz to USB0.

enumerator kCLK_IN_to_USB0

Attach Clk_in to USB0.

enumerator kPLL1_CLK0_to_USB0

Attach PLL1_clk0 to USB0.

enumerator kUSB_PLL_to_USB0

Attach USB PLL to USB0.

enumerator kNONE_to_USB0

Attach NONE to USB0.

enumerator kPLL_DIV_to_FLEXCOMM0

Attach PLL_DIV to FLEXCOMM0.

enumerator kFRO12M_to_FLEXCOMM0

Attach FRO12M to FLEXCOMM0.

enumerator kFRO_HF_DIV_to_FLEXCOMM0

Attach FRO_HF_DIV to FLEXCOMM0.

enumerator kCLK_1M_to_FLEXCOMM0

Attach CLK_1MHz to FLEXCOMM0.

enumerator kUSB_PLL_to_FLEXCOMM0

Attach USB_PLL to FLEXCOMM0.

enumerator kLPOSC_to_FLEXCOMM0

Attach LP Oscillator to FLEXCOMM0.

enumerator kNONE_to_FLEXCOMM0

Attach NONE to FLEXCOMM0.

enumerator kPLL_DIV_to_FLEXCOMM1

Attach PLL_DIV to FLEXCOMM1.

enumerator kFRO12M_to_FLEXCOMM1

Attach FRO12M to FLEXCOMM1.

enumerator kFRO_HF_DIV_to_FLEXCOMM1

Attach FRO_HF_DIV to FLEXCOMM1.

enumerator kCLK_1M_to_FLEXCOMM1

Attach CLK_1MHz to FLEXCOMM1.

enumerator kUSB_PLL_to_FLEXCOMM1

Attach USB_PLL to FLEXCOMM1.

enumerator kLPOSC_to_FLEXCOMM1

Attach LP Oscillator to FLEXCOMM1.

enumerator kNONE_to_FLEXCOMM1

Attach NONE to FLEXCOMM1.

enumerator kPLL_DIV_to_FLEXCOMM2

Attach PLL_DIV to FLEXCOMM2.

enumerator kFRO12M_to_FLEXCOMM2

Attach FRO12M to FLEXCOMM2.

enumerator kFRO_HF_DIV_to_FLEXCOMM2

Attach FRO_HF_DIV to FLEXCOMM2.

enumerator kCLK_1M_to_FLEXCOMM2

Attach CLK_1MHz to FLEXCOMM2.

enumerator kUSB_PLL_to_FLEXCOMM2

Attach USB_PLL to FLEXCOMM2.

enumerator kLPOSC_to_FLEXCOMM2

Attach LP Oscillator to FLEXCOMM2.

enumerator kNONE_to_FLEXCOMM2

Attach NONE to FLEXCOMM2.

enumerator kPLL_DIV_to_FLEXCOMM3

Attach PLL_DIV to FLEXCOMM3.

enumerator kFRO12M_to_FLEXCOMM3

Attach FRO12M to FLEXCOMM3.

enumerator kFRO_HF_DIV_to_FLEXCOMM3

Attach FRO_HF_DIV to FLEXCOMM3.

enumerator kCLK_1M_to_FLEXCOMM3

Attach CLK_1MHz to FLEXCOMM3.

enumerator kUSB_PLL_to_FLEXCOMM3

Attach USB_PLL to FLEXCOMM3.

enumerator kLPOSC_to_FLEXCOMM3

Attach LP Oscillator to FLEXCOMM3.

enumerator kNONE_to_FLEXCOMM3

Attach NONE to FLEXCOMM3.

enumerator kPLL_DIV_to_FLEXCOMM4

Attach PLL_DIV to FLEXCOMM4.

enumerator kFRO12M_to_FLEXCOMM4

Attach FRO12M to FLEXCOMM4.

enumerator kFRO_HF_DIV_to_FLEXCOMM4

Attach FRO_HF_DIV to FLEXCOMM4.

enumerator kCLK_1M_to_FLEXCOMM4

Attach CLK_1MHz to FLEXCOMM4.

enumerator kUSB_PLL_to_FLEXCOMM4

Attach USB_PLL to FLEXCOMM4.

enumerator kLPOSC_to_FLEXCOMM4

Attach LP Oscillator to FLEXCOMM4.

enumerator kNONE_to_FLEXCOMM4

Attach NONE to FLEXCOMM4.

enumerator kPLL_DIV_to_FLEXCOMM5

Attach PLL_DIV to FLEXCOMM5.

enumerator kFRO12M_to_FLEXCOMM5

Attach FRO12M to FLEXCOMM5.

enumerator kFRO_HF_DIV_to_FLEXCOMM5

Attach FRO_HF_DIV to FLEXCOMM5.

enumerator kCLK_1M_to_FLEXCOMM5

Attach CLK_1MHz to FLEXCOMM5.

enumerator kUSB_PLL_to_FLEXCOMM5

Attach USB_PLL to FLEXCOMM5.

enumerator kLPOSC_to_FLEXCOMM5

Attach LP Oscillator to FLEXCOMM5.

enumerator kNONE_to_FLEXCOMM5

Attach NONE to FLEXCOMM5.

enumerator kPLL_DIV_to_FLEXCOMM6

Attach PLL_DIV to FLEXCOMM6.

enumerator kFRO12M_to_FLEXCOMM6

Attach FRO12M to FLEXCOMM6.

enumerator kFRO_HF_DIV_to_FLEXCOMM6

Attach FRO_HF_DIV to FLEXCOMM6.

enumerator kCLK_1M_to_FLEXCOMM6

Attach CLK_1MHz to FLEXCOMM6.

enumerator kUSB_PLL_to_FLEXCOMM6

Attach USB_PLL to FLEXCOMM6.

enumerator kLPOSC_to_FLEXCOMM6

Attach LP Oscillator to FLEXCOMM6.

enumerator kNONE_to_FLEXCOMM6

Attach NONE to FLEXCOMM6.

enumerator kPLL_DIV_to_FLEXCOMM7

Attach PLL_DIV to FLEXCOMM7.

enumerator kFRO12M_to_FLEXCOMM7

Attach FRO12M to FLEXCOMM7.

enumerator kFRO_HF_DIV_to_FLEXCOMM7

Attach FRO_HF_DIV to FLEXCOMM7.

enumerator kCLK_1M_to_FLEXCOMM7

Attach CLK_1MHz to FLEXCOMM7.

enumerator kUSB_PLL_to_FLEXCOMM7

Attach USB_PLL to FLEXCOMM7.

enumerator kLPOSC_to_FLEXCOMM7

Attach LP Oscillator to FLEXCOMM7.

enumerator kNONE_to_FLEXCOMM7

Attach NONE to FLEXCOMM7.

enumerator kPLL_DIV_to_FLEXCOMM8

Attach PLL_DIV to FLEXCOMM8.

enumerator kFRO12M_to_FLEXCOMM8

Attach FRO12M to FLEXCOMM8.

enumerator kFRO_HF_DIV_to_FLEXCOMM8

Attach FRO_HF_DIV to FLEXCOMM8.

enumerator kCLK_1M_to_FLEXCOMM8

Attach CLK_1MHz to FLEXCOMM8.

enumerator kUSB_PLL_to_FLEXCOMM8

Attach USB_PLL to FLEXCOMM8.

enumerator kLPOSC_to_FLEXCOMM8

Attach LP Oscillator to FLEXCOMM8.

enumerator kNONE_to_FLEXCOMM8

Attach NONE to FLEXCOMM8.

enumerator kPLL_DIV_to_FLEXCOMM9

Attach PLL_DIV to FLEXCOMM9.

enumerator kFRO12M_to_FLEXCOMM9

Attach FRO12M to FLEXCOMM9.

enumerator kFRO_HF_DIV_to_FLEXCOMM9

Attach FRO_HF_DIV to FLEXCOMM9.

enumerator kCLK_1M_to_FLEXCOMM9

Attach CLK_1MHz to FLEXCOMM9.

enumerator kUSB_PLL_to_FLEXCOMM9

Attach USB_PLL to FLEXCOMM9.

enumerator kLPOSC_to_FLEXCOMM9

Attach LP Oscillator to FLEXCOMM9.

enumerator kNONE_to_FLEXCOMM9

Attach NONE to FLEXCOMM9.

enumerator kPLL0_to_SCT

Attach NONE to SCT.

enumerator kCLK_IN_to_SCT

Attach CLK_in to SCT.

enumerator kFRO_HF_to_SCT

Attach FRO_HF to SCT.

enumerator kPLL1_CLK0_to_SCT

Attach PLL1_clk0 to SCT.

enumerator kSAI0_MCLK_IN_to_SCT

Attach SAI0 MCLK_IN to SCT.

enumerator kUSB_PLL_to_SCT

Attach USB PLL to SCT.

enumerator kSAI1_MCLK_IN_to_SCT

Attach SAI1 MCLK_IN to SCT.

enumerator kNONE_to_SCT

Attach NONE to SCT.

enumerator kCLK_IN_to_TSI

Attach clk_in to TSI.

enumerator kFRO12M_to_TSI

Attach FRO_12Mhz to TSI.

enumerator kNONE_to_TSI

Attach NONE to TSI.

enumerator kPLL0_to_SINCFILT

Attach PLL0 to SINCFILT.

enumerator kCLK_IN_to_SINCFILT

Attach clk_in to SINCFILT.

enumerator kFRO_HF_to_SINCFILT

Attach FRO_HF to SINCFILT.

enumerator kFRO12M_to_SINCFILT

Attach FRO_12Mhz to SINCFILT.

enumerator kPLL1_CLK0_to_SINCFILT

Attach PLL1_clk0 to SINCFILT.

enumerator kUSB_PLL_to_SINCFILT

Attach USB PLL to SINCFILT.

enumerator kNONE_to_SINCFILT

Attach NONE to SINCFILT.

enumerator kPLL0_to_ADC1

Attach PLL0 to ADC1.

enumerator kFRO_HF_to_ADC1

Attach FRO_HF to ADC1.

enumerator kFRO12M_to_ADC1

Attach FRO12M to ADC1.

enumerator kCLK_IN_to_ADC1

Attach clk_in to ADC1.

enumerator kPLL1_CLK0_to_ADC1

Attach PLL1_clk0 to ADC1.

enumerator kUSB_PLL_to_ADC1

Attach USB PLL to ADC1.

enumerator kNONE_to_ADC1

Attach NONE to ADC1.

enumerator kPLL0_to_DAC0

Attach PLL0 to DAC0.

enumerator kCLK_IN_to_DAC0

Attach Clk_in to DAC0.

enumerator kFRO_HF_to_DAC0

Attach FRO_HF to DAC0.

enumerator kFRO12M_to_DAC0

Attach FRO_12M to DAC0.

enumerator kPLL1_CLK0_to_DAC0

Attach PLL1_clk0 to DAC0.

enumerator kNONE_to_DAC0

Attach NONE to DAC0.

enumerator kPLL0_to_DAC1

Attach PLL0 to DAC1.

enumerator kCLK_IN_to_DAC1

Attach Clk_in to DAC1.

enumerator kFRO_HF_to_DAC1

Attach FRO_HF to DAC1.

enumerator kFRO12M_to_DAC1

Attach FRO_12M to DAC1.

enumerator kPLL1_CLK0_to_DAC1

Attach PLL1_clk0 to DAC1.

enumerator kNONE_to_DAC1

Attach NONE to DAC1.

enumerator kPLL0_to_DAC2

Attach PLL0 to DAC2.

enumerator kCLK_IN_to_DAC2

Attach Clk_in to DAC2.

enumerator kFRO_HF_to_DAC2

Attach FRO_HF to DAC2.

enumerator kFRO12M_to_DAC2

Attach FRO_12M to DAC2.

enumerator kPLL1_CLK0_to_DAC2

Attach PLL1_clk0 to DAC2.

enumerator kNONE_to_DAC2

Attach NONE to DAC2.

enumerator kPLL0_to_FLEXSPI

Attach PLL0 to FLEXSPI.

enumerator kFRO_HF_to_FLEXSPI

Attach FRO_HF to FLEXSPI.

enumerator kPLL1_to_FLEXSPI

Attach PLL1 to FLEXSPI.

enumerator kUSB_PLL_to_FLEXSPI

Attach USB PLL to FLEXSPI.

enumerator kNONE_to_FLEXSPI

Attach NONE to FLEXSPI.

enumerator kPLL0_to_PLLCLKDIV

Attach PLL0 to PLLCLKDIV.

enumerator kPLL1_CLK0_to_PLLCLKDIV

Attach pll1_clk0 to PLLCLKDIV.

enumerator kNONE_to_PLLCLKDIV

Attach NONE to PLLCLKDIV.

enumerator kPLL0_to_I3C0FCLK

Attach PLL0 to I3C0FCLK.

enumerator kCLK_IN_to_I3C0FCLK

Attach Clk_in to I3C0FCLK.

enumerator kFRO_HF_to_I3C0FCLK

Attach FRO_HF to I3C0FCLK.

enumerator kPLL1_CLK0_to_I3C0FCLK

Attach PLL1_clk0 to I3C0FCLK.

enumerator kUSB_PLL_to_I3C0FCLK

Attach USB PLL to I3C0FCLK.

enumerator kNONE_to_I3C0FCLK

Attach NONE to I3C0FCLK.

enumerator kI3C0FCLK_to_I3C0FCLKSTC

Attach I3C0FCLK to I3C0FCLKSTC.

enumerator kCLK_1M_to_I3C0FCLKSTC

Attach CLK_1M to I3C0FCLKSTC.

enumerator kNONE_to_I3C0FCLKSTC

Attach NONE to I3C0FCLKSTC.

enumerator kCLK_1M_to_I3C0FCLKS

Attach CLK_1M to I3C0FCLKS.

enumerator kNONE_to_I3C0FCLKS

Attach NONE to I3C0FCLKS.

enumerator kFRO12M_to_MICFILF

Attach FRO_12M to MICFILF.

enumerator kPLL0_to_MICFILF

Attach PLL0 to MICFILF.

enumerator kCLK_IN_to_MICFILF

Attach Clk_in to MICFILF.

enumerator kFRO_HF_to_MICFILF

Attach FRO_HF to MICFILF.

enumerator kPLL1_CLK0_to_MICFILF

Attach PLL1_clk0 to MICFILF.

enumerator kSAI0_MCLK_IN_to_MICFILF

Attach SAI0_MCLK to MICFILF.

enumerator kUSB_PLL_to_MICFILF

Attach USB PLL to MICFILF.

enumerator kSAI1_MCLK_IN_to_MICFILF

Attach SAI1_MCLK to MICFILF.

enumerator kNONE_to_MICFILF

Attach NONE to MICFILF.

enumerator kPLL0_to_ESPI

Attach PLL0 to ESPI.

enumerator kCLK_48M_to_ESPI

Attach CLK_48M to ESPI.

enumerator kPLL1_CLK0_to_ESPI

Attach PLL1_clk0 to ESPI.

enumerator kUSB_PLL_to_ESPI

Attach USB PLL to ESPI.

enumerator kNONE_to_ESPI

Attach NONE to ESPI.

enumerator kPLL0_to_USDHC

Attach PLL0 to uSDHC.

enumerator kCLK_IN_to_USDHC

Attach Clk_in to uSDHC.

enumerator kFRO_HF_to_USDHC

Attach FRO_HF to uSDHC.

enumerator kFRO12M_to_USDHC

Attach FRO_12M to uSDHC.

enumerator kPLL1_CLK1_to_USDHC

Attach pll1_clk1 to uSDHC.

enumerator kUSB_PLL_to_USDHC

Attach USB PLL to uSDHC.

enumerator kNONE_to_USDHC

Attach NONE to uSDHC.

enumerator kPLL0_to_FLEXIO

Attach PLL0 to FLEXIO.

enumerator kCLK_IN_to_FLEXIO

Attach Clk_in to FLEXIO.

enumerator kFRO_HF_to_FLEXIO

Attach FRO_HF to FLEXIO.

enumerator kFRO12M_to_FLEXIO

Attach FRO_12M to FLEXIO.

enumerator kPLL1_CLK0_to_FLEXIO

Attach pll1_clk0 to FLEXIO.

enumerator kUSB_PLL_to_FLEXIO

Attach USB PLL to FLEXIO.

enumerator kNONE_to_FLEXIO

Attach NONE to FLEXIO.

enumerator kPLL0_to_FLEXCAN0

Attach PLL0 to FLEXCAN0.

enumerator kCLK_IN_to_FLEXCAN0

Attach Clk_in to FLEXCAN0.

enumerator kFRO_HF_to_FLEXCAN0

Attach FRO_HF to FLEXCAN0.

enumerator kPLL1_CLK0_to_FLEXCAN0

Attach pll1_clk0 to FLEXCAN0.

enumerator kUSB_PLL_to_FLEXCAN0

Attach USB PLL to FLEXCAN0.

enumerator kNONE_to_FLEXCAN0

Attach NONE to FLEXCAN0.

enumerator kPLL0_to_FLEXCAN1

Attach PLL0 to FLEXCAN1.

enumerator kCLK_IN_to_FLEXCAN1

Attach Clk_in to FLEXCAN1.

enumerator kFRO_HF_to_FLEXCAN1

Attach FRO_HF to FLEXCAN1.

enumerator kPLL1_CLK0_to_FLEXCAN1

Attach pll1_clk0 to FLEXCAN1.

enumerator kUSB_PLL_to_FLEXCAN1

Attach USB PLL to FLEXCAN1.

enumerator kNONE_to_FLEXCAN1

Attach NONE to FLEXCAN1.

enumerator kNONE_to_ENETRMII

Attach NONE to ENETRMII.

enumerator kPLL0_to_ENETRMII

Attach PLL0 to ENETRMII.

enumerator kCLK_IN_to_ENETRMII

Attach Clk_in to ENETRMII.

enumerator kPLL1_CLK0_to_ENETRMII

Attach pll1_clk0 to ENETRMII.

enumerator kPLL0_to_ENETPTPREF

Attach PLL0 to ENETPTPREF.

enumerator kCLK_IN_to_ENETPTPREF

Attach Clk_in to ENETPTPREF.

enumerator kENET0_TX_CLK_to_ENETPTPREF

Attach enet0_tx_clk to ENETPTPREF.

enumerator kPLL1_CLK1_to_ENETPTPREF

Attach pll1_clk1 to ENETPTPREF.

enumerator kNONE_to_ENETPTPREF

Attach NONE to ENETPTPREF.

enumerator kCLK_16K2_to_EWM0

Attach clk_16k[2] to EWM0.

enumerator kXTAL32K2_to_EWM0

Attach xtal32k[2] to EWM0.

enumerator kCLK_16K2_to_WDT1

Attach FRO16K clock 2 to WDT1.

enumerator kFRO_HF_DIV_to_WDT1

Attach FRO_HF_DIV to WDT1.

enumerator kCLK_1M_to_WDT1

Attach clk_1m to WDT1.

enumerator kCLK_1M_2_to_WDT1

Attach clk_1m to WDT1.

enumerator kCLK_16K2_to_OSTIMER

Attach clk_16k[2] to OSTIMER.

enumerator kXTAL32K2_to_OSTIMER

Attach xtal32k[2] to OSTIMER.

enumerator kCLK_1M_to_OSTIMER

Attach clk_1m to OSTIMER.

enumerator kNONE_to_OSTIMER

Attach NONE to OSTIMER.

enumerator kPLL0_to_CMP0F

Attach PLL0 to CMP0F.

enumerator kFRO_HF_to_CMP0F

Attach FRO_HF to CMP0F.

enumerator kFRO12M_to_CMP0F

Attach FRO_12M to CMP0F.

enumerator kCLK_IN_to_CMP0F

Attach Clk_in to CMP0F.

enumerator kPLL1_CLK0_to_CMP0F

Attach PLL1_clk0 to CMP0F.

enumerator kUSB_PLL_to_CMP0F

Attach USB PLL to CMP0F.

enumerator kNONE_to_CMP0F

Attach NONE to CMP0F.

enumerator kPLL0_to_CMP0RR

Attach PLL0 to CMP0RR.

enumerator kFRO_HF_to_CMP0RR

Attach FRO_HF to CMP0RR.

enumerator kFRO12M_to_CMP0RR

Attach FRO_12M to CMP0RR.

enumerator kCLK_IN_to_CMP0RR

Attach Clk_in to CMP0RR.

enumerator kPLL1_CLK0_to_CMP0RR

Attach PLL1_clk0 to CMP0RR.

enumerator kUSB_PLL_to_CMP0RR

Attach USB PLL to CMP0RR.

enumerator kNONE_to_CMP0RR

Attach NONE to CMP0RR.

enumerator kPLL0_to_CMP1F

Attach PLL0 to CMP1F.

enumerator kFRO_HF_to_CMP1F

Attach FRO_HF to CMP1F.

enumerator kFRO12M_to_CMP1F

Attach FRO_12M to CMP1F.

enumerator kCLK_IN_to_CMP1F

Attach Clk_in to CMP1F.

enumerator kPLL1_CLK0_to_CMP1F

Attach PLL1_clk0 to CMP1F.

enumerator kUSB_PLL_to_CMP1F

Attach USB PLL to CMP1F.

enumerator kNONE_to_CMP1F

Attach NONE to CMP1F.

enumerator kPLL0_to_CMP1RR

Attach PLL0 to CMP1RR.

enumerator kFRO_HF_to_CMP1RR

Attach FRO_HF to CMP1RR.

enumerator kFRO12M_to_CMP1RR

Attach FRO_12M to CMP1RR.

enumerator kCLK_IN_to_CMP1RR

Attach Clk_in to CMP1RR.

enumerator kPLL1_CLK0_to_CMP1RR

Attach PLL1_clk0 to CMP1RR.

enumerator kUSB_PLL_to_CMP1RR

Attach USB PLL to CMP1RR.

enumerator kNONE_to_CMP1RR

Attach NONE to CMP1RR.

enumerator kPLL0_to_CMP2F

Attach PLL0 to CMP2F.

enumerator kFRO_HF_to_CMP2F

Attach FRO_HF to CMP2F.

enumerator kFRO12M_to_CMP2F

Attach FRO_12M to CMP2F.

enumerator kCLK_IN_to_CMP2F

Attach Clk_in to CMP2F.

enumerator kPLL1_CLK0_to_CMP2F

Attach PLL1_clk0 to CMP2F.

enumerator kUSB_PLL_to_CMP2F

Attach USB PLL to CMP2F.

enumerator kNONE_to_CMP2F

Attach NONE to CMP2F.

enumerator kPLL0_to_CMP2RR

Attach PLL0 to CMP2RR.

enumerator kFRO_HF_to_CMP2RR

Attach FRO_HF to CMP2RR.

enumerator kFRO12M_to_CMP2RR

Attach FRO_12M to CMP2RR.

enumerator kCLK_IN_to_CMP2RR

Attach Clk_in to CMP2RR.

enumerator kPLL1_CLK0_to_CMP2RR

Attach PLL1_clk0 to CMP2RR.

enumerator kUSB_PLL_to_CMP2RR

Attach USB PLL to CMP2RR.

enumerator kNONE_to_CMP2RR

Attach NONE to CMP2RR.

enumerator kPLL0_to_SAI0

Attach PLL0 to SAI0.

enumerator kCLK_IN_to_SAI0

Attach Clk_in to SAI0.

enumerator kFRO_HF_to_SAI0

Attach FRO_HF to SAI0.

enumerator kPLL1_CLK0_to_SAI0

Attach PLL1_clk0 to SAI0.

enumerator kUSB_PLL_to_SAI0

Attach USB PLL to SAI0.

enumerator kNONE_to_SAI0

Attach NONE to SAI0.

enumerator kPLL0_to_SAI1

Attach PLL0 to SAI1.

enumerator kCLK_IN_to_SAI1

Attach Clk_in to SAI1.

enumerator kFRO_HF_to_SAI1

Attach FRO_HF to SAI1.

enumerator kPLL1_CLK0_to_SAI1

Attach PLL1_clk0 to SAI1.

enumerator kUSB_PLL_to_SAI1

Attach USB PLL to SAI1.

enumerator kNONE_to_SAI1

Attach NONE to SAI1.

enumerator kPLL0_to_EMVSIM0

Attach PLL0 to EMVSIM0.

enumerator kCLK_IN_to_EMVSIM0

Attach Clk_in to EMVSIM0.

enumerator kFRO_HF_to_EMVSIM0

Attach FRO_HF to EMVSIM0.

enumerator kFRO12M_to_EMVSIM0

Attach FRO_12M to EMVSIM0.

enumerator kPLL1_CLK0_to_EMVSIM0

Attach PLL1_clk0 to EMVSIM0.

enumerator kNONE_to_EMVSIM0

Attach NONE to EMVSIM0.

enumerator kPLL0_to_EMVSIM1

Attach PLL0 to EMVSIM1.

enumerator kCLK_IN_to_EMVSIM1

Attach Clk_in to EMVSIM1.

enumerator kFRO_HF_to_EMVSIM1

Attach FRO_HF to EMVSIM1.

enumerator kFRO12M_to_EMVSIM1

Attach FRO_12M to EMVSIM1.

enumerator kPLL1_CLK0_to_EMVSIM1

Attach PLL1_clk0 to EMVSIM1.

enumerator kNONE_to_EMVSIM1

Attach NONE to EMVSIM1.

enumerator kPLL0_to_I3C1FCLK

Attach PLL0 to I3C1FCLK.

enumerator kCLK_IN_to_I3C1FCLK

Attach Clk_in to I3C1FCLK.

enumerator kFRO_HF_to_I3C1FCLK

Attach FRO_HF to I3C1FCLK.

enumerator kPLL1_CLK0_to_I3C1FCLK

Attach PLL1_clk0 to I3C1FCLK.

enumerator kUSB_PLL_to_I3C1FCLK

Attach USB PLL to I3C1FCLK.

enumerator kNONE_to_I3C1FCLK

Attach NONE to I3C1FCLK.

enumerator kI3C1FCLK_to_I3C1FCLKSTC

Attach I3C1FCLK to I3C1FCLKSTC.

enumerator kCLK_1M_to_I3C1FCLKSTC

Attach CLK_1M to I3C1FCLKSTC.

enumerator kNONE_to_I3C1FCLKSTC

Attach NONE to I3C1FCLKSTC.

enumerator kCLK_1M_to_I3C1FCLKS

Attach CLK_1M to I3C1FCLKS.

enumerator kNONE_to_I3C1FCLKS

Attach NONE to I3C1FCLKS.

enumerator kNONE_to_NONE

Attach NONE to NONE.

enum _clock_div_name

Clock dividers.

Values:

enumerator kCLOCK_DivSystickClk0

Systick Clk0 Divider.

enumerator kCLOCK_DivSystickClk1

Systick Clk1 Divider.

enumerator kCLOCK_DivTraceClk

Trace Clk Divider.

enumerator kCLOCK_DivSlowClk

SLOW CLK Divider.

enumerator kCLOCK_DivTsiClk

Tsi Clk Divider.

enumerator kCLOCK_DivAhbClk

Ahb Clk Divider.

enumerator kCLOCK_DivClkOut

ClkOut Clk Divider.

enumerator kCLOCK_DivFrohfClk

Frohf Clk Divider.

enumerator kCLOCK_DivWdt0Clk

Wdt0 Clk Divider.

enumerator kCLOCK_DivAdc0Clk

Adc0 Clk Divider.

enumerator kCLOCK_DivUsb0Clk

Usb0 Clk Divider.

enumerator kCLOCK_DivSctClk

Sct Clk Divider.

enumerator kCLOCK_DivPllClk

Pll Clk Divider.

enumerator kCLOCK_DivCtimer0Clk

Ctimer0 Clk Divider.

enumerator kCLOCK_DivCtimer1Clk

Ctimer1 Clk Divider.

enumerator kCLOCK_DivCtimer2Clk

Ctimer2 Clk Divider.

enumerator kCLOCK_DivCtimer3Clk

Ctimer3 Clk Divider.

enumerator kCLOCK_DivCtimer4Clk

Ctimer4 Clk Divider.

enumerator kCLOCK_DivPLL1Clk0

PLL1 Clk0 Divider.

enumerator kCLOCK_DivPLL1Clk1

Pll1 Clk1 Divider.

enumerator kCLOCK_DivAdc1Clk

Adc1 Clk Divider.

enumerator kCLOCK_DivDac0Clk

Dac0 Clk Divider.

enumerator kCLOCK_DivDac1Clk

Dac1 Clk Divider.

enumerator kCLOCK_DivDac2Clk

Dac2 Clk Divider.

enumerator kCLOCK_DivFlexspiClk

Flexspi Clk Divider.

enumerator kCLOCK_DivI3c0FClkStc

I3C0 FCLK STC Divider.

enumerator kCLOCK_DivI3c0FClkS

I3C0 FCLK S Divider.

enumerator kCLOCK_DivI3c0FClk

I3C0 FClk Divider.

enumerator kCLOCK_DivMicfilFClk

MICFILFCLK Divider.

enumerator kCLOCK_DivEspiClk

Espi Clk Divider.

enumerator kCLOCK_DivUSdhcClk

USdhc Clk Divider.

enumerator kCLOCK_DivFlexioClk

Flexio Clk Divider.

enumerator kCLOCK_DivFlexcan0Clk

Flexcan0 Clk Divider.

enumerator kCLOCK_DivFlexcan1Clk

Flexcan1 Clk Divider.

enumerator kCLOCK_DivEnetrmiiClk

Enetrmii Clk Divider.

enumerator kCLOCK_DivEnetptprefClk

Enetptpref Clk Divider.

enumerator kCLOCK_DivWdt1Clk

Wdt1 Clk Divider.

enumerator kCLOCK_DivCmp0FClk

Cmp0 FClk Divider.

enumerator kCLOCK_DivCmp0rrClk

Cmp0rr Clk Divider.

enumerator kCLOCK_DivCmp1FClk

Cmp1 FClk Divider.

enumerator kCLOCK_DivCmp1rrClk

Cmp1rr Clk Divider.

enumerator kCLOCK_DivCmp2FClk

Cmp2 FClk Divider.

enumerator kCLOCK_DivCmp2rrClk

Cmp2rr Clk Divider.

enumerator kCLOCK_DivFlexcom0Clk

Flexcom0 Clk Divider.

enumerator kCLOCK_DivFlexcom1Clk

Flexcom1 Clk Divider.

enumerator kCLOCK_DivFlexcom2Clk

Flexcom2 Clk Divider.

enumerator kCLOCK_DivFlexcom3Clk

Flexcom3 Clk Divider.

enumerator kCLOCK_DivFlexcom4Clk

Flexcom4 Clk Divider.

enumerator kCLOCK_DivFlexcom5Clk

Flexcom5 Clk Divider.

enumerator kCLOCK_DivFlexcom6Clk

Flexcom6 Clk Divider.

enumerator kCLOCK_DivFlexcom7Clk

Flexcom7 Clk Divider.

enumerator kCLOCK_DivFlexcom8Clk

Flexcom8 Clk Divider.

enumerator kCLOCK_DivFlexcom9Clk

Flexcom9 Clk Divider.

enumerator kCLOCK_DivSai0Clk

Sai0 Clk Divider.

enumerator kCLOCK_DivSai1Clk

Sai1 Clk Divider.

enumerator kCLOCK_DivEmvsim0Clk

Emvsim0 Clk Divider.

enumerator kCLOCK_DivEmvsim1Clk

Emvsim1 Clk Divider.

enumerator kCLOCK_DivI3c1FClkStc

I3C1 FCLK STC Divider.

enumerator kCLOCK_DivI3c1FClkS

I3C1 FCLK S Divider.

enumerator kCLOCK_DivI3c1FClk

I3C1 FClk Divider.

enum _osc32k_clk_gate_id

OSC32K clock gate.

Values:

enumerator kCLOCK_Osc32kToVbat

OSC32K[0] to VBAT domain.

enumerator kCLOCK_Osc32kToVsys

OSC32K[1] to VSYS domain.

enumerator kCLOCK_Osc32kToWake

OSC32K[2] to WAKE domain.

enumerator kCLOCK_Osc32kToMain

OSC32K[3] to MAIN domain.

enumerator kCLOCK_Osc32kToAll

OSC32K to VBAT,VSYS,WAKE,MAIN domain.

enum _clk16k_clk_gate_id

CLK16K clock gate.

Values:

enumerator kCLOCK_Clk16KToVbat

Clk16k[0] to VBAT domain.

enumerator kCLOCK_Clk16KToVsys

Clk16k[1] to VSYS domain.

enumerator kCLOCK_Clk16KToWake

Clk16k[2] to WAKE domain.

enumerator kCLOCK_Clk16KToMain

Clk16k[3] to MAIN domain.

enumerator kCLOCK_Clk16KToAll

Clk16k to VBAT,VSYS,WAKE,MAIN domain.

enum _clock_ctrl_enable

system clocks enable controls

Values:

enumerator kCLOCK_PLU_DEGLITCH_CLK_ENA

Enables clocks FRO_1MHz and FRO_12MHz for PLU deglitching.

enumerator kCLOCK_FRO1MHZ_CLK_ENA

Enables FRO_1MHz clock for clock muxing in clock gen.

enumerator kCLOCK_CLKIN_ENA

Enables clk_in clock for MICD, EMVSIM0/1, CAN0/1, I3C0/1, SAI0/1, SINC Filter (SINC), TSI, USBFS, SCT, uSDHC, clkout..

enumerator kCLOCK_FRO_HF_ENA

Enables FRO HF clock for the Frequency Measure module.

enumerator kCLOCK_FRO12MHZ_ENA

Enables the FRO_12MHz clock for the Flash, LPTIMER0/1, and Frequency Measurement modules.

enumerator kCLOCK_FRO1MHZ_ENA

Enables the FRO_1MHz clock for RTC module and for UTICK.

enumerator kCLOCK_CLKIN_ENA_FM_USBH_LPT

Enables the clk_in clock for the Frequency Measurement, USB HS and LPTIMER0/1 modules.

enum _clock_usb_phy_src

Source of the USB HS PHY.

Values:

enumerator kCLOCK_Usbphy480M

Use 480M.

enum _scg_status

SCG status return codes.

Values:

enumerator kStatus_SCG_Busy

Clock is busy.

enumerator kStatus_SCG_InvalidSrc

Invalid source.

enum _firc_trim_mode

firc trim mode.

Values:

enumerator kSCG_FircTrimNonUpdate

Trim enable but not enable trim value update. In this mode, the trim value is fixed to the initialized value which is defined by trimCoar and trimFine in configure structure trim_config_t.

enumerator kSCG_FircTrimUpdate

Trim enable and trim value update enable. In this mode, the trim value is auto update.

enum _firc_trim_src

firc trim source.

Values:

enumerator kSCG_FircTrimSrcUsb0

USB0 start of frame (1kHz).

enumerator kSCG_FircTrimSrcSysOsc

System OSC.

enumerator kSCG_FircTrimSrcRtcOsc

RTC OSC (32.768 kHz).

enum _sirc_trim_mode

sirc trim mode.

Values:

enumerator kSCG_SircTrimNonUpdate

Trim enable but not enable trim value update. In this mode, the trim value is fixed to the initialized value which is defined by trimCoar and trimFine in configure structure trim_config_t.

enumerator kSCG_SircTrimUpdate

Trim enable and trim value update enable. In this mode, the trim value is auto update.

enum _sirc_trim_src

sirc trim source.

Values:

enumerator kSCG_SircTrimSrcSysOsc

System OSC.

enumerator kSCG_SircTrimSrcRtcOsc

RTC OSC (32.768 kHz).

enum _scg_sosc_monitor_mode

SCG system OSC monitor mode.

Values:

enumerator kSCG_SysOscMonitorDisable

Monitor disabled.

enumerator kSCG_SysOscMonitorInt

Interrupt when the SOSC error is detected.

enumerator kSCG_SysOscMonitorReset

Reset when the SOSC error is detected.

enum _scg_rosc_monitor_mode

SCG ROSC monitor mode.

Values:

enumerator kSCG_RoscMonitorDisable

Monitor disabled.

enumerator kSCG_RoscMonitorInt

Interrupt when the RTC OSC error is detected.

enumerator kSCG_RoscMonitorReset

Reset when the RTC OSC error is detected.

enum _scg_upll_monitor_mode

SCG UPLL monitor mode.

Values:

enumerator kSCG_UpllMonitorDisable

Monitor disabled.

enumerator kSCG_UpllMonitorInt

Interrupt when the UPLL error is detected.

enumerator kSCG_UpllMonitorReset

Reset when the UPLL error is detected.

enum _scg_pll0_monitor_mode

SCG PLL0 monitor mode.

Values:

enumerator kSCG_Pll0MonitorDisable

Monitor disabled.

enumerator kSCG_Pll0MonitorInt

Interrupt when the PLL0 Clock error is detected.

enumerator kSCG_Pll0MonitorReset

Reset when the PLL0 Clock error is detected.

enum _scg_pll1_monitor_mode

SCG PLL1 monitor mode.

Values:

enumerator kSCG_Pll1MonitorDisable

Monitor disabled.

enumerator kSCG_Pll1MonitorInt

Interrupt when the PLL1 Clock error is detected.

enumerator kSCG_Pll1MonitorReset

Reset when the PLL1 Clock error is detected.

enum _vbat_osc_xtal_cap

The enumerator of internal capacitance of OSC’s XTAL pin.

Values:

enumerator kVBAT_OscXtal0pFCap

The internal capacitance for XTAL pin is 0pF.

enumerator kVBAT_OscXtal2pFCap

The internal capacitance for XTAL pin is 2pF.

enumerator kVBAT_OscXtal4pFCap

The internal capacitance for XTAL pin is 4pF.

enumerator kVBAT_OscXtal6pFCap

The internal capacitance for XTAL pin is 6pF.

enumerator kVBAT_OscXtal8pFCap

The internal capacitance for XTAL pin is 8pF.

enumerator kVBAT_OscXtal10pFCap

The internal capacitance for XTAL pin is 10pF.

enumerator kVBAT_OscXtal12pFCap

The internal capacitance for XTAL pin is 12pF.

enumerator kVBAT_OscXtal14pFCap

The internal capacitance for XTAL pin is 14pF.

enumerator kVBAT_OscXtal16pFCap

The internal capacitance for XTAL pin is 16pF.

enumerator kVBAT_OscXtal18pFCap

The internal capacitance for XTAL pin is 18pF.

enumerator kVBAT_OscXtal20pFCap

The internal capacitance for XTAL pin is 20pF.

enumerator kVBAT_OscXtal22pFCap

The internal capacitance for XTAL pin is 22pF.

enumerator kVBAT_OscXtal24pFCap

The internal capacitance for XTAL pin is 24pF.

enumerator kVBAT_OscXtal26pFCap

The internal capacitance for XTAL pin is 26pF.

enumerator kVBAT_OscXtal28pFCap

The internal capacitance for XTAL pin is 28pF.

enumerator kVBAT_OscXtal30pFCap

The internal capacitance for XTAL pin is 30pF.

enum _vbat_osc_extal_cap

The enumerator of internal capacitance of OSC’s EXTAL pin.

Values:

enumerator kVBAT_OscExtal0pFCap

The internal capacitance for EXTAL pin is 0pF.

enumerator kVBAT_OscExtal2pFCap

The internal capacitance for EXTAL pin is 2pF.

enumerator kVBAT_OscExtal4pFCap

The internal capacitance for EXTAL pin is 4pF.

enumerator kVBAT_OscExtal6pFCap

The internal capacitance for EXTAL pin is 6pF.

enumerator kVBAT_OscExtal8pFCap

The internal capacitance for EXTAL pin is 8pF.

enumerator kVBAT_OscExtal10pFCap

The internal capacitance for EXTAL pin is 10pF.

enumerator kVBAT_OscExtal12pFCap

The internal capacitance for EXTAL pin is 12pF.

enumerator kVBAT_OscExtal14pFCap

The internal capacitance for EXTAL pin is 14pF.

enumerator kVBAT_OscExtal16pFCap

The internal capacitance for EXTAL pin is 16pF.

enumerator kVBAT_OscExtal18pFCap

The internal capacitance for EXTAL pin is 18pF.

enumerator kVBAT_OscExtal20pFCap

The internal capacitance for EXTAL pin is 20pF.

enumerator kVBAT_OscExtal22pFCap

The internal capacitance for EXTAL pin is 22pF.

enumerator kVBAT_OscExtal24pFCap

The internal capacitance for EXTAL pin is 24pF.

enumerator kVBAT_OscExtal26pFCap

The internal capacitance for EXTAL pin is 26pF.

enumerator kVBAT_OscExtal28pFCap

The internal capacitance for EXTAL pin is 28pF.

enumerator kVBAT_OscExtal30pFCap

The internal capacitance for EXTAL pin is 30pF.

enum _vbat_osc_fine_adjustment_value

The enumerator of osc amplifier gain fine adjustment. Changes the oscillator amplitude by modifying the automatic gain control (AGC).

Values:

enumerator kVBAT_OscCoarseAdjustment05
enumerator kVBAT_OscCoarseAdjustment10
enumerator kVBAT_OscCoarseAdjustment18
enumerator kVBAT_OscCoarseAdjustment33
enum _run_mode

The active run mode (voltage level).

Values:

enumerator kMD_Mode

Midvoltage (1.0 V).

enumerator kSD_Mode

Normal voltage (1.1 V).

enumerator kOD_Mode

Overdrive voltage (1.2 V).

enum _vbat_osc_init_trim

The enumerator of Initialization Trim.

Values:

enumerator kVBAT_OscInitTrim8000ms

Configures the start-up time of the oscillator to 8s.

enumerator kVBAT_OscInitTrim4000ms

Configures the start-up time of the oscillator to 4s.

enumerator kVBAT_OscInitTrim2000ms

Configures the start-up time of the oscillator to 2s.

enumerator kVBAT_OscInitTrim1000ms

Configures the start-up time of the oscillator to 1s.

enumerator kVBAT_OscInitTrim500ms

Configures the start-up time of the oscillator to 0.5s.

enumerator kVBAT_OscInitTrim250ms

Configures the start-up time of the oscillator to 0.25s.

enumerator kVBAT_OscInitTrim125ms

Configures the start-up time of the oscillator to 0.125s.

enumerator kVBAT_OscInitTrimHalfms

Configures the start-up time of the oscillator to 0.5ms.

enum _vbat_osc_cap_trim

The enumerator of Capacitor Trim.

Values:

enumerator kVBAT_OscCapTrimDefault
enumerator kVBAT_OscCapTrim1us
enumerator kVBAT_OscCapTrim2us
enumerator kVBAT_OscCapTrim2andhalfus
enum _vbat_osc_dly_trim

The enumerator of Delay Trim.

Values:

enumerator kVBAT_OscDlyTrim0

P current 9(nA) and N Current 6(nA).

enumerator kVBAT_OscDlyTrim1

P current 13(nA) and N Current 6(nA).

enumerator kVBAT_OscDlyTrim3

P current 4(nA) and N Current 6(nA).

enumerator kVBAT_OscDlyTrim4

P current 9(nA) and N Current 4(nA).

enumerator kVBAT_OscDlyTrim5

P current 13(nA) and N Current 4(nA).

enumerator kVBAT_OscDlyTrim6

P current 4(nA) and N Current 4(nA).

enumerator kVBAT_OscDlyTrim7

P current 9(nA) and N Current 2(nA).

enumerator kVBAT_OscDlyTrim8

P current 13(nA) and N Current 2(nA).

enumerator kVBAT_OscDlyTrim9

P current 4(nA) and N Current 2(nA).

enum _vbat_osc_cap2_trim

The enumerator of CAP2_TRIM.

Values:

enumerator kVBAT_OscCap2Trim0
enumerator kVBAT_OscCap2Trim1
enum _vbat_osc_cmp_trim

The enumerator of Comparator Trim.

Values:

enumerator kVBAT_OscCmpTrim760mv
enumerator kVBAT_OscCmpTrim770mv
enumerator kVBAT_OscCmpTrim740mv
enum _vbat_osc_mode_en

The enumerator of configures Crystal Oscillator mode..

Values:

enumerator kVBAT_OscNormalModeEnable
enumerator kVBAT_OscStartupModeEnable
enumerator kVBAT_OscLowpowerModeEnable
enum _pll_clk_src

PLL clock source.

Values:

enumerator kPll_ClkSrcSysOsc

System OSC.

enumerator kPll_ClkSrcFirc

Fast IRC.

enumerator kPll_ClkSrcRosc

RTC OSC.

enum _ss_progmodfm

PLL Spread Spectrum (SS) Programmable modulation frequency See (MF) field in the PLL0SSCG1 register in the UM.

Values:

enumerator kSS_MF_512

Nss = 512 (fm ~= 3.9 - 7.8 kHz)

enumerator kSS_MF_384

Nss ~= 384 (fm ~= 5.2 - 10.4 kHz)

enumerator kSS_MF_256

Nss = 256 (fm ~= 7.8 - 15.6 kHz)

enumerator kSS_MF_128

Nss = 128 (fm ~= 15.6 - 31.3 kHz)

enumerator kSS_MF_64

Nss = 64 (fm ~= 32.3 - 64.5 kHz)

enumerator kSS_MF_32

Nss = 32 (fm ~= 62.5 - 125 kHz)

enumerator kSS_MF_24

Nss ~= 24 (fm ~= 83.3 - 166.6 kHz)

enumerator kSS_MF_16

Nss = 16 (fm ~= 125 - 250 kHz)

enum _ss_progmoddp

PLL Spread Spectrum (SS) Programmable frequency modulation depth See (MR) field in the PLL0SSCG1 register in the UM.

Values:

enumerator kSS_MR_K0

k = 0 (no spread spectrum)

enumerator kSS_MR_K1

k ~= 1

enumerator kSS_MR_K1_5

k ~= 1.5

enumerator kSS_MR_K2

k ~= 2

enumerator kSS_MR_K3

k ~= 3

enumerator kSS_MR_K4

k ~= 4

enumerator kSS_MR_K6

k ~= 6

enumerator kSS_MR_K8

k ~= 8

enum _ss_modwvctrl

PLL Spread Spectrum (SS) Modulation waveform control See (MC) field in the PLL0SSCG1 register in the UM.

Compensation for low pass filtering of the PLL to get a triangular modulation at the output of the PLL, giving a flat frequency spectrum.

Values:

enumerator kSS_MC_NOC

no compensation

enumerator kSS_MC_RECC

recommended setting

enumerator kSS_MC_MAXC

max. compensation

enum _pll_error

PLL status definitions.

Values:

enumerator kStatus_PLL_Success

PLL operation was successful

enumerator kStatus_PLL_OutputTooLow

PLL output rate request was too low

enumerator kStatus_PLL_OutputTooHigh

PLL output rate request was too high

enumerator kStatus_PLL_OutputError

PLL output rate error

enumerator kStatus_PLL_InputTooLow

PLL input rate is too low

enumerator kStatus_PLL_InputTooHigh

PLL input rate is too high

enumerator kStatus_PLL_OutsideIntLimit

Requested output rate isn’t possible

enumerator kStatus_PLL_CCOTooLow

Requested CCO rate isn’t possible

enumerator kStatus_PLL_CCOTooHigh

Requested CCO rate isn’t possible

typedef enum _clock_ip_name clock_ip_name_t

Clock gate name used for CLOCK_EnableClock/CLOCK_DisableClock.

typedef enum _clock_name clock_name_t

Clock name used to get clock frequency.

typedef enum _clock_attach_id clock_attach_id_t

The enumerator of clock attach Id.

typedef enum _clock_div_name clock_div_name_t

Clock dividers.

typedef enum _osc32k_clk_gate_id osc32k_clk_gate_id_t

OSC32K clock gate.

typedef enum _clk16k_clk_gate_id clk16k_clk_gate_id_t

CLK16K clock gate.

typedef enum _clock_ctrl_enable clock_ctrl_enable_t

system clocks enable controls

typedef enum _clock_usb_phy_src clock_usb_phy_src_t

Source of the USB HS PHY.

typedef enum _firc_trim_mode firc_trim_mode_t

firc trim mode.

typedef enum _firc_trim_src firc_trim_src_t

firc trim source.

typedef struct _firc_trim_config firc_trim_config_t

firc trim configuration.

typedef enum _sirc_trim_mode sirc_trim_mode_t

sirc trim mode.

typedef enum _sirc_trim_src sirc_trim_src_t

sirc trim source.

typedef struct _sirc_trim_config sirc_trim_config_t

sirc trim configuration.

typedef enum _scg_sosc_monitor_mode scg_sosc_monitor_mode_t

SCG system OSC monitor mode.

typedef enum _scg_rosc_monitor_mode scg_rosc_monitor_mode_t

SCG ROSC monitor mode.

typedef enum _scg_upll_monitor_mode scg_upll_monitor_mode_t

SCG UPLL monitor mode.

typedef enum _scg_pll0_monitor_mode scg_pll0_monitor_mode_t

SCG PLL0 monitor mode.

typedef enum _scg_pll1_monitor_mode scg_pll1_monitor_mode_t

SCG PLL1 monitor mode.

typedef enum _vbat_osc_xtal_cap vbat_osc_xtal_cap_t

The enumerator of internal capacitance of OSC’s XTAL pin.

typedef enum _vbat_osc_extal_cap vbat_osc_extal_cap_t

The enumerator of internal capacitance of OSC’s EXTAL pin.

typedef enum _vbat_osc_fine_adjustment_value vbat_osc_coarse_adjustment_value_t

The enumerator of osc amplifier gain fine adjustment. Changes the oscillator amplitude by modifying the automatic gain control (AGC).

typedef struct _vbat_osc_config vbat_osc_config_t

The structure of oscillator configuration.

typedef enum _run_mode run_mode_t

The active run mode (voltage level).

typedef enum _vbat_osc_init_trim vbat_osc_init_trim_t

The enumerator of Initialization Trim.

typedef enum _vbat_osc_cap_trim vbat_osc_cap_trim_t

The enumerator of Capacitor Trim.

typedef enum _vbat_osc_dly_trim vbat_osc_dly_trim_t

The enumerator of Delay Trim.

typedef enum _vbat_osc_cap2_trim vbat_osc_cap2_trim_t

The enumerator of CAP2_TRIM.

typedef enum _vbat_osc_cmp_trim vbat_osc_cmp_trim_t

The enumerator of Comparator Trim.

typedef enum _vbat_osc_mode_en vbat_osc_mode_en_t

The enumerator of configures Crystal Oscillator mode..

typedef struct _osc_32k_config osc_32k_config_t

The structure of oscillator configuration.

typedef enum _pll_clk_src pll_clk_src_t

PLL clock source.

typedef enum _ss_progmodfm ss_progmodfm_t

PLL Spread Spectrum (SS) Programmable modulation frequency See (MF) field in the PLL0SSCG1 register in the UM.

typedef enum _ss_progmoddp ss_progmoddp_t

PLL Spread Spectrum (SS) Programmable frequency modulation depth See (MR) field in the PLL0SSCG1 register in the UM.

typedef enum _ss_modwvctrl ss_modwvctrl_t

PLL Spread Spectrum (SS) Modulation waveform control See (MC) field in the PLL0SSCG1 register in the UM.

Compensation for low pass filtering of the PLL to get a triangular modulation at the output of the PLL, giving a flat frequency spectrum.

typedef struct _pll_config pll_config_t

PLL configuration structure.

This structure can be used to configure the settings for a PLL setup structure. Fill in the desired configuration for the PLL and call the PLL setup function to fill in a PLL setup structure.

typedef struct _pll_setup pll_setup_t

PLL0 setup structure This structure can be used to pre-build a PLL setup configuration at run-time and quickly set the PLL to the configuration. It can be populated with the PLL setup function. If powering up or waiting for PLL lock, the PLL input clock source should be configured prior to PLL setup.

typedef enum _pll_error pll_error_t

PLL status definitions.

static inline void CLOCK_EnableClock(clock_ip_name_t clk)

Enable the clock for specific IP.

Parameters:
  • clk – : Clock to be enabled.

Returns:

Nothing

static inline void CLOCK_DisableClock(clock_ip_name_t clk)

Disable the clock for specific IP.

Parameters:
  • clk – : Clock to be Disabled.

Returns:

Nothing

status_t CLOCK_SetupFROHFClocking(uint32_t iFreq)

Initialize the Core clock to given frequency (48 or 144 MHz). This function turns on FIRC and select the given frequency as the source of fro_hf.

Parameters:
  • iFreq – : Desired frequency (must be one of CLK_FRO_44MHZ or CLK_FRO_144MHZ)

Returns:

returns success or fail status.

status_t CLOCK_SetupExtClocking(uint32_t iFreq)

Initialize the external osc clock to given frequency.

Parameters:
  • iFreq – : Desired frequency (must be equal to exact rate in Hz)

Returns:

returns success or fail status.

status_t CLOCK_SetupExtRefClocking(uint32_t iFreq)

Initialize the external reference clock to given frequency.

Parameters:
  • iFreq – : Desired frequency (must be equal to exact rate in Hz)

Returns:

returns success or fail status.

status_t CLOCK_SetupOsc32KClocking(uint32_t id)

Initialize the XTAL32/EXTAL32 input clock to given frequency.

Parameters:
  • id – : OSC 32 kHz output clock to specified modules, it should use osc32k_clk_gate_id_t value

Returns:

returns success or fail status.

void CLOCK_GetDefaultOsc32KConfig(osc_32k_config_t *config)

Get default XTAL32/EXTAL32 clock configuration structure. This function initializes the osc 32k configuration structure to a default value. The default values are: config->initTrim = kVBAT_OscInitTrim500ms; config->capTrim = kVBAT_OscCapTrimDefault; config->dlyTrim = kVBAT_OscDlyTrim5; config->cap2Trim = kVBAT_OscCap2Trim0; config->cmpTrim = kVBAT_OscCmpTrim760mv; config->mode = kVBAT_OscNormalModeEnable; config->xtalCap = kVBAT_OscXtal24pFCap; config->extalCap = kVBAT_OscExtal22pFCap; config->ampGain = kVBAT_OscCoarseAdjustment05; config->id = kCLOCK_Osc32kToVbat;.

Parameters:
  • config – Pointer to a configuration structure

status_t CLOCK_SetupOsc32KClockingConfig(osc_32k_config_t config)

Initialize the OSC 32K with user-defined settings.

Parameters:
  • config – : OSC 32K configuration structure

Returns:

returns success or fail status.

status_t CLOCK_SetupClk16KClocking(uint32_t id)

Initialize the FRO16K input clock to given frequency.

Parameters:
  • id – : FRO 16 kHz output clock to specified modules, it should use clk16k_clk_gate_id_t value

Returns:

returns success or fail status.

status_t CLOCK_FROHFTrimConfig(firc_trim_config_t config)

Setup FROHF trim.

Parameters:
  • config – : FROHF trim value

Returns:

returns success or fail status.

status_t CLOCK_FRO12MTrimConfig(sirc_trim_config_t config)

Setup FRO 12M trim.

Parameters:
  • config – : FRO 12M trim value

Returns:

returns success or fail status.

void CLOCK_SetSysOscMonitorMode(scg_sosc_monitor_mode_t mode)

Sets the system OSC monitor mode.

This function sets the system OSC monitor mode. The mode can be disabled, it can generate an interrupt when the error is disabled, or reset when the error is detected.

Parameters:
  • mode – Monitor mode to set.

void CLOCK_SetRoscMonitorMode(scg_rosc_monitor_mode_t mode)

Sets the ROSC monitor mode.

This function sets the ROSC monitor mode. The mode can be disabled, it can generate an interrupt when the error is disabled, or reset when the error is detected.

Parameters:
  • mode – Monitor mode to set.

void CLOCK_SetUpllMonitorMode(scg_upll_monitor_mode_t mode)

Sets the UPLL monitor mode.

This function sets the UPLL monitor mode. The mode can be disabled, it can generate an interrupt when the error is disabled, or reset when the error is detected.

Parameters:
  • mode – Monitor mode to set.

void CLOCK_SetPll0MonitorMode(scg_pll0_monitor_mode_t mode)

Sets the PLL0 monitor mode.

This function sets the PLL0 monitor mode. The mode can be disabled, it can generate an interrupt when the error is disabled, or reset when the error is detected.

Parameters:
  • mode – Monitor mode to set.

void CLOCK_SetPll1MonitorMode(scg_pll1_monitor_mode_t mode)

Sets the PLL1 monitor mode.

This function sets the PLL1 monitor mode. The mode can be disabled, it can generate an interrupt when the error is disabled, or reset when the error is detected.

Parameters:
  • mode – Monitor mode to set.

void VBAT_SetOscConfig(VBAT_Type *base, const vbat_osc_config_t *config)

Config 32k Crystal Oscillator.

Parameters:
  • base – VBAT peripheral base address.

  • config – The pointer to the structure vbat_osc_config_t.

status_t CLOCK_SetFLASHAccessCyclesForFreq(uint32_t system_freq_hz, run_mode_t mode)

Set the additional number of wait-states added to account for the ratio of system clock period to flash access time during full speed power mode.

Parameters:
  • system_freq_hz – : Input frequency

  • mode – : Active run mode (voltage level).

Returns:

success or fail status

void CLOCK_AttachClk(clock_attach_id_t connection)

Configure the clock selection muxes.

Parameters:
  • connection – : Clock to be configured.

Returns:

Nothing

clock_attach_id_t CLOCK_GetClockAttachId(clock_attach_id_t attachId)

Get the actual clock attach id. This fuction uses the offset in input attach id, then it reads the actual source value in the register and combine the offset to obtain an actual attach id.

Parameters:
  • attachId – : Clock attach id to get.

Returns:

Clock source value.

void CLOCK_SetClkDiv(clock_div_name_t div_name, uint32_t divided_by_value)

Setup peripheral clock dividers.

Parameters:
  • div_name – : Clock divider name

  • divided_by_value – Value to be divided

Returns:

Nothing

uint32_t CLOCK_GetClkDiv(clock_div_name_t div_name)

Get peripheral clock dividers.

Parameters:
  • div_name – : Clock divider name

Returns:

peripheral clock dividers

void CLOCK_HaltClkDiv(clock_div_name_t div_name)

Halt peripheral clock dividers.

Parameters:
  • div_name – : Clock divider name

Returns:

Nothing

void CLOCK_SetupClockCtrl(uint32_t mask)

system clocks enable controls.

Parameters:
  • mask – : system clocks enable value, it should use clock_ctrl_enable_t value

Returns:

Nothing

uint32_t CLOCK_GetFreq(clock_name_t clockName)

Return Frequency of selected clock.

Returns:

Frequency of selected clock

uint32_t CLOCK_GetMainClkFreq(void)

Return Frequency of main.

Returns:

Frequency of the main

uint32_t CLOCK_GetCoreSysClkFreq(void)

Return Frequency of core.

Returns:

Frequency of the core

uint32_t CLOCK_GetCTimerClkFreq(uint32_t id)

Return Frequency of CTimer functional Clock.

Returns:

Frequency of CTimer functional Clock

uint32_t CLOCK_GetAdcClkFreq(uint32_t id)

Return Frequency of Adc Clock.

Returns:

Frequency of Adc.

uint32_t CLOCK_GetUsb0ClkFreq(void)

Return Frequency of Usb Clock.

Returns:

Frequency of Adc.

uint32_t CLOCK_GetLPFlexCommClkFreq(uint32_t id)

Return Frequency of LPFlexComm Clock.

Returns:

Frequency of LPFlexComm Clock

uint32_t CLOCK_GetSctClkFreq(void)

Return Frequency of SCTimer Clock.

Returns:

Frequency of SCTimer Clock.

uint32_t CLOCK_GetTsiClkFreq(void)

Return Frequency of TSI Clock.

Returns:

Frequency of TSI Clock.

uint32_t CLOCK_GetSincFilterClkFreq(void)

Return Frequency of SINC FILTER Clock.

Returns:

Frequency of SINC FILTER Clock.

uint32_t CLOCK_GetDacClkFreq(uint32_t id)

Return Frequency of DAC Clock.

Returns:

Frequency of DAC Clock

uint32_t CLOCK_GetFlexspiClkFreq(void)

Return Frequency of FlexSPI.

Returns:

Frequency of FlexSPI Clock

uint32_t CLOCK_GetPll0OutFreq(void)

Return Frequency of PLL.

Returns:

Frequency of PLL

uint32_t CLOCK_GetPll1OutFreq(void)

Return Frequency of USB PLL.

Returns:

Frequency of PLL

uint32_t CLOCK_GetPllClkDivFreq(void)

Return Frequency of PLLCLKDIV.

Returns:

Frequency of PLLCLKDIV Clock

uint32_t CLOCK_GetI3cClkFreq(uint32_t id)

Return Frequency of I3C function Clock.

Returns:

Frequency of I3C function Clock

uint32_t CLOCK_GetI3cSTCClkFreq(uint32_t id)

Return Frequency of I3C function slow TC Clock.

Returns:

Frequency of I3C function slow TC Clock

uint32_t CLOCK_GetI3cSClkFreq(uint32_t id)

Return Frequency of I3C function slow Clock.

Returns:

Frequency of I3C function slow Clock

uint32_t CLOCK_GetMicfilClkFreq(void)

Return Frequency of MICFIL Clock.

Returns:

Frequency of MICFIL.

uint32_t CLOCK_GetUsdhcClkFreq(void)

Return Frequency of uSDHC.

Returns:

Frequency of uSDHC Clock

uint32_t CLOCK_GetFlexioClkFreq(void)

Return Frequency of FLEXIO.

Returns:

Frequency of FLEXIO Clock

uint32_t CLOCK_GetFlexcanClkFreq(uint32_t id)

Return Frequency of FLEXCAN.

Returns:

Frequency of FLEXCAN Clock

uint32_t CLOCK_GetEnetRmiiClkFreq(void)

Return Frequency of Ethernet RMII Clock.

Returns:

Frequency of Ethernet RMII.

uint32_t CLOCK_GetEnetPtpRefClkFreq(void)

Return Frequency of Ethernet PTP REF Clock.

Returns:

Frequency of Ethernet PTP REF.

void CLOCK_SetupEnetTxClk(uint32_t iFreq)

Initialize the ENET TX CLK to given frequency.

Parameters:
  • iFreq – : Desired frequency

Returns:

Nothing

uint32_t CLOCK_GetEnetTxClkFreq(void)

Return Frequency of ENET TX CLK.

Returns:

Frequency of ENET TX CLK

uint32_t CLOCK_GetEwm0ClkFreq(void)

Return Frequency of EWM0 Clock.

Returns:

Frequency of EWM0.

uint32_t CLOCK_GetWdtClkFreq(uint32_t id)

Return Frequency of Watchdog.

Returns:

Frequency of Watchdog

uint32_t CLOCK_GetOstimerClkFreq(void)

Return Frequency of OSTIMER.

Returns:

Frequency of OSTIMER Clock

uint32_t CLOCK_GetCmpFClkFreq(uint32_t id)

Return Frequency of CMP Function Clock.

Returns:

Frequency of CMP Function.

uint32_t CLOCK_GetCmpRRClkFreq(uint32_t id)

Return Frequency of CMP Round Robin Clock.

Returns:

Frequency of CMP Round Robin.

uint32_t CLOCK_GetSaiClkFreq(uint32_t id)

Return Frequency of SAI Clock.

Returns:

Frequency of SAI Clock.

void CLOCK_SetupSaiMclk(uint32_t id, uint32_t iFreq)

Initialize the SAI MCLK to given frequency.

Parameters:
  • iFreq – : Desired frequency

Returns:

Nothing

void CLOCK_SetupSaiTxBclk(uint32_t id, uint32_t iFreq)

Initialize the SAI TX BCLK to given frequency.

Parameters:
  • iFreq – : Desired frequency

Returns:

Nothing

void CLOCK_SetupSaiRxBclk(uint32_t id, uint32_t iFreq)

Initialize the SAI RX BCLK to given frequency.

Parameters:
  • iFreq – : Desired frequency

Returns:

Nothing

uint32_t CLOCK_GetSaiMclkFreq(uint32_t id)

Return Frequency of SAI MCLK.

Returns:

Frequency of SAI MCLK

uint32_t CLOCK_GetSaiTxBclkFreq(uint32_t id)

Return Frequency of SAI TX BCLK.

Returns:

Frequency of SAI TX BCLK

uint32_t CLOCK_GetSaiRxBclkFreq(uint32_t id)

Return Frequency of SAI RX BCLK.

Returns:

Frequency of SAI RX BCLK

uint32_t CLOCK_GetEmvsimClkFreq(uint32_t id)

Return Frequency of EMVSIM Clock.

Returns:

Frequency of EMVSIM Clock.

uint32_t CLOCK_GetPLL0InClockRate(void)

Return PLL0 input clock rate.

Returns:

PLL0 input clock rate

uint32_t CLOCK_GetPLL1InClockRate(void)

Return PLL1 input clock rate.

Returns:

PLL1 input clock rate

uint32_t CLOCK_GetExtUpllFreq(void)

Gets the external UPLL frequency.

Returns:

The frequency of the external UPLL.

void CLOCK_SetExtUpllFreq(uint32_t freq)

Sets the external UPLL frequency.

Parameters:
  • The – frequency of external UPLL.

__STATIC_INLINE bool CLOCK_IsPLL0Locked (void)

Check if PLL is locked or not.

Returns:

true if the PLL is locked, false if not locked

__STATIC_INLINE bool CLOCK_IsPLL1Locked (void)

Check if PLL1 is locked or not.

Returns:

true if the PLL1 is locked, false if not locked

uint32_t CLOCK_GetPLLOutFromSetup(pll_setup_t *pSetup)

Return PLL0 output clock rate from setup structure.

Parameters:
  • pSetup – : Pointer to a PLL setup structure

Returns:

System PLL output clock rate the setup structure will generate

pll_error_t CLOCK_SetupPLLData(pll_config_t *pControl, pll_setup_t *pSetup)

Set PLL output based on the passed PLL setup data.

Note

Actual frequency for setup may vary from the desired frequency based on the accuracy of input clocks, rounding, non-fractional PLL mode, etc.

Parameters:
  • pControl – : Pointer to populated PLL control structure to generate setup with

  • pSetup – : Pointer to PLL setup structure to be filled

Returns:

PLL_ERROR_SUCCESS on success, or PLL setup error code

pll_error_t CLOCK_SetPLL0Freq(const pll_setup_t *pSetup)

Set PLL output from PLL setup structure (precise frequency)

Note

This function will power off the PLL, setup the PLL with the new setup data, and then optionally powerup the PLL, wait for PLL lock, and adjust system voltages to the new PLL rate. The function will not alter any source clocks (ie, main systen clock) that may use the PLL, so these should be setup prior to and after exiting the function.

Parameters:
  • pSetup – : Pointer to populated PLL setup structure

Returns:

kStatus_PLL_Success on success, or PLL setup error code

pll_error_t CLOCK_SetPLL1Freq(const pll_setup_t *pSetup)

Set PLL output from PLL setup structure (precise frequency)

Note

This function will power off the PLL, setup the PLL with the new setup data, and then optionally powerup the PLL, wait for PLL lock, and adjust system voltages to the new PLL rate. The function will not alter any source clocks (ie, main systen clock) that may use the PLL, so these should be setup prior to and after exiting the function.

Parameters:
  • pSetup – : Pointer to populated PLL setup structure

Returns:

kStatus_PLL_Success on success, or PLL setup error code

void CLOCK_EnableOstimer32kClock(void)

Enable the OSTIMER 32k clock.

Returns:

Nothing

bool CLOCK_EnableUsbfsClock(void)

brief Enable USB FS clock. Enable USB Full Speed clock.

bool CLOCK_EnableUsbhsPhyPllClock(clock_usb_phy_src_t src, uint32_t freq)

brief Enable USB HS PHY PLL clock.

This function enables the internal 480MHz USB PHY PLL clock.

param src USB HS PHY PLL clock source. param freq The frequency specified by src. retval true The clock is set successfully. retval false The clock source is invalid to get proper USB HS clock.

void CLOCK_DisableUsbhsPhyPllClock(void)

brief Disable USB HS PHY PLL clock.

This function disables USB HS PHY PLL clock.

bool CLOCK_EnableUsbhsClock(void)

brief Enable USB HS clock. retval true The clock is set successfully. retval false The clock source is invalid to get proper USB HS clock.

status_t CLOCK_FIRCAutoTrimWithSOF(void)

FIRC Auto Trim With SOF.

Returns:

returns success or fail status.

static inline void CLOCK_EnableCpu1Clock(SYSCON_Type *base, bool enable)

Enable/disable the CPU1 clock.

Parameters:
  • enable – True to enable the clock, false to disable the clock.

FSL_CLOCK_DRIVER_VERSION

CLOCK driver version 2.0.1.

FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL

Configure whether driver controls clock.

When set to 0, peripheral drivers will enable clock in initialize function and disable clock in de-initialize function. When set to 1, peripheral driver will not control the clock, application could control the clock out of the driver.

Note

All drivers share this feature switcher. If it is set to 1, application should handle clock enable and disable for all drivers.

CLOCK_USR_CFG_PLL_CONFIG_CACHE_COUNT

User-defined the size of cache for CLOCK_PllGetConfig() function.

Once define this MACRO to be non-zero value, CLOCK_PllGetConfig() function would cache the recent calulation and accelerate the execution to get the right settings.

SDK_DEVICE_MAXIMUM_CPU_CLOCK_FREQUENCY
ROM_CLOCKS

Clock ip name array for ROM.

SRAM_CLOCKS

Clock ip name array for SRAM.

FMC_CLOCKS

Clock ip name array for FMC.

INPUTMUX_CLOCKS

Clock ip name array for INPUTMUX.

ETH_CLOCKS

Clock ip name array for ENET.

GPIO_CLOCKS

Clock ip name array for GPIO.

GDET_CLOCKS

Clock ip name array for GDET.

PINT_CLOCKS

Clock ip name array for PINT.

DMA_CLOCKS

Clock ip name array for DMA.

EDMA_CLOCKS

Clock gate name array for EDMA.

CRC_CLOCKS

Clock ip name array for CRC.

WWDT_CLOCKS

Clock ip name array for WWDT.

MAILBOX_CLOCKS

Clock ip name array for Mailbox.

LPADC_CLOCKS

Clock ip name array for LPADC.

MRT_CLOCKS

Clock ip name array for MRT.

OSTIMER_CLOCKS

Clock ip name array for OSTIMER.

SCT_CLOCKS

Clock ip name array for SCT0.

UTICK_CLOCKS

Clock ip name array for UTICK.

LP_FLEXCOMM_CLOCKS

Clock ip name array for LP_FLEXCOMM.

LPUART_CLOCKS

Clock ip name array for LPUART.

LPI2C_CLOCKS

Clock ip name array for LPI2C.

LPSPI_CLOCKS

Clock ip name array for LSPI.

CTIMER_CLOCKS

Clock ip name array for CTIMER.

FREQME_CLOCKS

Clock ip name array for FREQME.

POWERQUAD_CLOCKS

Clock ip name array for PowerQuad.

PLU_CLOCKS

Clock ip name array for PLU.

PUF_CLOCKS

Clock ip name array for PUF.

VREF_CLOCKS

Clock ip name array for VREF.

LPDAC_CLOCKS

Clock ip name array for LPDAC.

HPDAC_CLOCKS

Clock ip name array for HPDAC.

PWM_CLOCKS

Clock ip name array for PWM.

QDC_CLOCKS

Clock ip name array for QDC.

FLEXIO_CLOCKS

Clock ip name array for FLEXIO.

FLEXCAN_CLOCKS

Clock ip name array for FLEXCAN.

EMVSIM_CLOCKS

Clock ip name array for EMVSIM.

I3C_CLOCKS

Clock ip name array for I3C.

USDHC_CLOCKS

Clock ip name array for USDHC.

FLEXSPI_CLOCKS

Clock ip name array for FLEXSPI.

SAI_CLOCKS

Clock ip name array for SAI.

RTC_CLOCKS

Clock ip name array for RTC.

PDM_CLOCKS

Clock ip name array for PDM.

ERM_CLOCKS

Clock ip name array for ERM.

EIM_CLOCKS

Clock ip name array for EIM.

OPAMP_CLOCKS

Clock ip name array for OPAMP.

TSI_CLOCKS

Clock ip name array for TSI.

TRNG_CLOCKS

Clock ip name array for TRNG.

LPCMP_CLOCKS

Clock ip name array for LPCMP.

SINC_CLOCKS

Clock ip name array for SINC.

SEMA42_CLOCKS

Clock ip name array for SEMA42.

CLK_GATE_REG_OFFSET_SHIFT

Clock gate name used for CLOCK_EnableClock/CLOCK_DisableClock.

CLK_GATE_REG_OFFSET_MASK
CLK_GATE_BIT_SHIFT_SHIFT
CLK_GATE_BIT_SHIFT_MASK
CLK_GATE_DEFINE(reg_offset, bit_shift)
CLK_GATE_ABSTRACT_REG_OFFSET(x)
CLK_GATE_ABSTRACT_BITS_SHIFT(x)
AHB_CLK_CTRL0
AHB_CLK_CTRL1
AHB_CLK_CTRL2
AHB_CLK_CTRL3
REG_PWM0SUBCTL
REG_PWM1SUBCTL
BUS_CLK

Peripherals clock source definition.

I2C0_CLK_SRC
CLK_ATTACH_ID(mux, sel, pos)

Clock Mux Switches The encoding is as follows each connection identified is 32bits wide while 24bits are valuable starting from LSB upwards.

[4 bits for choice, 0 means invalid choice] [8 bits mux ID]*

MUX_A(mux, sel)
MUX_B(mux, sel, selector)
GET_ID_ITEM(connection)
GET_ID_NEXT_ITEM(connection)
GET_ID_ITEM_MUX(connection)
GET_ID_ITEM_SEL(connection)
GET_ID_SELECTOR(connection)
CM_SYSTICKCLKSEL0
CM_SYSTICKCLKSEL1
CM_TRACECLKSEL
CM_CTIMERCLKSEL0
CM_CTIMERCLKSEL1
CM_CTIMERCLKSEL2
CM_CTIMERCLKSEL3
CM_CTIMERCLKSEL4
CM_CLKOUTCLKSEL
CM_ADC0CLKSEL
CM_USB0CLKSEL
CM_FCCLKSEL0
CM_FCCLKSEL1
CM_FCCLKSEL2
CM_FCCLKSEL3
CM_FCCLKSEL4
CM_FCCLKSEL5
CM_FCCLKSEL6
CM_FCCLKSEL7
CM_FCCLKSEL8
CM_FCCLKSEL9
CM_SCTCLKSEL
CM_TSICLKSEL
CM_SINCFILTCLKSEL
CM_ADC1CLKSEL
CM_DAC0CLKSEL
CM_DAC1CLKSEL
CM_DAC2CLKSEL
CM_FLEXSPICLKSEL
CM_PLLCLKDIVSEL
CM_I3C0FCLKSEL
CM_I3C0FCLKSTCSEL
CM_I3C0FCLKSSEL
CM_MICFILFCLKSEL
CM_ESPICLKSEL
CM_USDHCCLKSEL
CM_FLEXIOCLKSEL
CM_FLEXCAN0CLKSEL
CM_FLEXCAN1CLKSEL
CM_ENETRMIICLKSEL
CM_ENETPTPREFCLKSEL
CM_EWM0CLKSEL
CM_WDT1CLKSEL
CM_OSTIMERCLKSEL
CM_CMP0FCLKSEL
CM_CMP0RRCLKSEL
CM_CMP1FCLKSEL
CM_CMP1RRCLKSEL
CM_CMP2FCLKSEL
CM_CMP2RRCLKSEL
CM_SAI0CLKSEL
CM_SAI1CLKSEL
CM_EMVSIM0CLKSEL
CM_EMVSIM1CLKSEL
CM_I3C1FCLKSEL
CM_I3C1FCLKSTCSEL
CM_I3C1FCLKSSEL
CM_SCGRCCRSCSCLKSEL
PLL_CONFIGFLAG_FORCENOFRACT

PLL configuration structure flags for ‘flags’ field These flags control how the PLL configuration function sets up the PLL setup structure.

When the PLL_CONFIGFLAG_FORCENOFRACT flag is selected, the PLL hardware for the automatic bandwidth selection, Spread Spectrum (SS) support, and fractional M-divider are not used.

Force non-fractional output mode, PLL output will not use the fractional, automatic bandwidth, or SS hardware

firc_trim_mode_t trimMode

Trim mode.

firc_trim_src_t trimSrc

Trim source.

uint16_t trimDiv

Divider of SOSC.

uint8_t trimCoar

Trim coarse value; Irrelevant if trimMode is kSCG_TrimUpdate.

uint8_t trimFine

Trim fine value; Irrelevant if trimMode is kSCG_TrimUpdate.

sirc_trim_mode_t trimMode

Trim mode.

sirc_trim_src_t trimSrc

Trim source.

uint16_t trimDiv

Divider of SOSC.

uint8_t cltrim

Trim coarse value; Irrelevant if trimMode is kSCG_TrimUpdate.

uint8_t ccotrim

Trim fine value; Irrelevant if trimMode is kSCG_TrimUpdate.

bool enableInternalCapBank

enable/disable the internal capacitance bank.

bool enableCrystalOscillatorBypass

enable/disable the crystal oscillator bypass.

vbat_osc_xtal_cap_t xtalCap

The internal capacitance for the OSC XTAL pin from the capacitor bank, only useful when the internal capacitance bank is enabled.

vbat_osc_extal_cap_t extalCap

The internal capacitance for the OSC EXTAL pin from the capacitor bank, only useful when the internal capacitance bank is enabled.

vbat_osc_coarse_adjustment_value_t coarseAdjustment

32kHz crystal oscillator amplifier coarse adjustment value.

vbat_osc_init_trim_t initTrim
vbat_osc_cap_trim_t capTrim
vbat_osc_dly_trim_t dlyTrim
vbat_osc_cap2_trim_t cap2Trim
vbat_osc_cmp_trim_t cmpTrim
vbat_osc_mode_en_t mode
vbat_osc_xtal_cap_t xtalCap
vbat_osc_extal_cap_t extalCap
vbat_osc_coarse_adjustment_value_t ampGain
osc32k_clk_gate_id_t id
uint32_t desiredRate

Desired PLL rate in Hz

uint32_t inputSource

PLL input source

uint32_t flags

PLL configuration flags, Or’ed value of PLL_CONFIGFLAG_* definitions

ss_progmodfm_t ss_mf

SS Programmable modulation frequency, only applicable when not using PLL_CONFIGFLAG_FORCENOFRACT flag

ss_progmoddp_t ss_mr

SS Programmable frequency modulation depth, only applicable when not using PLL_CONFIGFLAG_FORCENOFRACT flag

ss_modwvctrl_t ss_mc

SS Modulation waveform control, only applicable when not using PLL_CONFIGFLAG_FORCENOFRACT flag

bool mfDither

false for fixed modulation frequency or true for dithering, only applicable when not using PLL_CONFIGFLAG_FORCENOFRACT flag

uint32_t pllctrl

PLL Control register APLLCTRL

uint32_t pllndiv

PLL N Divider register APLLNDIV

uint32_t pllpdiv

PLL P Divider register APLLPDIV

uint32_t pllmdiv

PLL M Divider register APLLMDIV

uint32_t pllsscg[2]

PLL Spread Spectrum Control registers APLLSSCG

uint32_t pllRate

Acutal PLL rate

struct _firc_trim_config
#include <fsl_clock.h>

firc trim configuration.

struct _sirc_trim_config
#include <fsl_clock.h>

sirc trim configuration.

struct _vbat_osc_config
#include <fsl_clock.h>

The structure of oscillator configuration.

struct _osc_32k_config
#include <fsl_clock.h>

The structure of oscillator configuration.

struct _pll_config
#include <fsl_clock.h>

PLL configuration structure.

This structure can be used to configure the settings for a PLL setup structure. Fill in the desired configuration for the PLL and call the PLL setup function to fill in a PLL setup structure.

struct _pll_setup
#include <fsl_clock.h>

PLL0 setup structure This structure can be used to pre-build a PLL setup configuration at run-time and quickly set the PLL to the configuration. It can be populated with the PLL setup function. If powering up or waiting for PLL lock, the PLL input clock source should be configured prior to PLL setup.

CRC: Cyclic Redundancy Check Driver

FSL_CRC_DRIVER_VERSION

CRC driver version. Version 2.0.4.

Current version: 2.0.4

Change log:

  • Version 2.0.4

    • Release peripheral from reset if necessary in init function.

  • Version 2.0.3

    • Fix MISRA issues

  • Version 2.0.2

    • Fix MISRA issues

  • Version 2.0.1

    • move DATA and DATALL macro definition from header file to source file

enum _crc_bits

CRC bit width.

Values:

enumerator kCrcBits16

Generate 16-bit CRC code

enumerator kCrcBits32

Generate 32-bit CRC code

enum _crc_result

CRC result type.

Values:

enumerator kCrcFinalChecksum

CRC data register read value is the final checksum. Reflect out and final xor protocol features are applied.

enumerator kCrcIntermediateChecksum

CRC data register read value is intermediate checksum (raw value). Reflect out and final xor protocol feature are not applied. Intermediate checksum can be used as a seed for CRC_Init() to continue adding data to this checksum.

typedef enum _crc_bits crc_bits_t

CRC bit width.

typedef enum _crc_result crc_result_t

CRC result type.

typedef struct _crc_config crc_config_t

CRC protocol configuration.

This structure holds the configuration for the CRC protocol.

void CRC_Init(CRC_Type *base, const crc_config_t *config)

Enables and configures the CRC peripheral module.

This function enables the clock gate in the SIM module for the CRC peripheral. It also configures the CRC module and starts a checksum computation by writing the seed.

Parameters:
  • base – CRC peripheral address.

  • config – CRC module configuration structure.

static inline void CRC_Deinit(CRC_Type *base)

Disables the CRC peripheral module.

This function disables the clock gate in the SIM module for the CRC peripheral.

Parameters:
  • base – CRC peripheral address.

void CRC_GetDefaultConfig(crc_config_t *config)

Loads default values to the CRC protocol configuration structure.

Loads default values to the CRC protocol configuration structure. The default values are as follows.

config->polynomial = 0x1021;
config->seed = 0xFFFF;
config->reflectIn = false;
config->reflectOut = false;
config->complementChecksum = false;
config->crcBits = kCrcBits16;
config->crcResult = kCrcFinalChecksum;

Parameters:
  • config – CRC protocol configuration structure.

void CRC_WriteData(CRC_Type *base, const uint8_t *data, size_t dataSize)

Writes data to the CRC module.

Writes input data buffer bytes to the CRC data register. The configured type of transpose is applied.

Parameters:
  • base – CRC peripheral address.

  • data – Input data stream, MSByte in data[0].

  • dataSize – Size in bytes of the input data buffer.

uint32_t CRC_Get32bitResult(CRC_Type *base)

Reads the 32-bit checksum from the CRC module.

Reads the CRC data register (either an intermediate or the final checksum). The configured type of transpose and complement is applied.

Parameters:
  • base – CRC peripheral address.

Returns:

An intermediate or the final 32-bit checksum, after configured transpose and complement operations.

uint16_t CRC_Get16bitResult(CRC_Type *base)

Reads a 16-bit checksum from the CRC module.

Reads the CRC data register (either an intermediate or the final checksum). The configured type of transpose and complement is applied.

Parameters:
  • base – CRC peripheral address.

Returns:

An intermediate or the final 16-bit checksum, after configured transpose and complement operations.

CRC_DRIVER_USE_CRC16_CCIT_FALSE_AS_DEFAULT

Default configuration structure filled by CRC_GetDefaultConfig(). Use CRC16-CCIT-FALSE as defeault.

struct _crc_config
#include <fsl_crc.h>

CRC protocol configuration.

This structure holds the configuration for the CRC protocol.

Public Members

uint32_t polynomial

CRC Polynomial, MSBit first. Example polynomial: 0x1021 = 1_0000_0010_0001 = x^12+x^5+1

uint32_t seed

Starting checksum value

bool reflectIn

Reflect bits on input.

bool reflectOut

Reflect bits on output.

bool complementChecksum

True if the result shall be complement of the actual checksum.

crc_bits_t crcBits

Selects 16- or 32- bit CRC protocol.

crc_result_t crcResult

Selects final or intermediate checksum return from CRC_Get16bitResult() or CRC_Get32bitResult()

CTIMER: Standard counter/timers

void CTIMER_Init(CTIMER_Type *base, const ctimer_config_t *config)

Ungates the clock and configures the peripheral for basic operation.

Note

This API should be called at the beginning of the application before using the driver.

Parameters:
  • base – Ctimer peripheral base address

  • config – Pointer to the user configuration structure.

void CTIMER_Deinit(CTIMER_Type *base)

Gates the timer clock.

Parameters:
  • base – Ctimer peripheral base address

void CTIMER_GetDefaultConfig(ctimer_config_t *config)

Fills in the timers configuration structure with the default settings.

The default values are:

config->mode = kCTIMER_TimerMode;
config->input = kCTIMER_Capture_0;
config->prescale = 0;

Parameters:
  • config – Pointer to the user configuration structure.

status_t CTIMER_SetupPwmPeriod(CTIMER_Type *base, const ctimer_match_t pwmPeriodChannel, ctimer_match_t matchChannel, uint32_t pwmPeriod, uint32_t pulsePeriod, bool enableInt)

Configures the PWM signal parameters.

Enables PWM mode on the match channel passed in and will then setup the match value and other match parameters to generate a PWM signal. This function can manually assign the specified channel to set the PWM cycle.

Note

When setting PWM output from multiple output pins, all should use the same PWM period

Parameters:
  • base – Ctimer peripheral base address

  • pwmPeriodChannel – Specify the channel to control the PWM period

  • matchChannel – Match pin to be used to output the PWM signal

  • pwmPeriod – PWM period match value

  • pulsePeriod – Pulse width match value

  • enableInt – Enable interrupt when the timer value reaches the match value of the PWM pulse, if it is 0 then no interrupt will be generated.

Returns:

kStatus_Success on success kStatus_Fail If matchChannel is equal to pwmPeriodChannel; this channel is reserved to set the PWM cycle If PWM pulse width register value is larger than 0xFFFFFFFF.

status_t CTIMER_SetupPwm(CTIMER_Type *base, const ctimer_match_t pwmPeriodChannel, ctimer_match_t matchChannel, uint8_t dutyCyclePercent, uint32_t pwmFreq_Hz, uint32_t srcClock_Hz, bool enableInt)

Configures the PWM signal parameters.

Enables PWM mode on the match channel passed in and will then setup the match value and other match parameters to generate a PWM signal. This function can manually assign the specified channel to set the PWM cycle.

Note

When setting PWM output from multiple output pins, all should use the same PWM frequency. Please use CTIMER_SetupPwmPeriod to set up the PWM with high resolution.

Parameters:
  • base – Ctimer peripheral base address

  • pwmPeriodChannel – Specify the channel to control the PWM period

  • matchChannel – Match pin to be used to output the PWM signal

  • dutyCyclePercent – PWM pulse width; the value should be between 0 to 100

  • pwmFreq_Hz – PWM signal frequency in Hz

  • srcClock_Hz – Timer counter clock in Hz

  • enableInt – Enable interrupt when the timer value reaches the match value of the PWM pulse, if it is 0 then no interrupt will be generated.

static inline void CTIMER_UpdatePwmPulsePeriod(CTIMER_Type *base, ctimer_match_t matchChannel, uint32_t pulsePeriod)

Updates the pulse period of an active PWM signal.

Parameters:
  • base – Ctimer peripheral base address

  • matchChannel – Match pin to be used to output the PWM signal

  • pulsePeriod – New PWM pulse width match value

status_t CTIMER_UpdatePwmDutycycle(CTIMER_Type *base, const ctimer_match_t pwmPeriodChannel, ctimer_match_t matchChannel, uint8_t dutyCyclePercent)

Updates the duty cycle of an active PWM signal.

Note

Please use CTIMER_SetupPwmPeriod to update the PWM with high resolution. This function can manually assign the specified channel to set the PWM cycle.

Parameters:
  • base – Ctimer peripheral base address

  • pwmPeriodChannel – Specify the channel to control the PWM period

  • matchChannel – Match pin to be used to output the PWM signal

  • dutyCyclePercent – New PWM pulse width; the value should be between 0 to 100

Returns:

kStatus_Success on success kStatus_Fail If PWM pulse width register value is larger than 0xFFFFFFFF.

static inline void CTIMER_EnableInterrupts(CTIMER_Type *base, uint32_t mask)

Enables the selected Timer interrupts.

Parameters:
  • base – Ctimer peripheral base address

  • mask – The interrupts to enable. This is a logical OR of members of the enumeration ctimer_interrupt_enable_t

static inline void CTIMER_DisableInterrupts(CTIMER_Type *base, uint32_t mask)

Disables the selected Timer interrupts.

Parameters:
  • base – Ctimer peripheral base address

  • mask – The interrupts to enable. This is a logical OR of members of the enumeration ctimer_interrupt_enable_t

static inline uint32_t CTIMER_GetEnabledInterrupts(CTIMER_Type *base)

Gets the enabled Timer interrupts.

Parameters:
  • base – Ctimer peripheral base address

Returns:

The enabled interrupts. This is the logical OR of members of the enumeration ctimer_interrupt_enable_t

static inline uint32_t CTIMER_GetStatusFlags(CTIMER_Type *base)

Gets the Timer status flags.

Parameters:
  • base – Ctimer peripheral base address

Returns:

The status flags. This is the logical OR of members of the enumeration ctimer_status_flags_t

static inline void CTIMER_ClearStatusFlags(CTIMER_Type *base, uint32_t mask)

Clears the Timer status flags.

Parameters:
  • base – Ctimer peripheral base address

  • mask – The status flags to clear. This is a logical OR of members of the enumeration ctimer_status_flags_t

static inline void CTIMER_StartTimer(CTIMER_Type *base)

Starts the Timer counter.

Parameters:
  • base – Ctimer peripheral base address

static inline void CTIMER_StopTimer(CTIMER_Type *base)

Stops the Timer counter.

Parameters:
  • base – Ctimer peripheral base address

FSL_CTIMER_DRIVER_VERSION

Version 2.3.3

enum _ctimer_capture_channel

List of Timer capture channels.

Values:

enumerator kCTIMER_Capture_0

Timer capture channel 0

enumerator kCTIMER_Capture_1

Timer capture channel 1

enumerator kCTIMER_Capture_3

Timer capture channel 3

enum _ctimer_capture_edge

List of capture edge options.

Values:

enumerator kCTIMER_Capture_RiseEdge

Capture on rising edge

enumerator kCTIMER_Capture_FallEdge

Capture on falling edge

enumerator kCTIMER_Capture_BothEdge

Capture on rising and falling edge

enum _ctimer_match

List of Timer match registers.

Values:

enumerator kCTIMER_Match_0

Timer match register 0

enumerator kCTIMER_Match_1

Timer match register 1

enumerator kCTIMER_Match_2

Timer match register 2

enumerator kCTIMER_Match_3

Timer match register 3

enum _ctimer_external_match

List of external match.

Values:

enumerator kCTIMER_External_Match_0

External match 0

enumerator kCTIMER_External_Match_1

External match 1

enumerator kCTIMER_External_Match_2

External match 2

enumerator kCTIMER_External_Match_3

External match 3

enum _ctimer_match_output_control

List of output control options.

Values:

enumerator kCTIMER_Output_NoAction

No action is taken

enumerator kCTIMER_Output_Clear

Clear the EM bit/output to 0

enumerator kCTIMER_Output_Set

Set the EM bit/output to 1

enumerator kCTIMER_Output_Toggle

Toggle the EM bit/output

enum _ctimer_timer_mode

List of Timer modes.

Values:

enumerator kCTIMER_TimerMode
enumerator kCTIMER_IncreaseOnRiseEdge
enumerator kCTIMER_IncreaseOnFallEdge
enumerator kCTIMER_IncreaseOnBothEdge
enum _ctimer_interrupt_enable

List of Timer interrupts.

Values:

enumerator kCTIMER_Match0InterruptEnable

Match 0 interrupt

enumerator kCTIMER_Match1InterruptEnable

Match 1 interrupt

enumerator kCTIMER_Match2InterruptEnable

Match 2 interrupt

enumerator kCTIMER_Match3InterruptEnable

Match 3 interrupt

enum _ctimer_status_flags

List of Timer flags.

Values:

enumerator kCTIMER_Match0Flag

Match 0 interrupt flag

enumerator kCTIMER_Match1Flag

Match 1 interrupt flag

enumerator kCTIMER_Match2Flag

Match 2 interrupt flag

enumerator kCTIMER_Match3Flag

Match 3 interrupt flag

enum ctimer_callback_type_t

Callback type when registering for a callback. When registering a callback an array of function pointers is passed the size could be 1 or 8, the callback type will tell that.

Values:

enumerator kCTIMER_SingleCallback

Single Callback type where there is only one callback for the timer. based on the status flags different channels needs to be handled differently

enumerator kCTIMER_MultipleCallback

Multiple Callback type where there can be 8 valid callbacks, one per channel. for both match/capture

typedef enum _ctimer_capture_channel ctimer_capture_channel_t

List of Timer capture channels.

typedef enum _ctimer_capture_edge ctimer_capture_edge_t

List of capture edge options.

typedef enum _ctimer_match ctimer_match_t

List of Timer match registers.

typedef enum _ctimer_external_match ctimer_external_match_t

List of external match.

typedef enum _ctimer_match_output_control ctimer_match_output_control_t

List of output control options.

typedef enum _ctimer_timer_mode ctimer_timer_mode_t

List of Timer modes.

typedef enum _ctimer_interrupt_enable ctimer_interrupt_enable_t

List of Timer interrupts.

typedef enum _ctimer_status_flags ctimer_status_flags_t

List of Timer flags.

typedef void (*ctimer_callback_t)(uint32_t flags)
typedef struct _ctimer_match_config ctimer_match_config_t

Match configuration.

This structure holds the configuration settings for each match register.

typedef struct _ctimer_config ctimer_config_t

Timer configuration structure.

This structure holds the configuration settings for the Timer peripheral. To initialize this structure to reasonable defaults, call the CTIMER_GetDefaultConfig() function and pass a pointer to the configuration structure instance.

The configuration structure can be made constant so as to reside in flash.

void CTIMER_SetupMatch(CTIMER_Type *base, ctimer_match_t matchChannel, const ctimer_match_config_t *config)

Setup the match register.

User configuration is used to setup the match value and action to be taken when a match occurs.

Parameters:
  • base – Ctimer peripheral base address

  • matchChannel – Match register to configure

  • config – Pointer to the match configuration structure

uint32_t CTIMER_GetOutputMatchStatus(CTIMER_Type *base, uint32_t matchChannel)

Get the status of output match.

This function gets the status of output MAT, whether or not this output is connected to a pin. This status is driven to the MAT pins if the match function is selected via IOCON. 0 = LOW. 1 = HIGH.

Parameters:
  • base – Ctimer peripheral base address

  • matchChannel – External match channel, user can obtain the status of multiple match channels at the same time by using the logic of “|” enumeration ctimer_external_match_t

Returns:

The mask of external match channel status flags. Users need to use the _ctimer_external_match type to decode the return variables.

void CTIMER_SetupCapture(CTIMER_Type *base, ctimer_capture_channel_t capture, ctimer_capture_edge_t edge, bool enableInt)

Setup the capture.

Parameters:
  • base – Ctimer peripheral base address

  • capture – Capture channel to configure

  • edge – Edge on the channel that will trigger a capture

  • enableInt – Flag to enable channel interrupts, if enabled then the registered call back is called upon capture

static inline uint32_t CTIMER_GetTimerCountValue(CTIMER_Type *base)

Get the timer count value from TC register.

Parameters:
  • base – Ctimer peripheral base address.

Returns:

return the timer count value.

void CTIMER_RegisterCallBack(CTIMER_Type *base, ctimer_callback_t *cb_func, ctimer_callback_type_t cb_type)

Register callback.

This function configures CTimer Callback in following modes:

  • Single Callback: cb_func should be pointer to callback function pointer For example: ctimer_callback_t ctimer_callback = pwm_match_callback; CTIMER_RegisterCallBack(CTIMER, &ctimer_callback, kCTIMER_SingleCallback);

  • Multiple Callback: cb_func should be pointer to array of callback function pointers Each element corresponds to Interrupt Flag in IR register. For example: ctimer_callback_t ctimer_callback_table[] = { ctimer_match0_callback, NULL, NULL, ctimer_match3_callback, NULL, NULL, NULL, NULL}; CTIMER_RegisterCallBack(CTIMER, &ctimer_callback_table[0], kCTIMER_MultipleCallback);

Parameters:
  • base – Ctimer peripheral base address

  • cb_func – Pointer to callback function pointer

  • cb_type – callback function type, singular or multiple

static inline void CTIMER_Reset(CTIMER_Type *base)

Reset the counter.

The timer counter and prescale counter are reset on the next positive edge of the APB clock.

Parameters:
  • base – Ctimer peripheral base address

static inline void CTIMER_SetPrescale(CTIMER_Type *base, uint32_t prescale)

Setup the timer prescale value.

Specifies the maximum value for the Prescale Counter.

Parameters:
  • base – Ctimer peripheral base address

  • prescale – Prescale value

static inline uint32_t CTIMER_GetCaptureValue(CTIMER_Type *base, ctimer_capture_channel_t capture)

Get capture channel value.

Get the counter/timer value on the corresponding capture channel.

Parameters:
  • base – Ctimer peripheral base address

  • capture – Select capture channel

Returns:

The timer count capture value.

static inline void CTIMER_EnableResetMatchChannel(CTIMER_Type *base, ctimer_match_t match, bool enable)

Enable reset match channel.

Set the specified match channel reset operation.

Parameters:
  • base – Ctimer peripheral base address

  • match – match channel used

  • enable – Enable match channel reset operation.

static inline void CTIMER_EnableStopMatchChannel(CTIMER_Type *base, ctimer_match_t match, bool enable)

Enable stop match channel.

Set the specified match channel stop operation.

Parameters:
  • base – Ctimer peripheral base address.

  • match – match channel used.

  • enable – Enable match channel stop operation.

static inline void CTIMER_EnableMatchChannelReload(CTIMER_Type *base, ctimer_match_t match, bool enable)

Enable reload channel falling edge.

Enable the specified match channel reload match shadow value.

Parameters:
  • base – Ctimer peripheral base address.

  • match – match channel used.

  • enable – Enable .

static inline void CTIMER_EnableRisingEdgeCapture(CTIMER_Type *base, ctimer_capture_channel_t capture, bool enable)

Enable capture channel rising edge.

Sets the specified capture channel for rising edge capture.

Parameters:
  • base – Ctimer peripheral base address.

  • capture – capture channel used.

  • enable – Enable rising edge capture.

static inline void CTIMER_EnableFallingEdgeCapture(CTIMER_Type *base, ctimer_capture_channel_t capture, bool enable)

Enable capture channel falling edge.

Sets the specified capture channel for falling edge capture.

Parameters:
  • base – Ctimer peripheral base address.

  • capture – capture channel used.

  • enable – Enable falling edge capture.

static inline void CTIMER_SetShadowValue(CTIMER_Type *base, ctimer_match_t match, uint32_t matchvalue)

Set the specified match shadow channel.

Parameters:
  • base – Ctimer peripheral base address.

  • match – match channel used.

  • matchvalue – Reload the value of the corresponding match register.

struct _ctimer_match_config
#include <fsl_ctimer.h>

Match configuration.

This structure holds the configuration settings for each match register.

Public Members

uint32_t matchValue

This is stored in the match register

bool enableCounterReset

true: Match will reset the counter false: Match will not reser the counter

bool enableCounterStop

true: Match will stop the counter false: Match will not stop the counter

ctimer_match_output_control_t outControl

Action to be taken on a match on the EM bit/output

bool outPinInitState

Initial value of the EM bit/output

bool enableInterrupt

true: Generate interrupt upon match false: Do not generate interrupt on match

struct _ctimer_config
#include <fsl_ctimer.h>

Timer configuration structure.

This structure holds the configuration settings for the Timer peripheral. To initialize this structure to reasonable defaults, call the CTIMER_GetDefaultConfig() function and pass a pointer to the configuration structure instance.

The configuration structure can be made constant so as to reside in flash.

Public Members

ctimer_timer_mode_t mode

Timer mode

ctimer_capture_channel_t input

Input channel to increment the timer, used only in timer modes that rely on this input signal to increment TC

uint32_t prescale

Prescale value

DAC: Digital-to-Analog Converter Driver

void DAC_Init(LPDAC_Type *base, const dac_config_t *config)

Initialize the DAC module with common configuartion.

The clock will be enabled in this function.

Parameters:
  • base – DAC peripheral base address.

  • config – Pointer to configuration structure.

void DAC_GetDefaultConfig(dac_config_t *config)

Get the default settings for initialization’s configuration.

This function initializes the user configuration structure to a default value. The default values are:

config->fifoWatermarkLevel = 0U;
config->fifoTriggerMode = kDAC_FIFOTriggerByHardwareMode;
config->fifoWorkMode = kDAC_FIFODisabled;
config->enableLowPowerMode = false;
config->referenceVoltageSource = kDAC_ReferenceVoltageSourceAlt1;

Parameters:
  • config – Pointer to configuration structure.

void DAC_Deinit(LPDAC_Type *base)

De-initialize the DAC module.

The clock will be disabled in this function.

Parameters:
  • base – DAC peripheral base address.

static inline void DAC_SetReset(LPDAC_Type *base, uint32_t mask)

Assert the reset control to part hardware.

This function is to assert the reset control to part hardware. Responding part hardware would remain reset untill cleared by software.

Parameters:
  • base – DAC peripheral base address.

  • mask – The reset control mask, see to _dac_reset_control_t.

static inline void DAC_ClearReset(LPDAC_Type *base, uint32_t mask)

Clear the reset control to part hardware.

This function is to clear the reset control to part hardware. Responding part hardware would work after the reset control is cleared by software.

Parameters:
  • base – DAC peripheral base address.

  • mask – The reset control mask, see to _dac_reset_control_t.

static inline void DAC_Enable(LPDAC_Type *base, bool enable)

Enable the DAC hardware system or not.

This function is to start the Programmable Reference Generator operation or not.

Parameters:
  • base – DAC peripheral base address.

  • enable – Assertion of indicated event.

static inline void DAC_EnableInterrupts(LPDAC_Type *base, uint32_t mask)

Enable the interrupts.

Parameters:
  • base – DAC peripheral base address.

  • mask – Mask value of indicated interrupt events. See to _dac_interrupt_enable.

static inline void DAC_DisableInterrupts(LPDAC_Type *base, uint32_t mask)

Disable the interrupts.

Parameters:
  • base – DAC peripheral base address.

  • mask – Mask value of indicated interrupt events. See to _dac_interrupt_enable.

static inline void DAC_EnableDMA(LPDAC_Type *base, uint32_t mask, bool enable)

Enable the DMA switchers or not.

Parameters:
  • base – DAC peripheral base address.

  • mask – Mask value of indicated DMA requeset. See to _dac_dma_enable.

  • enable – Enable the DMA or not.

static inline uint32_t DAC_GetStatusFlags(LPDAC_Type *base)

Get status flags of DAC module.

Parameters:
  • base – DAC peripheral base address.

Returns:

Mask value of status flags. See to _dac_status_flags.

static inline void DAC_ClearStatusFlags(LPDAC_Type *base, uint32_t flags)

Clear status flags of DAC module.

Parameters:
  • base – DAC peripheral base address.

  • flags – Mask value of status flags to be cleared. See to _dac_status_flags.

static inline void DAC_SetData(LPDAC_Type *base, uint32_t value)

Set data into the entry of FIFO buffer.

Parameters:
  • base – DAC peripheral base address.

  • value – Setting value into FIFO buffer.

static inline uint32_t DAC_GetFIFOWritePointer(LPDAC_Type *base)

Get the value of the FIFO write pointer.

Parameters:
  • base – DAC peripheral base address.

Returns:

Current value of the FIFO write pointer.

static inline uint32_t DAC_GetFIFOReadPointer(LPDAC_Type *base)

Get the value of the FIFO read pointer.

Parameters:
  • base – DAC peripheral base address.

Returns:

Current value of the FIFO read pointer.

static inline void DAC_DoSoftwareTriggerFIFO(LPDAC_Type *base)

Do software trigger to FIFO when in software mode.

Parameters:
  • base – DAC peripheral base address.

FSL_DAC_DRIVER_VERSION

DAC driver version 2.1.3.

DAC reset control.

Values:

enumerator kDAC_ResetFIFO

Resets the FIFO pointers and flags.

enumerator kDAC_ResetLogic

Resets all DAC registers and internal logic.

DAC interrupts.

Values:

enumerator kDAC_FIFOFullInterruptEnable

FIFO full interrupt enable.

enumerator kDAC_FIFOEmptyInterruptEnable

FIFO empty interrupt enable.

enumerator kDAC_FIFOWatermarkInterruptEnable

FIFO watermark interrupt enable.

enumerator kDAC_SwingBackInterruptEnable

Swing back one cycle complete interrupt enable.

enumerator kDAC_FIFOOverflowInterruptEnable

FIFO overflow interrupt enable.

enumerator kDAC_FIFOUnderflowInterruptEnable

FIFO underflow interrupt enable.

enumerator kDAC_PeriodTriggerCompleteInterruptEnable

Period trigger mode conversion complete interrupt enable

DAC DMA switchers.

Values:

enumerator kDAC_FIFOEmptyDMAEnable

FIFO empty DMA enable.

enumerator kDAC_FIFOWatermarkDMAEnable

FIFO watermark DMA enable.

DAC status flags.

Values:

enumerator kDAC_FIFOUnderflowFlag

This flag means that there is a new trigger after the buffer is empty. The FIFO read pointer will not increase in this case and the data sent to DAC analog conversion will not changed. This flag is cleared by writing a 1 to it.

enumerator kDAC_FIFOOverflowFlag

This flag indicates that data is intended to write into FIFO after the buffer is full. The writer pointer will not increase in this case. The extra data will not be written into the FIFO. This flag is cleared by writing a 1 to it.

enumerator kDAC_FIFOSwingBackFlag

This flag indicates that the DAC has completed one period of conversion in swing back mode. It means that the read pointer has increased to the top (write pointer) once and then decreased to zero once. For example, after three data is written to FIFO, the writer pointer is now 3. Then, if continually triggered, the read pointer will swing like: 0-1-2-1-0-1-2-, and so on. After the fourth trigger, the flag is set. This flag is cleared by writing a 1 to it.

enumerator kDAC_FIFOWatermarkFlag

This field is set if the remaining data in FIFO is less than or equal to the setting value of wartermark. By writing data into FIFO by DMA or CPU, this flag is cleared automatically when the data in FIFO is more than the setting value of watermark.

enumerator kDAC_FIFOEmptyFlag

FIFO empty flag.

enumerator kDAC_FIFOFullFlag

FIFO full flag.

enumerator kDAC_PeriodTriggerCompleteFlag

Period trigger mode conversion complete flag.

enum _dac_fifo_trigger_mode

DAC FIFO trigger mode.

Values:

enumerator kDAC_FIFOTriggerByHardwareMode

Buffer would be triggered by hardware.

enumerator kDAC_FIFOTriggerBySoftwareMode

Buffer would be triggered by software.

enum _dac_fifo_work_mode

DAC FIFO work mode.

Values:

enumerator kDAC_FIFODisabled

FIFO mode is disabled and buffer mode is enabled. Any data written to DATA[DATA] goes to buffer then goes to conversion.

enumerator kDAC_FIFOWorkAsNormalMode

FIFO mode is enabled. Data will be first read from FIFO to buffer then goes to conversion.

enumerator kDAC_FIFOWorkAsSwingMode

In swing mode, the read pointer swings between the writer pointer and zero. That is, the trigger increases the read pointer till reach the writer pointer and decreases the read pointer till zero, and so on. The FIFO empty/full/watermark flag will not update during swing back mode.

enumerator kDAC_FIFOWorkAsPeriodTriggerMode

In periodic trigger mode, user only needs to send the first trigger. Then after every [PTG_PERIOD+1] RCLK cycles, DAC will be automatically triggered by internal trigger. There will be [PTG_NUM] internal triggers, thus in total [PTG_NUM+1] conversions including the first trigger sent by user. User can terminate the current conversion queue by clearing the GCR[PTGEN] bit. Then, after the current conversion is completed, the conversion is terminated and the PTGCOCO flag is set. If PCR[PTG_NUM] is set to zero, there will be infinite triggers following the first hardware/software trigger, until the GCR[PTGEN] is cleared by software. In any case, the conversion can be terminated by FIFORST/SWRST.

enumerator kDAC_FIFOWorkAsPeriodTriggerAndSwingMode

Periodically trigger DAC and swing back.

enum _dac_reference_voltage_source

DAC reference voltage source.

Values:

enumerator kDAC_ReferenceVoltageSourceAlt1

The DAC selects VREFH_INT as the reference voltage.

enumerator kDAC_ReferenceVoltageSourceAlt2

The DAC selects VREFH_EXT as the reference voltage.

enum _dac_reference_current_source

Values:

enumerator kDAC_ReferenceCurrentSourcePtat
enumerator kDAC_ReferenceCurrentSourceZtc
typedef enum _dac_fifo_trigger_mode dac_fifo_trigger_mode_t

DAC FIFO trigger mode.

typedef enum _dac_fifo_work_mode dac_fifo_work_mode_t

DAC FIFO work mode.

typedef enum _dac_reference_voltage_source dac_reference_voltage_source_t

DAC reference voltage source.

typedef enum _dac_reference_current_source dac_reference_current_source_t
typedef struct _dac_config dac_config_t

DAC configuration structure.

struct _dac_config
#include <fsl_dac.h>

DAC configuration structure.

Public Members

uint32_t fifoWatermarkLevel

FIFO’s watermark, the max value can be the hardware FIFO size.

dac_fifo_trigger_mode_t fifoTriggerMode

Select the trigger mode for FIFO.

dac_fifo_work_mode_t fifoWorkMode

Select the work mode for FIFO.

bool enableOpampBuffer

Opamp is used as buffer.

bool enableLowerLowPowerMode

Enable the lower low power mode.

uint32_t periodicTriggerNumber

There will be ‘periodicTriggerNumber’ internal triggers following the first hardware/software trigger. So there will be ‘periodicTriggerNumber + 1’ conversions in total. If set to zero, there will be infinite triggers following the first hw/sw trigger, until the GCR[PTGEN] is cleared.

uint32_t periodicTriggerWidth

Control the periodic trigger frequency. There will be ‘periodicTriggerWidth + 1’ RCLK cycles between each periodic trigger. The periodic trigger frequency should be configured to not larger than the analog conversion speed.

uint32_t syncTime

RCLK cycles before data latch. accessible range is 0-15. It is used to configure the DAC sync cycles which is helpful to reduce glitch on the output. The sync time is (LATCH_CYC+1) RCLK cycles. User should configure this register according to the RCLK frequency. The recommended sync time is at least 40ns.

dac_reference_current_source_t referenceCurrentSource

Select the internal reference current source.

dac_reference_voltage_source_t referenceVoltageSource

Select the reference voltage source.

DAC14: 14-bit Digital-to-Analog Converter Driver

void DAC14_Init(HPDAC_Type *base, const dac14_config_t *config)

Initialize the DAC14 module with common configuartion.

The clock will be enabled in this function.

Parameters:
  • base – DAC14 peripheral base address.

  • config – Pointer to configuration structure.

void DAC14_GetDefaultConfig(dac14_config_t *config)

Get the default settings for initialization’s configuration.

This function initializes the user configuration structure to a default value. The default values are:

config->fifoWatermarkLevel = 0U;
config->TriggerSource    = kDAC14_HardwareTriggerSource;
config->WorkMode       = kDAC14_BufferWorkMode;
config->enableOpampBuffer  = false;
config->enableADC  = false;
config->periodicTriggerNumber = 0U;
config->periodicTriggerWidth  = 0U;

Parameters:
  • config – Pointer to configuration structure.

void DAC14_Deinit(HPDAC_Type *base)

De-initialize the DAC14 module.

The clock will be disabled in this function.

Parameters:
  • base – DAC14 peripheral base address.

static inline void DAC14_DoSoftwareReset(HPDAC_Type *base)

Do software reset .

This function is resets all DAC registers and internal logic.

Parameters:
  • base – DAC14 peripheral base address.

static inline void DAC14_DoFIFOReset(HPDAC_Type *base)

Do FIFO reset.

This function is resets the FIFO pointers and flags in FIFO Status.

Parameters:
  • base – DAC14 peripheral base address.

static inline void DAC14_AbortPeriodTriggerConvSequence(HPDAC_Type *base)

Abort DAC14 period trigger conversion sequence.

This function is write 0 to PTGEN to terminate the current conversion sequence.

Parameters:
  • base – DAC14 peripheral base address.

static inline void DAC14_Enable(HPDAC_Type *base, bool enable)

Enable the DAC14 system.

Parameters:
  • base – DAC14 peripheral base address.

  • enable – true to enable and false to disable.

static inline void DAC14_EnableSwingBackMode(HPDAC_Type *base, bool enable)

Enable swing back mode.

Parameters:
  • base – DAC14 peripheral base address.

  • enable – true to enable and false to disable.

static inline void DAC14_EnableFIFOMode(HPDAC_Type *base, bool enable)

Enable FIFO mode.

Parameters:
  • base – DAC14 peripheral base address.

  • enable – true to enable and false to disable.

static inline void DAC14_EnableInterrupts(HPDAC_Type *base, uint32_t mask)

Enable the interrupts.

Parameters:
  • base – DAC14 peripheral base address.

  • mask – Mask value of indicated interrupt events, please see _dac14_interrupt_enable for details.

static inline void DAC14_DisableInterrupts(HPDAC_Type *base, uint32_t mask)

Disable the interrupts.

Parameters:
  • base – DAC14 peripheral base address.

  • mask – Mask value of indicated interrupt events, please see _dac14_interrupt_enable for details.

static inline void DAC14_EnableDMA(HPDAC_Type *base, uint32_t mask, bool enable)

Enable the DMA switchers or not.

Parameters:
  • base – DAC14 peripheral base address.

  • mask – Mask value of indicated DMA requeset, please see _dac14_dma_enable for details.

  • enable – true to enable and false to disable.

static inline uint32_t DAC14_GetStatusFlags(HPDAC_Type *base)

Get status flags of DAC14 module.

Parameters:
  • base – DAC14 peripheral base address.

Returns:

Current DAC status flags.

static inline void DAC14_ClearStatusFlags(HPDAC_Type *base, uint32_t flags)

Clear status flags of DAC14 module.

Parameters:
  • base – DAC14 peripheral base address.

  • flags – Mask value of status flags to be cleared, please see _dac14_status_flags for details.

static inline void DAC14_SetData(HPDAC_Type *base, uint32_t value)

Set data into the entry of FIFO buffer.

Parameters:
  • base – DAC14 peripheral base address.

  • value – Setting value into FIFO buffer.

static inline uint32_t DAC14_GetFIFOWritePointer(HPDAC_Type *base)

Get the value of the FIFO write pointer.

Parameters:
  • base – DAC14 peripheral base address.

Returns:

Current value of the FIFO write pointer.

static inline uint32_t DAC14_GetFIFOReadPointer(HPDAC_Type *base)

Get the value of the FIFO read pointer.

Parameters:
  • base – DAC14 peripheral base address.

Returns:

Current value of the FIFO read pointer.

static inline void DAC14_DoSoftwareTrigger(HPDAC_Type *base)

Do software trigger.

Parameters:
  • base – DAC14 peripheral base address.

FSL_DAC14_DRIVER_VERSION

DAC14 driver version 2.0.0.

enum _dac14_interrupt_enable

DAC14 interrupts enumeration.

Values:

enumerator kDAC14_PeriodTriggerCompleteInterruptEnable

Period trigger mode conversion complete interrupt enable

enumerator kDAC14_FIFOUnderflowInterruptEnable

FIFO underflow interrupt enable.

enumerator kDAC14_FIFOOverflowInterruptEnable

FIFO overflow interrupt enable.

enumerator kDAC14_SwingBackInterruptEnable

Swing back one cycle complete interrupt enable.

enumerator kDAC14_FIFOWatermarkInterruptEnable

FIFO watermark interrupt enable.

enumerator kDAC14_FIFOEmptyInterruptEnable

FIFO empty interrupt enable.

enumerator kDAC14_FIFOFullInterruptEnable

FIFO full interrupt enable.

enum _dac14_dma_enable

DAC14 DMA switchers.

Values:

enumerator kDAC14_FIFOWatermarkDMAEnable

FIFO watermark DMA enable.

enumerator kDAC14_FIFOEmptyDMAEnable

FIFO empty DMA enable.

enum _dac14_status_flags

DAC14 status flags.

Values:

enumerator kDAC14_PeriodTriggerCompleteFlag

Period trigger mode conversion complete flag.

enumerator kDAC14_FIFOUnderflowFlag

This flag means that there is a new trigger after the buffer is empty. The FIFO read pointer will not increase in this case and the data sent to DAC analog conversion will not changed. This flag is cleared by writing a 1 to it.

enumerator kDAC14_FIFOOverflowFlag

This flag indicates that data is intended to write into FIFO after the buffer is full. The writer pointer will not increase in this case. The extra data will not be written into the FIFO. This flag is cleared by writing a 1 to it.

enumerator kDAC14_SwingBackCompleteFlag

This flag indicates that the DAC has completed one period of conversion in swing back mode. It means that the read pointer has increased to the top (write pointer) once and then decreased to zero once. For example, after three data is written to FIFO, the writer pointer is now 3. Then, if continually triggered, the read pointer will swing like: 0-1-2-1-0-1-2-, and so on. After the fourth trigger, the flag is set. This flag is cleared by writing a 1 to it.

enumerator kDAC14_FIFOWaterMarkFlag

This field is set if the remaining data in FIFO is less than or equal to the setting value of wartermark. By writing data into FIFO by DMA or CPU, this flag is cleared automatically when the data in FIFO is more than the setting value of watermark.

enumerator kDAC14_FIFOEmptyFlag

FIFO empty flag, when CPU or DMA writes data to FIFO, this bit will automatically clear.

enumerator kDAC14_FIFOFullFlag

FIFO full flag, when software trigger and hardware trigger read FIFO automatically clears this flag.

enum _dac14_trigger_source

DAC14 trigger source, include software and hardware.

Values:

enumerator kDAC14_HardwareTriggerSource

Trigger source selection hardware .

enumerator kDAC14_SoftwareTriggerSource

Trigger source selection software .

enum _dac14_work_mode

DAC14 work mode.

Values:

enumerator kDAC14_BufferWorkMode

FIFO mode is disabled and buffer mode is enabled. Any data written to DATA[DATA] goes to buffer then goes to conversion.

enumerator kDAC14_FIFOWorkMode

FIFO mode is enabled. Data will be first read from FIFO to buffer then goes to conversion.

enumerator kDAC14_SwingBackWorkMode

In swing mode, the read pointer swings between the writer pointer and zero. That is, the trigger increases the read pointer till reach the writer pointer and decreases the read pointer till zero, and so on. The FIFO empty/full/watermark flag will not update during swing back mode.

enumerator kDAC14_PeriodTriggerWorkMode

In periodic trigger mode, user only needs to send the first trigger. Then after every [PTG_PERIOD+1] RCLK cycles, DAC will be automatically triggered by internal trigger. There will be [PTG_NUM] internal triggers, thus in total [PTG_NUM+1] conversions including the first trigger sent by user. User can terminate the current conversion queue by clearing the GCR[PTGEN] bit. Then, after the current conversion is completed, the conversion is terminated and the PTGCOCO flag is set. If PCR[PTG_NUM] is set to zero, there will be infinite triggers following the first hardware/software trigger, until the GCR[PTGEN] is cleared by software. In any case, the conversion can be terminated by FIFORST/SWRST.

enumerator kDAC14_PeriodTriggerAndSwingBackWorkMode

Periodically trigger DAC and swing back.

typedef enum _dac14_trigger_source dac14_trigger_source_t

DAC14 trigger source, include software and hardware.

typedef enum _dac14_work_mode dac14_work_mode_t

DAC14 work mode.

typedef struct _dac14_config dac14_config_t

DAC14 configuration structure.

struct _dac14_config
#include <fsl_dac14.h>

DAC14 configuration structure.

Public Members

uint16_t periodicTriggerNumber

There will be ‘periodicTriggerNumber’ internal triggers following the first hardware/software trigger. So there will be ‘periodicTriggerNumber + 1’ conversions in total. If set to zero, there will be infinite triggers following the first hw/sw trigger, until the GCR[PTGEN] is cleared.

uint16_t periodicTriggerWidth

Control the periodic trigger frequency. There will be ‘periodicTriggerWidth + 1’ RCLK cycles between each periodic trigger. The periodic trigger frequency should be configured to not larger than the analog conversion speed.

uint8_t fifoWatermarkLevel

FIFO’s watermark, the max value can be the hardware FIFO size.

bool enableOpampBuffer

Opamp is used as buffer.

bool enableDAC

Enable the DAC system.

dac14_work_mode_t WorkMode

Select DAC work mode.

dac14_trigger_source_t TriggerSource

Select DAC trigger source.

eDMA: Enhanced Direct Memory Access (eDMA) Controller Driver

void EDMA_Init(EDMA_Type *base, const edma_config_t *config)

Initializes the eDMA peripheral.

This function ungates the eDMA clock and configures the eDMA peripheral according to the configuration structure. All emda enabled request will be cleared in this function.

Note

This function enables the minor loop map feature.

Parameters:
  • base – eDMA peripheral base address.

  • config – A pointer to the configuration structure, see “edma_config_t”.

void EDMA_Deinit(EDMA_Type *base)

Deinitializes the eDMA peripheral.

This function gates the eDMA clock.

Parameters:
  • base – eDMA peripheral base address.

void EDMA_InstallTCD(EDMA_Type *base, uint32_t channel, edma_tcd_t *tcd)

Push content of TCD structure into hardware TCD register.

Parameters:
  • base – EDMA peripheral base address.

  • channel – EDMA channel number.

  • tcd – Point to TCD structure.

void EDMA_GetDefaultConfig(edma_config_t *config)

Gets the eDMA default configuration structure.

This function sets the configuration structure to default values. The default configuration is set to the following values.

config.enableContinuousLinkMode = false;
config.enableHaltOnError = true;
config.enableRoundRobinArbitration = false;
config.enableDebugMode = false;

Parameters:
  • config – A pointer to the eDMA configuration structure.

void EDMA_InitChannel(EDMA_Type *base, uint32_t channel, edma_channel_config_t *channelConfig)

EDMA Channel initialization.

Parameters:
  • base – eDMA4 peripheral base address.

  • channel – eDMA4 channel number.

  • channelConfig – pointer to user’s eDMA4 channel config structure, see edma_channel_config_t for detail.

static inline void EDMA_SetChannelMemoryAttribute(EDMA_Type *base, uint32_t channel, edma_channel_memory_attribute_t writeAttribute, edma_channel_memory_attribute_t readAttribute)

Set channel memory attribute.

Parameters:
  • base – eDMA4 peripheral base address.

  • channel – eDMA4 channel number.

  • writeAttribute – Attributes associated with a write transaction.

  • readAttribute – Attributes associated with a read transaction.

static inline void EDMA_SetChannelSignExtension(EDMA_Type *base, uint32_t channel, uint8_t position)

Set channel sign extension.

Parameters:
  • base – eDMA4 peripheral base address.

  • channel – eDMA4 channel number.

  • position – A non-zero value specifing the sign extend bit position. If 0, sign extension is disabled.

static inline void EDMA_SetChannelSwapSize(EDMA_Type *base, uint32_t channel, edma_channel_swap_size_t swapSize)

Set channel swap size.

Parameters:
  • base – eDMA4 peripheral base address.

  • channel – eDMA4 channel number.

  • swapSize – Swap occurs with respect to the specified transfer size. If 0, swap is disabled.

static inline void EDMA_SetChannelAccessType(EDMA_Type *base, uint32_t channel, edma_channel_access_type_t channelAccessType)

Set channel access type.

Parameters:
  • base – eDMA4 peripheral base address.

  • channel – eDMA4 channel number.

  • channelAccessType – eDMA4’s transactions type on the system bus when the channel is active.

static inline void EDMA_SetChannelMux(EDMA_Type *base, uint32_t channel, uint32_t channelRequestSource)

Set channel request source.

Parameters:
  • base – eDMA peripheral base address.

  • channel – eDMA channel number.

  • channelRequestSource – eDMA hardware service request source for the channel. User need to use the dma_request_source_t type as the input parameter. Note that devices may use other enum type to express dma request source and User can fined it in SOC header or fsl_edma_soc.h.

static inline uint32_t EDMA_GetChannelSystemBusInformation(EDMA_Type *base, uint32_t channel)

Gets the channel identification and attribute information on the system bus interface.

Parameters:
  • base – eDMA peripheral base address.

  • channel – eDMA channel number.

Returns:

The mask of the channel system bus information. Users need to use the _edma_channel_sys_bus_info type to decode the return variables.

static inline void EDMA_EnableChannelMasterIDReplication(EDMA_Type *base, uint32_t channel, bool enable)

Set channel master ID replication.

Parameters:
  • base – eDMA peripheral base address.

  • channel – eDMA channel number.

  • enable – true is enable, false is disable.

static inline void EDMA_SetChannelProtectionLevel(EDMA_Type *base, uint32_t channel, edma_channel_protection_level_t level)

Set channel security level.

Parameters:
  • base – eDMA peripheral base address.

  • channel – eDMA channel number.

  • level – security level.

void EDMA_ResetChannel(EDMA_Type *base, uint32_t channel)

Sets all TCD registers to default values.

This function sets TCD registers for this channel to default values.

Note

This function must not be called while the channel transfer is ongoing or it causes unpredictable results.

Note

This function enables the auto stop request feature.

Parameters:
  • base – eDMA peripheral base address.

  • channel – eDMA channel number.

void EDMA_SetTransferConfig(EDMA_Type *base, uint32_t channel, const edma_transfer_config_t *config, edma_tcd_t *nextTcd)

Configures the eDMA transfer attribute.

This function configures the transfer attribute, including source address, destination address, transfer size, address offset, and so on. It also configures the scatter gather feature if the user supplies the TCD address. Example:

edma_transfer_t config;
edma_tcd_t tcd;
config.srcAddr = ..;
config.destAddr = ..;
...
EDMA_SetTransferConfig(DMA0, channel, &config, &stcd);

Note

If nextTcd is not NULL, it means scatter gather feature is enabled and DREQ bit is cleared in the previous transfer configuration, which is set in the eDMA_ResetChannel.

Parameters:
  • base – eDMA peripheral base address.

  • channel – eDMA channel number.

  • config – Pointer to eDMA transfer configuration structure.

  • nextTcd – Point to TCD structure. It can be NULL if users do not want to enable scatter/gather feature.

void EDMA_SetMinorOffsetConfig(EDMA_Type *base, uint32_t channel, const edma_minor_offset_config_t *config)

Configures the eDMA minor offset feature.

The minor offset means that the signed-extended value is added to the source address or destination address after each minor loop.

Parameters:
  • base – eDMA peripheral base address.

  • channel – eDMA channel number.

  • config – A pointer to the minor offset configuration structure.

void EDMA_SetChannelPreemptionConfig(EDMA_Type *base, uint32_t channel, const edma_channel_Preemption_config_t *config)

Configures the eDMA channel preemption feature.

This function configures the channel preemption attribute and the priority of the channel.

Parameters:
  • base – eDMA peripheral base address.

  • channel – eDMA channel number

  • config – A pointer to the channel preemption configuration structure.

void EDMA_SetChannelLink(EDMA_Type *base, uint32_t channel, edma_channel_link_type_t type, uint32_t linkedChannel)

Sets the channel link for the eDMA transfer.

This function configures either the minor link or the major link mode. The minor link means that the channel link is triggered every time CITER decreases by 1. The major link means that the channel link is triggered when the CITER is exhausted.

Note

Users should ensure that DONE flag is cleared before calling this interface, or the configuration is invalid.

Parameters:
  • base – eDMA peripheral base address.

  • channel – eDMA channel number.

  • type – A channel link type, which can be one of the following:

    • kEDMA_LinkNone

    • kEDMA_MinorLink

    • kEDMA_MajorLink

  • linkedChannel – The linked channel number.

void EDMA_SetBandWidth(EDMA_Type *base, uint32_t channel, edma_bandwidth_t bandWidth)

Sets the bandwidth for the eDMA transfer.

Because the eDMA processes the minor loop, it continuously generates read/write sequences until the minor count is exhausted. The bandwidth forces the eDMA to stall after the completion of each read/write access to control the bus request bandwidth seen by the crossbar switch.

Parameters:
  • base – eDMA peripheral base address.

  • channel – eDMA channel number.

  • bandWidth – A bandwidth setting, which can be one of the following:

    • kEDMABandwidthStallNone

    • kEDMABandwidthStall4Cycle

    • kEDMABandwidthStall8Cycle

void EDMA_SetModulo(EDMA_Type *base, uint32_t channel, edma_modulo_t srcModulo, edma_modulo_t destModulo)

Sets the source modulo and the destination modulo for the eDMA transfer.

This function defines a specific address range specified to be the value after (SADDR + SOFF)/(DADDR + DOFF) calculation is performed or the original register value. It provides the ability to implement a circular data queue easily.

Parameters:
  • base – eDMA peripheral base address.

  • channel – eDMA channel number.

  • srcModulo – A source modulo value.

  • destModulo – A destination modulo value.

static inline void EDMA_EnableAsyncRequest(EDMA_Type *base, uint32_t channel, bool enable)

Enables an async request for the eDMA transfer.

Parameters:
  • base – eDMA peripheral base address.

  • channel – eDMA channel number.

  • enable – The command to enable (true) or disable (false).

static inline void EDMA_EnableAutoStopRequest(EDMA_Type *base, uint32_t channel, bool enable)

Enables an auto stop request for the eDMA transfer.

If enabling the auto stop request, the eDMA hardware automatically disables the hardware channel request.

Parameters:
  • base – eDMA peripheral base address.

  • channel – eDMA channel number.

  • enable – The command to enable (true) or disable (false).

void EDMA_EnableChannelInterrupts(EDMA_Type *base, uint32_t channel, uint32_t mask)

Enables the interrupt source for the eDMA transfer.

Parameters:
  • base – eDMA peripheral base address.

  • channel – eDMA channel number.

  • mask – The mask of interrupt source to be set. Users need to use the defined edma_interrupt_enable_t type.

void EDMA_DisableChannelInterrupts(EDMA_Type *base, uint32_t channel, uint32_t mask)

Disables the interrupt source for the eDMA transfer.

Parameters:
  • base – eDMA peripheral base address.

  • channel – eDMA channel number.

  • mask – The mask of the interrupt source to be set. Use the defined edma_interrupt_enable_t type.

void EDMA_SetMajorOffsetConfig(EDMA_Type *base, uint32_t channel, int32_t sourceOffset, int32_t destOffset)

Configures the eDMA channel TCD major offset feature.

Adjustment value added to the source address at the completion of the major iteration count

Parameters:
  • base – eDMA peripheral base address.

  • channel – edma channel number.

  • sourceOffset – source address offset will be applied to source address after major loop done.

  • destOffset – destination address offset will be applied to source address after major loop done.

void EDMA_ConfigChannelSoftwareTCD(edma_tcd_t *tcd, const edma_transfer_config_t *transfer)

Sets TCD fields according to the user’s channel transfer configuration structure, edma_transfer_config_t.

@Note This API only supports EDMA4 TCD type. It can be used to support all types with extension API EDMA_ConfigChannelSoftwareTCDExt

Application should be careful about the TCD pool buffer storage class,

  • For the platform has cache, the software TCD should be put in non cache section

  • The TCD pool buffer should have a consistent storage class.

Note

This function enables the auto stop request feature.

Parameters:
  • tcd – Pointer to the TCD structure.

  • transfer – channel transfer configuration pointer.

void EDMA_TcdReset(edma_tcd_t *tcd)

Sets all fields to default values for the TCD structure.

@Note This API only supports EDMA4 TCD type. It can be used to support all types with extension API EDMA_TcdResetExt

This function sets all fields for this TCD structure to default value.

Note

This function enables the auto stop request feature.

Parameters:
  • tcd – Pointer to the TCD structure.

void EDMA_TcdSetTransferConfig(edma_tcd_t *tcd, const edma_transfer_config_t *config, edma_tcd_t *nextTcd)

Configures the eDMA TCD transfer attribute.

@Note This API only supports EDMA4 TCD type. It can be used to support all types with extension API EDMA_TcdSetTransferConfigExt

The TCD is a transfer control descriptor. The content of the TCD is the same as the hardware TCD registers. The TCD is used in the scatter-gather mode. This function configures the TCD transfer attribute, including source address, destination address, transfer size, address offset, and so on. It also configures the scatter gather feature if the user supplies the next TCD address. Example:

edma_transfer_t config = {
...
}
edma_tcd_t tcd __aligned(32);
edma_tcd_t nextTcd __aligned(32);
EDMA_TcdSetTransferConfig(&tcd, &config, &nextTcd);

Note

TCD address should be 32 bytes aligned or it causes an eDMA error.

Note

If the nextTcd is not NULL, the scatter gather feature is enabled and DREQ bit is cleared in the previous transfer configuration, which is set in the EDMA_TcdReset.

Parameters:
  • tcd – Pointer to the TCD structure.

  • config – Pointer to eDMA transfer configuration structure.

  • nextTcd – Pointer to the next TCD structure. It can be NULL if users do not want to enable scatter/gather feature.

void EDMA_TcdSetMinorOffsetConfig(edma_tcd_t *tcd, const edma_minor_offset_config_t *config)

Configures the eDMA TCD minor offset feature.

@Note This API only supports EDMA4 TCD type. It can be used to support all types with extension API EDMA_TcdSetMinorOffsetConfigExt

A minor offset is a signed-extended value added to the source address or a destination address after each minor loop.

Parameters:
  • tcd – A point to the TCD structure.

  • config – A pointer to the minor offset configuration structure.

void EDMA_TcdSetChannelLink(edma_tcd_t *tcd, edma_channel_link_type_t type, uint32_t linkedChannel)

Sets the channel link for the eDMA TCD.

@Note This API only supports EDMA4 TCD type. It can be used to support all types with extension API EDMA_TcdSetChannelLinkExt

This function configures either a minor link or a major link. The minor link means the channel link is triggered every time CITER decreases by 1. The major link means that the channel link is triggered when the CITER is exhausted.

Note

Users should ensure that DONE flag is cleared before calling this interface, or the configuration is invalid.

Parameters:
  • tcd – Point to the TCD structure.

  • type – Channel link type, it can be one of:

    • kEDMA_LinkNone

    • kEDMA_MinorLink

    • kEDMA_MajorLink

  • linkedChannel – The linked channel number.

static inline void EDMA_TcdSetBandWidth(edma_tcd_t *tcd, edma_bandwidth_t bandWidth)

Sets the bandwidth for the eDMA TCD.

@Note This API only supports EDMA4 TCD type. It can be used to support all types with extension API EDMA_TcdSetBandWidthExt

Because the eDMA processes the minor loop, it continuously generates read/write sequences until the minor count is exhausted. The bandwidth forces the eDMA to stall after the completion of each read/write access to control the bus request bandwidth seen by the crossbar switch.

Parameters:
  • tcd – A pointer to the TCD structure.

  • bandWidth – A bandwidth setting, which can be one of the following:

    • kEDMABandwidthStallNone

    • kEDMABandwidthStall4Cycle

    • kEDMABandwidthStall8Cycle

void EDMA_TcdSetModulo(edma_tcd_t *tcd, edma_modulo_t srcModulo, edma_modulo_t destModulo)

Sets the source modulo and the destination modulo for the eDMA TCD.

@Note This API only supports EDMA4 TCD type. It can be used to support all types with extension API EDMA_TcdSetModuloExt

This function defines a specific address range specified to be the value after (SADDR + SOFF)/(DADDR + DOFF) calculation is performed or the original register value. It provides the ability to implement a circular data queue easily.

Parameters:
  • tcd – A pointer to the TCD structure.

  • srcModulo – A source modulo value.

  • destModulo – A destination modulo value.

static inline void EDMA_TcdEnableAutoStopRequest(edma_tcd_t *tcd, bool enable)

Sets the auto stop request for the eDMA TCD.

@Note This API only supports EDMA4 TCD type. It can be used to support all types with extension API EDMA_TcdEnableAutoStopRequestExt

If enabling the auto stop request, the eDMA hardware automatically disables the hardware channel request.

Parameters:
  • tcd – A pointer to the TCD structure.

  • enable – The command to enable (true) or disable (false).

void EDMA_TcdEnableInterrupts(edma_tcd_t *tcd, uint32_t mask)

Enables the interrupt source for the eDMA TCD.

@Note This API only supports EDMA4 TCD type. It can be used to support all types with extension API EDMA_TcdEnableInterruptsExt

Parameters:
  • tcd – Point to the TCD structure.

  • mask – The mask of interrupt source to be set. Users need to use the defined edma_interrupt_enable_t type.

void EDMA_TcdDisableInterrupts(edma_tcd_t *tcd, uint32_t mask)

Disables the interrupt source for the eDMA TCD.

@Note This API only supports EDMA4 TCD type. It can be used to support all types with extension API EDMA_TcdDisableInterruptsExt

Parameters:
  • tcd – Point to the TCD structure.

  • mask – The mask of interrupt source to be set. Users need to use the defined edma_interrupt_enable_t type.

void EDMA_TcdSetMajorOffsetConfig(edma_tcd_t *tcd, int32_t sourceOffset, int32_t destOffset)

Configures the eDMA TCD major offset feature.

@Note This API only supports EDMA4 TCD type. It can be used to support all types with extension API EDMA_TcdSetMajorOffsetConfigExt

Adjustment value added to the source address at the completion of the major iteration count

Parameters:
  • tcd – A point to the TCD structure.

  • sourceOffset – source address offset wiil be applied to source address after major loop done.

  • destOffset – destination address offset will be applied to source address after major loop done.

void EDMA_ConfigChannelSoftwareTCDExt(EDMA_Type *base, edma_tcd_t *tcd, const edma_transfer_config_t *transfer)

Sets TCD fields according to the user’s channel transfer configuration structure, edma_transfer_config_t.

Application should be careful about the TCD pool buffer storage class,

  • For the platform has cache, the software TCD should be put in non cache section

  • The TCD pool buffer should have a consistent storage class.

Note

This function enables the auto stop request feature.

Parameters:
  • base – eDMA peripheral base address.

  • tcd – Pointer to the TCD structure.

  • transfer – channel transfer configuration pointer.

void EDMA_TcdResetExt(EDMA_Type *base, edma_tcd_t *tcd)

Sets all fields to default values for the TCD structure.

This function sets all fields for this TCD structure to default value.

Note

This function enables the auto stop request feature.

Parameters:
  • base – eDMA peripheral base address.

  • tcd – Pointer to the TCD structure.

void EDMA_TcdSetTransferConfigExt(EDMA_Type *base, edma_tcd_t *tcd, const edma_transfer_config_t *config, edma_tcd_t *nextTcd)

Configures the eDMA TCD transfer attribute.

The TCD is a transfer control descriptor. The content of the TCD is the same as the hardware TCD registers. The TCD is used in the scatter-gather mode. This function configures the TCD transfer attribute, including source address, destination address, transfer size, address offset, and so on. It also configures the scatter gather feature if the user supplies the next TCD address. Example:

edma_transfer_t config = {
...
}
edma_tcd_t tcd __aligned(32);
edma_tcd_t nextTcd __aligned(32);
EDMA_TcdSetTransferConfig(&tcd, &config, &nextTcd);

Note

TCD address should be 32 bytes aligned or it causes an eDMA error.

Note

If the nextTcd is not NULL, the scatter gather feature is enabled and DREQ bit is cleared in the previous transfer configuration, which is set in the EDMA_TcdReset.

Parameters:
  • base – eDMA peripheral base address.

  • tcd – Pointer to the TCD structure.

  • config – Pointer to eDMA transfer configuration structure.

  • nextTcd – Pointer to the next TCD structure. It can be NULL if users do not want to enable scatter/gather feature.

void EDMA_TcdSetMinorOffsetConfigExt(EDMA_Type *base, edma_tcd_t *tcd, const edma_minor_offset_config_t *config)

Configures the eDMA TCD minor offset feature.

A minor offset is a signed-extended value added to the source address or a destination address after each minor loop.

Parameters:
  • base – eDMA peripheral base address.

  • tcd – A point to the TCD structure.

  • config – A pointer to the minor offset configuration structure.

void EDMA_TcdSetChannelLinkExt(EDMA_Type *base, edma_tcd_t *tcd, edma_channel_link_type_t type, uint32_t linkedChannel)

Sets the channel link for the eDMA TCD.

This function configures either a minor link or a major link. The minor link means the channel link is triggered every time CITER decreases by 1. The major link means that the channel link is triggered when the CITER is exhausted.

Note

Users should ensure that DONE flag is cleared before calling this interface, or the configuration is invalid.

Parameters:
  • base – eDMA peripheral base address.

  • tcd – Point to the TCD structure.

  • type – Channel link type, it can be one of:

    • kEDMA_LinkNone

    • kEDMA_MinorLink

    • kEDMA_MajorLink

  • linkedChannel – The linked channel number.

static inline void EDMA_TcdSetBandWidthExt(EDMA_Type *base, edma_tcd_t *tcd, edma_bandwidth_t bandWidth)

Sets the bandwidth for the eDMA TCD.

Because the eDMA processes the minor loop, it continuously generates read/write sequences until the minor count is exhausted. The bandwidth forces the eDMA to stall after the completion of each read/write access to control the bus request bandwidth seen by the crossbar switch.

Parameters:
  • base – eDMA peripheral base address.

  • tcd – A pointer to the TCD structure.

  • bandWidth – A bandwidth setting, which can be one of the following:

    • kEDMABandwidthStallNone

    • kEDMABandwidthStall4Cycle

    • kEDMABandwidthStall8Cycle

void EDMA_TcdSetModuloExt(EDMA_Type *base, edma_tcd_t *tcd, edma_modulo_t srcModulo, edma_modulo_t destModulo)

Sets the source modulo and the destination modulo for the eDMA TCD.

This function defines a specific address range specified to be the value after (SADDR + SOFF)/(DADDR + DOFF) calculation is performed or the original register value. It provides the ability to implement a circular data queue easily.

Parameters:
  • base – eDMA peripheral base address.

  • tcd – A pointer to the TCD structure.

  • srcModulo – A source modulo value.

  • destModulo – A destination modulo value.

static inline void EDMA_TcdEnableAutoStopRequestExt(EDMA_Type *base, edma_tcd_t *tcd, bool enable)

Sets the auto stop request for the eDMA TCD.

If enabling the auto stop request, the eDMA hardware automatically disables the hardware channel request.

Parameters:
  • base – eDMA peripheral base address.

  • tcd – A pointer to the TCD structure.

  • enable – The command to enable (true) or disable (false).

void EDMA_TcdEnableInterruptsExt(EDMA_Type *base, edma_tcd_t *tcd, uint32_t mask)

Enables the interrupt source for the eDMA TCD.

Parameters:
  • base – eDMA peripheral base address.

  • tcd – Point to the TCD structure.

  • mask – The mask of interrupt source to be set. Users need to use the defined edma_interrupt_enable_t type.

void EDMA_TcdDisableInterruptsExt(EDMA_Type *base, edma_tcd_t *tcd, uint32_t mask)

Disables the interrupt source for the eDMA TCD.

Parameters:
  • base – eDMA peripheral base address.

  • tcd – Point to the TCD structure.

  • mask – The mask of interrupt source to be set. Users need to use the defined edma_interrupt_enable_t type.

void EDMA_TcdSetMajorOffsetConfigExt(EDMA_Type *base, edma_tcd_t *tcd, int32_t sourceOffset, int32_t destOffset)

Configures the eDMA TCD major offset feature.

Adjustment value added to the source address at the completion of the major iteration count

Parameters:
  • base – eDMA peripheral base address.

  • tcd – A point to the TCD structure.

  • sourceOffset – source address offset wiil be applied to source address after major loop done.

  • destOffset – destination address offset will be applied to source address after major loop done.

static inline void EDMA_EnableChannelRequest(EDMA_Type *base, uint32_t channel)

Enables the eDMA hardware channel request.

This function enables the hardware channel request.

Parameters:
  • base – eDMA peripheral base address.

  • channel – eDMA channel number.

static inline void EDMA_DisableChannelRequest(EDMA_Type *base, uint32_t channel)

Disables the eDMA hardware channel request.

This function disables the hardware channel request.

Parameters:
  • base – eDMA peripheral base address.

  • channel – eDMA channel number.

static inline void EDMA_TriggerChannelStart(EDMA_Type *base, uint32_t channel)

Starts the eDMA transfer by using the software trigger.

This function starts a minor loop transfer.

Parameters:
  • base – eDMA peripheral base address.

  • channel – eDMA channel number.

uint32_t EDMA_GetRemainingMajorLoopCount(EDMA_Type *base, uint32_t channel)

Gets the remaining major loop count from the eDMA current channel TCD.

This function checks the TCD (Task Control Descriptor) status for a specified eDMA channel and returns the number of major loop count that has not finished.

Note

1. This function can only be used to get unfinished major loop count of transfer without the next TCD, or it might be inaccuracy.

  1. The unfinished/remaining transfer bytes cannot be obtained directly from registers while the channel is running. Because to calculate the remaining bytes, the initial NBYTES configured in DMA_TCDn_NBYTES_MLNO register is needed while the eDMA IP does not support getting it while a channel is active. In another word, the NBYTES value reading is always the actual (decrementing) NBYTES value the dma_engine is working with while a channel is running. Consequently, to get the remaining transfer bytes, a software-saved initial value of NBYTES (for example copied before enabling the channel) is needed. The formula to calculate it is shown below: RemainingBytes = RemainingMajorLoopCount * NBYTES(initially configured)

Parameters:
  • base – eDMA peripheral base address.

  • channel – eDMA channel number.

Returns:

Major loop count which has not been transferred yet for the current TCD.

static inline uint32_t EDMA_GetErrorStatusFlags(EDMA_Type *base)

Gets the eDMA channel error status flags.

Parameters:
  • base – eDMA peripheral base address.

Returns:

The mask of error status flags. Users need to use the _edma_error_status_flags type to decode the return variables.

uint32_t EDMA_GetChannelStatusFlags(EDMA_Type *base, uint32_t channel)

Gets the eDMA channel status flags.

Parameters:
  • base – eDMA peripheral base address.

  • channel – eDMA channel number.

Returns:

The mask of channel status flags. Users need to use the _edma_channel_status_flags type to decode the return variables.

void EDMA_ClearChannelStatusFlags(EDMA_Type *base, uint32_t channel, uint32_t mask)

Clears the eDMA channel status flags.

Parameters:
  • base – eDMA peripheral base address.

  • channel – eDMA channel number.

  • mask – The mask of channel status to be cleared. Users need to use the defined _edma_channel_status_flags type.

status_t EDMA_CreateHandle(edma_handle_t *handle, EDMA_Type *base, uint32_t channel)

Creates the eDMA handle.

This function is called if using the transactional API for eDMA. This function initializes the internal state of the eDMA handle.

Parameters:
  • handle – eDMA handle pointer. The eDMA handle stores callback function and parameters.

  • base – eDMA peripheral base address.

  • channel – eDMA channel number.

Return values:
  • kStatus_Success

  • kStatus_InvalidArgument

void EDMA_InstallTCDMemory(edma_handle_t *handle, edma_tcd_t *tcdPool, uint32_t tcdSize)

Installs the TCDs memory pool into the eDMA handle.

This function is called after the EDMA_CreateHandle to use scatter/gather feature. This function shall only be used while users need to use scatter gather mode. Scatter gather mode enables EDMA to load a new transfer control block (tcd) in hardware, and automatically reconfigure that DMA channel for a new transfer. Users need to prepare tcd memory and also configure tcds using interface EDMA_SubmitTransfer.

Parameters:
  • handle – eDMA handle pointer.

  • tcdPool – A memory pool to store TCDs. It must be 32 bytes aligned.

  • tcdSize – The number of TCD slots.

void EDMA_SetCallback(edma_handle_t *handle, edma_callback callback, void *userData)

Installs a callback function for the eDMA transfer.

This callback is called in the eDMA IRQ handler. Use the callback to do something after the current major loop transfer completes. This function will be called every time one tcd finished transfer.

Parameters:
  • handle – eDMA handle pointer.

  • callback – eDMA callback function pointer.

  • userData – A parameter for the callback function.

void EDMA_PrepareTransferConfig(edma_transfer_config_t *config, void *srcAddr, uint32_t srcWidth, int16_t srcOffset, void *destAddr, uint32_t destWidth, int16_t destOffset, uint32_t bytesEachRequest, uint32_t transferBytes)

Prepares the eDMA transfer structure configurations.

This function prepares the transfer configuration structure according to the user input.

Note

The data address and the data width must be consistent. For example, if the SRC is 4 bytes, the source address must be 4 bytes aligned, or it results in source address error (SAE). User can check if 128 bytes support is available for specific instance by FSL_FEATURE_EDMA_INSTANCE_SUPPORT_128_BYTES_TRANSFERn.

Parameters:
  • config – The user configuration structure of type edma_transfer_t.

  • srcAddr – eDMA transfer source address.

  • srcWidth – eDMA transfer source address width(bytes).

  • srcOffset – source address offset.

  • destAddr – eDMA transfer destination address.

  • destWidth – eDMA transfer destination address width(bytes).

  • destOffset – destination address offset.

  • bytesEachRequest – eDMA transfer bytes per channel request.

  • transferBytes – eDMA transfer bytes to be transferred.

void EDMA_PrepareTransfer(edma_transfer_config_t *config, void *srcAddr, uint32_t srcWidth, void *destAddr, uint32_t destWidth, uint32_t bytesEachRequest, uint32_t transferBytes, edma_transfer_type_t type)

Prepares the eDMA transfer structure.

This function prepares the transfer configuration structure according to the user input.

Note

The data address and the data width must be consistent. For example, if the SRC is 4 bytes, the source address must be 4 bytes aligned, or it results in source address error (SAE).

Parameters:
  • config – The user configuration structure of type edma_transfer_t.

  • srcAddr – eDMA transfer source address.

  • srcWidth – eDMA transfer source address width(bytes).

  • destAddr – eDMA transfer destination address.

  • destWidth – eDMA transfer destination address width(bytes).

  • bytesEachRequest – eDMA transfer bytes per channel request.

  • transferBytes – eDMA transfer bytes to be transferred.

  • type – eDMA transfer type.

void EDMA_PrepareTransferTCD(edma_handle_t *handle, edma_tcd_t *tcd, void *srcAddr, uint32_t srcWidth, int16_t srcOffset, void *destAddr, uint32_t destWidth, int16_t destOffset, uint32_t bytesEachRequest, uint32_t transferBytes, edma_tcd_t *nextTcd)

Prepares the eDMA transfer content descriptor.

This function prepares the transfer content descriptor structure according to the user input.

Note

The data address and the data width must be consistent. For example, if the SRC is 4 bytes, the source address must be 4 bytes aligned, or it results in source address error (SAE).

Parameters:
  • handle – eDMA handle pointer.

  • tcd – Pointer to eDMA transfer content descriptor structure.

  • srcAddr – eDMA transfer source address.

  • srcWidth – eDMA transfer source address width(bytes).

  • srcOffset – source address offset.

  • destAddr – eDMA transfer destination address.

  • destWidth – eDMA transfer destination address width(bytes).

  • destOffset – destination address offset.

  • bytesEachRequest – eDMA transfer bytes per channel request.

  • transferBytes – eDMA transfer bytes to be transferred.

  • nextTcd – eDMA transfer linked TCD address.

status_t EDMA_SubmitTransferTCD(edma_handle_t *handle, edma_tcd_t *tcd)

Submits the eDMA transfer content descriptor.

This function submits the eDMA transfer request according to the transfer content descriptor. In scatter gather mode, call this function will add a configured tcd to the circular list of tcd pool. The tcd pools is setup by call function EDMA_InstallTCDMemory before.

Typical user case:

  1. submit single transfer

    edma_tcd_t tcd;
    EDMA_PrepareTransferTCD(handle, tcd, ....)
    EDMA_SubmitTransferTCD(handle, tcd)
    EDMA_StartTransfer(handle)
    

  2. submit static link transfer,

    edma_tcd_t tcd[2];
    EDMA_PrepareTransferTCD(handle, &tcd[0], ....)
    EDMA_PrepareTransferTCD(handle, &tcd[1], ....)
    EDMA_SubmitTransferTCD(handle, &tcd[0])
    EDMA_StartTransfer(handle)
    

  3. submit dynamic link transfer

    edma_tcd_t tcdpool[2];
    EDMA_InstallTCDMemory(&g_DMA_Handle, tcdpool, 2);
    edma_tcd_t tcd;
    EDMA_PrepareTransferTCD(handle, tcd, ....)
    EDMA_SubmitTransferTCD(handle, tcd)
    EDMA_PrepareTransferTCD(handle, tcd, ....)
    EDMA_SubmitTransferTCD(handle, tcd)
    EDMA_StartTransfer(handle)
    

  4. submit loop transfer

    edma_tcd_t tcd[2];
    EDMA_PrepareTransferTCD(handle, &tcd[0], ...,&tcd[1])
    EDMA_PrepareTransferTCD(handle, &tcd[1], ..., &tcd[0])
    EDMA_SubmitTransferTCD(handle, &tcd[0])
    EDMA_StartTransfer(handle)
    

Parameters:
  • handle – eDMA handle pointer.

  • tcd – Pointer to eDMA transfer content descriptor structure.

Return values:
  • kStatus_EDMA_Success – It means submit transfer request succeed.

  • kStatus_EDMA_QueueFull – It means TCD queue is full. Submit transfer request is not allowed.

  • kStatus_EDMA_Busy – It means the given channel is busy, need to submit request later.

status_t EDMA_SubmitTransfer(edma_handle_t *handle, const edma_transfer_config_t *config)

Submits the eDMA transfer request.

This function submits the eDMA transfer request according to the transfer configuration structure. In scatter gather mode, call this function will add a configured tcd to the circular list of tcd pool. The tcd pools is setup by call function EDMA_InstallTCDMemory before.

Parameters:
  • handle – eDMA handle pointer.

  • config – Pointer to eDMA transfer configuration structure.

Return values:
  • kStatus_EDMA_Success – It means submit transfer request succeed.

  • kStatus_EDMA_QueueFull – It means TCD queue is full. Submit transfer request is not allowed.

  • kStatus_EDMA_Busy – It means the given channel is busy, need to submit request later.

status_t EDMA_SubmitLoopTransfer(edma_handle_t *handle, edma_transfer_config_t *transfer, uint32_t transferLoopCount)

Submits the eDMA scatter gather transfer configurations.

The function is target for submit loop transfer request, the ring transfer request means that the transfer request TAIL is link to HEAD, such as, A->B->C->D->A, or A->A

To use the ring transfer feature, the application should allocate several transfer object, such as

edma_channel_transfer_config_t transfer[2];
EDMA_TransferSubmitLoopTransfer(psHandle, &transfer, 2U);
Then eDMA driver will link transfer[0] and transfer[1] to each other

Note

Application should check the return value of this function to avoid transfer request submit failed

Parameters:
  • handle – eDMA handle pointer

  • transfer – pointer to user’s eDMA channel configure structure, see edma_channel_transfer_config_t for detail

  • transferLoopCount – the count of the transfer ring, if loop count is 1, that means that the one will link to itself.

Return values:
  • kStatus_Success – It means submit transfer request succeed

  • kStatus_EDMA_Busy – channel is in busy status

  • kStatus_InvalidArgument – Invalid Argument

void EDMA_StartTransfer(edma_handle_t *handle)

eDMA starts transfer.

This function enables the channel request. Users can call this function after submitting the transfer request or before submitting the transfer request.

Parameters:
  • handle – eDMA handle pointer.

void EDMA_StopTransfer(edma_handle_t *handle)

eDMA stops transfer.

This function disables the channel request to pause the transfer. Users can call EDMA_StartTransfer() again to resume the transfer.

Parameters:
  • handle – eDMA handle pointer.

void EDMA_AbortTransfer(edma_handle_t *handle)

eDMA aborts transfer.

This function disables the channel request and clear transfer status bits. Users can submit another transfer after calling this API.

Parameters:
  • handle – DMA handle pointer.

static inline uint32_t EDMA_GetUnusedTCDNumber(edma_handle_t *handle)

Get unused TCD slot number.

This function gets current tcd index which is run. If the TCD pool pointer is NULL, it will return 0.

Parameters:
  • handle – DMA handle pointer.

Returns:

The unused tcd slot number.

static inline uint32_t EDMA_GetNextTCDAddress(edma_handle_t *handle)

Get the next tcd address.

This function gets the next tcd address. If this is last TCD, return 0.

Parameters:
  • handle – DMA handle pointer.

Returns:

The next TCD address.

void EDMA_HandleIRQ(edma_handle_t *handle)

eDMA IRQ handler for the current major loop transfer completion.

This function clears the channel major interrupt flag and calls the callback function if it is not NULL.

Note: For the case using TCD queue, when the major iteration count is exhausted, additional operations are performed. These include the final address adjustments and reloading of the BITER field into the CITER. Assertion of an optional interrupt request also occurs at this time, as does a possible fetch of a new TCD from memory using the scatter/gather address pointer included in the descriptor (if scatter/gather is enabled).

For instance, when the time interrupt of TCD[0] happens, the TCD[1] has already been loaded into the eDMA engine. As sga and sga_index are calculated based on the DLAST_SGA bitfield lies in the TCD_CSR register, the sga_index in this case should be 2 (DLAST_SGA of TCD[1] stores the address of TCD[2]). Thus, the “tcdUsed” updated should be (tcdUsed - 2U) which indicates the number of TCDs can be loaded in the memory pool (because TCD[0] and TCD[1] have been loaded into the eDMA engine at this point already.).

For the last two continuous ISRs in a scatter/gather process, they both load the last TCD (The last ISR does not load a new TCD) from the memory pool to the eDMA engine when major loop completes. Therefore, ensure that the header and tcdUsed updated are identical for them. tcdUsed are both 0 in this case as no TCD to be loaded.

See the “eDMA basic data flow” in the eDMA Functional description section of the Reference Manual for further details.

Parameters:
  • handle – eDMA handle pointer.

FSL_EDMA_DRIVER_VERSION

eDMA driver version

Version 2.10.7.

_edma_transfer_status eDMA transfer status

Values:

enumerator kStatus_EDMA_QueueFull

TCD queue is full.

enumerator kStatus_EDMA_Busy

Channel is busy and can’t handle the transfer request.

enum _edma_transfer_size

eDMA transfer configuration

Values:

enumerator kEDMA_TransferSize1Bytes

Source/Destination data transfer size is 1 byte every time

enumerator kEDMA_TransferSize2Bytes

Source/Destination data transfer size is 2 bytes every time

enumerator kEDMA_TransferSize4Bytes

Source/Destination data transfer size is 4 bytes every time

enumerator kEDMA_TransferSize8Bytes

Source/Destination data transfer size is 8 bytes every time

enumerator kEDMA_TransferSize16Bytes

Source/Destination data transfer size is 16 bytes every time

enumerator kEDMA_TransferSize32Bytes

Source/Destination data transfer size is 32 bytes every time

enumerator kEDMA_TransferSize64Bytes

Source/Destination data transfer size is 64 bytes every time

enumerator kEDMA_TransferSize128Bytes

Source/Destination data transfer size is 128 bytes every time

enum _edma_modulo

eDMA modulo configuration

Values:

enumerator kEDMA_ModuloDisable

Disable modulo

enumerator kEDMA_Modulo2bytes

Circular buffer size is 2 bytes.

enumerator kEDMA_Modulo4bytes

Circular buffer size is 4 bytes.

enumerator kEDMA_Modulo8bytes

Circular buffer size is 8 bytes.

enumerator kEDMA_Modulo16bytes

Circular buffer size is 16 bytes.

enumerator kEDMA_Modulo32bytes

Circular buffer size is 32 bytes.

enumerator kEDMA_Modulo64bytes

Circular buffer size is 64 bytes.

enumerator kEDMA_Modulo128bytes

Circular buffer size is 128 bytes.

enumerator kEDMA_Modulo256bytes

Circular buffer size is 256 bytes.

enumerator kEDMA_Modulo512bytes

Circular buffer size is 512 bytes.

enumerator kEDMA_Modulo1Kbytes

Circular buffer size is 1 K bytes.

enumerator kEDMA_Modulo2Kbytes

Circular buffer size is 2 K bytes.

enumerator kEDMA_Modulo4Kbytes

Circular buffer size is 4 K bytes.

enumerator kEDMA_Modulo8Kbytes

Circular buffer size is 8 K bytes.

enumerator kEDMA_Modulo16Kbytes

Circular buffer size is 16 K bytes.

enumerator kEDMA_Modulo32Kbytes

Circular buffer size is 32 K bytes.

enumerator kEDMA_Modulo64Kbytes

Circular buffer size is 64 K bytes.

enumerator kEDMA_Modulo128Kbytes

Circular buffer size is 128 K bytes.

enumerator kEDMA_Modulo256Kbytes

Circular buffer size is 256 K bytes.

enumerator kEDMA_Modulo512Kbytes

Circular buffer size is 512 K bytes.

enumerator kEDMA_Modulo1Mbytes

Circular buffer size is 1 M bytes.

enumerator kEDMA_Modulo2Mbytes

Circular buffer size is 2 M bytes.

enumerator kEDMA_Modulo4Mbytes

Circular buffer size is 4 M bytes.

enumerator kEDMA_Modulo8Mbytes

Circular buffer size is 8 M bytes.

enumerator kEDMA_Modulo16Mbytes

Circular buffer size is 16 M bytes.

enumerator kEDMA_Modulo32Mbytes

Circular buffer size is 32 M bytes.

enumerator kEDMA_Modulo64Mbytes

Circular buffer size is 64 M bytes.

enumerator kEDMA_Modulo128Mbytes

Circular buffer size is 128 M bytes.

enumerator kEDMA_Modulo256Mbytes

Circular buffer size is 256 M bytes.

enumerator kEDMA_Modulo512Mbytes

Circular buffer size is 512 M bytes.

enumerator kEDMA_Modulo1Gbytes

Circular buffer size is 1 G bytes.

enumerator kEDMA_Modulo2Gbytes

Circular buffer size is 2 G bytes.

enum _edma_bandwidth

Bandwidth control.

Values:

enumerator kEDMA_BandwidthStallNone

No eDMA engine stalls.

enumerator kEDMA_BandwidthStall4Cycle

eDMA engine stalls for 4 cycles after each read/write.

enumerator kEDMA_BandwidthStall8Cycle

eDMA engine stalls for 8 cycles after each read/write.

enum _edma_channel_link_type

Channel link type.

Values:

enumerator kEDMA_LinkNone

No channel link

enumerator kEDMA_MinorLink

Channel link after each minor loop

enumerator kEDMA_MajorLink

Channel link while major loop count exhausted

_edma_channel_status_flags eDMA channel status flags.

Values:

enumerator kEDMA_DoneFlag

DONE flag, set while transfer finished, CITER value exhausted

enumerator kEDMA_ErrorFlag

eDMA error flag, an error occurred in a transfer

enumerator kEDMA_InterruptFlag

eDMA interrupt flag, set while an interrupt occurred of this channel

_edma_error_status_flags eDMA channel error status flags.

Values:

enumerator kEDMA_DestinationBusErrorFlag

Bus error on destination address

enumerator kEDMA_SourceBusErrorFlag

Bus error on the source address

enumerator kEDMA_ScatterGatherErrorFlag

Error on the Scatter/Gather address, not 32byte aligned.

enumerator kEDMA_NbytesErrorFlag

NBYTES/CITER configuration error

enumerator kEDMA_DestinationOffsetErrorFlag

Destination offset not aligned with destination size

enumerator kEDMA_DestinationAddressErrorFlag

Destination address not aligned with destination size

enumerator kEDMA_SourceOffsetErrorFlag

Source offset not aligned with source size

enumerator kEDMA_SourceAddressErrorFlag

Source address not aligned with source size

enumerator kEDMA_ErrorChannelFlag

Error channel number of the cancelled channel number

enumerator kEDMA_TransferCanceledFlag

Transfer cancelled

enumerator kEDMA_ValidFlag

No error occurred, this bit is 0. Otherwise, it is 1.

_edma_interrupt_enable eDMA interrupt source

Values:

enumerator kEDMA_ErrorInterruptEnable

Enable interrupt while channel error occurs.

enumerator kEDMA_MajorInterruptEnable

Enable interrupt while major count exhausted.

enumerator kEDMA_HalfInterruptEnable

Enable interrupt while major count to half value.

enum _edma_transfer_type

eDMA transfer type

Values:

enumerator kEDMA_MemoryToMemory

Transfer from memory to memory

enumerator kEDMA_PeripheralToMemory

Transfer from peripheral to memory

enumerator kEDMA_MemoryToPeripheral

Transfer from memory to peripheral

enumerator kEDMA_PeripheralToPeripheral

Transfer from Peripheral to peripheral

enum edma_channel_memory_attribute

eDMA channel memory attribute

Values:

enumerator kEDMA_ChannelNoWriteNoReadNoCacheNoBuffer

No write allocate, no read allocate, non-cacheable, non-bufferable.

enumerator kEDMA_ChannelNoWriteNoReadNoCacheBufferable

No write allocate, no read allocate, non-cacheable, bufferable.

enumerator kEDMA_ChannelNoWriteNoReadCacheableNoBuffer

No write allocate, no read allocate, cacheable, non-bufferable.

enumerator kEDMA_ChannelNoWriteNoReadCacheableBufferable

No write allocate, no read allocate, cacheable, bufferable.

enumerator kEDMA_ChannelNoWriteReadNoCacheNoBuffer

No write allocate, read allocate, non-cacheable, non-bufferable.

enumerator kEDMA_ChannelNoWriteReadNoCacheBufferable

No write allocate, read allocate, non-cacheable, bufferable.

enumerator kEDMA_ChannelNoWriteReadCacheableNoBuffer

No write allocate, read allocate, cacheable, non-bufferable.

enumerator kEDMA_ChannelNoWriteReadCacheableBufferable

No write allocate, read allocate, cacheable, bufferable.

enumerator kEDMA_ChannelWriteNoReadNoCacheNoBuffer

write allocate, no read allocate, non-cacheable, non-bufferable.

enumerator kEDMA_ChannelWriteNoReadNoCacheBufferable

write allocate, no read allocate, non-cacheable, bufferable.

enumerator kEDMA_ChannelWriteNoReadCacheableNoBuffer

write allocate, no read allocate, cacheable, non-bufferable.

enumerator kEDMA_ChannelWriteNoReadCacheableBufferable

write allocate, no read allocate, cacheable, bufferable.

enumerator kEDMA_ChannelWriteReadNoCacheNoBuffer

write allocate, read allocate, non-cacheable, non-bufferable.

enumerator kEDMA_ChannelWriteReadNoCacheBufferable

write allocate, read allocate, non-cacheable, bufferable.

enumerator kEDMA_ChannelWriteReadCacheableNoBuffer

write allocate, read allocate, cacheable, non-bufferable.

enumerator kEDMA_ChannelWriteReadCacheableBufferable

write allocate, read allocate, cacheable, bufferable.

enum _edma_channel_swap_size

eDMA4 channel swap size

Values:

enumerator kEDMA_ChannelSwapDisabled

Swap is disabled.

enumerator kEDMA_ChannelReadWith8bitSwap

Swap occurs with respect to the read 8bit.

enumerator kEDMA_ChannelReadWith16bitSwap

Swap occurs with respect to the read 16bit.

enumerator kEDMA_ChannelReadWith32bitSwap

Swap occurs with respect to the read 32bit.

enumerator kEDMA_ChannelWriteWith8bitSwap

Swap occurs with respect to the write 8bit.

enumerator kEDMA_ChannelWriteWith16bitSwap

Swap occurs with respect to the write 16bit.

enumerator kEDMA_ChannelWriteWith32bitSwap

Swap occurs with respect to the write 32bit.

eDMA channel system bus information, _edma_channel_sys_bus_info

Values:

enumerator kEDMA_PrivilegedAccessLevel

Privileged Access Level for DMA transfers. 0b - User protection level; 1b - Privileged protection level.

enumerator kEDMA_MasterId

DMA’s master ID when channel is active and master ID replication is enabled.

enum _edma_channel_access_type

eDMA4 channel access type

Values:

enumerator kEDMA_ChannelDataAccess

Data access for eDMA4 transfers.

enumerator kEDMA_ChannelInstructionAccess

Instruction access for eDMA4 transfers.

enum _edma_channel_protection_level

eDMA4 channel protection level

Values:

enumerator kEDMA_ChannelProtectionLevelUser

user protection level for eDMA transfers.

enumerator kEDMA_ChannelProtectionLevelPrivileged

Privileged protection level eDMA transfers.

typedef enum _edma_transfer_size edma_transfer_size_t

eDMA transfer configuration

typedef enum _edma_modulo edma_modulo_t

eDMA modulo configuration

typedef enum _edma_bandwidth edma_bandwidth_t

Bandwidth control.

typedef enum _edma_channel_link_type edma_channel_link_type_t

Channel link type.

typedef enum _edma_transfer_type edma_transfer_type_t

eDMA transfer type

typedef struct _edma_channel_Preemption_config edma_channel_Preemption_config_t

eDMA channel priority configuration

typedef struct _edma_minor_offset_config edma_minor_offset_config_t

eDMA minor offset configuration

typedef enum edma_channel_memory_attribute edma_channel_memory_attribute_t

eDMA channel memory attribute

typedef enum _edma_channel_swap_size edma_channel_swap_size_t

eDMA4 channel swap size

typedef enum _edma_channel_access_type edma_channel_access_type_t

eDMA4 channel access type

typedef enum _edma_channel_protection_level edma_channel_protection_level_t

eDMA4 channel protection level

typedef struct _edma_channel_config edma_channel_config_t

eDMA4 channel configuration

typedef edma_core_tcd_t edma_tcd_t

eDMA TCD.

This structure is same as TCD register which is described in reference manual, and is used to configure the scatter/gather feature as a next hardware TCD.

typedef struct _edma_transfer_config edma_transfer_config_t

edma4 channel transfer configuration

The transfer configuration structure support full feature configuration of the transfer control descriptor.

1.To perform a simple transfer, below members should be initialized at least .srcAddr - source address .dstAddr - destination address .srcWidthOfEachTransfer - data width of source address .dstWidthOfEachTransfer - data width of destination address, normally it should be as same as srcWidthOfEachTransfer .bytesEachRequest - bytes to be transferred in each DMA request .totalBytes - total bytes to be transferred .srcOffsetOfEachTransfer - offset value in bytes unit to be applied to source address as each source read is completed .dstOffsetOfEachTransfer - offset value in bytes unit to be applied to destination address as each destination write is completed enablchannelRequest - channel request can be enabled together with transfer configure submission

2.The transfer configuration structure also support advance feature: Programmable source/destination address range(MODULO) Programmable minor loop offset Programmable major loop offset Programmable channel chain feature Programmable channel transfer control descriptor link feature

Note

User should pay attention to the transfer size alignment limitation

  1. the bytesEachRequest should align with the srcWidthOfEachTransfer and the dstWidthOfEachTransfer that is to say bytesEachRequest % srcWidthOfEachTransfer should be 0

  2. the srcOffsetOfEachTransfer and dstOffsetOfEachTransfer must be aligne with transfer width

  3. the totalBytes should align with the bytesEachRequest

  4. the srcAddr should align with the srcWidthOfEachTransfer

  5. the dstAddr should align with the dstWidthOfEachTransfer

  6. the srcAddr should align with srcAddrModulo if modulo feature is enabled

  7. the dstAddr should align with dstAddrModulo if modulo feature is enabled If anyone of above condition can not be satisfied, the edma4 interfaces will generate assert error.

typedef struct _edma_config edma_config_t

eDMA global configuration structure.

typedef void (*edma_callback)(struct _edma_handle *handle, void *userData, bool transferDone, uint32_t tcds)

Define callback function for eDMA.

This callback function is called in the EDMA interrupt handle. In normal mode, run into callback function means the transfer users need is done. In scatter gather mode, run into callback function means a transfer control block (tcd) is finished. Not all transfer finished, users can get the finished tcd numbers using interface EDMA_GetUnusedTCDNumber.

Param handle:

EDMA handle pointer, users shall not touch the values inside.

Param userData:

The callback user parameter pointer. Users can use this parameter to involve things users need to change in EDMA callback function.

Param transferDone:

If the current loaded transfer done. In normal mode it means if all transfer done. In scatter gather mode, this parameter shows is the current transfer block in EDMA register is done. As the load of core is different, it will be different if the new tcd loaded into EDMA registers while this callback called. If true, it always means new tcd still not loaded into registers, while false means new tcd already loaded into registers.

Param tcds:

How many tcds are done from the last callback. This parameter only used in scatter gather mode. It tells user how many tcds are finished between the last callback and this.

typedef struct _edma_handle edma_handle_t

eDMA transfer handle structure

FSL_EDMA_DRIVER_EDMA4

eDMA driver name

EDMA_ALLOCATE_TCD(name, number)

Macro used for allocate edma TCD.

DMA_DCHPRI_INDEX(channel)

Compute the offset unit from DCHPRI3.

struct _edma_channel_Preemption_config
#include <fsl_edma.h>

eDMA channel priority configuration

Public Members

bool enableChannelPreemption

If true: a channel can be suspended by other channel with higher priority

bool enablePreemptAbility

If true: a channel can suspend other channel with low priority

uint8_t channelPriority

Channel priority

struct _edma_minor_offset_config
#include <fsl_edma.h>

eDMA minor offset configuration

Public Members

bool enableSrcMinorOffset

Enable(true) or Disable(false) source minor loop offset.

bool enableDestMinorOffset

Enable(true) or Disable(false) destination minor loop offset.

uint32_t minorOffset

Offset for a minor loop mapping.

struct _edma_channel_config
#include <fsl_edma.h>

eDMA4 channel configuration

Public Members

edma_channel_Preemption_config_t channelPreemptionConfig

channel preemption configuration

edma_channel_memory_attribute_t channelReadMemoryAttribute

channel memory read attribute configuration

edma_channel_memory_attribute_t channelWriteMemoryAttribute

channel memory write attribute configuration

edma_channel_swap_size_t channelSwapSize

channel swap size configuration

edma_channel_access_type_t channelAccessType

channel access type configuration

uint8_t channelDataSignExtensionBitPosition

channel data sign extension bit psition configuration

uint32_t channelRequestSource

hardware service request source for the channel

bool enableMasterIDReplication

enable master ID replication

edma_channel_protection_level_t protectionLevel

protection level

struct _edma_transfer_config
#include <fsl_edma.h>

edma4 channel transfer configuration

The transfer configuration structure support full feature configuration of the transfer control descriptor.

1.To perform a simple transfer, below members should be initialized at least .srcAddr - source address .dstAddr - destination address .srcWidthOfEachTransfer - data width of source address .dstWidthOfEachTransfer - data width of destination address, normally it should be as same as srcWidthOfEachTransfer .bytesEachRequest - bytes to be transferred in each DMA request .totalBytes - total bytes to be transferred .srcOffsetOfEachTransfer - offset value in bytes unit to be applied to source address as each source read is completed .dstOffsetOfEachTransfer - offset value in bytes unit to be applied to destination address as each destination write is completed enablchannelRequest - channel request can be enabled together with transfer configure submission

2.The transfer configuration structure also support advance feature: Programmable source/destination address range(MODULO) Programmable minor loop offset Programmable major loop offset Programmable channel chain feature Programmable channel transfer control descriptor link feature

Note

User should pay attention to the transfer size alignment limitation

  1. the bytesEachRequest should align with the srcWidthOfEachTransfer and the dstWidthOfEachTransfer that is to say bytesEachRequest % srcWidthOfEachTransfer should be 0

  2. the srcOffsetOfEachTransfer and dstOffsetOfEachTransfer must be aligne with transfer width

  3. the totalBytes should align with the bytesEachRequest

  4. the srcAddr should align with the srcWidthOfEachTransfer

  5. the dstAddr should align with the dstWidthOfEachTransfer

  6. the srcAddr should align with srcAddrModulo if modulo feature is enabled

  7. the dstAddr should align with dstAddrModulo if modulo feature is enabled If anyone of above condition can not be satisfied, the edma4 interfaces will generate assert error.

Public Members

uint32_t srcAddr

Source data address.

uint32_t destAddr

Destination data address.

edma_transfer_size_t srcTransferSize

Source data transfer size.

edma_transfer_size_t destTransferSize

Destination data transfer size.

int16_t srcOffset

Sign-extended offset value in byte unit applied to the current source address to form the next-state value as each source read is completed

int16_t destOffset

Sign-extended offset value in byte unit applied to the current destination address to form the next-state value as each destination write is completed.

uint32_t minorLoopBytes

bytes in each minor loop or each request range: 1 - (2^30 -1) when minor loop mapping is enabled range: 1 - (2^10 - 1) when minor loop mapping is enabled and source or dest minor loop offset is enabled range: 1 - (2^32 - 1) when minor loop mapping is disabled

uint32_t majorLoopCounts

minor loop counts in each major loop, should be 1 at least for each transfer range: (0 - (2^15 - 1)) when minor loop channel link is disabled range: (0 - (2^9 - 1)) when minor loop channel link is enabled total bytes in a transfer = minorLoopCountsEachMajorLoop * bytesEachMinorLoop

uint16_t enabledInterruptMask

channel interrupt to enable, can be OR’ed value of _edma_interrupt_enable

edma_modulo_t srcAddrModulo

source circular data queue range

int32_t srcMajorLoopOffset

source major loop offset

edma_modulo_t dstAddrModulo

destination circular data queue range

int32_t dstMajorLoopOffset

destination major loop offset

bool enableSrcMinorLoopOffset

enable source minor loop offset

bool enableDstMinorLoopOffset

enable dest minor loop offset

int32_t minorLoopOffset

burst offset, the offset will be applied after minor loop update

bool enableChannelMajorLoopLink

channel link when major loop complete

uint32_t majorLoopLinkChannel

major loop link channel number

bool enableChannelMinorLoopLink

channel link when minor loop complete

uint32_t minorLoopLinkChannel

minor loop link channel number

edma_tcd_t *linkTCD

pointer to the link transfer control descriptor

struct _edma_config
#include <fsl_edma.h>

eDMA global configuration structure.

Public Members

bool enableMasterIdReplication

Enable (true) master ID replication. If Master ID replication is disabled, the privileged protection level (supervisor mode) for eDMA4 transfers is used.

bool enableGlobalChannelLink

Enable(true) channel linking is available and controlled by each channel’s link settings.

bool enableHaltOnError

Enable (true) transfer halt on error. Any error causes the HALT bit to set. Subsequently, all service requests are ignored until the HALT bit is cleared.

bool enableDebugMode

Enable(true) eDMA4 debug mode. When in debug mode, the eDMA4 stalls the start of a new channel. Executing channels are allowed to complete.

bool enableRoundRobinArbitration

Enable(true) channel linking is available and controlled by each channel’s link settings.

edma_channel_config_t *channelConfig[1]

channel preemption configuration

struct _edma_handle
#include <fsl_edma.h>

eDMA transfer handle structure

Public Members

edma_callback callback

Callback function for major count exhausted.

void *userData

Callback function parameter.

EDMA_ChannelType *channelBase

eDMA peripheral channel base address.

EDMA_Type *base

eDMA peripheral base address

EDMA_TCDType *tcdBase

eDMA peripheral tcd base address.

edma_tcd_t *tcdPool

Pointer to memory stored TCDs.

uint32_t channel

eDMA channel number.

volatile int8_t header

The first TCD index. Should point to the next TCD to be loaded into the eDMA engine.

volatile int8_t tail

The last TCD index. Should point to the next TCD to be stored into the memory pool.

volatile int8_t tcdUsed

The number of used TCD slots. Should reflect the number of TCDs can be used/loaded in the memory.

volatile int8_t tcdSize

The total number of TCD slots in the queue.

eDMA core Driver

enum _edma_tcd_type

eDMA tcd flag type

Values:

enumerator kEDMA_EDMA4Flag

Data access for eDMA4 transfers.

enumerator kEDMA_EDMA5Flag

Instruction access for eDMA4 transfers.

typedef struct _edma_core_mp edma_core_mp_t

edma core channel struture definition

typedef struct _edma_core_channel edma_core_channel_t

edma core channel struture definition

typedef enum _edma_tcd_type edma_tcd_type_t

eDMA tcd flag type

typedef struct _edma5_core_tcd edma5_core_tcd_t

edma5 core TCD struture definition

typedef struct _edma4_core_tcd edma4_core_tcd_t

edma4 core TCD struture definition

typedef struct _edma_core_tcd edma_core_tcd_t

edma core TCD struture definition

typedef edma_core_channel_t EDMA_ChannelType

EDMA typedef.

typedef edma_core_tcd_t EDMA_TCDType
typedef void EDMA_Type
DMA_CORE_MP_CSR_EDBG_MASK
DMA_CORE_MP_CSR_ERCA_MASK
DMA_CORE_MP_CSR_HAE_MASK
DMA_CORE_MP_CSR_HALT_MASK
DMA_CORE_MP_CSR_GCLC_MASK
DMA_CORE_MP_CSR_GMRC_MASK
DMA_CORE_MP_CSR_EDBG(x)
DMA_CORE_MP_CSR_ERCA(x)
DMA_CORE_MP_CSR_HAE(x)
DMA_CORE_MP_CSR_HALT(x)
DMA_CORE_MP_CSR_GCLC(x)
DMA_CORE_MP_CSR_GMRC(x)
DMA_CSR_INTMAJOR_MASK
DMA_CSR_INTHALF_MASK
DMA_CSR_DREQ_MASK
DMA_CSR_ESG_MASK
DMA_CSR_BWC_MASK
DMA_CSR_BWC(x)
DMA_CSR_START_MASK
DMA_CITER_ELINKNO_CITER_MASK
DMA_BITER_ELINKNO_BITER_MASK
DMA_CITER_ELINKNO_CITER_SHIFT
DMA_CITER_ELINKYES_CITER_MASK
DMA_CITER_ELINKYES_CITER_SHIFT
DMA_ATTR_SMOD_MASK
DMA_ATTR_DMOD_MASK
DMA_CITER_ELINKNO_ELINK_MASK
DMA_CSR_MAJORELINK_MASK
DMA_BITER_ELINKYES_ELINK_MASK
DMA_CITER_ELINKYES_ELINK_MASK
DMA_CSR_MAJORLINKCH_MASK
DMA_BITER_ELINKYES_LINKCH_MASK
DMA_CITER_ELINKYES_LINKCH_MASK
DMA_NBYTES_MLOFFYES_MLOFF_MASK
DMA_NBYTES_MLOFFYES_DMLOE_MASK
DMA_NBYTES_MLOFFYES_SMLOE_MASK
DMA_NBYTES_MLOFFNO_NBYTES_MASK
DMA_ATTR_DMOD(x)
DMA_ATTR_SMOD(x)
DMA_BITER_ELINKYES_LINKCH(x)
DMA_CITER_ELINKYES_LINKCH(x)
DMA_NBYTES_MLOFFYES_MLOFF(x)
DMA_NBYTES_MLOFFYES_DMLOE(x)
DMA_NBYTES_MLOFFYES_SMLOE(x)
DMA_NBYTES_MLOFFNO_NBYTES(x)
DMA_NBYTES_MLOFFYES_NBYTES(x)
DMA_ATTR_DSIZE(x)
DMA_ATTR_SSIZE(x)
DMA_CSR_DREQ(x)
DMA_CSR_MAJORLINKCH(x)
DMA_CH_MATTR_WCACHE(x)
DMA_CH_MATTR_RCACHE(x)
DMA_CH_CSR_SIGNEXT_MASK
DMA_CH_CSR_SIGNEXT_SHIFT
DMA_CH_CSR_SWAP_MASK
DMA_CH_CSR_SWAP_SHIFT
DMA_CH_SBR_INSTR_MASK
DMA_CH_SBR_INSTR_SHIFT
DMA_CH_SBR_EMI_MASK
DMA_CH_SBR_EMI_SHIFT
DMA_CH_MUX_SOURCE(x)
DMA_ERR_DBE_FLAG

DMA error flag.

DMA_ERR_SBE_FLAG
DMA_ERR_SGE_FLAG
DMA_ERR_NCE_FLAG
DMA_ERR_DOE_FLAG
DMA_ERR_DAE_FLAG
DMA_ERR_SOE_FLAG
DMA_ERR_SAE_FLAG
DMA_ERR_ERRCHAN_FLAG
DMA_ERR_ECX_FLAG
DMA_ERR_FLAG
DMA_CLEAR_DONE_STATUS(base, channel)

get/clear DONE bit

DMA_GET_DONE_STATUS(base, channel)
DMA_ENABLE_ERROR_INT(base, channel)

enable/disable error interupt

DMA_DISABLE_ERROR_INT(base, channel)
DMA_CLEAR_ERROR_STATUS(base, channel)

get/clear error status

DMA_GET_ERROR_STATUS(base, channel)
DMA_CLEAR_INT_STATUS(base, channel)

get/clear INT status

DMA_GET_INT_STATUS(base, channel)
DMA_ENABLE_MAJOR_INT(base, channel)

enable/dsiable MAJOR/HALF INT

DMA_ENABLE_HALF_INT(base, channel)
DMA_DISABLE_MAJOR_INT(base, channel)
DMA_DISABLE_HALF_INT(base, channel)
EDMA_TCD_ALIGN_SIZE

EDMA tcd align size.

EDMA_CORE_BASE(base)

EDMA base address convert macro.

EDMA_MP_BASE(base)
EDMA_CHANNEL_BASE(base, channel)
EDMA_TCD_BASE(base, channel)
EDMA_TCD_TYPE(x)

EDMA TCD type macro.

EDMA_TCD_SADDR(tcd, flag)

EDMA TCD address convert macro.

EDMA_TCD_SOFF(tcd, flag)
EDMA_TCD_ATTR(tcd, flag)
EDMA_TCD_NBYTES(tcd, flag)
EDMA_TCD_SLAST(tcd, flag)
EDMA_TCD_DADDR(tcd, flag)
EDMA_TCD_DOFF(tcd, flag)
EDMA_TCD_CITER(tcd, flag)
EDMA_TCD_DLAST_SGA(tcd, flag)
EDMA_TCD_CSR(tcd, flag)
EDMA_TCD_BITER(tcd, flag)
struct _edma_core_mp
#include <fsl_edma_core.h>

edma core channel struture definition

Public Members

__IO uint32_t MP_CSR

Channel Control and Status, array offset: 0x10000, array step: 0x10000

__IO uint32_t MP_ES

Channel Error Status, array offset: 0x10004, array step: 0x10000

struct _edma_core_channel
#include <fsl_edma_core.h>

edma core channel struture definition

Public Members

__IO uint32_t CH_CSR

Channel Control and Status, array offset: 0x10000, array step: 0x10000

__IO uint32_t CH_ES

Channel Error Status, array offset: 0x10004, array step: 0x10000

__IO uint32_t CH_INT

Channel Interrupt Status, array offset: 0x10008, array step: 0x10000

__IO uint32_t CH_SBR

Channel System Bus, array offset: 0x1000C, array step: 0x10000

__IO uint32_t CH_PRI

Channel Priority, array offset: 0x10010, array step: 0x10000

struct _edma5_core_tcd
#include <fsl_edma_core.h>

edma5 core TCD struture definition

Public Members

__IO uint32_t SADDR

SADDR register, used to save source address

__IO uint32_t SADDR_HIGH

SADDR HIGH register, used to save source address

__IO uint16_t SOFF

SOFF register, save offset bytes every transfer

__IO uint16_t ATTR

ATTR register, source/destination transfer size and modulo

__IO uint32_t NBYTES

Nbytes register, minor loop length in bytes

__IO uint32_t SLAST

SLAST register

__IO uint32_t SLAST_SDA_HIGH

SLAST SDA HIGH register

__IO uint32_t DADDR

DADDR register, used for destination address

__IO uint32_t DADDR_HIGH

DADDR HIGH register, used for destination address

__IO uint32_t DLAST_SGA

DLASTSGA register, next tcd address used in scatter-gather mode

__IO uint32_t DLAST_SGA_HIGH

DLASTSGA HIGH register, next tcd address used in scatter-gather mode

__IO uint16_t DOFF

DOFF register, used for destination offset

__IO uint16_t CITER

CITER register, current minor loop numbers, for unfinished minor loop.

__IO uint16_t CSR

CSR register, for TCD control status

__IO uint16_t BITER

BITER register, begin minor loop count.

uint8_t RESERVED[16]

Aligned 64 bytes

struct _edma4_core_tcd
#include <fsl_edma_core.h>

edma4 core TCD struture definition

Public Members

__IO uint32_t SADDR

SADDR register, used to save source address

__IO uint16_t SOFF

SOFF register, save offset bytes every transfer

__IO uint16_t ATTR

ATTR register, source/destination transfer size and modulo

__IO uint32_t NBYTES

Nbytes register, minor loop length in bytes

__IO uint32_t SLAST

SLAST register

__IO uint32_t DADDR

DADDR register, used for destination address

__IO uint16_t DOFF

DOFF register, used for destination offset

__IO uint16_t CITER

CITER register, current minor loop numbers, for unfinished minor loop.

__IO uint32_t DLAST_SGA

DLASTSGA register, next tcd address used in scatter-gather mode

__IO uint16_t CSR

CSR register, for TCD control status

__IO uint16_t BITER

BITER register, begin minor loop count.

struct _edma_core_tcd
#include <fsl_edma_core.h>

edma core TCD struture definition

union MP_REGS

Public Members

struct _edma_core_mp EDMA5_REG
struct EDMA5_REG

Public Members

__IO uint32_t MP_INT_LOW

Channel Control and Status, array offset: 0x10008, array step: 0x10000

__I uint32_t MP_INT_HIGH

Channel Control and Status, array offset: 0x1000C, array step: 0x10000

__I uint32_t MP_HRS_LOW

Channel Control and Status, array offset: 0x10010, array step: 0x10000

__I uint32_t MP_HRS_HIGH

Channel Control and Status, array offset: 0x10014, array step: 0x10000

__IO uint32_t MP_STOPCH

Channel Control and Status, array offset: 0x10020, array step: 0x10000

__I uint32_t MP_SSR_LOW

Channel Control and Status, array offset: 0x10030, array step: 0x10000

__I uint32_t MP_SSR_HIGH

Channel Control and Status, array offset: 0x10034, array step: 0x10000

__IO uint32_t CH_GRPRI [64]

Channel Control and Status, array offset: 0x10100, array step: 0x10000

__IO uint32_t CH_MUX [64]

Channel Control and Status, array offset: 0x10200, array step: 0x10000

__IO uint32_t CH_PROT [64]

Channel Control and Status, array offset: 0x10400, array step: 0x10000

union CH_REGS

Public Members

struct _edma_core_channel EDMA5_REG
struct _edma_core_channel EDMA4_REG
struct EDMA5_REG

Public Members

__IO uint32_t CH_MATTR

Memory Attributes Register, array offset: 0x10018, array step: 0x8000

struct EDMA4_REG

Public Members

__IO uint32_t CH_MUX

Channel Multiplexor Configuration, array offset: 0x10014, array step: 0x10000

__IO uint16_t CH_MATTR

Memory Attributes Register, array offset: 0x10018, array step: 0x8000

union TCD_REGS

Public Members

edma4_core_tcd_t edma4_tcd

eDMA soc Driver

FSL_EDMA_SOC_DRIVER_VERSION

Driver version 2.0.0.

FSL_EDMA_SOC_IP_DMA3

DMA IP version.

FSL_EDMA_SOC_IP_DMA4
EDMA_BASE_PTRS

DMA base table.

EDMA_CHN_IRQS
EDMA_CHANNEL_OFFSET

EDMA base address convert macro.

EDMA_CHANNEL_ARRAY_STEP(base)

Efuse_driver

status_t EFUSE_Init(void)

Initialize EFUSE controller.

This function enables EFUSE Controller clock.

Return values:
  • kStatus_Success – 0 Operation succeeded without error.

  • kStatus_Fail – 1 The operation failed with a generic error.

  • kStatus_ReadOnly – 2 Requested value cannot be changed because it is read-only.

  • kStatus_OutOfRange – 3 Requested value is out of range.

  • kStatus_InvalidArgument – 4 The requested command’s argument is undefined.

  • kStatus_Timeout – An invalid 5 A timeout occurred

  • kStatus_NoTransferInProgress – 6 No send in progress.

status_t EFUSE_Deinit(void)

De-Initialize EFUSE controller.

This functin disables EFUSE Controller Clock.

Return values:
  • kStatus_Success – 0 Operation succeeded without error.

  • kStatus_Fail – 1 The operation failed with a generic error.

  • kStatus_ReadOnly – 2 Requested value cannot be changed because it is read-only.

  • kStatus_OutOfRange – 3 Requested value is out of range.

  • kStatus_InvalidArgument – 4 The requested command’s argument is undefined.

  • kStatus_Timeout – An invalid 5 A timeout occurred

  • kStatus_NoTransferInProgress – 6 No send in progress.

status_t EFUSE_Read(uint32_t addr, uint32_t *data)

Read Fuse value from eFuse word.

This function read fuse data from eFuse word to specified data buffer.

Parameters:
  • addr – Fuse address

  • data – Buffer to hold the data read from eFuse word

Return values:
  • kStatus_Success – 0 Operation succeeded without error.

  • kStatus_Fail – 1 The operation failed with a generic error.

  • kStatus_ReadOnly – 2 Requested value cannot be changed because it is read-only.

  • kStatus_OutOfRange – 3 Requested value is out of range.

  • kStatus_InvalidArgument – 4 The requested command’s argument is undefined.

  • kStatus_Timeout – An invalid 5 A timeout occurred

  • kStatus_NoTransferInProgress – 6 No send in progress.

status_t EFUSE_Program(uint32_t addr, uint32_t data)

Program value to eFuse block.

This function program data to specified eFuse address.

Parameters:
  • addr – Fuse address

  • data – data to be programmed into eFuse Fuse block

Return values:
  • kStatus_Success – 0 Operation succeeded without error.

  • kStatus_Fail – 1 The operation failed with a generic error.

  • kStatus_ReadOnly – 2 Requested value cannot be changed because it is read-only.

  • kStatus_OutOfRange – 3 Requested value is out of range.

  • kStatus_InvalidArgument – 4 The requested command’s argument is undefined.

  • kStatus_Timeout – An invalid 5 A timeout occurred

  • kStatus_NoTransferInProgress – 6 No send in progress.

EIM: error injection module

FSL_ERM_DRIVER_VERSION

Driver version.

void EIM_Init(EIM_Type *base)

EIM module initialization function.

Parameters:
  • base – EIM base address.

void EIM_Deinit(EIM_Type *base)

De-initializes the EIM.

ERM: error recording module

void ERM_Init(ERM_Type *base)

ERM module initialization function.

Parameters:
  • base – ERM base address.

void ERM_Deinit(ERM_Type *base)

De-initializes the ERM.

static inline void ERM_EnableInterrupts(ERM_Type *base, uint32_t channel, uint32_t mask)

ERM enable interrupts.

Parameters:
  • base – ERM peripheral base address.

  • channel – memory channel.

  • mask – single correction interrupt or non-correction interrupt enable to disable for one specific memory region. Refer to “_erm_interrupt_enable” enumeration.

static inline void ERM_DisableInterrupts(ERM_Type *base, uint32_t channel, uint32_t mask)

ERM module disable interrupts.

Parameters:
  • base – ERM base address.

  • channel – memory channel.

  • mask – single correction interrupt or non-correction interrupt enable to disable for one specific memory region. Refer to “_erm_interrupt_enable” enumeration.

static inline uint32_t ERM_GetInterruptStatus(ERM_Type *base, uint32_t channel)

Gets ERM interrupt flags.

Parameters:
  • base – ERM peripheral base address.

Returns:

ERM event flags.

static inline void ERM_ClearInterruptStatus(ERM_Type *base, uint32_t channel, uint32_t mask)

ERM module clear interrupt status flag.

Parameters:
  • base – ERM base address.

  • mask – event flag to clear. Refer to “_erm_interrupt_flag” enumeration.

uint32_t ERM_GetMemoryErrorAddr(ERM_Type *base, uint32_t channel)

ERM get memory error absolute address, which capturing the address of the last ECC event in Memory n.

Parameters:
  • base – ERM base address.

  • channel – memory channel.

Return values:

memory – error absolute address.

uint32_t ERM_GetSyndrome(ERM_Type *base, uint32_t channel)

ERM get syndrome, which identifies the pertinent bit position on a correctable, single-bit data inversion or a non-correctable, single-bit address inversion. The syndrome value does not provide any additional diagnostic information on non-correctable, multi-bit inversions.

Parameters:
  • base – ERM base address.

  • channel – memory channel.

Return values:

syndrome – value.

uint32_t ERM_GetErrorCount(ERM_Type *base, uint32_t channel)

ERM get error count, which records the count value of the number of correctable ECC error events for Memory n. Non-correctable errors are considered a serious fault, so the ERM does not provide any mechanism to count non-correctable errors. Only correctable errors are counted.

Parameters:
  • base – ERM base address.

  • channel – memory channel.

Return values:

error – count.

void ERM_ResetErrorCount(ERM_Type *base, uint32_t channel)

ERM reset error count.

Parameters:
  • base – ERM base address.

  • channel – memory channel.

FSL_ERM_DRIVER_VERSION

Driver version.

ERM interrupt configuration structure, default settings all disabled, _erm_interrupt_enable.

This structure contains the settings for all of the ERM interrupt configurations.

Values:

enumerator kERM_SingleCorrectionIntEnable

Single Correction Interrupt Notification enable.

enumerator kERM_NonCorrectableIntEnable

Non-Correction Interrupt Notification enable.

enumerator kERM_AllInterruptsEnable

All Interrupts enable

ERM interrupt status, _erm_interrupt_flag.

This provides constants for the ERM event status for use in the ERM functions.

Values:

enumerator kERM_SingleBitCorrectionIntFlag

Single-Bit Correction Event.

enumerator kERM_NonCorrectableErrorIntFlag

Non-Correctable Error Event.

enumerator kERM_AllIntsFlag

All Events.

EVTG: Event Generator Driver

FSL_EVTG_DRIVER_VERSION

EVTG driver version.

Version 2.0.2.

enum _evtg_index

EVTG instance index.

Values:

enumerator kEVTG_Index0

EVTG instance index 0.

enumerator kEVTG_Index1

EVTG instance index 1.

enumerator kEVTG_Index2

EVTG instance index 2.

enumerator kEVTG_Index3

EVTG instance index 3.

enum _evtg_input_index

EVTG input index.

Values:

enumerator kEVTG_InputA

EVTG input A.

enumerator kEVTG_InputB

EVTG input B.

enumerator kEVTG_InputC

EVTG input C.

enumerator kEVTG_InputD

EVTG input D.

enum _evtg_aoi_index

EVTG AOI index.

Values:

enumerator kEVTG_AOI0

EVTG AOI index 0.

enumerator kEVTG_AOI1

EVTG AOI index 1.

enum _evtg_aoi_product_term

EVTG AOI product term index.

Values:

enumerator kEVTG_ProductTerm0

EVTG AOI product term index 0.

enumerator kEVTG_ProductTerm1

EVTG AOI product term index 1.

enumerator kEVTG_ProductTerm2

EVTG AOI product term index 2.

enumerator kEVTG_ProductTerm3

EVTG AOI product term index 3.

enum _evtg_aoi_input_config

EVTG input configuration.

Values:

enumerator kEVTG_InputLogicZero

Force input in product term to a logical zero.

enumerator kEVTG_InputDirectPass

Pass input in product term.

enumerator kEVTG_InputComplement

Complement input in product term.

enumerator kEVTG_InputLogicOne

Force input in product term to a logical one.

enum _evtg_aoi_outfilter_count

EVTG AOI Output Filter Sample Count.

Values:

enumerator kEVTG_AOIOutFilterSampleCount3

EVTG AOI output filter sample count is 3.

enumerator kEVTG_AOIOutFilterSampleCount4

EVTG AOI output filter sample count is 4.

enumerator kEVTG_AOIOutFilterSampleCount5

EVTG AOI output filter sample count is 5.

enumerator kEVTG_AOIOutFilterSampleCount6

EVTG AOI output filter sample count is 6.

enumerator kEVTG_AOIOutFilterSampleCount7

EVTG AOI output filter sample count is 7.

enumerator kEVTG_AOIOutFilterSampleCount8

EVTG AOI output filter sample count is 8.

enumerator kEVTG_AOIOutFilterSampleCount9

EVTG AOI output filter sample count is 9.

enumerator kEVTG_AOIOutFilterSampleCount10

EVTG AOI output filter sample count is 10.

enum _evtg_outfdbk_override_input

EVTG output feedback override control mode. When FF is configured as JK-FF mode, need EVTG_OUTA feedback to EVTG input and replace one of the four inputs.

Values:

enumerator kEVTG_OutputOverrideInputA

Replace input A.

enumerator kEVTG_OutputOverrideInputB

Replace input B.

enumerator kEVTG_OutputOverrideInputC

Replace input C.

enumerator kEVTG_OutputOverrideInputD

Replace input D.

enum _evtg_flipflop_mode

EVTG flip flop mode configuration.

Values:

enumerator kEVTG_FFModeBypass

Bypass mode (default).In this mode, user can choose to enable or disable input sync logic and filter function.

enumerator kEVTG_FFModeRSTrigger

RS trigger mode. In this mode, user can choose to enable or disable input sync logic and filter function.

enumerator kEVTG_FFModeTFF

T-FF mode. In this mode, input sync or filter has to be enabled to remove the possible glitch.

enumerator kEVTG_FFModeDFF

D-FF mode. In this mode, input sync or filter has to be enabled to remove the possible glitch.

enumerator kEVTG_FFModeJKFF

JK-FF mode. In this mode, input sync or filter has to be enabled to remove the possible glitch.

enumerator kEVTG_FFModeLatch

Latch mode. In this mode, input sync or filter has to be enabled to remove the possible glitch.

enum _evtg_flipflop_init_output

EVTG flip-flop initial value.

Values:

enumerator kEVTG_FFInitOut0

Configure the positive output of flip-flop as 0.

enumerator kEVTG_FFInitOut1

Configure the positive output of flip-flop as 1.

typedef enum _evtg_index evtg_index_t

EVTG instance index.

typedef enum _evtg_input_index evtg_input_index_t

EVTG input index.

typedef enum _evtg_aoi_index evtg_aoi_index_t

EVTG AOI index.

typedef enum _evtg_aoi_product_term evtg_aoi_product_term_t

EVTG AOI product term index.

typedef enum _evtg_aoi_input_config evtg_aoi_input_config_t

EVTG input configuration.

typedef enum _evtg_aoi_outfilter_count evtg_aoi_outfilter_count_t

EVTG AOI Output Filter Sample Count.

typedef enum _evtg_outfdbk_override_input evtg_outfdbk_override_input_t

EVTG output feedback override control mode. When FF is configured as JK-FF mode, need EVTG_OUTA feedback to EVTG input and replace one of the four inputs.

typedef enum _evtg_flipflop_mode evtg_flipflop_mode_t

EVTG flip flop mode configuration.

typedef enum _evtg_flipflop_init_output evtg_flipflop_init_output_t

EVTG flip-flop initial value.

typedef struct _evtg_aoi_outfilter_config evtg_aoi_outfilter_config_t

The structure for configuring an AOI output filter sample.

AOI output filter sample count represent the number of consecutive samples that must agree prior to the AOI output filter accepting an transition. AOI output filter sample period represent the sampling period (in IP bus clock cycles) of the AOI output signals. Each AOI output is sampled multiple times at the rate specified by this period.

For the modes with Filter function enabled, filter delay is “(FILT_CNT + 3) x FILT_PER + 2”.

typedef struct _evtg_aoi_product_term_config evtg_aoi_product_term_config_t

The structure for configuring an AOI product term.

typedef struct _evtg_aoi_config evtg_aoi_config_t

EVTG AOI configuration structure.

typedef struct _evtg_config evtg_config_t

EVTG configuration covering all configurable fields.

struct _evtg_aoi_outfilter_config
#include <fsl_evtg.h>

The structure for configuring an AOI output filter sample.

AOI output filter sample count represent the number of consecutive samples that must agree prior to the AOI output filter accepting an transition. AOI output filter sample period represent the sampling period (in IP bus clock cycles) of the AOI output signals. Each AOI output is sampled multiple times at the rate specified by this period.

For the modes with Filter function enabled, filter delay is “(FILT_CNT + 3) x FILT_PER + 2”.

Public Members

evtg_aoi_outfilter_count_t sampleCount

EVTG AOI output filter sample count. refer to evtg_aoi_outfilter_count_t.

uint8_t samplePeriod

EVTG AOI output filter sample period, within 0~255. If sample period value is 0x00 (default), then the input filter is bypassed.

struct _evtg_aoi_product_term_config
#include <fsl_evtg.h>

The structure for configuring an AOI product term.

Public Members

evtg_aoi_input_config_t aInput

Input A configuration.

evtg_aoi_input_config_t bInput

Input B configuration.

evtg_aoi_input_config_t cInput

Input C configuration.

evtg_aoi_input_config_t dInput

Input D configuration.

struct _evtg_aoi_config
#include <fsl_evtg.h>

EVTG AOI configuration structure.

Public Members

evtg_aoi_outfilter_config_t aoiOutFilterConfig

EVTG AOI output filter sample configuration structure.

evtg_aoi_product_term_config_t productTerm0

Configure AOI product term0.

evtg_aoi_product_term_config_t productTerm1

Configure AOI product term1.

evtg_aoi_product_term_config_t productTerm2

Configure AOI product term2.

evtg_aoi_product_term_config_t productTerm3

Configure AOI product term3.

struct _evtg_config
#include <fsl_evtg.h>

EVTG configuration covering all configurable fields.

Public Members

bool enableInputASync

Enable/Disable EVTG A input synchronous with bus clk.

bool enableInputBSync

Enable/Disable EVTG B input synchronous with bus clk.

bool enableInputCSync

Enable/Disable EVTG C input synchronous with bus clk.

bool enableInputDSync

Enable/Disable EVTG D input synchronous with bus clk.

evtg_outfdbk_override_input_t outfdbkOverideinput

EVTG output feedback to EVTG input and replace one of the four inputs.

evtg_flipflop_mode_t flipflopMode

Flip-Flop can be configured as one of Bypass mode, RS trigger mode, T-FF mode, D-FF mode, JK-FF mode, Latch mode.

bool enableFlipflopInitOutput

Flip-flop initial output value enable/disable.

evtg_flipflop_init_output_t flipflopInitOutputValue

Flip-flop initial output value configuration.

bool enableForceBypassFlipFlopAOI0

Enable/Disable force bypass Flip-Flop and route the AOI_0(Filter_0) value directly to EVTG_OUTA

bool enableForceBypassFlipFlopAOI1

Enable/Disable force bypass Flip-Flop and route the AOI_1(Filter_1) value directly to EVTG_OUTB

evtg_aoi_config_t aoi0Config

Configure EVTG AOI0.

evtg_aoi_config_t aoi1Config

Configure EVTG AOI1.

EVTG Driver

void EVTG_Init(EVTG_Type *base, evtg_index_t evtgIndex, evtg_config_t *psConfig)

Initialize EVTG with a user configuration structure.

Parameters:
  • base – EVTG base address.

  • evtgIndex – EVTG instance index.

  • psConfig – EVTG initial configuration structure pointer.

void EVTG_GetDefaultConfig(evtg_config_t *psConfig, evtg_flipflop_mode_t flipflopMode)

Loads default values to the EVTG configuration structure.

The purpose of this API is to initialize the configuration structure to default value for EVTG_Init() to use. The Flip-Flop can be configured as Bypass mode, RS trigger mode, T-FF mode, D-FF mode, JK-FF mode, Latch mode. Please check RM INTC chapter for more details.

Parameters:
  • psConfig – EVTG initial configuration structure pointer.

  • flipflopMode – EVTG flip flop mode. see @ ref _evtg_flipflop_mode

static inline void EVTG_ForceFlipflopInitOutput(EVTG_Type *base, evtg_index_t evtgIndex, evtg_flipflop_init_output_t flipflopInitOutputValue)

Force Flip-flop initial output value to be presented on flip-flop positive output.

Parameters:
  • base – EVTG base address.

  • evtgIndex – EVTG instance index.

  • flipflopInitOutputValue – EVTG flip-flop initial output control. see evtg_flipflop_init_output_t

static inline void EVTG_SetProductTermInput(EVTG_Type *base, evtg_index_t evtgIndex, evtg_aoi_index_t aoiIndex, evtg_aoi_product_term_t productTerm, evtg_input_index_t inputIndex, evtg_aoi_input_config_t input)

Configure each input value of AOI product term. Each selected input term in each product term can be configured to produce a logical 0 or 1 or pass the true or complement of the selected event input. Adapt to some simple aoi expressions.

Parameters:
  • base – EVTG base address.

  • evtgIndex – EVTG instance index.

  • aoiIndex – EVTG AOI index. see enum ref evtg_aoi_index_t

  • productTerm – EVTG product term index.

  • inputIndex – EVTG input index.

  • input – EVTG input configuration with enum evtg_aoi_input_config_t.

void EVTG_ConfigAOIProductTerm(EVTG_Type *base, evtg_index_t evtgIndex, evtg_aoi_index_t aoiIndex, evtg_aoi_product_term_t productTerm, evtg_aoi_product_term_config_t *psProductTermConfig)

Configure AOI product term by initializing the product term configuration structure.

Parameters:
  • base – EVTG base address.

  • evtgIndex – EVTG instance index.

  • aoiIndex – EVTG AOI index. see enum evtg_aoi_index_t

  • productTerm – EVTG AOI product term index.

  • psProductTermConfig – Pointer to EVTG product term configuration structure. see ref _evtg_aoi_product_term_config

EWM: External Watchdog Monitor Driver

void EWM_Init(EWM_Type *base, const ewm_config_t *config)

Initializes the EWM peripheral.

This function is used to initialize the EWM. After calling, the EWM runs immediately according to the configuration. Note that, except for the interrupt enable control bit, other control bits and registers are write once after a CPU reset. Modifying them more than once generates a bus transfer error.

This is an example.

ewm_config_t config;
EWM_GetDefaultConfig(&config);
config.compareHighValue = 0xAAU;
EWM_Init(ewm_base,&config);

Parameters:
  • base – EWM peripheral base address

  • config – The configuration of the EWM

void EWM_Deinit(EWM_Type *base)

Deinitializes the EWM peripheral.

This function is used to shut down the EWM.

Parameters:
  • base – EWM peripheral base address

void EWM_GetDefaultConfig(ewm_config_t *config)

Initializes the EWM configuration structure.

This function initializes the EWM configuration structure to default values. The default values are as follows.

ewmConfig->enableEwm = true;
ewmConfig->enableEwmInput = false;
ewmConfig->setInputAssertLogic = false;
ewmConfig->enableInterrupt = false;
ewmConfig->ewm_lpo_clock_source_t = kEWM_LpoClockSource0;
ewmConfig->prescaler = 0;
ewmConfig->compareLowValue = 0;
ewmConfig->compareHighValue = 0xFEU;

See also

ewm_config_t

Parameters:
  • config – Pointer to the EWM configuration structure.

static inline void EWM_EnableInterrupts(EWM_Type *base, uint32_t mask)

Enables the EWM interrupt.

This function enables the EWM interrupt.

Parameters:
  • base – EWM peripheral base address

  • mask – The interrupts to enable The parameter can be combination of the following source if defined

    • kEWM_InterruptEnable

static inline void EWM_DisableInterrupts(EWM_Type *base, uint32_t mask)

Disables the EWM interrupt.

This function enables the EWM interrupt.

Parameters:
  • base – EWM peripheral base address

  • mask – The interrupts to disable The parameter can be combination of the following source if defined

    • kEWM_InterruptEnable

static inline uint32_t EWM_GetStatusFlags(EWM_Type *base)

Gets all status flags.

This function gets all status flags.

This is an example for getting the running flag.

uint32_t status;
status = EWM_GetStatusFlags(ewm_base) & kEWM_RunningFlag;

See also

_ewm_status_flags_t

  • True: a related status flag has been set.

  • False: a related status flag is not set.

Parameters:
  • base – EWM peripheral base address

Returns:

State of the status flag: asserted (true) or not-asserted (false).

void EWM_Refresh(EWM_Type *base)

Services the EWM.

This function resets the EWM counter to zero.

Parameters:
  • base – EWM peripheral base address

FSL_EWM_DRIVER_VERSION

EWM driver version 2.0.4.

enum _ewm_interrupt_enable_t

EWM interrupt configuration structure with default settings all disabled.

This structure contains the settings for all of EWM interrupt configurations.

Values:

enumerator kEWM_InterruptEnable

Enable the EWM to generate an interrupt

enum _ewm_status_flags_t

EWM status flags.

This structure contains the constants for the EWM status flags for use in the EWM functions.

Values:

enumerator kEWM_RunningFlag

Running flag, set when EWM is enabled

typedef struct _ewm_config ewm_config_t

Describes EWM clock source.

Data structure for EWM configuration.

This structure is used to configure the EWM.

struct _ewm_config
#include <fsl_ewm.h>

Describes EWM clock source.

Data structure for EWM configuration.

This structure is used to configure the EWM.

Public Members

bool enableEwm

Enable EWM module

bool enableEwmInput

Enable EWM_in input

bool setInputAssertLogic

EWM_in signal assertion state

bool enableInterrupt

Enable EWM interrupt

uint8_t compareLowValue

Compare low-register value

uint8_t compareHighValue

Compare high-register value

FGPIO Driver

Flash_driver

enum _flash_driver_version_constants

Flash driver version for ROM.

Values:

enumerator kFLASH_DriverVersionName

Flash driver version name.

enumerator kFLASH_DriverVersionMajor

Major flash driver version.

enumerator kFLASH_DriverVersionMinor

Minor flash driver version.

enumerator kFLASH_DriverVersionBugfix

Bugfix for flash driver version.

FSL_ROMAPI_FLASH_DRIVER_VERSION

ROMAPI_FLASH driver version 2.0.0.

Flash driver status codes.

Values:

enumerator kStatus_FLASH_Success

API is executed successfully

enumerator kStatus_FLASH_InvalidArgument

Invalid argument

enumerator kStatus_FLASH_SizeError

Error size

enumerator kStatus_FLASH_AlignmentError

Parameter is not aligned with the specified baseline

enumerator kStatus_FLASH_AddressError

Address is out of range

enumerator kStatus_FLASH_AccessError

Invalid instruction codes and out-of bound addresses

enumerator kStatus_FLASH_ProtectionViolation

The program/erase operation is requested to execute on protected areas

enumerator kStatus_FLASH_CommandFailure

Run-time error during command execution.

enumerator kStatus_FLASH_UnknownProperty

Unknown property.

enumerator kStatus_FLASH_EraseKeyError

API erase key is invalid.

enumerator kStatus_FLASH_RegionExecuteOnly

The current region is execute-only.

enumerator kStatus_FLASH_ExecuteInRamFunctionNotReady

Execute-in-RAM function is not available.

enumerator kStatus_FLASH_CommandNotSupported

Flash API is not supported.

enumerator kStatus_FLASH_ReadOnlyProperty

The flash property is read-only.

enumerator kStatus_FLASH_InvalidPropertyValue

The flash property value is out of range.

enumerator kStatus_FLASH_InvalidSpeculationOption

The option of flash prefetch speculation is invalid.

enumerator kStatus_FLASH_EccError

A correctable or uncorrectable error during command execution.

enumerator kStatus_FLASH_CompareError

Destination and source memory contents do not match.

enumerator kStatus_FLASH_RegulationLoss

A loss of regulation during read.

enumerator kStatus_FLASH_InvalidWaitStateCycles

The wait state cycle set to r/w mode is invalid.

enumerator kStatus_FLASH_OutOfDateCfpaPage

CFPA page version is out of date.

enumerator kStatus_FLASH_BlankIfrPageData

Blank page cannnot be read.

enumerator kStatus_FLASH_EncryptedRegionsEraseNotDoneAtOnce

Encrypted flash subregions are not erased at once.

enumerator kStatus_FLASH_ProgramVerificationNotAllowed

Program verification is not allowed when the encryption is enabled.

enumerator kStatus_FLASH_HashCheckError

Hash check of page data is failed.

enumerator kStatus_FLASH_SealedFfrRegion

The FFR region is sealed.

enumerator kStatus_FLASH_FfrRegionWriteBroken

The FFR Spec region is not allowed to be written discontinuously.

enumerator kStatus_FLASH_NmpaAccessNotAllowed

The NMPA region is not allowed to be read/written/erased.

enumerator kStatus_FLASH_CmpaCfgDirectEraseNotAllowed

The CMPA Cfg region is not allowed to be erased directly.

enumerator kStatus_FLASH_FfrBankIsLocked

The FFR bank region is locked.

enumerator kStatus_FLASH_CfpaScratchPageInvalid

CFPA Scratch Page is invalid

enumerator kStatus_FLASH_CfpaVersionRollbackDisallowed

CFPA version rollback is not allowed

enumerator kStatus_FLASH_ReadHidingAreaDisallowed

Flash hiding read is not allowed

enumerator kStatus_FLASH_ModifyProtectedAreaDisallowed

Flash firewall page locked erase and program are not allowed

enumerator kStatus_FLASH_CommandOperationInProgress

The flash state is busy, indicate that a flash command in progress.

status_t FLASH_IsFlashAreaReadable(flash_config_t *config, uint32_t startAddress, uint32_t lengthInBytes)

Validates the given address range is loaded in the flash hiding region.

Parameters:
  • config – A pointer to the storage for the driver runtime state.

  • startAddress – The start address of the desired flash memory to be verified.

  • lengthInBytes – The length, given in bytes (not words or long-words), to be verified.

Return values:
  • kStatus_FLASH_Success – API was executed successfully.

  • kStatus_FLASH_InvalidArgument – An invalid argument is provided.

  • kStatus_FLASH_ReadHidingAreaDisallowed – Flash hiding read is not allowed.

kStatusGroupGeneric

Flash driver status group.

kStatusGroupFlashDriver
MAKE_STATUS(group, code)

Constructs a status code value from a group and a code number.

enum _flash_driver_api_keys

Enumeration for Flash driver API keys.

Note

The resulting value is built with a byte order such that the string being readable in expected order when viewed in a hex editor, if the value is treated as a 32-bit little endian value.

Values:

enumerator kFLASH_ApiEraseKey

Key value used to validate all flash erase APIs.

FOUR_CHAR_CODE(a, b, c, d)

Constructs the four character code for the Flash driver API key.

status_t FLASH_Init(flash_config_t *config)

Initializes the global flash properties structure members.

This function checks and initializes the Flash module for the other Flash APIs.

Parameters:
  • config – Pointer to the storage for the driver runtime state.

Return values:
  • kStatus_FLASH_Success – API was executed successfully.

  • kStatus_FLASH_InvalidArgument – An invalid argument is provided.

  • kStatus_FLASH_CommandFailure – Run-time error during the command execution.

  • kStatus_FLASH_CommandNotSupported – Flash API is not supported.

  • kStatus_FLASH_EccError – A correctable or uncorrectable error during command execution.

  • kStatus_FLASH_RegulationLoss – A loss of regulation during read.

status_t FLASH_Deinit(flash_config_t *config)

De-Initializes the global flash properties structure members.

This API De-initializes the FLASH default parameters and related FLASH clock for the FLASH and FMC. The flash_deinit API should be called after all the other FLASH APIs.

Parameters:
  • config – Pointer to the storage for the driver runtime state.

Return values:
  • kStatus_FLASH_Success – API was executed successfully.

  • kStatus_FLASH_InvalidArgument – An invalid argument is provided.

status_t FLASH_Erase(flash_config_t *config, uint32_t start, uint32_t lengthInBytes, uint32_t key)

Erases the flash sectors encompassed by parameters passed into function.

This function erases the appropriate number of flash sectors based on the desired start address and length.

Parameters:
  • config – The pointer to the storage for the driver runtime state.

  • start – The start address of the desired flash memory to be erased. NOTE: The start address need to be 4 Bytes-aligned.

  • lengthInBytes – The length, given in bytes need be 4 Bytes-aligned.

  • key – The value used to validate all flash erase APIs.

Return values:
  • kStatus_FLASH_Success – API was executed successfully.

  • kStatus_FLASH_InvalidArgument – An invalid argument is provided.

  • kStatus_FLASH_AlignmentError – The parameter is not aligned with the specified baseline.

  • kStatus_FLASH_AddressError – The address is out of range.

  • kStatus_FLASH_EraseKeyError – The API erase key is invalid.

  • kStatus_FLASH_ModifyProtectedAreaDisallowed – Flash firewall page locked erase and program are not allowed

  • kStatus_FLASH_CommandFailure – Run-time error during the command execution.

  • kStatus_FLASH_CommandNotSupported – Flash API is not supported.

  • kStatus_FLASH_EccError – A correctable or uncorrectable error during command execution.

  • kStatus_FLASH_RegulationLoss – A loss of regulation during read.

status_t FLASH_Program(flash_config_t *config, uint32_t start, uint8_t *src, uint32_t lengthInBytes)

Programs flash with data at locations passed in through parameters.

This function programs the flash memory with the desired data for a given flash area as determined by the start address and the length.

Parameters:
  • config – A pointer to the storage for the driver runtime state.

  • start – The start address of the desired flash memory to be programmed. Must be word-aligned.

  • src – A pointer to the source buffer of data that is to be programmed into the flash.

  • lengthInBytes – The length, given in bytes (not words or long-words), to be programmed. Must be word-aligned.

Return values:
  • kStatus_FLASH_Success – API was executed successfully.

  • kStatus_FLASH_InvalidArgument – An invalid argument is provided.

  • kStatus_FLASH_AlignmentError – Parameter is not aligned with the specified baseline.

  • kStatus_FLASH_AddressError – Address is out of range.

  • kStatus_FLASH_AccessError – Invalid instruction codes and out-of bounds addresses.

  • kStatus_FLASH_ModifyProtectedAreaDisallowed – Flash firewall page locked erase and program are not allowed

  • kStatus_FLASH_CommandFailure – Run-time error during the command execution.

  • kStatus_FLASH_CommandNotSupported – Flash API is not supported.

  • kStatus_FLASH_RegulationLoss – A loss of regulation during read.

  • kStatus_FLASH_EccError – A correctable or uncorrectable error during command execution.

status_t FLASH_Read(flash_config_t *config, uint32_t start, uint8_t *dest, uint32_t lengthInBytes)

Reads flash at locations passed in through parameters.

This function read the flash memory from a given flash area as determined by the start address and the length.

Parameters:
  • config – A pointer to the storage for the driver runtime state.

  • start – The start address of the desired flash memory to be read.

  • dest – A pointer to the dest buffer of data that is to be read from the flash.

  • lengthInBytes – The length, given in bytes (not words or long-words), to be read.

Return values:
  • kStatus_FLASH_Success – API was executed successfully.

  • kStatus_FLASH_InvalidArgument – An invalid argument is provided.

  • kStatus_FLASH_AlignmentError – Parameter is not aligned with the specified baseline.

  • kStatus_FLASH_AddressError – Address is out of range.

  • kStatus_FLASH_ReadHidingAreaDisallowed – Flash hiding read is not allowed

  • kStatus_FLASH_CommandFailure – Run-time error during the command execution.

  • kStatus_FLASH_CommandNotSupported – Flash API is not supported.

  • kStatus_FLASH_RegulationLoss – A loss of regulation during read.

  • kStatus_FLASH_EccError – A correctable or uncorrectable error during command execution.

status_t FLASH_VerifyErase(flash_config_t *config, uint32_t start, uint32_t lengthInBytes)

Verifies an erasure of the desired flash area at a specified margin level.

This function checks the appropriate number of flash sectors based on the desired start address and length to check whether the flash is erased to the specified read margin level.

Parameters:
  • config – A pointer to the storage for the driver runtime state.

  • start – The start address of the desired flash memory to be verified. The start address does not need to be sector-aligned but must be word-aligned.

  • lengthInBytes – The length, given in bytes (not words or long-words), to be verified. Must be word-aligned.

  • margin – Read margin choice.

Return values:
  • kStatus_FLASH_Success – API was executed successfully.

  • kStatus_FLASH_InvalidArgument – An invalid argument is provided.

  • kStatus_FLASH_AlignmentError – Parameter is not aligned with specified baseline.

  • kStatus_FLASH_AddressError – Address is out of range.

  • kStatus_FLASH_CommandFailure – Run-time error during the command execution.

  • kStatus_FLASH_CommandFailure – Run-time error during the command execution.

  • kStatus_FLASH_CommandNotSupported – Flash API is not supported.

  • kStatus_FLASH_RegulationLoss – A loss of regulation during read.

  • kStatus_FLASH_EccError – A correctable or uncorrectable error during command execution.

status_t FLASH_VerifyProgram(flash_config_t *config, uint32_t start, uint32_t lengthInBytes, const uint8_t *expectedData, uint32_t *failedAddress, uint32_t *failedData)

Verifies programming of the desired flash area at a specified margin level.

This function verifies the data programed in the flash memory using the Flash Program Check Command and compares it to the expected data for a given flash area as determined by the start address and length.

Parameters:
  • config – A pointer to the storage for the driver runtime state.

  • start – The start address of the desired flash memory to be verified. Must be word-aligned.

  • lengthInBytes – The length, given in bytes (not words or long-words), to be verified. Must be word-aligned.

  • expectedData – A pointer to the expected data that is to be verified against.

  • margin – Read margin choice.

  • failedAddress – A pointer to the returned failing address.

  • failedData – A pointer to the returned failing data. Some derivatives do not include failed data as part of the FCCOBx registers. In this case, zeros are returned upon failure.

Return values:
  • kStatus_FLASH_Success – API was executed successfully.

  • kStatus_FLASH_InvalidArgument – An invalid argument is provided.

  • kStatus_FLASH_AlignmentError – Parameter is not aligned with specified baseline.

  • kStatus_FLASH_AddressError – Address is out of range.

  • kStatus_FLASH_AccessError – Invalid instruction codes and out-of bounds addresses.

  • kStatus_FLASH_ReadHidingAreaDisallowed – Flash hiding read is not allowed

  • kStatus_FLASH_CommandFailure – Run-time error during the command execution.

  • kStatus_FLASH_CommandNotSupported – Flash API is not supported.

  • kStatus_FLASH_RegulationLoss – A loss of regulation during read.

  • kStatus_FLASH_EccError – A correctable or uncorrectable error during command execution.

status_t FLASH_GetProperty(flash_config_t *config, flash_property_tag_t whichProperty, uint32_t *value)

Returns the desired flash property.

Parameters:
  • config – A pointer to the storage for the driver runtime state.

  • whichProperty – The desired property from the list of properties in enum flash_property_tag_t

  • value – A pointer to the value returned for the desired flash property.

Return values:
  • kStatus_FLASH_Success – API was executed successfully.

  • kStatus_FLASH_InvalidArgument – An invalid argument is provided.

  • kStatus_FLASH_UnknownProperty – An unknown property tag.

status_t FLASH_GetCustKeyStore(flash_config_t *config, uint8_t *pData, uint32_t offset, uint32_t len)

Get the customer key store data from the customer key store region .

Parameters:
  • config – Pointer to flash_config_t data structure in memory to store driver runtime state.

  • pData – Pointer to the customer key store data buffer, which got from the customer key store region.

  • offset – Point to the offset value based on the customer key store address(0x3e400) of the device.

  • len – Point to the length of the expected get customer key store data, and the offset + len <= 512B.

Return values:
  • kStatus_FLASH_Success – API was executed successfully.

  • kStatus_FLASH_InvalidArgument – An invalid argument is provided.

MAKE_VERSION(major, minor, bugfix)

Constructs the version number for drivers.

FSL_FEATURE_SYSCON_HAS_FLASH_HIDING
enum _flash_property_tag

Enumeration for various flash properties.

Values:

enumerator kFLASH_PropertyPflashSectorSize

Pflash sector size property.

enumerator kFLASH_PropertyPflashTotalSize

Pflash total size property.

enumerator kFLASH_PropertyPflashBlockSize

Pflash block size property.

enumerator kFLASH_PropertyPflashBlockCount

Pflash block count property.

enumerator kFLASH_PropertyPflashBlockBaseAddr

Pflash block base address property.

enumerator kFLASH_PropertyPflashPageSize

Pflash page size property.

enumerator kFLASH_PropertyPflashSystemFreq

System Frequency System Frequency.

enumerator kFLASH_PropertyFfrSectorSize

FFR sector size property.

enumerator kFLASH_PropertyFfrTotalSize

FFR total size property.

enumerator kFLASH_PropertyFfrBlockBaseAddr

FFR block base address property.

enumerator kFLASH_PropertyFfrPageSize

FFR page size property.

enum _flash_max_erase_page_value

Enumeration for flash max pages to erase.

Values:

enumerator kFLASH_MaxPagesToErase

The max value in pages to erase.

enum _flash_alignment_property

Enumeration for flash alignment property.

Values:

enumerator kFLASH_AlignementUnitVerifyErase

The alignment unit in bytes used for verify erase operation.

enumerator kFLASH_AlignementUnitProgram

The alignment unit in bytes used for program operation.

enumerator kFLASH_AlignementUnitSingleWordRead

The alignment unit in bytes used for verify program operation. The alignment unit in bytes used for SingleWordRead command.

enum _flash_read_ecc_option

Enumeration for flash read ecc option.

Values:

enumerator kFLASH_ReadWithEccOn
enumerator kFLASH_ReadWithEccOff

ECC is on

enum _flash_read_margin_option

Enumeration for flash read margin option.

Values:

enumerator kFLASH_ReadMarginNormal

Normal read

enumerator kFLASH_ReadMarginVsProgram

Margin vs. program

enumerator kFLASH_ReadMarginVsErase

Margin vs. erase

enumerator kFLASH_ReadMarginIllegalBitCombination

Illegal bit combination

enum _flash_read_dmacc_option

Enumeration for flash read dmacc option.

Values:

enumerator kFLASH_ReadDmaccDisabled

Memory word

enumerator kFLASH_ReadDmaccEnabled

DMACC word

enum _flash_ramp_control_option

Enumeration for flash ramp control option.

Values:

enumerator kFLASH_RampControlDivisionFactorReserved

Reserved

enumerator kFLASH_RampControlDivisionFactor256

clk48mhz / 256 = 187.5KHz

enumerator kFLASH_RampControlDivisionFactor128

clk48mhz / 128 = 375KHz

enumerator kFLASH_RampControlDivisionFactor64

clk48mhz / 64 = 750KHz

typedef enum _flash_property_tag flash_property_tag_t

Enumeration for various flash properties.

typedef struct _flash_ecc_log flash_ecc_log_t

Flash ECC log info.

typedef struct _flash_mode_config flash_mode_config_t

Flash controller paramter config.

typedef struct _flash_ffr_config flash_ffr_config_t

Flash controller paramter config.

struct _flash_ecc_log
#include <fsl_flash.h>

Flash ECC log info.

struct _flash_mode_config
#include <fsl_flash.h>

Flash controller paramter config.

struct _flash_ffr_config
#include <fsl_flash.h>

Flash controller paramter config.

struct flash_config_t
#include <fsl_flash.h>

Flash driver state information.

An instance of this structure is allocated by the user of the flash driver and passed into each of the driver APIs.

Public Members

uint32_t PFlashBlockBase

A base address of the first PFlash block

uint32_t PFlashTotalSize

The size of the combined PFlash block.

uint32_t PFlashBlockCount

A number of PFlash blocks.

uint32_t PFlashPageSize

The size in bytes of a page of PFlash.

uint32_t PFlashSectorSize

The size in bytes of a sector of PFlash.

struct readSingleWord
struct setWriteMode
struct setReadMode

Flash_ffr_driver

status_t FFR_Init(flash_config_t *config)

Initializes the global FFR properties structure members.

Parameters:
  • config – A pointer to the storage for the driver runtime state.

Return values:

kStatus_FLASH_Success – API was executed successfully.

status_t FFR_Lock(flash_config_t *config)

Enable firewall for all flash banks.

CFPA, CMPA, and NMPA flash areas region will be locked, After this function executed; Unless the board is reset again.

Parameters:
  • config – A pointer to the storage for the driver runtime state.

Return values:

kStatus_FLASH_Success – An invalid argument is provided.

status_t FFR_InfieldPageWrite(flash_config_t *config, uint8_t *page_data, uint32_t valid_len)

APIs to access CFPA pages.

This routine will erase CFPA and program the CFPA page with passed data.

Parameters:
  • config – A pointer to the storage for the driver runtime state.

  • page_data – A pointer to the source buffer of data that is to be programmed into the CFPA.

  • valid_len – The length, given in bytes, to be programmed.

Return values:
  • kStatus_FLASH_Success – The desire page-data were programed successfully into CFPA.

  • kStatus_FLASH_SizeError – Error size

  • kStatus_FLASH_ReadHidingAreaDisallowed – Flash hiding read is not allowed

  • kStatus_FLASH_AlignmentError – Parameter is not aligned with the specified baseline

  • kStatus_FLASH_ModifyProtectedAreaDisallowed – Flash firewall page locked erase and program are not allowed

  • kStatus_FLASH_InvalidArgument – An invalid argument is provided.

  • #kStatus_FTFx_AddressError – Address is out of range.

  • kStatus_FLASH_FfrBankIsLocked – The CFPA was locked.

  • kStatus_FLASH_OutOfDateCfpaPage – It is not newest CFPA page.

  • kStatus_FLASH_CommandFailure – access error.

  • kStatus_FLASH_CommandNotSupported – Flash API is not supported

  • kStatus_FLASH_EccError – A correctable or uncorrectable error during command execution.

  • kStatus_FLASH_RegulationLoss – A loss of regulation during read.

status_t FFR_GetCustomerInfieldData(flash_config_t *config, uint8_t *pData, uint32_t offset, uint32_t len)

APIs to access CFPA pages.

Generic read function, used by customer to read data stored in ‘Customer In-field Page’.

Parameters:
  • config – A pointer to the storage for the driver runtime state.

  • pData – A pointer to the dest buffer of data that is to be read from ‘Customer In-field Page’.

  • offset – An offset from the ‘Customer In-field Page’ start address.

  • len – The length, given in bytes, to be read.

Return values:
  • kStatus_FLASH_Success – Get data from ‘Customer In-field Page’.

  • kStatus_FLASH_InvalidArgument – An invalid argument is provided.

  • #kStatus_FTFx_AddressError – Address is out of range.

  • kStatus_FLASH_AlignmentError – Parameter is not aligned with the specified baseline.

  • kStatus_FLASH_ReadHidingAreaDisallowed – Flash hiding read is not allowed

  • kStatus_FLASH_CommandFailure – access error.

  • kStatus_FLASH_CommandNotSupported – Flash API is not supported

  • kStatus_FLASH_EccError – A correctable or uncorrectable error during command execution.

  • kStatus_FLASH_RegulationLoss – A loss of regulation during read.

status_t FFR_CustFactoryPageWrite(flash_config_t *config, uint8_t *page_data, bool seal_part)

APIs to access CMPA pages.

This routine will erase “customer factory page” and program the page with passed data. If ‘seal_part’ parameter is TRUE then the routine will compute SHA256 hash of the page contents and then programs the pages. 1.During development customer code uses this API with ‘seal_part’ set to FALSE. 2.During manufacturing this parameter should be set to TRUE to seal the part from further modifications 3.This routine checks if the page is sealed or not. A page is said to be sealed if the SHA256 value in the page has non-zero value. On boot ROM locks the firewall for the region if hash is programmed anyways. So, write/erase commands will fail eventually.

Parameters:
  • config – A pointer to the storage for the driver runtime state.

  • page_data – A pointer to the source buffer of data that is to be programmed into the “customer factory page”.

  • seal_part – Set fasle for During development customer code.

Return values:
  • kStatus_FLASH_Success – The desire page-data were programed successfully into CMPA.

  • kStatus_FLASH_InvalidArgument – Parameter is not aligned with the specified baseline.

  • #kStatus_FTFx_AddressError – Address is out of range.

  • kStatus_FLASH_AlignmentError – Parameter is not aligned with the specified baseline.

  • kStatus_FLASH_EraseKeyError – API erase key is invalid.

  • kStatus_FLASH_ModifyProtectedAreaDisallowed – Flash firewall page locked erase and program are not allowed

  • kStatus_Fail – Generic status for Fail.

  • kStatus_FLASH_CommandFailure – access error.

  • kStatus_FLASH_CommandNotSupported – Flash API is not supported

  • kStatus_FLASH_EccError – A correctable or uncorrectable error during command execution.

  • kStatus_FLASH_RegulationLoss – A loss of regulation during read.

status_t FFR_GetCustomerData(flash_config_t *config, uint8_t *pData, uint32_t offset, uint32_t len)

APIs to access CMPA page.

Read data stored in ‘Customer Factory CFG Page’.

Parameters:
  • config – A pointer to the storage for the driver runtime state.

  • pData – A pointer to the dest buffer of data that is to be read from the Customer Factory CFG Page.

  • offset – Address offset relative to the CMPA area.

  • len – The length, given in bytes to be read.

Return values:
  • kStatus_FLASH_Success – Get data from ‘Customer Factory CFG Page’.

  • kStatus_FLASH_InvalidArgument – Parameter is not aligned with the specified baseline.

  • kStatus_FLASH_AlignmentError – Parameter is not aligned with the specified baseline.

  • #kStatus_FTFx_AddressError – Address is out of range.

  • kStatus_FLASH_CommandFailure – access error.

  • kStatus_FLASH_CommandNotSupported – Flash API is not supported

  • kStatus_FLASH_EccError – A correctable or uncorrectable error during command execution.

  • kStatus_FLASH_RegulationLoss – A loss of regulation during read.

  • kStatus_FLASH_ReadHidingAreaDisallowed – Flash hiding read is not allowed

status_t FFR_GetCustKeystoreData(flash_config_t *config, uint8_t *pData, uint32_t offset, uint32_t len)

The API is used for getting the customer key store data from the customer key store region(0x3e400 �C 0x3e600), and the API should be called after the FLASH_Init and FFR_Init.

Parameters:
  • config – A pointer to the storage for the driver runtime state.

  • pData – A pointer to the dest buffer of data that is to be read from the Customer Factory CFG Page.

  • offset – Address offset relative to the CMPA area.

  • len – The length, given in bytes to be read.

Return values:
  • kStatus_FLASH_Success – Get data from ‘Customer Factory CFG Page’.

  • kStatus_FLASH_InvalidArgument – Parameter is not aligned with the specified baseline.

  • #kStatus_FTFx_AddressError – Address is out of range.

  • kStatus_FLASH_AddressError – Address is out of range

  • kStatus_FLASH_AlignmentError – Parameter is not aligned with the specified baseline.

  • kStatus_FLASH_ReadHidingAreaDisallowed – Flash hiding read is not allowed

  • kStatus_FLASH_CommandFailure – access error.

  • kStatus_FLASH_CommandNotSupported – Flash API is not supported

  • kStatus_FLASH_EccError – A correctable or uncorrectable error during command execution.

  • kStatus_FLASH_RegulationLoss – A loss of regulation during read.

status_t FFR_CustKeystoreWrite(flash_config_t *config, ffr_key_store_t *pKeyStore)

This routine writes the 3 pages allocated for Key store data.

Parameters:
  • config – A pointer to the storage for the driver runtime state.

  • pKeyStore – A pointer to the source buffer of data that is to be programmed into the “Key store”.

Return values:
  • kStatus_FLASH_Success – Get data from ‘Customer Factory CFG Page’.

  • kStatus_FLASH_InvalidArgument – Parameter is not aligned with the specified baseline.

  • kStatus_FLASH_CommandFailure – access error.

  • kStatus_FLASH_CommandNotSupported – Flash API is not supported

  • kStatus_FLASH_EccError – A correctable or uncorrectable error during command execution.

  • kStatus_FLASH_RegulationLoss – A loss of regulation during read.

  • kStatus_FLASH_SealedFfrRegion – The FFR region is sealed.

  • kStatus_FLASH_FfrBankIsLocked – The FFR bank region is locked.

  • kStatus_FLASH_AddressError – Address is out of range

  • kStatus_FLASH_AlignmentError – Parameter is not aligned with the specified baseline.

  • kStatus_FLASH_ModifyProtectedAreaDisallowed – Flash firewall page locked erase and program are not allowed

status_t FFR_GetUUID(flash_config_t *config, uint8_t *uuid)

APIs to access CMPA page.

1.SW should use this API routine to get the UUID of the chip. 2.Calling routine should pass a pointer to buffer which can hold 128-bit value.

Return values:
  • kStatus_FLASH_Success – Get data from ‘Customer Factory CFG Page’.

  • kStatus_FLASH_InvalidArgument – Parameter is not aligned with the specified baseline.

  • kStatus_FLASH_ReadHidingAreaDisallowed – Flash hiding read is not allowed

  • kStatus_FLASH_CommandFailure – Run-time error during command execution.

  • kStatus_FLASH_CommandNotSupported – Flash API is not supported

  • kStatus_FLASH_RegulationLoss – A loss of regulation during read.

enum flash_ffr_page_offset

Values:

enumerator kFfrPageOffset_CFPA

Customer In-Field programmed area

enumerator kFfrPageOffset_CFPA_CfgPing

CFPA Configuration area (Ping page)

enumerator kFfrPageOffset_CFPA_CfgPong

Same as CFPA page (Pong page)

enumerator kFfrPageOffset_CMPA_Cfg

Customer Manufacturing programmed area

enumerator kFfrPageOffset_NMPA_Cfg

Customer Manufacturing programmed area

enumerator kFfrPageOffset_SBL_Cfg

SBL recovery programmed area

enumerator kFfrPageOffset_B0_IFR1_Visible

Trim programmed area

enum flash_ffr_page_num

Values:

enumerator kFfrSectorNum_CFPA

Customer In-Field programmed area

enumerator kFfrSectorNum_CMPA

Customer Manufacturing programmed area

enumerator kFfrSectorNum_NMPA

NXP Manufacturing programmed area

enumerator kFfrSectorNum_SBL

SBL Cus programmed area

enumerator kFfrSectorNum_Total
enum flash_ffr_block_size

Values:

enumerator kFfrBlockSize_Key
enumerator kFfrBlockSize_ActivationCode
enum cfpa_cfg_cmpa_prog_status

Values:

enumerator kFfrCmpaProgStatus_Idle
enumerator kFfrCmpaProgStatus_InProgress
enum cmpa_prog_process_t

Values:

enumerator kFfrCmpaProgProcess_Pre
enumerator kFfrCmpaProgProcess_Post
enum ffr_key_type_t

Values:

enumerator kFFR_KeyTypeSbkek
enumerator kFFR_KeyTypeUser
enumerator kFFR_KeyTypeUds
enumerator kFFR_KeyTypePrinceRegion0
enumerator kFFR_KeyTypePrinceRegion1
enumerator kFFR_KeyTypePrinceRegion2
enum ffr_bank_type_t

Values:

enumerator kFFR_BankTypeBank0_CFPA0
enumerator kFFR_BankTypeBank0_CFPA1
enumerator kFFR_BankTypeBank0_CMPA
enumerator kFFR_BankTypeBank0_NMPA
enumerator kFFR_BankTypeBank0_SBL
ALIGN_DOWN(x, a)

Alignment(down) utility.

ALIGN_UP(x, a)

Alignment(up) utility.

FLASH_FFR_MAX_PAGE_SIZE
FLASH_FFR_CUST_ADDRESS
FLASH_FFR_CUST_PAGE_NUMBER
FLASH_FFR_HASH_DIGEST_SIZE
FLASH_FFR_IV_CODE_SIZE
FLASH_FFR_KETBLOB_OFFSET
FLASH_FFR_KETBLOB_SIZE
CFPA_HEADER_MARKER
CMPA_HEADER_MARKER
FLASH_FFR_UUID_SIZE
FFR_BOOTCFG_USBSPEED_SHIFT
FFR_BOOTCFG_USBSPEED_MASK
FFR_BOOTCFG_USBSPEED_NMPASEL0
FFR_BOOTCFG_USBSPEED_FS
FFR_BOOTCFG_USBSPEED_HS
FFR_BOOTCFG_USBSPEED_NMPASEL3
FFR_BOOTCFG_BOOTSPEED_MASK
FFR_BOOTCFG_BOOTSPEED_SHIFT
FFR_BOOTCFG_BOOTSPEED_NMPASEL
FFR_BOOTCFG_BOOTSPEED_48MHZ
FFR_BOOTCFG_BOOTSPEED_96MHZ
FFR_USBID_VENDORID_MASK
FFR_USBID_VENDORID_SHIFT
FFR_USBID_PRODUCTID_MASK
FFR_USBID_PRODUCTID_SHIFT
FFR_IMAGE0_CMAC_UPDATE_MASK
FFR_IMAGE1_CMAC_UPDATE_MASK
FFR_IFR1_PUF_AC_CODE_ADDR
FFR_IFR1_PUF_AC_CODE_LEN
FFR_IFR1_NXP_CERT_ADDR
FFR_IFR1_NXP_CERT_LEN
FFR_IFR1_ROM_PATCH_ARRAY0_ADDR
FFR_IFR1_ROM_PATCH_ARRAY0_LEN
FFR_IFR1_ROM_PATCH_ARRAY1_ADDR
FFR_IFR1_ROM_PATCH_ARRAY1_LEN
FFR_IFR1_ROM_PATCH_ARRAY2_ADDR
FFR_IFR1_ROM_PATCH_ARRAY2_LEN
FFR_IFR1_ROM_PATCH_ARRAY3_ADDR
FFR_IFR1_ROM_PATCH_ARRAY3_LEN
FFR_IFR1_NXP_WRITEABLE_REGION0_START
FFR_IFR1_NXP_WRITEABLE_REGION0_END
FFR_IFR1_NXP_WRITEABLE_REGION1_START
FFR_IFR1_NXP_WRITEABLE_REGION1_END
FFR_IFR1_NXP_WRITEABLE_REGION2_START
FFR_IFR1_NXP_WRITEABLE_REGION2_END
FFR_SYSTEM_SPEED_CODE_MASK
FFR_SYSTEM_SPEED_CODE_SHIFT
FFR_SYSTEM_SPEED_CODE_FRO12MHZ_12MHZ
FFR_SYSTEM_SPEED_CODE_FROHF96MHZ_24MHZ
FFR_SYSTEM_SPEED_CODE_FROHF96MHZ_48MHZ
FFR_SYSTEM_SPEED_CODE_FROHF96MHZ_96MHZ
FFR_USBCFG_USBSPEED_HS
FFR_USBCFG_USBSPEED_FS
FFR_USBCFG_USBSPEED_NO
FFR_MCAN_BAUDRATE_MASK
FFR_MCAN_BAUDRATE_SHIFT
FFR_PERIPHERALCFG_PERI_MASK
FFR_PERIPHERALCFG_PERI_SHIFT
FFR_PERIPHERALCFG_COREEN_MASK
FFR_PERIPHERALCFG_COREEN_SHIFT
FFR_PUF_SRAM_CONFIG_MASK
FFR_PUF_SRAM_CONFIG_MASK_SHIFT
FFR_PUF_SRAM_VALID_MASK
FFR_PUF_SRAM_VALID_SHIFT
FFR_PUF_SRAM_MODE_MASK
FFR_PUF_SRAM_MODE_SHIFT
FFR_PUF_SRAM_CKGATING_MASK
FFR_PUF_SRAM_CKGATING_SHIFT
FFR_PUF_SRAM_SMB_MASK
FFR_PUF_SRAM_SMB_SHIFT
FFR_PUF_SRAM_RM_MASK
FFR_PUF_SRAM_RM_SHIFT
FFR_PUF_SRAM_WM_MASK
FFR_PUF_SRAM_WM_SHIFT
FFR_PUF_SRAM_WRME_MASK
FFR_PUF_SRAM_WRME_SHIFT
FFR_PUF_SRAM_RAEN_MASK
FFR_PUF_SRAM_RAEN_SHIFT
FFR_PUF_SRAM_RAM_MASK
FFR_PUF_SRAM_RAM_SHIFT
FFR_PUF_SRAM_WAEN_MASK
FFR_PUF_SRAM_WAEN_SHIFT
FFR_PUF_SRAM_WAM_MASK
FFR_PUF_SRAM_WAM_SHIFT
FFR_PUF_SRAM_STBP_MASK
FFR_PUF_SRAM_STBP_SHIFT
struct cfpa_cfg_info_t
#include <fsl_flash_ffr.h>

Public Members

struct cfpa_cfg_info_t header

[0x000-0x003]

uint32_t secureFwVersion

[0x008-0x00b]

uint32_t nsFwVersion

[0x00c-0x00f]

uint32_t recFwVersion

[0x010-0x013]

uint32_t secBootFlags

[0x014-0x01f]

uint32_t imageKeyRevoke

[0x018-0x01b]

uint32_t lpVectorAddr

[0x01c-0x01f]

uint32_t vendorUsage

[0x020-0x02f]

uint32_t dcfgNsPin

[0x024-0x027]

uint32_t dcfgNsDflt

[0x028-0x02b]

uint32_t reserved0

[0x02c-0x02f]

uint32_t ivPrince[4]

[0x030-0x03f]

uint32_t ivIped[8]

[0x040-0x05f]

uint32_t errCnt[8]

[0x060-0x07f]

uint32_t custCtr[8]

[0x080-0x09f]

uint32_t mflagCtr[8]

[0x0a0-0x0bf]

uint32_t flashAcl[8]

[0x0C0-0x0Df]

uint32_t sblImg0Cmac[4]

[0x0E0-0x0Ef]

uint32_t img1Cmac[4]

[0x0F0-0x0Ff]

uint32_t diceCert[36]

[0x100-0x18f]

uint32_t reserved2[23]

[0x190-0x1eb]

uint32_t cfpaCrc

[0x1ec-0x1ef]

uint32_t cfpaCmac[4]

[0x1f0-0x1ff]

struct cmpa_cfg_info_t
#include <fsl_flash_ffr.h>

Public Members

struct cmpa_cfg_info_t bootCfg

[0x000-0x003]

struct cmpa_cfg_info_t FlashCfg

[0x004-0x007]

struct cmpa_cfg_info_t bootLedStatus

[0x008-0x00b]

struct cmpa_cfg_info_t bootTimers

[0x00c-0x00f]

uint32_t resv2

[0x010-0x013]

uint32_t resv3

[0x014-0x017]

uint32_t recSpiFlashCfg0

[0x018-0x01b]

uint32_t recSpiFlashCfg1

[0x01c-0x01f]

uint32_t isp_uart_cfg

[0x020-0x023]

uint32_t isp_i2c_cfg

[0x024-0x027]

uint32_t isp_can_cfg

[0x028-0x02b]

uint32_t isp_spi_cfg0

[0x02c-0x02f]

uint32_t isp_spi_cfg1

[0x030-0x034]

struct cmpa_cfg_info_t usbId

[0x034-0x037]

uint32_t isp_usb_cfg

[0x038-0x038]

uint32_t isp_misc_cfg

[0x03c-0x03f]

uint32_t dcfgPin

[0x040-0x043]

uint32_t dcfgDflt

[0x044-0x047]

uint32_t dapVendorUsage

[0x048-0x04b]

uint32_t resv1

[0x04c-0x04f]

uint32_t secureBootCfg

[0x050-0x053]

uint32_t rokthUsage

[0x054-0x057]

uint32_t resv4

[0x058-0x05b]

uint32_t resv5

[0x05c-0x05f]

uint32_t rotkh[12]

[0x060-0x08f]

struct cmpa_cfg_info_t princeSr[4]

[0x090-0x0af]

struct cmpa_cfg_info_t ipedRegions[8]

[0x0b0-0x11f]

struct cmpa_cfg_info_t quickSetGpio[6]

[0x120-0x14f]

uint32_t resv7[4]

[0x150-0x15f]

uint32_t cust_key_blob[12]

[0x160-0x18f]

uint32_t resv8[23]

[0x190-0x1eb]

uint32_t cmpaCrc

[0x1ec-0x1ef]

uint32_t cmpaCmac[4]

[0x1f0-0x1ff]

struct cmpa_key_store_header_t
#include <fsl_flash_ffr.h>
struct nmpa_cfg_info_t
#include <fsl_flash_ffr.h>

Public Members

uint32_t fro32kCfg

[0x000-0x003]

uint32_t puf_cfg

[0x004-0x007]

uint32_t bod

[0x008-0x00b]

uint32_t trim

[0x00c-0x00f]

uint32_t deviceID

[0x010-0x03f]

uint32_t peripheralCfg

[0x014-0x017]

uint32_t dcdPowerProFileLOW[2]

[0x018-0x01f]

uint32_t deviceType

[0x020-0x023]

uint32_t ldo_ao

[0x024-0x027]

uint32_t gdetDelayCfg

[0x028-0x02b]

uint32_t gdetMargin

[0x02c-0x02f]

uint32_t gdetTrim1

[0x030-0x033]

uint32_t gdetEanble1

[0x034-0x037]

uint32_t gdetCtrl1

[0x038-0x03b]

uint32_t gdetUpdateTimer

[0x03c-0x03f]

uint32_t GpoDataChecksum[4]

[0x040-0x04f]

uint32_t finalTestBatchId[4]

[0x050-0x05f]

uint32_t ecidBackup[4]

[0x060-0x06f]

uint32_t uuid[4]

[0x070-0x07f]

uint32_t reserved1[7]

[0x080-0x09b]

struct nmpa_cfg_info_t usbCfg

[0x09c-0x09f]

uint32_t reserved2[80]

[0x0a0-0x1df]

uint8_t cmac[16]

[0x1e0-0x1ef]

uint32_t pageChecksum[4]

[0x1f0-0x1ff]

struct ffr_key_store_t
#include <fsl_flash_ffr.h>
struct header
struct cfpa_page_version

Public Members

uint32_t version

cfpa version

uint32_t img_upd

image cmac update

uint32_t cmpa_update

CFPA page updated through SB command.

uint32_t dice_en

Update DICE certificate during next boot.

struct bootCfg
struct FlashCfg
struct bootLedStatus
struct bootTimers
struct usbId
struct princeSr
struct ipedRegions
struct quickSetGpio
struct usbCfg

FlexCAN: Flex Controller Area Network Driver

FlexCAN Driver

bool FLEXCAN_IsInstanceHasFDMode(CAN_Type *base)

Determine whether the FlexCAN instance support CAN FD mode at run time.

Note

Use this API only if different soc parts share the SOC part name macro define. Otherwise, a different SOC part name can be used to determine at compile time whether the FlexCAN instance supports CAN FD mode or not. If need use this API to determine if CAN FD mode is supported, the FLEXCAN_Init function needs to be executed first, and then call this API and use the return to value determines whether to supports CAN FD mode, if return true, continue calling FLEXCAN_FDInit to enable CAN FD mode.

Parameters:
  • base – FlexCAN peripheral base address.

Returns:

return TRUE if instance support CAN FD mode, FALSE if instance only support classic CAN (2.0) mode.

uint32_t FLEXCAN_GetFDMailboxOffset(CAN_Type *base, uint8_t mbIdx)

Get Mailbox offset number by dword.

This function gets the offset number of the specified mailbox. Mailbox is not consecutive between memory regions when payload is not 8 bytes so need to calculate the specified mailbox address. For example, in the first memory region, MB[0].CS address is 0x4002_4080. For 32 bytes payload frame, the second mailbox is ((1/12)*512 + 1%12*40)/4 = 10, meaning 10 dword after the 0x4002_4080, which is actually the address of mailbox MB[1].CS.

Parameters:
  • base – FlexCAN peripheral base address.

  • mbIdx – Mailbox index.

Returns:

Mailbox address offset in word.

status_t FLEXCAN_EnterFreezeMode(CAN_Type *base)

Enter FlexCAN Freeze Mode.

This function makes the FlexCAN work under Freeze Mode.

Parameters:
  • base – FlexCAN peripheral base address.

Returns:

kStatus_Success Enter Freeze Mode successful kStatus_Timeout Timeout when wait for Freeze Mode Acknowledge

status_t FLEXCAN_ExitFreezeMode(CAN_Type *base)

Exit FlexCAN Freeze Mode.

This function makes the FlexCAN leave Freeze Mode.

Parameters:
  • base – FlexCAN peripheral base address.

Returns:

kStatus_Success Enter Freeze Mode successful kStatus_Timeout Timeout when wait for Freeze Mode Acknowledge

uint32_t FLEXCAN_GetInstance(CAN_Type *base)

Get the FlexCAN instance from peripheral base address.

Parameters:
  • base – FlexCAN peripheral base address.

Returns:

FlexCAN instance.

bool FLEXCAN_CalculateImprovedTimingValues(CAN_Type *base, uint32_t bitRate, uint32_t sourceClock_Hz, flexcan_timing_config_t *pTimingConfig)

Calculates the improved timing values by specific bit Rates for classical CAN.

This function use to calculates the Classical CAN timing values according to the given bit rate. The Calculated timing values will be set in CTRL1/CBT/ENCBT register. The calculation is based on the recommendation of the CiA 301 v4.2.0 and previous version document.

Parameters:
  • base – FlexCAN peripheral base address.

  • bitRate – The classical CAN speed in bps defined by user, should be less than or equal to 1Mbps.

  • sourceClock_Hz – The Source clock frequency in Hz.

  • pTimingConfig – Pointer to the FlexCAN timing configuration structure.

Returns:

TRUE if timing configuration found, FALSE if failed to find configuration.

void FLEXCAN_Init(CAN_Type *base, const flexcan_config_t *pConfig, uint32_t sourceClock_Hz)

Initializes a FlexCAN instance.

This function initializes the FlexCAN module with user-defined settings. This example shows how to set up the flexcan_config_t parameters and how to call the FLEXCAN_Init function by passing in these parameters.

flexcan_config_t flexcanConfig;
flexcanConfig.clkSrc               = kFLEXCAN_ClkSrc0;
flexcanConfig.bitRate              = 1000000U;
flexcanConfig.maxMbNum             = 16;
flexcanConfig.enableLoopBack       = false;
flexcanConfig.enableSelfWakeup     = false;
flexcanConfig.enableIndividMask    = false;
flexcanConfig.enableDoze           = false;
flexcanConfig.disableSelfReception = false;
flexcanConfig.enableListenOnlyMode = false;
flexcanConfig.timingConfig         = timingConfig;
FLEXCAN_Init(CAN0, &flexcanConfig, 40000000UL);

Parameters:
  • base – FlexCAN peripheral base address.

  • pConfig – Pointer to the user-defined configuration structure.

  • sourceClock_Hz – FlexCAN Protocol Engine clock source frequency in Hz.

bool FLEXCAN_FDCalculateImprovedTimingValues(CAN_Type *base, uint32_t bitRate, uint32_t bitRateFD, uint32_t sourceClock_Hz, flexcan_timing_config_t *pTimingConfig)

Calculates the improved timing values by specific bit rates for CANFD.

This function use to calculates the CANFD timing values according to the given nominal phase bit rate and data phase bit rate. The Calculated timing values will be set in CBT/ENCBT and FDCBT/EDCBT registers. The calculation is based on the recommendation of the CiA 1301 v1.0.0 document.

Parameters:
  • base – FlexCAN peripheral base address.

  • bitRate – The CANFD bus control speed in bps defined by user.

  • bitRateFD – The CAN FD data phase speed in bps defined by user. Equal to bitRate means disable bit rate switching.

  • sourceClock_Hz – The Source clock frequency in Hz.

  • pTimingConfig – Pointer to the FlexCAN timing configuration structure.

Returns:

TRUE if timing configuration found, FALSE if failed to find configuration

void FLEXCAN_FDInit(CAN_Type *base, const flexcan_config_t *pConfig, uint32_t sourceClock_Hz, flexcan_mb_size_t dataSize, bool brs)

Initializes a FlexCAN instance.

This function initializes the FlexCAN module with user-defined settings. This example shows how to set up the flexcan_config_t parameters and how to call the FLEXCAN_FDInit function by passing in these parameters.

flexcan_config_t flexcanConfig;
flexcanConfig.clkSrc               = kFLEXCAN_ClkSrc0;
flexcanConfig.bitRate              = 1000000U;
flexcanConfig.bitRateFD            = 2000000U;
flexcanConfig.maxMbNum             = 16;
flexcanConfig.enableLoopBack       = false;
flexcanConfig.enableSelfWakeup     = false;
flexcanConfig.enableIndividMask    = false;
flexcanConfig.disableSelfReception = false;
flexcanConfig.enableListenOnlyMode = false;
flexcanConfig.enableDoze           = false;
flexcanConfig.timingConfig         = timingConfig;
FLEXCAN_FDInit(CAN0, &flexcanConfig, 80000000UL, kFLEXCAN_16BperMB, true);

Parameters:
  • base – FlexCAN peripheral base address.

  • pConfig – Pointer to the user-defined configuration structure.

  • sourceClock_Hz – FlexCAN Protocol Engine clock source frequency in Hz.

  • dataSize – FlexCAN Message Buffer payload size. The actual transmitted or received CAN FD frame data size needs to be less than or equal to this value.

  • brs – True if bit rate switch is enabled in FD mode.

void FLEXCAN_Deinit(CAN_Type *base)

De-initializes a FlexCAN instance.

This function disables the FlexCAN module clock and sets all register values to the reset value.

Parameters:
  • base – FlexCAN peripheral base address.

void FLEXCAN_GetDefaultConfig(flexcan_config_t *pConfig)

Gets the default configuration structure.

This function initializes the FlexCAN configuration structure to default values. The default values are as follows. flexcanConfig->clkSrc = kFLEXCAN_ClkSrc0; flexcanConfig->bitRate = 1000000U; flexcanConfig->bitRateFD = 2000000U; flexcanConfig->maxMbNum = 16; flexcanConfig->enableLoopBack = false; flexcanConfig->enableSelfWakeup = false; flexcanConfig->enableIndividMask = false; flexcanConfig->disableSelfReception = false; flexcanConfig->enableListenOnlyMode = false; flexcanConfig->enableDoze = false; flexcanConfig->enablePretendedeNetworking = false; flexcanConfig->enableMemoryErrorControl = true; flexcanConfig->enableNonCorrectableErrorEnterFreeze = true; flexcanConfig->enableTransceiverDelayMeasure = true; flexcanConfig->enableRemoteRequestFrameStored = true; flexcanConfig->payloadEndianness = kFLEXCAN_bigEndian; flexcanConfig.timingConfig = timingConfig;

Parameters:
  • pConfig – Pointer to the FlexCAN configuration structure.

void FLEXCAN_SetTimingConfig(CAN_Type *base, const flexcan_timing_config_t *pConfig)

Sets the FlexCAN classical CAN protocol timing characteristic.

This function gives user settings to classical CAN or CAN FD nominal phase timing characteristic. The function is for an experienced user. For less experienced users, call the FLEXCAN_SetBitRate() instead.

Note

Calling FLEXCAN_SetTimingConfig() overrides the bit rate set in FLEXCAN_Init() or FLEXCAN_SetBitRate().

Parameters:
  • base – FlexCAN peripheral base address.

  • pConfig – Pointer to the timing configuration structure.

status_t FLEXCAN_SetBitRate(CAN_Type *base, uint32_t sourceClock_Hz, uint32_t bitRate_Bps)

Set bit rate of FlexCAN classical CAN frame or CAN FD frame nominal phase.

This function set the bit rate of classical CAN frame or CAN FD frame nominal phase base on FLEXCAN_CalculateImprovedTimingValues() API calculated timing values.

Note

Calling FLEXCAN_SetBitRate() overrides the bit rate set in FLEXCAN_Init().

Parameters:
  • base – FlexCAN peripheral base address.

  • sourceClock_Hz – Source Clock in Hz.

  • bitRate_Bps – Bit rate in Bps.

Returns:

kStatus_Success - Set CAN baud rate (only Nominal phase) successfully.

void FLEXCAN_SetFDTimingConfig(CAN_Type *base, const flexcan_timing_config_t *pConfig)

Sets the FlexCAN CANFD data phase timing characteristic.

This function gives user settings to CANFD data phase timing characteristic. The function is for an experienced user. For less experienced users, call the FLEXCAN_SetFDBitRate() to set both Nominal/Data bit Rate instead.

Note

Calling FLEXCAN_SetFDTimingConfig() overrides the data phase bit rate set in FLEXCAN_FDInit()/FLEXCAN_SetFDBitRate().

Parameters:
  • base – FlexCAN peripheral base address.

  • pConfig – Pointer to the timing configuration structure.

status_t FLEXCAN_SetFDBitRate(CAN_Type *base, uint32_t sourceClock_Hz, uint32_t bitRateN_Bps, uint32_t bitRateD_Bps)

Set bit rate of FlexCAN FD frame.

This function set the baud rate of FLEXCAN FD base on FLEXCAN_FDCalculateImprovedTimingValues() API calculated timing values.

Parameters:
  • base – FlexCAN peripheral base address.

  • sourceClock_Hz – Source Clock in Hz.

  • bitRateN_Bps – Nominal bit Rate in Bps.

  • bitRateD_Bps – Data bit Rate in Bps.

Returns:

kStatus_Success - Set CAN FD bit rate (include Nominal and Data phase) successfully.

void FLEXCAN_SetRxMbGlobalMask(CAN_Type *base, uint32_t mask)

Sets the FlexCAN receive message buffer global mask.

This function sets the global mask for the FlexCAN message buffer in a matching process. The configuration is only effective when the Rx individual mask is disabled in the FLEXCAN_Init().

Parameters:
  • base – FlexCAN peripheral base address.

  • mask – Rx Message Buffer Global Mask value.

void FLEXCAN_SetRxFifoGlobalMask(CAN_Type *base, uint32_t mask)

Sets the FlexCAN receive FIFO global mask.

This function sets the global mask for FlexCAN FIFO in a matching process.

Parameters:
  • base – FlexCAN peripheral base address.

  • mask – Rx Fifo Global Mask value.

void FLEXCAN_SetRxIndividualMask(CAN_Type *base, uint8_t maskIdx, uint32_t mask)

Sets the FlexCAN receive individual mask.

This function sets the individual mask for the FlexCAN matching process. The configuration is only effective when the Rx individual mask is enabled in the FLEXCAN_Init(). If the Rx FIFO is disabled, the individual mask is applied to the corresponding Message Buffer. If the Rx FIFO is enabled, the individual mask for Rx FIFO occupied Message Buffer is applied to the Rx Filter with the same index. Note that only the first 32 individual masks can be used as the Rx FIFO filter mask.

Parameters:
  • base – FlexCAN peripheral base address.

  • maskIdx – The Index of individual Mask.

  • mask – Rx Individual Mask value.

void FLEXCAN_SetTxMbConfig(CAN_Type *base, uint8_t mbIdx, bool enable)

Configures a FlexCAN transmit message buffer.

This function aborts the previous transmission, cleans the Message Buffer, and configures it as a Transmit Message Buffer.

Parameters:
  • base – FlexCAN peripheral base address.

  • mbIdx – The Message Buffer index.

  • enable – Enable/disable Tx Message Buffer.

    • true: Enable Tx Message Buffer.

    • false: Disable Tx Message Buffer.

void FLEXCAN_SetRxMbConfig(CAN_Type *base, uint8_t mbIdx, const flexcan_rx_mb_config_t *pRxMbConfig, bool enable)

Configures a FlexCAN Receive Message Buffer.

This function cleans a FlexCAN build-in Message Buffer and configures it as a Receive Message Buffer. User should invoke this API when CTRL2[RRS]=1. When CTRL2[RRS]=1, frame’s ID is compared to the IDs of the receive mailboxes with the CODE field configured as kFLEXCAN_RxMbEmpty, kFLEXCAN_RxMbFull or kFLEXCAN_RxMbOverrun. Message buffer will store the remote frame in the same fashion of a data frame. No automatic remote response frame will be generated. User need to setup another message buffer to respond remote request.

Parameters:
  • base – FlexCAN peripheral base address.

  • mbIdx – The Message Buffer index.

  • pRxMbConfig – Pointer to the FlexCAN Message Buffer configuration structure.

  • enable – Enable/disable Rx Message Buffer.

    • true: Enable Rx Message Buffer.

    • false: Disable Rx Message Buffer.

static inline void FLEXCAN_SetMbID(CAN_Type *base, uint8_t mbIdx, uint32_t id)

Configures a FlexCAN Message Buffer identifier.

Parameters:
  • base – FlexCAN peripheral base address.

  • mbIdx – The Message Buffer index.

  • id – CAN Message Buffer Identifier, should use FLEXCAN_ID_EXT() or FLEXCAN_ID_STD() macro.

void FLEXCAN_SetFDTxMbConfig(CAN_Type *base, uint8_t mbIdx, bool enable)

Configures a FlexCAN transmit message buffer.

This function aborts the previous transmission, cleans the Message Buffer, and configures it as a Transmit Message Buffer.

Parameters:
  • base – FlexCAN peripheral base address.

  • mbIdx – The Message Buffer index.

  • enable – Enable/disable Tx Message Buffer.

    • true: Enable Tx Message Buffer.

    • false: Disable Tx Message Buffer.

void FLEXCAN_SetFDRxMbConfig(CAN_Type *base, uint8_t mbIdx, const flexcan_rx_mb_config_t *pRxMbConfig, bool enable)

Configures a FlexCAN Receive Message Buffer.

This function cleans a FlexCAN build-in Message Buffer and configures it as a Receive Message Buffer.

Parameters:
  • base – FlexCAN peripheral base address.

  • mbIdx – The Message Buffer index.

  • pRxMbConfig – Pointer to the FlexCAN Message Buffer configuration structure.

  • enable – Enable/disable Rx Message Buffer.

    • true: Enable Rx Message Buffer.

    • false: Disable Rx Message Buffer.

static inline void FLEXCAN_SetFDMbID(CAN_Type *base, uint8_t mbIdx, uint32_t id)

Configures a FlexCAN Message Buffer identifier.

Parameters:
  • base – FlexCAN peripheral base address.

  • mbIdx – The Message Buffer index.

  • id – CAN Message Buffer Identifier, should use FLEXCAN_ID_EXT() or FLEXCAN_ID_STD() macro.

void FLEXCAN_SetRemoteResponseMbConfig(CAN_Type *base, uint8_t mbIdx, const flexcan_frame_t *pFrame)

Configures a FlexCAN Remote Response Message Buffer.

User should invoke this API when CTRL2[RRS]=0. When CTRL2[RRS]=0, frame’s ID is compared to the IDs of the receive mailboxes with the CODE field configured as kFLEXCAN_RxMbRanswer. If there is a matching ID, then this mailbox content will be transmitted as response. The received remote request frame is not stored in receive buffer. It is only used to trigger a transmission of a frame in response.

Parameters:
  • base – FlexCAN peripheral base address.

  • mbIdx – The Message Buffer index.

  • pFrame – Pointer to CAN message frame structure for response.

void FLEXCAN_SetRxFifoConfig(CAN_Type *base, const flexcan_rx_fifo_config_t *pRxFifoConfig, bool enable)

Configures the FlexCAN Legacy Rx FIFO.

This function configures the FlexCAN Rx FIFO with given configuration.

Note

Legacy Rx FIFO only can receive classic CAN message.

Parameters:
  • base – FlexCAN peripheral base address.

  • pRxFifoConfig – Pointer to the FlexCAN Legacy Rx FIFO configuration structure. Can be NULL when enable parameter is false.

  • enable – Enable/disable Legacy Rx FIFO.

    • true: Enable Legacy Rx FIFO.

    • false: Disable Legacy Rx FIFO.

void FLEXCAN_SetEnhancedRxFifoConfig(CAN_Type *base, const flexcan_enhanced_rx_fifo_config_t *pConfig, bool enable)

Configures the FlexCAN Enhanced Rx FIFO.

This function configures the Enhanced Rx FIFO with given configuration.

Note

Enhanced Rx FIFO support receive classic CAN or CAN FD messages, Legacy Rx FIFO and Enhanced Rx FIFO cannot be enabled at the same time.

Parameters:
  • base – FlexCAN peripheral base address.

  • pConfig – Pointer to the FlexCAN Enhanced Rx FIFO configuration structure. Can be NULL when enable parameter is false.

  • enable – Enable/disable Enhanced Rx FIFO.

    • true: Enable Enhanced Rx FIFO.

    • false: Disable Enhanced Rx FIFO.

void FLEXCAN_SetPNConfig(CAN_Type *base, const flexcan_pn_config_t *pConfig)

Configures the FlexCAN Pretended Networking mode.

This function configures the FlexCAN Pretended Networking mode with given configuration.

Parameters:
  • base – FlexCAN peripheral base address.

  • pConfig – Pointer to the FlexCAN Rx FIFO configuration structure.

static inline uint64_t FLEXCAN_GetStatusFlags(CAN_Type *base)

Gets the FlexCAN module interrupt flags.

This function gets all FlexCAN status flags. The flags are returned as the logical OR value of the enumerators _flexcan_flags. To check the specific status, compare the return value with enumerators in _flexcan_flags.

Parameters:
  • base – FlexCAN peripheral base address.

Returns:

FlexCAN status flags which are ORed by the enumerators in the _flexcan_flags.

static inline void FLEXCAN_ClearStatusFlags(CAN_Type *base, uint64_t mask)

Clears status flags with the provided mask.

This function clears the FlexCAN status flags with a provided mask. An automatically cleared flag can’t be cleared by this function.

Parameters:
  • base – FlexCAN peripheral base address.

  • mask – The status flags to be cleared, it is logical OR value of _flexcan_flags.

static inline void FLEXCAN_GetBusErrCount(CAN_Type *base, uint8_t *txErrBuf, uint8_t *rxErrBuf)

Gets the FlexCAN Bus Error Counter value.

This function gets the FlexCAN Bus Error Counter value for both Tx and Rx direction. These values may be needed in the upper layer error handling.

Parameters:
  • base – FlexCAN peripheral base address.

  • txErrBuf – Buffer to store Tx Error Counter value.

  • rxErrBuf – Buffer to store Rx Error Counter value.

static inline uint64_t FLEXCAN_GetMbStatusFlags(CAN_Type *base, uint64_t mask)

Gets the FlexCAN low 64 Message Buffer interrupt flags.

This function gets the interrupt flags of a given Message Buffers.

Parameters:
  • base – FlexCAN peripheral base address.

  • mask – The ORed FlexCAN Message Buffer mask.

Returns:

The status of given Message Buffers.

static inline uint64_t FLEXCAN_GetHigh64MbStatusFlags(CAN_Type *base, uint64_t mask)

Gets the FlexCAN High 64 Message Buffer interrupt flags.

Valid only if the number of available MBs exceeds 64.

Parameters:
  • base – FlexCAN peripheral base address.

  • mask – The ORed FlexCAN Message Buffer mask.

Returns:

The status of given Message Buffers.

static inline void FLEXCAN_ClearMbStatusFlags(CAN_Type *base, uint64_t mask)

Clears the FlexCAN low 64 Message Buffer interrupt flags.

This function clears the interrupt flags of a given Message Buffers.

Parameters:
  • base – FlexCAN peripheral base address.

  • mask – The ORed FlexCAN Message Buffer mask.

static inline void FLEXCAN_ClearHigh64MbStatusFlags(CAN_Type *base, uint64_t mask)

Clears the FlexCAN High 64 Message Buffer interrupt flags.

Valid only if the number of available MBs exceeds 64.

Parameters:
  • base – FlexCAN peripheral base address.

  • mask – The ORed FlexCAN Message Buffer mask.

void FLEXCAN_GetMemoryErrorReportStatus(CAN_Type *base, flexcan_memory_error_report_status_t *errorStatus)

Gets the FlexCAN Memory Error Report registers status.

This function gets the FlexCAN Memory Error Report registers status.

Parameters:
  • base – FlexCAN peripheral base address.

  • errorStatus – Pointer to FlexCAN Memory Error Report registers status structure.

static inline uint8_t FLEXCAN_GetPNMatchCount(CAN_Type *base)

Gets the FlexCAN Number of Matches when in Pretended Networking.

This function gets the number of times a given message has matched the predefined filtering criteria for ID and/or PL before a wakeup event.

Parameters:
  • base – FlexCAN peripheral base address.

Returns:

The number of received wake up msessages.

static inline uint32_t FLEXCAN_GetEnhancedFifoDataCount(CAN_Type *base)

Gets the number of FlexCAN Enhanced Rx FIFO available frames.

This function gets the number of CAN messages stored in the Enhanced Rx FIFO.

Parameters:
  • base – FlexCAN peripheral base address.

Returns:

The number of available CAN messages stored in the Enhanced Rx FIFO.

static inline void FLEXCAN_EnableInterrupts(CAN_Type *base, uint64_t mask)

Enables FlexCAN interrupts according to the provided mask.

This function enables the FlexCAN interrupts according to the provided mask. The mask is a logical OR of enumeration members, see _flexcan_interrupt_enable.

Parameters:
  • base – FlexCAN peripheral base address.

  • mask – The interrupts to enable. Logical OR of _flexcan_interrupt_enable.

static inline void FLEXCAN_DisableInterrupts(CAN_Type *base, uint64_t mask)

Disables FlexCAN interrupts according to the provided mask.

This function disables the FlexCAN interrupts according to the provided mask. The mask is a logical OR of enumeration members, see _flexcan_interrupt_enable.

Parameters:
  • base – FlexCAN peripheral base address.

  • mask – The interrupts to disable. Logical OR of _flexcan_interrupt_enable.

static inline void FLEXCAN_EnableMbInterrupts(CAN_Type *base, uint64_t mask)

Enables FlexCAN low 64 Message Buffer interrupts.

This function enables the interrupts of given Message Buffers.

Parameters:
  • base – FlexCAN peripheral base address.

  • mask – The ORed FlexCAN Message Buffer mask.

static inline void FLEXCAN_EnableHigh64MbInterrupts(CAN_Type *base, uint64_t mask)

Enables FlexCAN high 64 Message Buffer interrupts.

Valid only if the number of available MBs exceeds 64.

Parameters:
  • base – FlexCAN peripheral base address.

  • mask – The ORed FlexCAN Message Buffer mask.

static inline void FLEXCAN_DisableMbInterrupts(CAN_Type *base, uint64_t mask)

Disables FlexCAN low 64 Message Buffer interrupts.

This function disables the interrupts of given Message Buffers.

Parameters:
  • base – FlexCAN peripheral base address.

  • mask – The ORed FlexCAN Message Buffer mask.

static inline void FLEXCAN_DisableHigh64MbInterrupts(CAN_Type *base, uint64_t mask)

Disables FlexCAN high 64 Message Buffer interrupts.

Valid only if the number of available MBs exceeds 64.

Parameters:
  • base – FlexCAN peripheral base address.

  • mask – The ORed FlexCAN Message Buffer mask.

void FLEXCAN_EnableRxFifoDMA(CAN_Type *base, bool enable)

Enables or disables the FlexCAN Rx FIFO DMA request.

This function enables or disables the DMA feature of FlexCAN build-in Rx FIFO.

Parameters:
  • base – FlexCAN peripheral base address.

  • enable – true to enable, false to disable.

static inline uintptr_t FLEXCAN_GetRxFifoHeadAddr(CAN_Type *base)

Gets the Rx FIFO Head address.

This function returns the FlexCAN Rx FIFO Head address, which is mainly used for the DMA/eDMA use case.

Parameters:
  • base – FlexCAN peripheral base address.

Returns:

FlexCAN Rx FIFO Head address.

static inline status_t FLEXCAN_Enable(CAN_Type *base, bool enable)

Enables or disables the FlexCAN module operation.

This function enables or disables the FlexCAN module.

Parameters:
  • base – FlexCAN base pointer.

  • enable – true to enable, false to disable.

Returns:

kStatus_Success Enable FlexCAN module successful kStatus_Timeout Timeout when wait for Low-Power Mode Acknowledge

status_t FLEXCAN_WriteTxMb(CAN_Type *base, uint8_t mbIdx, const flexcan_frame_t *pTxFrame)

Writes a FlexCAN Message to the Transmit Message Buffer.

This function writes a CAN Message to the specified Transmit Message Buffer and changes the Message Buffer state to start CAN Message transmit. After that the function returns immediately.

Parameters:
  • base – FlexCAN peripheral base address.

  • mbIdx – The FlexCAN Message Buffer index.

  • pTxFrame – Pointer to CAN message frame to be sent.

Return values:
  • kStatus_Success – - Write Tx Message Buffer Successfully.

  • kStatus_Fail – - Tx Message Buffer is currently in use.

status_t FLEXCAN_ReadRxMb(CAN_Type *base, uint8_t mbIdx, flexcan_frame_t *pRxFrame)

Reads a FlexCAN Message from Receive Message Buffer.

This function reads a CAN message from a specified Receive Message Buffer. The function fills a receive CAN message frame structure with just received data and activates the Message Buffer again. The function returns immediately.

Parameters:
  • base – FlexCAN peripheral base address.

  • mbIdx – The FlexCAN Message Buffer index.

  • pRxFrame – Pointer to CAN message frame structure for reception.

Return values:
  • kStatus_Success – - Rx Message Buffer is full and has been read successfully.

  • kStatus_FLEXCAN_RxOverflow – - Rx Message Buffer is already overflowed and has been read successfully.

  • kStatus_Fail – - Rx Message Buffer is empty.

status_t FLEXCAN_WriteFDTxMb(CAN_Type *base, uint8_t mbIdx, const flexcan_fd_frame_t *pTxFrame)

Writes a FlexCAN FD Message to the Transmit Message Buffer.

This function writes a CAN FD Message to the specified Transmit Message Buffer and changes the Message Buffer state to start CAN FD Message transmit. After that the function returns immediately.

Parameters:
  • base – FlexCAN peripheral base address.

  • mbIdx – The FlexCAN FD Message Buffer index.

  • pTxFrame – Pointer to CAN FD message frame to be sent.

Return values:
  • kStatus_Success – - Write Tx Message Buffer Successfully.

  • kStatus_Fail – - Tx Message Buffer is currently in use.

status_t FLEXCAN_ReadFDRxMb(CAN_Type *base, uint8_t mbIdx, flexcan_fd_frame_t *pRxFrame)

Reads a FlexCAN FD Message from Receive Message Buffer.

This function reads a CAN FD message from a specified Receive Message Buffer. The function fills a receive CAN FD message frame structure with just received data and activates the Message Buffer again. The function returns immediately.

Parameters:
  • base – FlexCAN peripheral base address.

  • mbIdx – The FlexCAN FD Message Buffer index.

  • pRxFrame – Pointer to CAN FD message frame structure for reception.

Return values:
  • kStatus_Success – - Rx Message Buffer is full and has been read successfully.

  • kStatus_FLEXCAN_RxOverflow – - Rx Message Buffer is already overflowed and has been read successfully.

  • kStatus_Fail – - Rx Message Buffer is empty.

status_t FLEXCAN_ReadRxFifo(CAN_Type *base, flexcan_frame_t *pRxFrame)

Reads a FlexCAN Message from Legacy Rx FIFO.

This function reads a CAN message from the FlexCAN Legacy Rx FIFO.

Parameters:
  • base – FlexCAN peripheral base address.

  • pRxFrame – Pointer to CAN message frame structure for reception.

Return values:
  • kStatus_Success – - Read Message from Rx FIFO successfully.

  • kStatus_Fail – - Rx FIFO is not enabled.

status_t FLEXCAN_ReadEnhancedRxFifo(CAN_Type *base, flexcan_fd_frame_t *pRxFrame)

Reads a FlexCAN Message from Enhanced Rx FIFO.

This function reads a CAN or CAN FD message from the FlexCAN Enhanced Rx FIFO.

Parameters:
  • base – FlexCAN peripheral base address.

  • pRxFrame – Pointer to CAN FD message frame structure for reception.

Return values:
  • kStatus_Success – - Read Message from Rx FIFO successfully.

  • kStatus_Fail – - Rx FIFO is not enabled.

status_t FLEXCAN_ReadPNWakeUpMB(CAN_Type *base, uint8_t mbIdx, flexcan_frame_t *pRxFrame)

Reads a FlexCAN Message from Wake Up MB.

This function reads a CAN message from the FlexCAN Wake up Message Buffers. There are four Wake up Message Buffers (WMBs) used to store incoming messages in Pretended Networking mode. The WMB index indicates the arrival order. The last message is stored in WMB3.

Parameters:
  • base – FlexCAN peripheral base address.

  • pRxFrame – Pointer to CAN message frame structure for reception.

  • mbIdx – The FlexCAN Wake up Message Buffer index. Range in 0x0 ~ 0x3.

Return values:
  • kStatus_Success – - Read Message from Wake up Message Buffer successfully.

  • kStatus_Fail – - Wake up Message Buffer has no valid content.

status_t FLEXCAN_TransferFDSendBlocking(CAN_Type *base, uint8_t mbIdx, flexcan_fd_frame_t *pTxFrame)

Performs a polling send transaction on the CAN bus.

Note

A transfer handle does not need to be created before calling this API.

Parameters:
  • base – FlexCAN peripheral base pointer.

  • mbIdx – The FlexCAN FD Message Buffer index.

  • pTxFrame – Pointer to CAN FD message frame to be sent.

Return values:
  • kStatus_Success – - Write Tx Message Buffer Successfully.

  • kStatus_Fail – - Tx Message Buffer is currently in use.

  • kStatus_Timeout – - Failed to send frames within specific time.

status_t FLEXCAN_TransferFDReceiveBlocking(CAN_Type *base, uint8_t mbIdx, flexcan_fd_frame_t *pRxFrame)

Performs a polling receive transaction on the CAN bus.

Note

A transfer handle does not need to be created before calling this API.

Parameters:
  • base – FlexCAN peripheral base pointer.

  • mbIdx – The FlexCAN FD Message Buffer index.

  • pRxFrame – Pointer to CAN FD message frame structure for reception.

Return values:
  • kStatus_Success – - Rx Message Buffer is full and has been read successfully.

  • kStatus_FLEXCAN_RxOverflow – - Rx Message Buffer is already overflowed and has been read successfully.

  • kStatus_Fail – - Rx Message Buffer is empty.

  • kStatus_Timeout – - Failed to receive frames within specific time.

status_t FLEXCAN_TransferFDSendNonBlocking(CAN_Type *base, flexcan_handle_t *handle, flexcan_mb_transfer_t *pMbXfer)

Sends a message using IRQ.

This function sends a message using IRQ. This is a non-blocking function, which returns right away. When messages have been sent out, the send callback function is called.

Parameters:
  • base – FlexCAN peripheral base address.

  • handle – FlexCAN handle pointer.

  • pMbXfer – FlexCAN FD Message Buffer transfer structure. See the flexcan_mb_transfer_t.

Return values:
  • kStatus_Success – Start Tx Message Buffer sending process successfully.

  • kStatus_Fail – Write Tx Message Buffer failed.

  • kStatus_FLEXCAN_TxBusy – Tx Message Buffer is in use.

status_t FLEXCAN_TransferFDReceiveNonBlocking(CAN_Type *base, flexcan_handle_t *handle, flexcan_mb_transfer_t *pMbXfer)

Receives a message using IRQ.

This function receives a message using IRQ. This is non-blocking function, which returns right away. When the message has been received, the receive callback function is called.

Parameters:
  • base – FlexCAN peripheral base address.

  • handle – FlexCAN handle pointer.

  • pMbXfer – FlexCAN FD Message Buffer transfer structure. See the flexcan_mb_transfer_t.

Return values:
  • kStatus_Success – - Start Rx Message Buffer receiving process successfully.

  • kStatus_FLEXCAN_RxBusy – - Rx Message Buffer is in use.

void FLEXCAN_TransferFDAbortSend(CAN_Type *base, flexcan_handle_t *handle, uint8_t mbIdx)

Aborts the interrupt driven message send process.

This function aborts the interrupt driven message send process.

Parameters:
  • base – FlexCAN peripheral base address.

  • handle – FlexCAN handle pointer.

  • mbIdx – The FlexCAN FD Message Buffer index.

void FLEXCAN_TransferFDAbortReceive(CAN_Type *base, flexcan_handle_t *handle, uint8_t mbIdx)

Aborts the interrupt driven message receive process.

This function aborts the interrupt driven message receive process.

Parameters:
  • base – FlexCAN peripheral base address.

  • handle – FlexCAN handle pointer.

  • mbIdx – The FlexCAN FD Message Buffer index.

status_t FLEXCAN_TransferSendBlocking(CAN_Type *base, uint8_t mbIdx, flexcan_frame_t *pTxFrame)

Performs a polling send transaction on the CAN bus.

Note

A transfer handle does not need to be created before calling this API.

Parameters:
  • base – FlexCAN peripheral base pointer.

  • mbIdx – The FlexCAN Message Buffer index.

  • pTxFrame – Pointer to CAN message frame to be sent.

Return values:
  • kStatus_Success – - Write Tx Message Buffer Successfully.

  • kStatus_Fail – - Tx Message Buffer is currently in use.

  • kStatus_Timeout – - Failed to send frames within specific time.

status_t FLEXCAN_TransferReceiveBlocking(CAN_Type *base, uint8_t mbIdx, flexcan_frame_t *pRxFrame)

Performs a polling receive transaction on the CAN bus.

Note

A transfer handle does not need to be created before calling this API.

Parameters:
  • base – FlexCAN peripheral base pointer.

  • mbIdx – The FlexCAN Message Buffer index.

  • pRxFrame – Pointer to CAN message frame structure for reception.

Return values:
  • kStatus_Success – - Rx Message Buffer is full and has been read successfully.

  • kStatus_FLEXCAN_RxOverflow – - Rx Message Buffer is already overflowed and has been read successfully.

  • kStatus_Fail – - Rx Message Buffer is empty.

  • kStatus_Timeout – - Failed to receive frames within specific time.

status_t FLEXCAN_TransferReceiveFifoBlocking(CAN_Type *base, flexcan_frame_t *pRxFrame)

Performs a polling receive transaction from Legacy Rx FIFO on the CAN bus.

Note

A transfer handle does not need to be created before calling this API.

Parameters:
  • base – FlexCAN peripheral base pointer.

  • pRxFrame – Pointer to CAN message frame structure for reception.

Return values:
  • kStatus_Success – - Read Message from Rx FIFO successfully.

  • kStatus_Fail – - Rx FIFO is not enabled.

  • kStatus_Timeout – - Failed to receive frames within specific time.

status_t FLEXCAN_TransferReceiveEnhancedFifoBlocking(CAN_Type *base, flexcan_fd_frame_t *pRxFrame)

Performs a polling receive transaction from Enhanced Rx FIFO on the CAN bus.

Note

A transfer handle does not need to be created before calling this API.

Parameters:
  • base – FlexCAN peripheral base pointer.

  • pRxFrame – Pointer to CAN FD message frame structure for reception.

Return values:
  • kStatus_Success – - Read Message from Rx FIFO successfully.

  • kStatus_Fail – - Rx FIFO is not enabled.

  • kStatus_Timeout – - Failed to receive frames within specific time.

void FLEXCAN_TransferCreateHandle(CAN_Type *base, flexcan_handle_t *handle, flexcan_transfer_callback_t callback, void *userData)

Initializes the FlexCAN handle.

This function initializes the FlexCAN handle, which can be used for other FlexCAN transactional APIs. Usually, for a specified FlexCAN instance, call this API once to get the initialized handle.

Parameters:
  • base – FlexCAN peripheral base address.

  • handle – FlexCAN handle pointer.

  • callback – The callback function.

  • userData – The parameter of the callback function.

status_t FLEXCAN_TransferSendNonBlocking(CAN_Type *base, flexcan_handle_t *handle, flexcan_mb_transfer_t *pMbXfer)

Sends a message using IRQ.

This function sends a message using IRQ. This is a non-blocking function, which returns right away. When messages have been sent out, the send callback function is called.

Parameters:
  • base – FlexCAN peripheral base address.

  • handle – FlexCAN handle pointer.

  • pMbXfer – FlexCAN Message Buffer transfer structure. See the flexcan_mb_transfer_t.

Return values:
  • kStatus_Success – Start Tx Message Buffer sending process successfully.

  • kStatus_Fail – Write Tx Message Buffer failed.

  • kStatus_FLEXCAN_TxBusy – Tx Message Buffer is in use.

status_t FLEXCAN_TransferReceiveNonBlocking(CAN_Type *base, flexcan_handle_t *handle, flexcan_mb_transfer_t *pMbXfer)

Receives a message using IRQ.

This function receives a message using IRQ. This is non-blocking function, which returns right away. When the message has been received, the receive callback function is called.

Parameters:
  • base – FlexCAN peripheral base address.

  • handle – FlexCAN handle pointer.

  • pMbXfer – FlexCAN Message Buffer transfer structure. See the flexcan_mb_transfer_t.

Return values:
  • kStatus_Success – - Start Rx Message Buffer receiving process successfully.

  • kStatus_FLEXCAN_RxBusy – - Rx Message Buffer is in use.

status_t FLEXCAN_TransferReceiveFifoNonBlocking(CAN_Type *base, flexcan_handle_t *handle, flexcan_fifo_transfer_t *pFifoXfer)

Receives a message from Rx FIFO using IRQ.

This function receives a message using IRQ. This is a non-blocking function, which returns right away. When all messages have been received, the receive callback function is called.

Parameters:
  • base – FlexCAN peripheral base address.

  • handle – FlexCAN handle pointer.

  • pFifoXfer – FlexCAN Rx FIFO transfer structure. See the flexcan_fifo_transfer_t.

Return values:
  • kStatus_Success – - Start Rx FIFO receiving process successfully.

  • kStatus_FLEXCAN_RxFifoBusy – - Rx FIFO is currently in use.

status_t FLEXCAN_TransferGetReceiveFifoCount(CAN_Type *base, flexcan_handle_t *handle, size_t *count)

Gets the Legacy Rx Fifo transfer status during a interrupt non-blocking receive.

Parameters:
  • base – FlexCAN peripheral base address.

  • handle – FlexCAN handle pointer.

  • count – Number of CAN messages receive so far by the non-blocking transaction.

Return values:
  • kStatus_InvalidArgument – count is Invalid.

  • kStatus_Success – Successfully return the count.

status_t FLEXCAN_TransferReceiveEnhancedFifoNonBlocking(CAN_Type *base, flexcan_handle_t *handle, flexcan_fifo_transfer_t *pFifoXfer)

Receives a message from Enhanced Rx FIFO using IRQ.

This function receives a message using IRQ. This is a non-blocking function, which returns right away. When all messages have been received, the receive callback function is called.

Parameters:
  • base – FlexCAN peripheral base address.

  • handle – FlexCAN handle pointer.

  • pFifoXfer – FlexCAN Rx FIFO transfer structure. See the ref flexcan_fifo_transfer_t.@

Return values:
  • kStatus_Success – - Start Rx FIFO receiving process successfully.

  • kStatus_FLEXCAN_RxFifoBusy – - Rx FIFO is currently in use.

static inline status_t FLEXCAN_TransferGetReceiveEnhancedFifoCount(CAN_Type *base, flexcan_handle_t *handle, size_t *count)

Gets the Enhanced Rx Fifo transfer status during a interrupt non-blocking receive.

Parameters:
  • base – FlexCAN peripheral base address.

  • handle – FlexCAN handle pointer.

  • count – Number of CAN messages receive so far by the non-blocking transaction.

Return values:
  • kStatus_InvalidArgument – count is Invalid.

  • kStatus_Success – Successfully return the count.

uint32_t FLEXCAN_GetTimeStamp(flexcan_handle_t *handle, uint8_t mbIdx)

Gets the detail index of Mailbox’s Timestamp by handle.

Then function can only be used when calling non-blocking Data transfer (TX/RX) API, After TX/RX data transfer done (User can get the status by handler’s callback function), we can get the detail index of Mailbox’s timestamp by handle, Detail non-blocking data transfer API (TX/RX) contain. -FLEXCAN_TransferSendNonBlocking -FLEXCAN_TransferFDSendNonBlocking -FLEXCAN_TransferReceiveNonBlocking -FLEXCAN_TransferFDReceiveNonBlocking -FLEXCAN_TransferReceiveFifoNonBlocking

Parameters:
  • handle – FlexCAN handle pointer.

  • mbIdx – The FlexCAN Message Buffer index.

Return values:

the – index of mailbox ‘s timestamp stored in the handle.

void FLEXCAN_TransferAbortSend(CAN_Type *base, flexcan_handle_t *handle, uint8_t mbIdx)

Aborts the interrupt driven message send process.

This function aborts the interrupt driven message send process.

Parameters:
  • base – FlexCAN peripheral base address.

  • handle – FlexCAN handle pointer.

  • mbIdx – The FlexCAN Message Buffer index.

void FLEXCAN_TransferAbortReceive(CAN_Type *base, flexcan_handle_t *handle, uint8_t mbIdx)

Aborts the interrupt driven message receive process.

This function aborts the interrupt driven message receive process.

Parameters:
  • base – FlexCAN peripheral base address.

  • handle – FlexCAN handle pointer.

  • mbIdx – The FlexCAN Message Buffer index.

void FLEXCAN_TransferAbortReceiveFifo(CAN_Type *base, flexcan_handle_t *handle)

Aborts the interrupt driven message receive from Rx FIFO process.

This function aborts the interrupt driven message receive from Rx FIFO process.

Parameters:
  • base – FlexCAN peripheral base address.

  • handle – FlexCAN handle pointer.

void FLEXCAN_TransferAbortReceiveEnhancedFifo(CAN_Type *base, flexcan_handle_t *handle)

Aborts the interrupt driven message receive from Enhanced Rx FIFO process.

This function aborts the interrupt driven message receive from Enhanced Rx FIFO process.

Parameters:
  • base – FlexCAN peripheral base address.

  • handle – FlexCAN handle pointer.

void FLEXCAN_TransferHandleIRQ(CAN_Type *base, flexcan_handle_t *handle)

FlexCAN IRQ handle function.

This function handles the FlexCAN Error, the Message Buffer, and the Rx FIFO IRQ request.

Parameters:
  • base – FlexCAN peripheral base address.

  • handle – FlexCAN handle pointer.

void FLEXCAN_MbHandleIRQ(CAN_Type *base, flexcan_handle_t *handle, uint32_t startMbIdx, uint32_t endMbIdx)

FlexCAN Message Buffer IRQ handle function.

Parameters:
  • base – FlexCAN peripheral base address.

  • handle – FlexCAN handle pointer.

  • startMbIdx – First Message Buffer to handle.

  • endMbIdx – Last Message Buffer to handle.

void FLEXCAN_EhancedRxFifoHandleIRQ(CAN_Type *base, flexcan_handle_t *handle)

FlexCAN Ehanced Rx FIFO IRQ handle function.

Parameters:
  • base – FlexCAN peripheral base address.

  • handle – FlexCAN handle pointer.

void FLEXCAN_BusoffErrorHandleIRQ(CAN_Type *base, flexcan_handle_t *handle)

FlexCAN Bus Off, Error and Warning IRQ handle function.

Parameters:
  • base – FlexCAN peripheral base address.

  • handle – FlexCAN handle pointer.

void FLEXCAN_PNWakeUpHandleIRQ(CAN_Type *base, flexcan_handle_t *handle)

FlexCAN Pretended Networking Wake-up IRQ handle function.

Parameters:
  • base – FlexCAN peripheral base address.

  • handle – FlexCAN handle pointer.

void FLEXCAN_MemoryErrorHandleIRQ(CAN_Type *base, flexcan_handle_t *handle)

FlexCAN Memory Error IRQ handle function.

Parameters:
  • base – FlexCAN peripheral base address.

  • handle – FlexCAN handle pointer.

FSL_FLEXCAN_DRIVER_VERSION

FlexCAN driver version.

FlexCAN transfer status.

Values:

enumerator kStatus_FLEXCAN_TxBusy

Tx Message Buffer is Busy.

enumerator kStatus_FLEXCAN_TxIdle

Tx Message Buffer is Idle.

enumerator kStatus_FLEXCAN_TxSwitchToRx

Remote Message is send out and Message buffer changed to Receive one.

enumerator kStatus_FLEXCAN_RxBusy

Rx Message Buffer is Busy.

enumerator kStatus_FLEXCAN_RxIdle

Rx Message Buffer is Idle.

enumerator kStatus_FLEXCAN_RxOverflow

Rx Message Buffer is Overflowed.

enumerator kStatus_FLEXCAN_RxFifoBusy

Rx Message FIFO is Busy.

enumerator kStatus_FLEXCAN_RxFifoIdle

Rx Message FIFO is Idle.

enumerator kStatus_FLEXCAN_RxFifoOverflow

Rx Message FIFO is overflowed.

enumerator kStatus_FLEXCAN_RxFifoWarning

Rx Message FIFO is almost overflowed.

enumerator kStatus_FLEXCAN_RxFifoDisabled

Rx Message FIFO is disabled during reading.

enumerator kStatus_FLEXCAN_ErrorStatus

FlexCAN Module Error and Status.

enumerator kStatus_FLEXCAN_WakeUp

FlexCAN is waken up from STOP mode.

enumerator kStatus_FLEXCAN_UnHandled

UnHadled Interrupt asserted.

enumerator kStatus_FLEXCAN_RxRemote

Rx Remote Message Received in Mail box.

enumerator kStatus_FLEXCAN_RxFifoUnderflow

Enhanced Rx Message FIFO is underflow.

enumerator kStatus_FLEXCAN_MemoryError

FlexCAN Memory Error.

enum _flexcan_frame_format

FlexCAN frame format.

Values:

enumerator kFLEXCAN_FrameFormatStandard

Standard frame format attribute.

enumerator kFLEXCAN_FrameFormatExtend

Extend frame format attribute.

enum _flexcan_frame_type

FlexCAN frame type.

Values:

enumerator kFLEXCAN_FrameTypeData

Data frame type attribute.

enumerator kFLEXCAN_FrameTypeRemote

Remote frame type attribute.

enum _flexcan_clock_source

FlexCAN clock source.

Deprecated:

Do not use the kFLEXCAN_ClkSrcOs. It has been superceded kFLEXCAN_ClkSrc0

Do not use the kFLEXCAN_ClkSrcPeri. It has been superceded kFLEXCAN_ClkSrc1

Values:

enumerator kFLEXCAN_ClkSrcOsc

FlexCAN Protocol Engine clock from Oscillator.

enumerator kFLEXCAN_ClkSrcPeri

FlexCAN Protocol Engine clock from Peripheral Clock.

enumerator kFLEXCAN_ClkSrc0

FlexCAN Protocol Engine clock selected by user as SRC == 0.

enumerator kFLEXCAN_ClkSrc1

FlexCAN Protocol Engine clock selected by user as SRC == 1.

enum _flexcan_wake_up_source

FlexCAN wake up source.

Values:

enumerator kFLEXCAN_WakeupSrcUnfiltered

FlexCAN uses unfiltered Rx input to detect edge.

enumerator kFLEXCAN_WakeupSrcFiltered

FlexCAN uses filtered Rx input to detect edge.

enum _flexcan_rx_fifo_filter_type

FlexCAN Rx Fifo Filter type.

Values:

enumerator kFLEXCAN_RxFifoFilterTypeA

One full ID (standard and extended) per ID Filter element.

enumerator kFLEXCAN_RxFifoFilterTypeB

Two full standard IDs or two partial 14-bit ID slices per ID Filter Table element.

enumerator kFLEXCAN_RxFifoFilterTypeC

Four partial 8-bit Standard or extended ID slices per ID Filter Table element.

enumerator kFLEXCAN_RxFifoFilterTypeD

All frames rejected.

enum _flexcan_mb_size

FlexCAN Message Buffer Payload size.

Values:

enumerator kFLEXCAN_8BperMB

Selects 8 bytes per Message Buffer.

enumerator kFLEXCAN_16BperMB

Selects 16 bytes per Message Buffer.

enumerator kFLEXCAN_32BperMB

Selects 32 bytes per Message Buffer.

enumerator kFLEXCAN_64BperMB

Selects 64 bytes per Message Buffer.

enum _flexcan_fd_frame_length

FlexCAN CAN FD frame supporting data length (available DLC values).

For Tx, when the Data size corresponding to DLC value stored in the MB selected for transmission is larger than the MB Payload size, FlexCAN adds the necessary number of bytes with constant 0xCC pattern to complete the expected DLC. For Rx, when the Data size corresponding to DLC value received from the CAN bus is larger than the MB Payload size, the high order bytes that do not fit the Payload size will lose.

Values:

enumerator kFLEXCAN_0BperFrame

Frame contains 0 valid data bytes.

enumerator kFLEXCAN_1BperFrame

Frame contains 1 valid data bytes.

enumerator kFLEXCAN_2BperFrame

Frame contains 2 valid data bytes.

enumerator kFLEXCAN_3BperFrame

Frame contains 3 valid data bytes.

enumerator kFLEXCAN_4BperFrame

Frame contains 4 valid data bytes.

enumerator kFLEXCAN_5BperFrame

Frame contains 5 valid data bytes.

enumerator kFLEXCAN_6BperFrame

Frame contains 6 valid data bytes.

enumerator kFLEXCAN_7BperFrame

Frame contains 7 valid data bytes.

enumerator kFLEXCAN_8BperFrame

Frame contains 8 valid data bytes.

enumerator kFLEXCAN_12BperFrame

Frame contains 12 valid data bytes.

enumerator kFLEXCAN_16BperFrame

Frame contains 16 valid data bytes.

enumerator kFLEXCAN_20BperFrame

Frame contains 20 valid data bytes.

enumerator kFLEXCAN_24BperFrame

Frame contains 24 valid data bytes.

enumerator kFLEXCAN_32BperFrame

Frame contains 32 valid data bytes.

enumerator kFLEXCAN_48BperFrame

Frame contains 48 valid data bytes.

enumerator kFLEXCAN_64BperFrame

Frame contains 64 valid data bytes.

enum _flexcan_efifo_dma_per_read_length

FlexCAN Enhanced Rx Fifo DMA transfer per read length enumerations.

Values:

enumerator kFLEXCAN_1WordPerRead

Transfer 1 32-bit words (CS).

enumerator kFLEXCAN_2WordPerRead

Transfer 2 32-bit words (CS + ID).

enumerator kFLEXCAN_3WordPerRead

Transfer 3 32-bit words (CS + ID + 1~4 bytes data).

enumerator kFLEXCAN_4WordPerRead

Transfer 4 32-bit words (CS + ID + 5~8 bytes data).

enumerator kFLEXCAN_5WordPerRead

Transfer 5 32-bit words (CS + ID + 9~12 bytes data).

enumerator kFLEXCAN_6WordPerRead

Transfer 6 32-bit words (CS + ID + 13~16 bytes data).

enumerator kFLEXCAN_7WordPerRead

Transfer 7 32-bit words (CS + ID + 17~20 bytes data).

enumerator kFLEXCAN_8WordPerRead

Transfer 8 32-bit words (CS + ID + 21~24 bytes data).

enumerator kFLEXCAN_9WordPerRead

Transfer 9 32-bit words (CS + ID + 25~28 bytes data).

enumerator kFLEXCAN_10WordPerRead

Transfer 10 32-bit words (CS + ID + 29~32 bytes data).

enumerator kFLEXCAN_11WordPerRead

Transfer 11 32-bit words (CS + ID + 33~36 bytes data).

enumerator kFLEXCAN_12WordPerRead

Transfer 12 32-bit words (CS + ID + 37~40 bytes data).

enumerator kFLEXCAN_13WordPerRead

Transfer 13 32-bit words (CS + ID + 41~44 bytes data).

enumerator kFLEXCAN_14WordPerRead

Transfer 14 32-bit words (CS + ID + 45~48 bytes data).

enumerator kFLEXCAN_15WordPerRead

Transfer 15 32-bit words (CS + ID + 49~52 bytes data).

enumerator kFLEXCAN_16WordPerRead

Transfer 16 32-bit words (CS + ID + 53~56 bytes data).

enumerator kFLEXCAN_17WordPerRead

Transfer 17 32-bit words (CS + ID + 57~60 bytes data).

enumerator kFLEXCAN_18WordPerRead

Transfer 18 32-bit words (CS + ID + 61~64 bytes data).

enumerator kFLEXCAN_19WordPerRead

Transfer 19 32-bit words (CS + ID + 64 bytes data + ID HIT).

enum _flexcan_rx_fifo_priority

FlexCAN Enhanced/Legacy Rx FIFO priority.

The matching process starts from the Rx MB(or Enhanced/Legacy Rx FIFO) with higher priority. If no MB(or Enhanced/Legacy Rx FIFO filter) is satisfied, the matching process goes on with the Enhanced/Legacy Rx FIFO(or Rx MB) with lower priority.

Values:

enumerator kFLEXCAN_RxFifoPrioLow

Matching process start from Rx Message Buffer first.

enumerator kFLEXCAN_RxFifoPrioHigh

Matching process start from Enhanced/Legacy Rx FIFO first.

enum _flexcan_interrupt_enable

FlexCAN interrupt enable enumerations.

This provides constants for the FlexCAN interrupt enable enumerations for use in the FlexCAN functions.

Note

FlexCAN Message Buffers and Legacy Rx FIFO interrupts not included in.

Values:

enumerator kFLEXCAN_BusOffInterruptEnable

Bus Off interrupt, use bit 15.

enumerator kFLEXCAN_ErrorInterruptEnable

CAN Error interrupt, use bit 14.

enumerator kFLEXCAN_TxWarningInterruptEnable

Tx Warning interrupt, use bit 11.

enumerator kFLEXCAN_RxWarningInterruptEnable

Rx Warning interrupt, use bit 10.

enumerator kFLEXCAN_WakeUpInterruptEnable

Self Wake Up interrupt, use bit 26.

enumerator kFLEXCAN_FDErrorInterruptEnable

CAN FD Error interrupt, use bit 31.

enumerator kFLEXCAN_PNMatchWakeUpInterruptEnable

PN Match Wake Up interrupt, use high word bit 17.

enumerator kFLEXCAN_PNTimeoutWakeUpInterruptEnable

PN Timeout Wake Up interrupt, use high word bit 16. Enhanced Rx FIFO Underflow interrupt, use high word bit 31.

enumerator kFLEXCAN_ERxFifoUnderflowInterruptEnable

Enhanced Rx FIFO Overflow interrupt, use high word bit 30.

enumerator kFLEXCAN_ERxFifoOverflowInterruptEnable

Enhanced Rx FIFO Watermark interrupt, use high word bit 29.

enumerator kFLEXCAN_ERxFifoWatermarkInterruptEnable

Enhanced Rx FIFO Data Avilable interrupt, use high word bit 28.

enumerator kFLEXCAN_ERxFifoDataAvlInterruptEnable
enumerator kFLEXCAN_HostAccessNCErrorInterruptEnable

Host Access With Non-Correctable Errors interrupt, use high word bit 0.

enumerator kFLEXCAN_FlexCanAccessNCErrorInterruptEnable

FlexCAN Access With Non-Correctable Errors interrupt, use high word bit 2.

enumerator kFLEXCAN_HostOrFlexCanCErrorInterruptEnable

Host or FlexCAN Access With Correctable Errors interrupt, use high word bit 3.

enum _flexcan_flags

FlexCAN status flags.

This provides constants for the FlexCAN status flags for use in the FlexCAN functions.

Note

The CPU read action clears the bits corresponding to the FlEXCAN_ErrorFlag macro, therefore user need to read status flags and distinguish which error is occur using _flexcan_error_flags enumerations.

Values:

enumerator kFLEXCAN_ErrorOverrunFlag

Error Overrun Status.

enumerator kFLEXCAN_FDErrorIntFlag

CAN FD Error Interrupt Flag.

enumerator kFLEXCAN_BusoffDoneIntFlag

Bus Off process completed Interrupt Flag.

enumerator kFLEXCAN_SynchFlag

CAN Synchronization Status.

enumerator kFLEXCAN_TxWarningIntFlag

Tx Warning Interrupt Flag.

enumerator kFLEXCAN_RxWarningIntFlag

Rx Warning Interrupt Flag.

enumerator kFLEXCAN_IdleFlag

FlexCAN In IDLE Status.

enumerator kFLEXCAN_FaultConfinementFlag

FlexCAN Fault Confinement State.

enumerator kFLEXCAN_TransmittingFlag

FlexCAN In Transmission Status.

enumerator kFLEXCAN_ReceivingFlag

FlexCAN In Reception Status.

enumerator kFLEXCAN_BusOffIntFlag

Bus Off Interrupt Flag.

enumerator kFLEXCAN_ErrorIntFlag

CAN Error Interrupt Flag.

enumerator kFLEXCAN_WakeUpIntFlag

Self Wake-Up Interrupt Flag.

enumerator kFLEXCAN_ErrorFlag
enumerator kFLEXCAN_PNMatchIntFlag

PN Matching Event Interrupt Flag.

enumerator kFLEXCAN_PNTimeoutIntFlag

PN Timeout Event Interrupt Flag.

enumerator kFLEXCAN_ERxFifoUnderflowIntFlag

Enhanced Rx FIFO underflow Interrupt Flag.

enumerator kFLEXCAN_ERxFifoOverflowIntFlag

Enhanced Rx FIFO overflow Interrupt Flag.

enumerator kFLEXCAN_ERxFifoWatermarkIntFlag

Enhanced Rx FIFO watermark Interrupt Flag.

enumerator kFLEXCAN_ERxFifoDataAvlIntFlag

Enhanced Rx FIFO data available Interrupt Flag.

enumerator kFLEXCAN_ERxFifoEmptyFlag

Enhanced Rx FIFO empty status.

enumerator kFLEXCAN_ERxFifoFullFlag

Enhanced Rx FIFO full status.

enumerator kFLEXCAN_HostAccessNonCorrectableErrorIntFlag

Host Access With Non-Correctable Error Interrupt Flag.

enumerator kFLEXCAN_FlexCanAccessNonCorrectableErrorIntFlag

FlexCAN Access With Non-Correctable Error Interrupt Flag.

enumerator kFLEXCAN_CorrectableErrorIntFlag

Correctable Error Interrupt Flag.

enumerator kFLEXCAN_HostAccessNonCorrectableErrorOverrunFlag

Host Access With Non-Correctable Error Interrupt Overrun Flag.

enumerator kFLEXCAN_FlexCanAccessNonCorrectableErrorOverrunFlag

FlexCAN Access With Non-Correctable Error Interrupt Overrun Flag.

enumerator kFLEXCAN_CorrectableErrorOverrunFlag

Correctable Error Interrupt Overrun Flag.

enumerator kFLEXCAN_AllMemoryErrorIntFlag

All Memory Error Interrupt Flags.

enumerator kFLEXCAN_AllMemoryErrorFlag

All Memory Error Flags.

enum _flexcan_error_flags

FlexCAN error status flags.

The FlexCAN Error Status enumerations is used to report current error of the FlexCAN bus. This enumerations should be used with KFLEXCAN_ErrorFlag in _flexcan_flags enumerations to ditermine which error is generated.

Values:

enumerator kFLEXCAN_FDStuffingError

Stuffing Error.

enumerator kFLEXCAN_FDFormError

Form Error.

enumerator kFLEXCAN_FDCrcError

Cyclic Redundancy Check Error.

enumerator kFLEXCAN_FDBit0Error

Unable to send dominant bit.

enumerator kFLEXCAN_FDBit1Error

Unable to send recessive bit.

enumerator kFLEXCAN_TxErrorWarningFlag

Tx Error Warning Status.

enumerator kFLEXCAN_RxErrorWarningFlag

Rx Error Warning Status.

enumerator kFLEXCAN_StuffingError

Stuffing Error.

enumerator kFLEXCAN_FormError

Form Error.

enumerator kFLEXCAN_CrcError

Cyclic Redundancy Check Error.

enumerator kFLEXCAN_AckError

Received no ACK on transmission.

enumerator kFLEXCAN_Bit0Error

Unable to send dominant bit.

enumerator kFLEXCAN_Bit1Error

Unable to send recessive bit.

FlexCAN Legacy Rx FIFO status flags.

The FlexCAN Legacy Rx FIFO Status enumerations are used to determine the status of the Rx FIFO. Because Rx FIFO occupy the MB0 ~ MB7 (Rx Fifo filter also occupies more Message Buffer space), Rx FIFO status flags are mapped to the corresponding Message Buffer status flags.

Values:

enumerator kFLEXCAN_RxFifoOverflowFlag

Rx FIFO overflow flag.

enumerator kFLEXCAN_RxFifoWarningFlag

Rx FIFO almost full flag.

enumerator kFLEXCAN_RxFifoFrameAvlFlag

Frames available in Rx FIFO flag.

enum _flexcan_memory_error_type

FlexCAN Memory Error Type.

Values:

enumerator kFLEXCAN_CorrectableError

The memory error is correctable which means on bit error.

enumerator kFLEXCAN_NonCorrectableError

The memory error is non-correctable which means two bit errors.

enum _flexcan_memory_access_type

FlexCAN Memory Access Type.

Values:

enumerator kFLEXCAN_MoveOutFlexCanAccess

The memory error was detected during move-out FlexCAN access.

enumerator kFLEXCAN_MoveInAccess

The memory error was detected during move-in FlexCAN access.

enumerator kFLEXCAN_TxArbitrationAccess

The memory error was detected during Tx Arbitration FlexCAN access.

enumerator kFLEXCAN_RxMatchingAccess

The memory error was detected during Rx Matching FlexCAN access.

enumerator kFLEXCAN_MoveOutHostAccess

The memory error was detected during Rx Matching Host (CPU) access.

enum _flexcan_byte_error_syndrome

FlexCAN Memory Error Byte Syndrome.

Values:

enumerator kFLEXCAN_NoError

No bit error in this byte.

enumerator kFLEXCAN_ParityBits0Error

Parity bit 0 error in this byte.

enumerator kFLEXCAN_ParityBits1Error

Parity bit 1 error in this byte.

enumerator kFLEXCAN_ParityBits2Error

Parity bit 2 error in this byte.

enumerator kFLEXCAN_ParityBits3Error

Parity bit 3 error in this byte.

enumerator kFLEXCAN_ParityBits4Error

Parity bit 4 error in this byte.

enumerator kFLEXCAN_DataBits0Error

Data bit 0 error in this byte.

enumerator kFLEXCAN_DataBits1Error

Data bit 1 error in this byte.

enumerator kFLEXCAN_DataBits2Error

Data bit 2 error in this byte.

enumerator kFLEXCAN_DataBits3Error

Data bit 3 error in this byte.

enumerator kFLEXCAN_DataBits4Error

Data bit 4 error in this byte.

enumerator kFLEXCAN_DataBits5Error

Data bit 5 error in this byte.

enumerator kFLEXCAN_DataBits6Error

Data bit 6 error in this byte.

enumerator kFLEXCAN_DataBits7Error

Data bit 7 error in this byte.

enumerator kFLEXCAN_AllZeroError

All-zeros non-correctable error in this byte.

enumerator kFLEXCAN_AllOneError

All-ones non-correctable error in this byte.

enumerator kFLEXCAN_NonCorrectableErrors

Non-correctable error in this byte.

enum _flexcan_pn_match_source

FlexCAN Pretended Networking match source selection.

Values:

enumerator kFLEXCAN_PNMatSrcID

Message match with ID filtering.

enumerator kFLEXCAN_PNMatSrcIDAndData

Message match with ID filtering and payload filtering.

enum _flexcan_pn_match_mode

FlexCAN Pretended Networking mode match type.

Values:

enumerator kFLEXCAN_PNMatModeEqual

Match upon ID/Payload contents against an exact target value.

enumerator kFLEXCAN_PNMatModeGreater

Match upon an ID/Payload value greater than or equal to a specified target value.

enumerator kFLEXCAN_PNMatModeSmaller

Match upon an ID/Payload value smaller than or equal to a specified target value.

enumerator kFLEXCAN_PNMatModeRange

Match upon an ID/Payload value inside a range, greater than or equal to a specified lower limit, and smaller than or equal to a specified upper limit

typedef enum _flexcan_frame_format flexcan_frame_format_t

FlexCAN frame format.

typedef enum _flexcan_frame_type flexcan_frame_type_t

FlexCAN frame type.

typedef enum _flexcan_clock_source flexcan_clock_source_t

FlexCAN clock source.

Deprecated:

Do not use the kFLEXCAN_ClkSrcOs. It has been superceded kFLEXCAN_ClkSrc0

Do not use the kFLEXCAN_ClkSrcPeri. It has been superceded kFLEXCAN_ClkSrc1

typedef enum _flexcan_wake_up_source flexcan_wake_up_source_t

FlexCAN wake up source.

typedef enum _flexcan_rx_fifo_filter_type flexcan_rx_fifo_filter_type_t

FlexCAN Rx Fifo Filter type.

typedef enum _flexcan_mb_size flexcan_mb_size_t

FlexCAN Message Buffer Payload size.

typedef enum _flexcan_efifo_dma_per_read_length flexcan_efifo_dma_per_read_length_t

FlexCAN Enhanced Rx Fifo DMA transfer per read length enumerations.

typedef enum _flexcan_rx_fifo_priority flexcan_rx_fifo_priority_t

FlexCAN Enhanced/Legacy Rx FIFO priority.

The matching process starts from the Rx MB(or Enhanced/Legacy Rx FIFO) with higher priority. If no MB(or Enhanced/Legacy Rx FIFO filter) is satisfied, the matching process goes on with the Enhanced/Legacy Rx FIFO(or Rx MB) with lower priority.

typedef enum _flexcan_memory_error_type flexcan_memory_error_type_t

FlexCAN Memory Error Type.

typedef enum _flexcan_memory_access_type flexcan_memory_access_type_t

FlexCAN Memory Access Type.

typedef enum _flexcan_byte_error_syndrome flexcan_byte_error_syndrome_t

FlexCAN Memory Error Byte Syndrome.

typedef struct _flexcan_memory_error_report_status flexcan_memory_error_report_status_t

FlexCAN memory error register status structure.

This structure contains the memory access properties that caused a memory error access. It is used as the parameter of FLEXCAN_GetMemoryErrorReportStatus() function. And user can use FLEXCAN_GetMemoryErrorReportStatus to get the status of the last memory error access.

typedef struct _flexcan_frame flexcan_frame_t

FlexCAN message frame structure.

typedef struct _flexcan_fd_frame flexcan_fd_frame_t

CAN FD message frame structure.

The CAN FD message supporting up to sixty four bytes can be used for a data frame, depending on the length selected for the message buffers. The length should be a enumeration member, see _flexcan_fd_frame_length.

typedef struct _flexcan_timing_config flexcan_timing_config_t

FlexCAN protocol timing characteristic configuration structure.

typedef struct _flexcan_config flexcan_config_t

FlexCAN module configuration structure.

Deprecated:

Do not use the baudRate. It has been superceded bitRate

Do not use the baudRateFD. It has been superceded bitRateFD

typedef struct _flexcan_rx_mb_config flexcan_rx_mb_config_t

FlexCAN Receive Message Buffer configuration structure.

This structure is used as the parameter of FLEXCAN_SetRxMbConfig() function. The FLEXCAN_SetRxMbConfig() function is used to configure FlexCAN Receive Message Buffer. The function abort previous receiving process, clean the Message Buffer and activate the Rx Message Buffer using given Message Buffer setting.

typedef enum _flexcan_pn_match_source flexcan_pn_match_source_t

FlexCAN Pretended Networking match source selection.

typedef enum _flexcan_pn_match_mode flexcan_pn_match_mode_t

FlexCAN Pretended Networking mode match type.

typedef struct _flexcan_pn_config flexcan_pn_config_t

FlexCAN Pretended Networking configuration structure.

This structure is used as the parameter of FLEXCAN_SetPNConfig() function. The FLEXCAN_SetPNConfig() function is used to configure FlexCAN Networking work mode.

typedef struct _flexcan_rx_fifo_config flexcan_rx_fifo_config_t

FlexCAN Legacy Rx FIFO configuration structure.

typedef struct _flexcan_enhanced_rx_fifo_std_id_filter flexcan_enhanced_rx_fifo_std_id_filter_t

FlexCAN Enhanced Rx FIFO Standard ID filter element structure.

typedef struct _flexcan_enhanced_rx_fifo_ext_id_filter flexcan_enhanced_rx_fifo_ext_id_filter_t

FlexCAN Enhanced Rx FIFO Extended ID filter element structure.

typedef struct _flexcan_enhanced_rx_fifo_config flexcan_enhanced_rx_fifo_config_t

FlexCAN Enhanced Rx FIFO configuration structure.

typedef struct _flexcan_mb_transfer flexcan_mb_transfer_t

FlexCAN Message Buffer transfer.

typedef struct _flexcan_fifo_transfer flexcan_fifo_transfer_t

FlexCAN Rx FIFO transfer.

typedef struct _flexcan_handle flexcan_handle_t

FlexCAN handle structure definition.

typedef void (*flexcan_transfer_callback_t)(CAN_Type *base, flexcan_handle_t *handle, status_t status, uint64_t result, void *userData)
FLEXCAN_WAIT_TIMEOUT
FLEXCAN_POLLING_TIMEOUT

Max loops to wait for polling transfer.

FLEXCAN_MODULE_TIMEOUT

Max loops to wait for FlexCAN register access complete.

DLC_LENGTH_DECODE(dlc)

FlexCAN frame length helper macro.

FLEXCAN_ID_STD(id)

FlexCAN Frame ID helper macro.

Standard Frame ID helper macro.

FLEXCAN_ID_EXT(id)

Extend Frame ID helper macro.

FLEXCAN_RX_MB_STD_MASK(id, rtr, ide)

FlexCAN Rx Message Buffer Mask helper macro.

Standard Rx Message Buffer Mask helper macro.

FLEXCAN_RX_MB_EXT_MASK(id, rtr, ide)

Extend Rx Message Buffer Mask helper macro.

FLEXCAN_RX_FIFO_STD_MASK_TYPE_A(id, rtr, ide)

FlexCAN Legacy Rx FIFO Mask helper macro.

Standard Rx FIFO Mask helper macro Type A helper macro.

FLEXCAN_RX_FIFO_STD_MASK_TYPE_B_HIGH(id, rtr, ide)

Standard Rx FIFO Mask helper macro Type B upper part helper macro.

FLEXCAN_RX_FIFO_STD_MASK_TYPE_B_LOW(id, rtr, ide)

Standard Rx FIFO Mask helper macro Type B lower part helper macro.

FLEXCAN_RX_FIFO_STD_MASK_TYPE_C_HIGH(id)

Standard Rx FIFO Mask helper macro Type C upper part helper macro.

FLEXCAN_RX_FIFO_STD_MASK_TYPE_C_MID_HIGH(id)

Standard Rx FIFO Mask helper macro Type C mid-upper part helper macro.

FLEXCAN_RX_FIFO_STD_MASK_TYPE_C_MID_LOW(id)

Standard Rx FIFO Mask helper macro Type C mid-lower part helper macro.

FLEXCAN_RX_FIFO_STD_MASK_TYPE_C_LOW(id)

Standard Rx FIFO Mask helper macro Type C lower part helper macro.

FLEXCAN_RX_FIFO_EXT_MASK_TYPE_A(id, rtr, ide)

Extend Rx FIFO Mask helper macro Type A helper macro.

FLEXCAN_RX_FIFO_EXT_MASK_TYPE_B_HIGH(id, rtr, ide)

Extend Rx FIFO Mask helper macro Type B upper part helper macro.

FLEXCAN_RX_FIFO_EXT_MASK_TYPE_B_LOW(id, rtr, ide)

Extend Rx FIFO Mask helper macro Type B lower part helper macro.

FLEXCAN_RX_FIFO_EXT_MASK_TYPE_C_HIGH(id)

Extend Rx FIFO Mask helper macro Type C upper part helper macro.

FLEXCAN_RX_FIFO_EXT_MASK_TYPE_C_MID_HIGH(id)

Extend Rx FIFO Mask helper macro Type C mid-upper part helper macro.

FLEXCAN_RX_FIFO_EXT_MASK_TYPE_C_MID_LOW(id)

Extend Rx FIFO Mask helper macro Type C mid-lower part helper macro.

FLEXCAN_RX_FIFO_EXT_MASK_TYPE_C_LOW(id)

Extend Rx FIFO Mask helper macro Type C lower part helper macro.

FLEXCAN_RX_FIFO_STD_FILTER_TYPE_A(id, rtr, ide)

FlexCAN Rx FIFO Filter helper macro.

Standard Rx FIFO Filter helper macro Type A helper macro.

FLEXCAN_RX_FIFO_STD_FILTER_TYPE_B_HIGH(id, rtr, ide)

Standard Rx FIFO Filter helper macro Type B upper part helper macro.

FLEXCAN_RX_FIFO_STD_FILTER_TYPE_B_LOW(id, rtr, ide)

Standard Rx FIFO Filter helper macro Type B lower part helper macro.

FLEXCAN_RX_FIFO_STD_FILTER_TYPE_C_HIGH(id)

Standard Rx FIFO Filter helper macro Type C upper part helper macro.

FLEXCAN_RX_FIFO_STD_FILTER_TYPE_C_MID_HIGH(id)

Standard Rx FIFO Filter helper macro Type C mid-upper part helper macro.

FLEXCAN_RX_FIFO_STD_FILTER_TYPE_C_MID_LOW(id)

Standard Rx FIFO Filter helper macro Type C mid-lower part helper macro.

FLEXCAN_RX_FIFO_STD_FILTER_TYPE_C_LOW(id)

Standard Rx FIFO Filter helper macro Type C lower part helper macro.

FLEXCAN_RX_FIFO_EXT_FILTER_TYPE_A(id, rtr, ide)

Extend Rx FIFO Filter helper macro Type A helper macro.

FLEXCAN_RX_FIFO_EXT_FILTER_TYPE_B_HIGH(id, rtr, ide)

Extend Rx FIFO Filter helper macro Type B upper part helper macro.

FLEXCAN_RX_FIFO_EXT_FILTER_TYPE_B_LOW(id, rtr, ide)

Extend Rx FIFO Filter helper macro Type B lower part helper macro.

FLEXCAN_RX_FIFO_EXT_FILTER_TYPE_C_HIGH(id)

Extend Rx FIFO Filter helper macro Type C upper part helper macro.

FLEXCAN_RX_FIFO_EXT_FILTER_TYPE_C_MID_HIGH(id)

Extend Rx FIFO Filter helper macro Type C mid-upper part helper macro.

FLEXCAN_RX_FIFO_EXT_FILTER_TYPE_C_MID_LOW(id)

Extend Rx FIFO Filter helper macro Type C mid-lower part helper macro.

FLEXCAN_RX_FIFO_EXT_FILTER_TYPE_C_LOW(id)

Extend Rx FIFO Filter helper macro Type C lower part helper macro.

ENHANCED_RX_FIFO_FSCH(x)

FlexCAN Enhanced Rx FIFO Filter and Mask helper macro.

RTR_STD_HIGH(x)
RTR_STD_LOW(x)
RTR_EXT(x)
ID_STD_LOW(id)
ID_STD_HIGH(id)
ID_EXT(id)
FLEXCAN_ENHANCED_RX_FIFO_STD_MASK_AND_FILTER(id, rtr, id_mask, rtr_mask)

Standard ID filter element with filter + mask scheme.

FLEXCAN_ENHANCED_RX_FIFO_STD_FILTER_WITH_RANGE(id_upper, rtr, id_lower, rtr_mask)

Standard ID filter element with filter range.

FLEXCAN_ENHANCED_RX_FIFO_STD_TWO_FILTERS(id1, rtr1, id2, rtr2)

Standard ID filter element with two filters without masks.

FLEXCAN_ENHANCED_RX_FIFO_EXT_MASK_AND_FILTER_LOW(id, rtr)

Extended ID filter element with filter + mask scheme low word.

FLEXCAN_ENHANCED_RX_FIFO_EXT_MASK_AND_FILTER_HIGH(id_mask, rtr_mask)

Extended ID filter element with filter + mask scheme high word.

FLEXCAN_ENHANCED_RX_FIFO_EXT_FILTER_WITH_RANGE_LOW(id_upper, rtr)

Extended ID filter element with range scheme low word.

FLEXCAN_ENHANCED_RX_FIFO_EXT_FILTER_WITH_RANGE_HIGH(id_lower, rtr_mask)

Extended ID filter element with range scheme high word.

FLEXCAN_ENHANCED_RX_FIFO_EXT_TWO_FILTERS_LOW(id2, rtr2)

Extended ID filter element with two filters without masks low word.

FLEXCAN_ENHANCED_RX_FIFO_EXT_TWO_FILTERS_HIGH(id1, rtr1)

Extended ID filter element with two filters without masks high word.

FLEXCAN_PN_STD_MASK(id, rtr)

FlexCAN Pretended Networking ID Mask helper macro.

Standard Rx Message Buffer Mask helper macro.

FLEXCAN_PN_EXT_MASK(id, rtr)

Extend Rx Message Buffer Mask helper macro.

FLEXCAN_PN_INT_MASK(x)

FlexCAN interrupt/status flag helper macro.

FLEXCAN_PN_INT_UNMASK(x)
FLEXCAN_PN_STATUS_MASK(x)
FLEXCAN_PN_STATUS_UNMASK(x)
FLEXCAN_EFIFO_INT_MASK(x)
FLEXCAN_EFIFO_INT_UNMASK(x)
FLEXCAN_EFIFO_STATUS_MASK(x)
FLEXCAN_EFIFO_STATUS_UNMASK(x)
FLEXCAN_MECR_INT_MASK(x)
FLEXCAN_MECR_INT_UNMASK(x)
FLEXCAN_MECR_STATUS_MASK(x)
FLEXCAN_MECR_STATUS_UNMASK(x)
FLEXCAN_ERROR_AND_STATUS_INT_FLAG
FLEXCAN_PNWAKE_UP_FLAG
FLEXCAN_WAKE_UP_FLAG
FLEXCAN_MEMORY_ERROR_INT_FLAG
FLEXCAN_ENHANCED_RX_FIFO_INT_FLAG

FlexCAN Enhanced Rx FIFO base address helper macro.

E_RX_FIFO(base)
FLEXCAN_CALLBACK(x)

FlexCAN transfer callback function.

The FlexCAN transfer callback returns a value from the underlying layer. If the status equals to kStatus_FLEXCAN_ErrorStatus, the result parameter is the Content of FlexCAN status register which can be used to get the working status(or error status) of FlexCAN module. If the status equals to other FlexCAN Message Buffer transfer status, the result is the index of Message Buffer that generate transfer event. If the status equals to other FlexCAN Message Buffer transfer status, the result is meaningless and should be Ignored.

struct _flexcan_memory_error_report_status
#include <fsl_flexcan.h>

FlexCAN memory error register status structure.

This structure contains the memory access properties that caused a memory error access. It is used as the parameter of FLEXCAN_GetMemoryErrorReportStatus() function. And user can use FLEXCAN_GetMemoryErrorReportStatus to get the status of the last memory error access.

Public Members

flexcan_memory_error_type_t errorType

The type of memory error that giving rise to the report.

flexcan_memory_access_type_t accessType

The type of memory access that giving rise to the memory error.

uint16_t accessAddress

The address where memory error detected.

uint32_t errorData

The raw data word read from memory with error.

struct _flexcan_frame
#include <fsl_flexcan.h>

FlexCAN message frame structure.

struct _flexcan_fd_frame
#include <fsl_flexcan.h>

CAN FD message frame structure.

The CAN FD message supporting up to sixty four bytes can be used for a data frame, depending on the length selected for the message buffers. The length should be a enumeration member, see _flexcan_fd_frame_length.

Public Members

uint32_t idhit

Note

ID HIT offset is changed dynamically according to data length code (DLC), when DLC is 15, they will be located below. Using FLEXCAN_FixEnhancedRxFifoFrameIdHit API is recommended to ensure this idhit value is correct. CAN Enhanced Rx FIFO filter hit id (This value is only used in Enhanced Rx FIFO receive mode).

struct _flexcan_timing_config
#include <fsl_flexcan.h>

FlexCAN protocol timing characteristic configuration structure.

Public Members

uint32_t preDivider

Classic CAN or CAN FD nominal phase bit rate prescaler.

uint32_t rJumpwidth

Classic CAN or CAN FD nominal phase Re-sync Jump Width.

uint32_t phaseSeg1

Classic CAN or CAN FD nominal phase Segment 1.

uint32_t phaseSeg2

Classic CAN or CAN FD nominal phase Segment 2.

uint32_t propSeg

Classic CAN or CAN FD nominal phase Propagation Segment.

uint32_t fpreDivider

CAN FD data phase bit rate prescaler.

uint32_t frJumpwidth

CAN FD data phase Re-sync Jump Width.

uint32_t fphaseSeg1

CAN FD data phase Phase Segment 1.

uint32_t fphaseSeg2

CAN FD data phase Phase Segment 2.

uint32_t fpropSeg

CAN FD data phase Propagation Segment.

struct _flexcan_config
#include <fsl_flexcan.h>

FlexCAN module configuration structure.

Deprecated:

Do not use the baudRate. It has been superceded bitRate

Do not use the baudRateFD. It has been superceded bitRateFD

Public Members

flexcan_clock_source_t clkSrc

Clock source for FlexCAN Protocol Engine.

flexcan_wake_up_source_t wakeupSrc

Wake up source selection.

uint8_t maxMbNum

The maximum number of Message Buffers used by user.

bool enableLoopBack

Enable or Disable Loop Back Self Test Mode.

bool enableTimerSync

Enable or Disable Timer Synchronization.

bool enableSelfWakeup

Enable or Disable Self Wakeup Mode.

bool enableIndividMask

Enable or Disable Rx Individual Mask and Queue feature.

bool disableSelfReception

Enable or Disable Self Reflection.

bool enableListenOnlyMode

Enable or Disable Listen Only Mode.

bool enableDoze

Enable or Disable Doze Mode.

bool enablePretendedeNetworking

Enable or Disable the Pretended Networking mode.

bool enableMemoryErrorControl

Enable or Disable the memory errors detection and correction mechanism.

bool enableNonCorrectableErrorEnterFreeze

Enable or Disable Non-Correctable Errors In FlexCAN Access Put Device In Freeze Mode.

bool enableTransceiverDelayMeasure

Enable or Disable the transceiver delay measurement, when it is enabled, then the secondary sample point position is determined by the sum of the transceiver delay measurement plus the enhanced TDC offset.

bool enableRemoteRequestFrameStored

true: Store Remote Request Frame in the same fashion of data frame. false: Generate an automatic Remote Response Frame.

struct _flexcan_rx_mb_config
#include <fsl_flexcan.h>

FlexCAN Receive Message Buffer configuration structure.

This structure is used as the parameter of FLEXCAN_SetRxMbConfig() function. The FLEXCAN_SetRxMbConfig() function is used to configure FlexCAN Receive Message Buffer. The function abort previous receiving process, clean the Message Buffer and activate the Rx Message Buffer using given Message Buffer setting.

Public Members

uint32_t id

CAN Message Buffer Frame Identifier, should be set using FLEXCAN_ID_EXT() or FLEXCAN_ID_STD() macro.

flexcan_frame_format_t format

CAN Frame Identifier format(Standard of Extend).

flexcan_frame_type_t type

CAN Frame Type(Data or Remote for classical CAN only).

struct _flexcan_pn_config
#include <fsl_flexcan.h>

FlexCAN Pretended Networking configuration structure.

This structure is used as the parameter of FLEXCAN_SetPNConfig() function. The FLEXCAN_SetPNConfig() function is used to configure FlexCAN Networking work mode.

Public Members

bool enableTimeout

Enable or Disable timeout event trigger wakeup.

uint16_t timeoutValue

The timeout value that generates a wakeup event, the counter timer is incremented based on 64 times the CAN Bit Time unit.

bool enableMatch

Enable or Disable match event trigger wakeup.

flexcan_pn_match_source_t matchSrc

Selects the match source (ID and/or data match) to trigger wakeup.

uint8_t matchNum

The number of times a given message must match the predefined ID and/or data before generating a wakeup event, range in 0x1 ~ 0xFF.

flexcan_pn_match_mode_t idMatchMode

The ID match type.

flexcan_pn_match_mode_t dataMatchMode

The data match type.

uint32_t idLower

The ID target values 1 which used either for ID match “equal to”, “smaller than”, “greater than” comparisons, or as the lower limit value in ID match “range detection”.

uint32_t idUpper

The ID target values 2 which used only as the upper limit value in ID match “range

detection” or used to store the ID mask in “equal to”.

uint8_t lengthLower

The lower limit for length of data bytes which used only in data match “range

detection”. Range in 0x0 ~ 0x8.

uint8_t lengthUpper

The upper limit for length of data bytes which used only in data match “range

detection”. Range in 0x0 ~ 0x8.

struct _flexcan_rx_fifo_config
#include <fsl_flexcan.h>

FlexCAN Legacy Rx FIFO configuration structure.

Public Members

uint32_t *idFilterTable

Pointer to the FlexCAN Legacy Rx FIFO identifier filter table.

uint8_t idFilterNum

The FlexCAN Legacy Rx FIFO Filter elements quantity.

flexcan_rx_fifo_filter_type_t idFilterType

The FlexCAN Legacy Rx FIFO Filter type.

flexcan_rx_fifo_priority_t priority

The FlexCAN Legacy Rx FIFO receive priority.

struct _flexcan_enhanced_rx_fifo_std_id_filter
#include <fsl_flexcan.h>

FlexCAN Enhanced Rx FIFO Standard ID filter element structure.

Public Members

uint32_t filterType

FlexCAN internal Free-Running Counter Time Stamp.

uint32_t rtr1

CAN FD frame data length code (DLC), range see _flexcan_fd_frame_length, When the length <= 8, it equal to the data length, otherwise the number of valid frame data is not equal to the length value. user can use DLC_LENGTH_DECODE(length) macro to get the number of valid data bytes.

uint32_t std1

CAN Frame Type(DATA or REMOTE).

uint32_t rtr2

CAN Frame Identifier(STD or EXT format).

uint32_t std2

Substitute Remote request.

struct _flexcan_enhanced_rx_fifo_ext_id_filter
#include <fsl_flexcan.h>

FlexCAN Enhanced Rx FIFO Extended ID filter element structure.

Public Members

uint32_t filterType

FlexCAN internal Free-Running Counter Time Stamp.

uint32_t rtr1

CAN FD frame data length code (DLC), range see _flexcan_fd_frame_length, When the length <= 8, it equal to the data length, otherwise the number of valid frame data is not equal to the length value. user can use DLC_LENGTH_DECODE(length) macro to get the number of valid data bytes.

uint32_t std1

CAN Frame Type(DATA or REMOTE).

uint32_t rtr2

CAN Frame Identifier(STD or EXT format).

uint32_t std2

Substitute Remote request.

struct _flexcan_enhanced_rx_fifo_config
#include <fsl_flexcan.h>

FlexCAN Enhanced Rx FIFO configuration structure.

Public Members

uint32_t *idFilterTable

Pointer to the FlexCAN Enhanced Rx FIFO identifier filter table, each table member occupies 32 bit word, table size should be equal to idFilterNum. There are two types of Enhanced Rx FIFO filter elements that can be stored in table : extended-ID filter element (1 word, occupie 1 table members) and standard-ID filter element (2 words, occupies 2 table members), the extended-ID filter element needs to be placed in front of the table.

uint8_t idFilterPairNum

idFilterPairNum is the Enhanced Rx FIFO identifier filter element pair numbers, each pair of filter elements occupies 2 words and can consist of one extended ID filter element or two standard ID filter elements.

uint8_t extendIdFilterNum

The number of extended ID filter element items in the FlexCAN enhanced Rx FIFO identifier filter table, each extended-ID filter element occupies 2 words, extendIdFilterNum need less than or equal to idFilterPairNum.

uint8_t fifoWatermark

(fifoWatermark + 1) is the minimum number of CAN messages stored in the Enhanced RX FIFO which can trigger FIFO watermark interrupt or a DMA request.

flexcan_efifo_dma_per_read_length_t dmaPerReadLength

Define the length of each read of the Enhanced RX FIFO element by the DAM, see _flexcan_fd_frame_length.

flexcan_rx_fifo_priority_t priority

The FlexCAN Enhanced Rx FIFO receive priority.

struct _flexcan_mb_transfer
#include <fsl_flexcan.h>

FlexCAN Message Buffer transfer.

Public Members

flexcan_frame_t *frame

The buffer of CAN Message to be transfer.

uint8_t mbIdx

The index of Message buffer used to transfer Message.

struct _flexcan_fifo_transfer
#include <fsl_flexcan.h>

FlexCAN Rx FIFO transfer.

Public Members

flexcan_fd_frame_t *framefd

The buffer of CAN Message to be received from Enhanced Rx FIFO.

flexcan_frame_t *frame

The buffer of CAN Message to be received from Legacy Rx FIFO.

size_t frameNum

Number of CAN Message need to be received from Legacy or Ehanced Rx FIFO.

struct _flexcan_handle
#include <fsl_flexcan.h>

FlexCAN handle structure.

Public Members

flexcan_transfer_callback_t callback

Callback function.

void *userData

FlexCAN callback function parameter.

flexcan_frame_t *volatile mbFrameBuf[CAN_WORD1_COUNT]

The buffer for received CAN data from Message Buffers.

flexcan_fd_frame_t *volatile mbFDFrameBuf[CAN_WORD1_COUNT]

The buffer for received CAN FD data from Message Buffers.

flexcan_frame_t *volatile rxFifoFrameBuf

The buffer for received CAN data from Legacy Rx FIFO.

flexcan_fd_frame_t *volatile rxFifoFDFrameBuf

The buffer for received CAN FD data from Ehanced Rx FIFO.

size_t rxFifoFrameNum

The number of CAN messages remaining to be received from Legacy or Ehanced Rx FIFO.

size_t rxFifoTransferTotalNum

Total CAN Message number need to be received from Legacy or Ehanced Rx FIFO.

volatile uint8_t mbState[CAN_WORD1_COUNT]

Message Buffer transfer state.

volatile uint8_t rxFifoState

Rx FIFO transfer state.

volatile uint32_t timestamp[CAN_WORD1_COUNT]

Mailbox transfer timestamp.

struct byteStatus

Public Members

bool byteIsRead

The byte n (0~3) was read or not. The type of error and which bit in byte (n) is affected by the error.

struct __unnamed75__

Public Members

uint32_t timestamp

FlexCAN internal Free-Running Counter Time Stamp.

uint32_t length

CAN frame data length in bytes (Range: 0~8).

uint32_t type

CAN Frame Type(DATA or REMOTE).

uint32_t format

CAN Frame Identifier(STD or EXT format).

uint32_t __pad0__

Reserved.

uint32_t idhit

CAN Rx FIFO filter hit id(This value is only used in Rx FIFO receive mode).

struct __unnamed77__

Public Members

uint32_t id

CAN Frame Identifier, should be set using FLEXCAN_ID_EXT() or FLEXCAN_ID_STD() macro.

uint32_t __pad0__

Reserved.

union __unnamed79__

Public Members

struct _flexcan_frame
struct _flexcan_frame
struct __unnamed81__

Public Members

uint32_t dataWord0

CAN Frame payload word0.

uint32_t dataWord1

CAN Frame payload word1.

struct __unnamed83__

Public Members

uint8_t dataByte3

CAN Frame payload byte3.

uint8_t dataByte2

CAN Frame payload byte2.

uint8_t dataByte1

CAN Frame payload byte1.

uint8_t dataByte0

CAN Frame payload byte0.

uint8_t dataByte7

CAN Frame payload byte7.

uint8_t dataByte6

CAN Frame payload byte6.

uint8_t dataByte5

CAN Frame payload byte5.

uint8_t dataByte4

CAN Frame payload byte4.

struct __unnamed85__

Public Members

uint32_t timestamp

FlexCAN internal Free-Running Counter Time Stamp.

uint32_t length

CAN FD frame data length code (DLC), range see _flexcan_fd_frame_length, When the length <= 8, it equal to the data length, otherwise the number of valid frame data is not equal to the length value. user can use DLC_LENGTH_DECODE(length) macro to get the number of valid data bytes.

uint32_t type

CAN Frame Type(DATA only).

uint32_t format

CAN Frame Identifier(STD or EXT format).

uint32_t srr

Substitute Remote request.

uint32_t esi

Error State Indicator.

uint32_t brs

Bit Rate Switch.

uint32_t edl

Extended Data Length.

struct __unnamed87__

Public Members

uint32_t id

CAN Frame Identifier, should be set using FLEXCAN_ID_EXT() or FLEXCAN_ID_STD() macro.

uint32_t __pad0__

Reserved.

union __unnamed89__

Public Members

struct _flexcan_fd_frame
struct _flexcan_fd_frame
struct __unnamed91__

Public Members

uint32_t dataWord[16]

CAN FD Frame payload, 16 double word maximum.

struct __unnamed93__

Public Members

uint8_t dataByte3

CAN Frame payload byte3.

uint8_t dataByte2

CAN Frame payload byte2.

uint8_t dataByte1

CAN Frame payload byte1.

uint8_t dataByte0

CAN Frame payload byte0.

uint8_t dataByte7

CAN Frame payload byte7.

uint8_t dataByte6

CAN Frame payload byte6.

uint8_t dataByte5

CAN Frame payload byte5.

uint8_t dataByte4

CAN Frame payload byte4.

union __unnamed95__

Public Members

struct _flexcan_config
struct _flexcan_config
struct __unnamed97__

Public Members

uint32_t baudRate

FlexCAN bit rate in bps, for classical CAN or CANFD nominal phase.

uint32_t baudRateFD

FlexCAN FD bit rate in bps, for CANFD data phase.

struct __unnamed99__

Public Members

uint32_t bitRate

FlexCAN bit rate in bps, for classical CAN or CANFD nominal phase.

uint32_t bitRateFD

FlexCAN FD bit rate in bps, for CANFD data phase.

union __unnamed101__

Public Members

struct _flexcan_pn_config

< The data target values 1 which used either for data match “equal to”, “smaller than”, “greater than” comparisons, or as the lower limit value in data match “range

detection”.

struct _flexcan_pn_config
struct __unnamed105__

< The data target values 1 which used either for data match “equal to”, “smaller than”, “greater than” comparisons, or as the lower limit value in data match “range

detection”.

Public Members

uint32_t lowerWord0

CAN Frame payload word0.

uint32_t lowerWord1

CAN Frame payload word1.

struct __unnamed107__

Public Members

uint8_t lowerByte3

CAN Frame payload byte3.

uint8_t lowerByte2

CAN Frame payload byte2.

uint8_t lowerByte1

CAN Frame payload byte1.

uint8_t lowerByte0

CAN Frame payload byte0.

uint8_t lowerByte7

CAN Frame payload byte7.

uint8_t lowerByte6

CAN Frame payload byte6.

uint8_t lowerByte5

CAN Frame payload byte5.

uint8_t lowerByte4

CAN Frame payload byte4.

union __unnamed103__

Public Members

struct _flexcan_pn_config

< The data target values 2 which used only as the upper limit value in data match “range

detection” or used to store the data mask in “equal to”.

struct _flexcan_pn_config
struct __unnamed109__

< The data target values 2 which used only as the upper limit value in data match “range

detection” or used to store the data mask in “equal to”.

Public Members

uint32_t upperWord0

CAN Frame payload word0.

uint32_t upperWord1

CAN Frame payload word1.

struct __unnamed111__

Public Members

uint8_t upperByte3

CAN Frame payload byte3.

uint8_t upperByte2

CAN Frame payload byte2.

uint8_t upperByte1

CAN Frame payload byte1.

uint8_t upperByte0

CAN Frame payload byte0.

uint8_t upperByte7

CAN Frame payload byte7.

uint8_t upperByte6

CAN Frame payload byte6.

uint8_t upperByte5

CAN Frame payload byte5.

uint8_t upperByte4

CAN Frame payload byte4.

FlexCAN eDMA Driver

void FLEXCAN_TransferCreateHandleEDMA(CAN_Type *base, flexcan_edma_handle_t *handle, flexcan_edma_transfer_callback_t callback, void *userData, edma_handle_t *rxFifoEdmaHandle)

Initializes the FlexCAN handle, which is used in transactional functions.

Parameters:
  • base – FlexCAN peripheral base address.

  • handle – Pointer to flexcan_edma_handle_t structure.

  • callback – The callback function.

  • userData – The parameter of the callback function.

  • rxFifoEdmaHandle – User-requested DMA handle for Rx FIFO DMA transfer.

void FLEXCAN_PrepareTransfConfiguration(CAN_Type *base, flexcan_fifo_transfer_t *pFifoXfer, edma_transfer_config_t *pEdmaConfig)

Prepares the eDMA transfer configuration for FLEXCAN Legacy RX FIFO.

This function prepares the eDMA transfer configuration structure according to FLEXCAN Legacy RX FIFO.

Parameters:
  • base – FlexCAN peripheral base address.

  • pFifoXfer – FlexCAN Rx FIFO EDMA transfer structure, see flexcan_fifo_transfer_t.

  • pEdmaConfig – The user configuration structure of type edma_transfer_t.

status_t FLEXCAN_StartTransferDatafromRxFIFO(CAN_Type *base, flexcan_edma_handle_t *handle, edma_transfer_config_t *pEdmaConfig)

Start Transfer Data from the FLEXCAN Legacy Rx FIFO using eDMA.

This function to Update edma transfer confiugration and Start eDMA transfer

Parameters:
  • base – FlexCAN peripheral base address.

  • handle – Pointer to flexcan_edma_handle_t structure.

  • pEdmaConfig – The user configuration structure of type edma_transfer_t.

Return values:
  • kStatus_Success – if succeed, others failed.

  • kStatus_FLEXCAN_RxFifoBusy – Previous transfer ongoing.

status_t FLEXCAN_TransferReceiveFifoEDMA(CAN_Type *base, flexcan_edma_handle_t *handle, flexcan_fifo_transfer_t *pFifoXfer)

Receives the CAN Message from the Legacy Rx FIFO using eDMA.

This function receives the CAN Message using eDMA. This is a non-blocking function, which returns right away. After the CAN Message is received, the receive callback function is called.

Parameters:
  • base – FlexCAN peripheral base address.

  • handle – Pointer to flexcan_edma_handle_t structure.

  • pFifoXfer – FlexCAN Rx FIFO EDMA transfer structure, see flexcan_fifo_transfer_t.

Return values:
  • kStatus_Success – if succeed, others failed.

  • kStatus_FLEXCAN_RxFifoBusy – Previous transfer ongoing.

status_t FLEXCAN_TransferGetReceiveFifoCountEMDA(CAN_Type *base, flexcan_edma_handle_t *handle, size_t *count)

Gets the Legacy Rx Fifo transfer status during a interrupt non-blocking receive.

Parameters:
  • base – FlexCAN peripheral base address.

  • handle – FlexCAN handle pointer.

  • count – Number of CAN messages receive so far by the non-blocking transaction.

Return values:
  • kStatus_InvalidArgument – count is Invalid.

  • kStatus_Success – Successfully return the count.

void FLEXCAN_TransferAbortReceiveFifoEDMA(CAN_Type *base, flexcan_edma_handle_t *handle)

Aborts the receive Legacy/Enhanced Rx FIFO process which used eDMA.

This function aborts the receive Legacy/Enhanced Rx FIFO process which used eDMA.

Parameters:
  • base – FlexCAN peripheral base address.

  • handle – Pointer to flexcan_edma_handle_t structure.

status_t FLEXCAN_TransferReceiveEnhancedFifoEDMA(CAN_Type *base, flexcan_edma_handle_t *handle, flexcan_fifo_transfer_t *pFifoXfer)

Receives the CAN FD Message from the Enhanced Rx FIFO using eDMA.

This function receives the CAN FD Message using eDMA. This is a non-blocking function, which returns right away. After the CAN Message is received, the receive callback function is called.

Parameters:
  • base – FlexCAN peripheral base address.

  • handle – Pointer to flexcan_edma_handle_t structure.

  • pFifoXfer – FlexCAN Rx FIFO EDMA transfer structure, see flexcan_fifo_transfer_t.

Return values:
  • kStatus_Success – if succeed, others failed.

  • kStatus_FLEXCAN_RxFifoBusy – Previous transfer ongoing.

static inline status_t FLEXCAN_TransferGetReceiveEnhancedFifoCountEMDA(CAN_Type *base, flexcan_edma_handle_t *handle, size_t *count)

Gets the Enhanced Rx Fifo transfer status during a interrupt non-blocking receive.

Parameters:
  • base – FlexCAN peripheral base address.

  • handle – FlexCAN handle pointer.

  • count – Number of CAN messages receive so far by the non-blocking transaction.

Return values:
  • kStatus_InvalidArgument – count is Invalid.

  • kStatus_Success – Successfully return the count.

FSL_FLEXCAN_EDMA_DRIVER_VERSION

FlexCAN EDMA driver version.

typedef struct _flexcan_edma_handle flexcan_edma_handle_t
typedef void (*flexcan_edma_transfer_callback_t)(CAN_Type *base, flexcan_edma_handle_t *handle, status_t status, void *userData)

FlexCAN transfer callback function.

struct _flexcan_edma_handle
#include <fsl_flexcan_edma.h>

FlexCAN eDMA handle.

Public Members

flexcan_edma_transfer_callback_t callback

Callback function.

void *userData

FlexCAN callback function parameter.

edma_handle_t *rxFifoEdmaHandle

The EDMA handler for Rx FIFO.

volatile uint8_t rxFifoState

Rx FIFO transfer state.

size_t frameNum

The number of messages that need to be received.

flexcan_fd_frame_t *framefd

Point to the buffer of CAN Message to be received from Enhanced Rx FIFO.

FlexIO: FlexIO Driver

FlexIO Driver

void FLEXIO_GetDefaultConfig(flexio_config_t *userConfig)

Gets the default configuration to configure the FlexIO module. The configuration can used directly to call the FLEXIO_Configure().

Example:

flexio_config_t config;
FLEXIO_GetDefaultConfig(&config);

Parameters:
  • userConfig – pointer to flexio_config_t structure

void FLEXIO_Init(FLEXIO_Type *base, const flexio_config_t *userConfig)

Configures the FlexIO with a FlexIO configuration. The configuration structure can be filled by the user or be set with default values by FLEXIO_GetDefaultConfig().

Example

flexio_config_t config = {
.enableFlexio = true,
.enableInDoze = false,
.enableInDebug = true,
.enableFastAccess = false
};
FLEXIO_Configure(base, &config);

Parameters:
  • base – FlexIO peripheral base address

  • userConfig – pointer to flexio_config_t structure

void FLEXIO_Deinit(FLEXIO_Type *base)

Gates the FlexIO clock. Call this API to stop the FlexIO clock.

Note

After calling this API, call the FLEXO_Init to use the FlexIO module.

Parameters:
  • base – FlexIO peripheral base address

uint32_t FLEXIO_GetInstance(FLEXIO_Type *base)

Get instance number for FLEXIO module.

Parameters:
  • base – FLEXIO peripheral base address.

void FLEXIO_Reset(FLEXIO_Type *base)

Resets the FlexIO module.

Parameters:
  • base – FlexIO peripheral base address

static inline void FLEXIO_Enable(FLEXIO_Type *base, bool enable)

Enables the FlexIO module operation.

Parameters:
  • base – FlexIO peripheral base address

  • enable – true to enable, false to disable.

static inline uint32_t FLEXIO_ReadPinInput(FLEXIO_Type *base)

Reads the input data on each of the FlexIO pins.

Parameters:
  • base – FlexIO peripheral base address

Returns:

FlexIO pin input data

static inline uint8_t FLEXIO_GetShifterState(FLEXIO_Type *base)

Gets the current state pointer for state mode use.

Parameters:
  • base – FlexIO peripheral base address

Returns:

current State pointer

void FLEXIO_SetShifterConfig(FLEXIO_Type *base, uint8_t index, const flexio_shifter_config_t *shifterConfig)

Configures the shifter with the shifter configuration. The configuration structure covers both the SHIFTCTL and SHIFTCFG registers. To configure the shifter to the proper mode, select which timer controls the shifter to shift, whether to generate start bit/stop bit, and the polarity of start bit and stop bit.

Example

flexio_shifter_config_t config = {
.timerSelect = 0,
.timerPolarity = kFLEXIO_ShifterTimerPolarityOnPositive,
.pinConfig = kFLEXIO_PinConfigOpenDrainOrBidirection,
.pinPolarity = kFLEXIO_PinActiveLow,
.shifterMode = kFLEXIO_ShifterModeTransmit,
.inputSource = kFLEXIO_ShifterInputFromPin,
.shifterStop = kFLEXIO_ShifterStopBitHigh,
.shifterStart = kFLEXIO_ShifterStartBitLow
};
FLEXIO_SetShifterConfig(base, &config);

Parameters:
  • base – FlexIO peripheral base address

  • index – Shifter index

  • shifterConfig – Pointer to flexio_shifter_config_t structure

void FLEXIO_SetTimerConfig(FLEXIO_Type *base, uint8_t index, const flexio_timer_config_t *timerConfig)

Configures the timer with the timer configuration. The configuration structure covers both the TIMCTL and TIMCFG registers. To configure the timer to the proper mode, select trigger source for timer and the timer pin output and the timing for timer.

Example

flexio_timer_config_t config = {
.triggerSelect = FLEXIO_TIMER_TRIGGER_SEL_SHIFTnSTAT(0),
.triggerPolarity = kFLEXIO_TimerTriggerPolarityActiveLow,
.triggerSource = kFLEXIO_TimerTriggerSourceInternal,
.pinConfig = kFLEXIO_PinConfigOpenDrainOrBidirection,
.pinSelect = 0,
.pinPolarity = kFLEXIO_PinActiveHigh,
.timerMode = kFLEXIO_TimerModeDual8BitBaudBit,
.timerOutput = kFLEXIO_TimerOutputZeroNotAffectedByReset,
.timerDecrement = kFLEXIO_TimerDecSrcOnFlexIOClockShiftTimerOutput,
.timerReset = kFLEXIO_TimerResetOnTimerPinEqualToTimerOutput,
.timerDisable = kFLEXIO_TimerDisableOnTimerCompare,
.timerEnable = kFLEXIO_TimerEnableOnTriggerHigh,
.timerStop = kFLEXIO_TimerStopBitEnableOnTimerDisable,
.timerStart = kFLEXIO_TimerStartBitEnabled
};
FLEXIO_SetTimerConfig(base, &config);

Parameters:
  • base – FlexIO peripheral base address

  • index – Timer index

  • timerConfig – Pointer to the flexio_timer_config_t structure

static inline void FLEXIO_SetClockMode(FLEXIO_Type *base, uint8_t index, flexio_timer_decrement_source_t clocksource)

This function set the value of the prescaler on flexio channels.

Parameters:
  • base – Pointer to the FlexIO simulated peripheral type.

  • index – Timer index

  • clocksource – Set clock value

static inline void FLEXIO_EnableShifterStatusInterrupts(FLEXIO_Type *base, uint32_t mask)

Enables the shifter status interrupt. The interrupt generates when the corresponding SSF is set.

Note

For multiple shifter status interrupt enable, for example, two shifter status enable, can calculate the mask by using ((1 << shifter index0) | (1 << shifter index1))

Parameters:
  • base – FlexIO peripheral base address

  • mask – The shifter status mask which can be calculated by (1 << shifter index)

static inline void FLEXIO_DisableShifterStatusInterrupts(FLEXIO_Type *base, uint32_t mask)

Disables the shifter status interrupt. The interrupt won’t generate when the corresponding SSF is set.

Note

For multiple shifter status interrupt enable, for example, two shifter status enable, can calculate the mask by using ((1 << shifter index0) | (1 << shifter index1))

Parameters:
  • base – FlexIO peripheral base address

  • mask – The shifter status mask which can be calculated by (1 << shifter index)

static inline void FLEXIO_EnableShifterErrorInterrupts(FLEXIO_Type *base, uint32_t mask)

Enables the shifter error interrupt. The interrupt generates when the corresponding SEF is set.

Note

For multiple shifter error interrupt enable, for example, two shifter error enable, can calculate the mask by using ((1 << shifter index0) | (1 << shifter index1))

Parameters:
  • base – FlexIO peripheral base address

  • mask – The shifter error mask which can be calculated by (1 << shifter index)

static inline void FLEXIO_DisableShifterErrorInterrupts(FLEXIO_Type *base, uint32_t mask)

Disables the shifter error interrupt. The interrupt won’t generate when the corresponding SEF is set.

Note

For multiple shifter error interrupt enable, for example, two shifter error enable, can calculate the mask by using ((1 << shifter index0) | (1 << shifter index1))

Parameters:
  • base – FlexIO peripheral base address

  • mask – The shifter error mask which can be calculated by (1 << shifter index)

static inline void FLEXIO_EnableTimerStatusInterrupts(FLEXIO_Type *base, uint32_t mask)

Enables the timer status interrupt. The interrupt generates when the corresponding SSF is set.

Note

For multiple timer status interrupt enable, for example, two timer status enable, can calculate the mask by using ((1 << timer index0) | (1 << timer index1))

Parameters:
  • base – FlexIO peripheral base address

  • mask – The timer status mask which can be calculated by (1 << timer index)

static inline void FLEXIO_DisableTimerStatusInterrupts(FLEXIO_Type *base, uint32_t mask)

Disables the timer status interrupt. The interrupt won’t generate when the corresponding SSF is set.

Note

For multiple timer status interrupt enable, for example, two timer status enable, can calculate the mask by using ((1 << timer index0) | (1 << timer index1))

Parameters:
  • base – FlexIO peripheral base address

  • mask – The timer status mask which can be calculated by (1 << timer index)

static inline uint32_t FLEXIO_GetShifterStatusFlags(FLEXIO_Type *base)

Gets the shifter status flags.

Parameters:
  • base – FlexIO peripheral base address

Returns:

Shifter status flags

static inline void FLEXIO_ClearShifterStatusFlags(FLEXIO_Type *base, uint32_t mask)

Clears the shifter status flags.

Note

For clearing multiple shifter status flags, for example, two shifter status flags, can calculate the mask by using ((1 << shifter index0) | (1 << shifter index1))

Parameters:
  • base – FlexIO peripheral base address

  • mask – The shifter status mask which can be calculated by (1 << shifter index)

static inline uint32_t FLEXIO_GetShifterErrorFlags(FLEXIO_Type *base)

Gets the shifter error flags.

Parameters:
  • base – FlexIO peripheral base address

Returns:

Shifter error flags

static inline void FLEXIO_ClearShifterErrorFlags(FLEXIO_Type *base, uint32_t mask)

Clears the shifter error flags.

Note

For clearing multiple shifter error flags, for example, two shifter error flags, can calculate the mask by using ((1 << shifter index0) | (1 << shifter index1))

Parameters:
  • base – FlexIO peripheral base address

  • mask – The shifter error mask which can be calculated by (1 << shifter index)

static inline uint32_t FLEXIO_GetTimerStatusFlags(FLEXIO_Type *base)

Gets the timer status flags.

Parameters:
  • base – FlexIO peripheral base address

Returns:

Timer status flags

static inline void FLEXIO_ClearTimerStatusFlags(FLEXIO_Type *base, uint32_t mask)

Clears the timer status flags.

Note

For clearing multiple timer status flags, for example, two timer status flags, can calculate the mask by using ((1 << timer index0) | (1 << timer index1))

Parameters:
  • base – FlexIO peripheral base address

  • mask – The timer status mask which can be calculated by (1 << timer index)

static inline void FLEXIO_EnableShifterStatusDMA(FLEXIO_Type *base, uint32_t mask, bool enable)

Enables/disables the shifter status DMA. The DMA request generates when the corresponding SSF is set.

Note

For multiple shifter status DMA enables, for example, calculate the mask by using ((1 << shifter index0) | (1 << shifter index1))

Parameters:
  • base – FlexIO peripheral base address

  • mask – The shifter status mask which can be calculated by (1 << shifter index)

  • enable – True to enable, false to disable.

uint32_t FLEXIO_GetShifterBufferAddress(FLEXIO_Type *base, flexio_shifter_buffer_type_t type, uint8_t index)

Gets the shifter buffer address for the DMA transfer usage.

Parameters:
  • base – FlexIO peripheral base address

  • type – Shifter type of flexio_shifter_buffer_type_t

  • index – Shifter index

Returns:

Corresponding shifter buffer index

status_t FLEXIO_RegisterHandleIRQ(void *base, void *handle, flexio_isr_t isr)

Registers the handle and the interrupt handler for the FlexIO-simulated peripheral.

Parameters:
  • base – Pointer to the FlexIO simulated peripheral type.

  • handle – Pointer to the handler for FlexIO simulated peripheral.

  • isr – FlexIO simulated peripheral interrupt handler.

Return values:
  • kStatus_Success – Successfully create the handle.

  • kStatus_OutOfRange – The FlexIO type/handle/ISR table out of range.

status_t FLEXIO_UnregisterHandleIRQ(void *base)

Unregisters the handle and the interrupt handler for the FlexIO-simulated peripheral.

Parameters:
  • base – Pointer to the FlexIO simulated peripheral type.

Return values:
  • kStatus_Success – Successfully create the handle.

  • kStatus_OutOfRange – The FlexIO type/handle/ISR table out of range.

static inline void FLEXIO_ClearPortOutput(FLEXIO_Type *base, uint32_t mask)

Sets the output level of the multiple FLEXIO pins to the logic 0.

Parameters:
  • base – FlexIO peripheral base address

  • mask – FLEXIO pin number mask

static inline void FLEXIO_SetPortOutput(FLEXIO_Type *base, uint32_t mask)

Sets the output level of the multiple FLEXIO pins to the logic 1.

Parameters:
  • base – FlexIO peripheral base address

  • mask – FLEXIO pin number mask

static inline void FLEXIO_TogglePortOutput(FLEXIO_Type *base, uint32_t mask)

Reverses the current output logic of the multiple FLEXIO pins.

Parameters:
  • base – FlexIO peripheral base address

  • mask – FLEXIO pin number mask

static inline void FLEXIO_PinWrite(FLEXIO_Type *base, uint32_t pin, uint8_t output)

Sets the output level of the FLEXIO pins to the logic 1 or 0.

Parameters:
  • base – FlexIO peripheral base address

  • pin – FLEXIO pin number.

  • output – FLEXIO pin output logic level.

    • 0: corresponding pin output low-logic level.

    • 1: corresponding pin output high-logic level.

static inline void FLEXIO_EnablePinOutput(FLEXIO_Type *base, uint32_t pin)

Enables the FLEXIO output pin function.

Parameters:
  • base – FlexIO peripheral base address

  • pin – FLEXIO pin number.

static inline uint32_t FLEXIO_PinRead(FLEXIO_Type *base, uint32_t pin)

Reads the current input value of the FLEXIO pin.

Parameters:
  • base – FlexIO peripheral base address

  • pin – FLEXIO pin number.

Return values:

FLEXIO – port input value

  • 0: corresponding pin input low-logic level.

  • 1: corresponding pin input high-logic level.

static inline uint32_t FLEXIO_GetPinStatus(FLEXIO_Type *base, uint32_t pin)

Gets the FLEXIO input pin status.

Parameters:
  • base – FlexIO peripheral base address

  • pin – FLEXIO pin number.

Return values:

FLEXIO – port input status

  • 0: corresponding pin input capture no status.

  • 1: corresponding pin input capture rising or falling edge.

static inline void FLEXIO_SetPinLevel(FLEXIO_Type *base, uint8_t pin, bool level)

Sets the FLEXIO output pin level.

Parameters:
  • base – FlexIO peripheral base address

  • pin – FlexIO pin number.

  • level – FlexIO output pin level to set, can be either 0 or 1.

static inline bool FLEXIO_GetPinOverride(const FLEXIO_Type *const base, uint8_t pin)

Gets the enabled status of a FLEXIO output pin.

Parameters:
  • base – FlexIO peripheral base address

  • pin – FlexIO pin number.

Return values:

FlexIO – port enabled status

  • 0: corresponding output pin is in disabled state.

  • 1: corresponding output pin is in enabled state.

static inline void FLEXIO_ConfigPinOverride(FLEXIO_Type *base, uint8_t pin, bool enabled)

Enables or disables a FLEXIO output pin.

Parameters:
  • base – FlexIO peripheral base address

  • pin – Flexio pin number.

  • enabled – Enable or disable the FlexIO pin.

static inline void FLEXIO_ClearPortStatus(FLEXIO_Type *base, uint32_t mask)

Clears the multiple FLEXIO input pins status.

Parameters:
  • base – FlexIO peripheral base address

  • mask – FLEXIO pin number mask

FSL_FLEXIO_DRIVER_VERSION

FlexIO driver version.

enum _flexio_timer_trigger_polarity

Define time of timer trigger polarity.

Values:

enumerator kFLEXIO_TimerTriggerPolarityActiveHigh

Active high.

enumerator kFLEXIO_TimerTriggerPolarityActiveLow

Active low.

enum _flexio_timer_trigger_source

Define type of timer trigger source.

Values:

enumerator kFLEXIO_TimerTriggerSourceExternal

External trigger selected.

enumerator kFLEXIO_TimerTriggerSourceInternal

Internal trigger selected.

enum _flexio_pin_config

Define type of timer/shifter pin configuration.

Values:

enumerator kFLEXIO_PinConfigOutputDisabled

Pin output disabled.

enumerator kFLEXIO_PinConfigOpenDrainOrBidirection

Pin open drain or bidirectional output enable.

enumerator kFLEXIO_PinConfigBidirectionOutputData

Pin bidirectional output data.

enumerator kFLEXIO_PinConfigOutput

Pin output.

enum _flexio_pin_polarity

Definition of pin polarity.

Values:

enumerator kFLEXIO_PinActiveHigh

Active high.

enumerator kFLEXIO_PinActiveLow

Active low.

enum _flexio_timer_mode

Define type of timer work mode.

Values:

enumerator kFLEXIO_TimerModeDisabled

Timer Disabled.

enumerator kFLEXIO_TimerModeDual8BitBaudBit

Dual 8-bit counters baud/bit mode.

enumerator kFLEXIO_TimerModeDual8BitPWM

Dual 8-bit counters PWM mode.

enumerator kFLEXIO_TimerModeSingle16Bit

Single 16-bit counter mode.

enumerator kFLEXIO_TimerModeDual8BitPWMLow

Dual 8-bit counters PWM Low mode.

enum _flexio_timer_output

Define type of timer initial output or timer reset condition.

Values:

enumerator kFLEXIO_TimerOutputOneNotAffectedByReset

Logic one when enabled and is not affected by timer reset.

enumerator kFLEXIO_TimerOutputZeroNotAffectedByReset

Logic zero when enabled and is not affected by timer reset.

enumerator kFLEXIO_TimerOutputOneAffectedByReset

Logic one when enabled and on timer reset.

enumerator kFLEXIO_TimerOutputZeroAffectedByReset

Logic zero when enabled and on timer reset.

enum _flexio_timer_decrement_source

Define type of timer decrement.

Values:

enumerator kFLEXIO_TimerDecSrcOnFlexIOClockShiftTimerOutput

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

enumerator kFLEXIO_TimerDecSrcOnTriggerInputShiftTimerOutput

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

enumerator kFLEXIO_TimerDecSrcOnPinInputShiftPinInput

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

enumerator kFLEXIO_TimerDecSrcOnTriggerInputShiftTriggerInput

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

enum _flexio_timer_reset_condition

Define type of timer reset condition.

Values:

enumerator kFLEXIO_TimerResetNever

Timer never reset.

enumerator kFLEXIO_TimerResetOnTimerPinEqualToTimerOutput

Timer reset on Timer Pin equal to Timer Output.

enumerator kFLEXIO_TimerResetOnTimerTriggerEqualToTimerOutput

Timer reset on Timer Trigger equal to Timer Output.

enumerator kFLEXIO_TimerResetOnTimerPinRisingEdge

Timer reset on Timer Pin rising edge.

enumerator kFLEXIO_TimerResetOnTimerTriggerRisingEdge

Timer reset on Trigger rising edge.

enumerator kFLEXIO_TimerResetOnTimerTriggerBothEdge

Timer reset on Trigger rising or falling edge.

enum _flexio_timer_disable_condition

Define type of timer disable condition.

Values:

enumerator kFLEXIO_TimerDisableNever

Timer never disabled.

enumerator kFLEXIO_TimerDisableOnPreTimerDisable

Timer disabled on Timer N-1 disable.

enumerator kFLEXIO_TimerDisableOnTimerCompare

Timer disabled on Timer compare.

enumerator kFLEXIO_TimerDisableOnTimerCompareTriggerLow

Timer disabled on Timer compare and Trigger Low.

enumerator kFLEXIO_TimerDisableOnPinBothEdge

Timer disabled on Pin rising or falling edge.

enumerator kFLEXIO_TimerDisableOnPinBothEdgeTriggerHigh

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

enumerator kFLEXIO_TimerDisableOnTriggerFallingEdge

Timer disabled on Trigger falling edge.

enum _flexio_timer_enable_condition

Define type of timer enable condition.

Values:

enumerator kFLEXIO_TimerEnabledAlways

Timer always enabled.

enumerator kFLEXIO_TimerEnableOnPrevTimerEnable

Timer enabled on Timer N-1 enable.

enumerator kFLEXIO_TimerEnableOnTriggerHigh

Timer enabled on Trigger high.

enumerator kFLEXIO_TimerEnableOnTriggerHighPinHigh

Timer enabled on Trigger high and Pin high.

enumerator kFLEXIO_TimerEnableOnPinRisingEdge

Timer enabled on Pin rising edge.

enumerator kFLEXIO_TimerEnableOnPinRisingEdgeTriggerHigh

Timer enabled on Pin rising edge and Trigger high.

enumerator kFLEXIO_TimerEnableOnTriggerRisingEdge

Timer enabled on Trigger rising edge.

enumerator kFLEXIO_TimerEnableOnTriggerBothEdge

Timer enabled on Trigger rising or falling edge.

enum _flexio_timer_stop_bit_condition

Define type of timer stop bit generate condition.

Values:

enumerator kFLEXIO_TimerStopBitDisabled

Stop bit disabled.

enumerator kFLEXIO_TimerStopBitEnableOnTimerCompare

Stop bit is enabled on timer compare.

enumerator kFLEXIO_TimerStopBitEnableOnTimerDisable

Stop bit is enabled on timer disable.

enumerator kFLEXIO_TimerStopBitEnableOnTimerCompareDisable

Stop bit is enabled on timer compare and timer disable.

enum _flexio_timer_start_bit_condition

Define type of timer start bit generate condition.

Values:

enumerator kFLEXIO_TimerStartBitDisabled

Start bit disabled.

enumerator kFLEXIO_TimerStartBitEnabled

Start bit enabled.

enum _flexio_timer_output_state

FlexIO as PWM channel output state.

Values:

enumerator kFLEXIO_PwmLow

The output state of PWM channel is low

enumerator kFLEXIO_PwmHigh

The output state of PWM channel is high

enum _flexio_shifter_timer_polarity

Define type of timer polarity for shifter control.

Values:

enumerator kFLEXIO_ShifterTimerPolarityOnPositive

Shift on positive edge of shift clock.

enumerator kFLEXIO_ShifterTimerPolarityOnNegitive

Shift on negative edge of shift clock.

enum _flexio_shifter_mode

Define type of shifter working mode.

Values:

enumerator kFLEXIO_ShifterDisabled

Shifter is disabled.

enumerator kFLEXIO_ShifterModeReceive

Receive mode.

enumerator kFLEXIO_ShifterModeTransmit

Transmit mode.

enumerator kFLEXIO_ShifterModeMatchStore

Match store mode.

enumerator kFLEXIO_ShifterModeMatchContinuous

Match continuous mode.

enumerator kFLEXIO_ShifterModeState

SHIFTBUF contents are used for storing programmable state attributes.

enumerator kFLEXIO_ShifterModeLogic

SHIFTBUF contents are used for implementing programmable logic look up table.

enum _flexio_shifter_input_source

Define type of shifter input source.

Values:

enumerator kFLEXIO_ShifterInputFromPin

Shifter input from pin.

enumerator kFLEXIO_ShifterInputFromNextShifterOutput

Shifter input from Shifter N+1.

enum _flexio_shifter_stop_bit

Define of STOP bit configuration.

Values:

enumerator kFLEXIO_ShifterStopBitDisable

Disable shifter stop bit.

enumerator kFLEXIO_ShifterStopBitLow

Set shifter stop bit to logic low level.

enumerator kFLEXIO_ShifterStopBitHigh

Set shifter stop bit to logic high level.

enum _flexio_shifter_start_bit

Define type of START bit configuration.

Values:

enumerator kFLEXIO_ShifterStartBitDisabledLoadDataOnEnable

Disable shifter start bit, transmitter loads data on enable.

enumerator kFLEXIO_ShifterStartBitDisabledLoadDataOnShift

Disable shifter start bit, transmitter loads data on first shift.

enumerator kFLEXIO_ShifterStartBitLow

Set shifter start bit to logic low level.

enumerator kFLEXIO_ShifterStartBitHigh

Set shifter start bit to logic high level.

enum _flexio_shifter_buffer_type

Define FlexIO shifter buffer type.

Values:

enumerator kFLEXIO_ShifterBuffer

Shifter Buffer N Register.

enumerator kFLEXIO_ShifterBufferBitSwapped

Shifter Buffer N Bit Byte Swapped Register.

enumerator kFLEXIO_ShifterBufferByteSwapped

Shifter Buffer N Byte Swapped Register.

enumerator kFLEXIO_ShifterBufferBitByteSwapped

Shifter Buffer N Bit Swapped Register.

enumerator kFLEXIO_ShifterBufferNibbleByteSwapped

Shifter Buffer N Nibble Byte Swapped Register.

enumerator kFLEXIO_ShifterBufferHalfWordSwapped

Shifter Buffer N Half Word Swapped Register.

enumerator kFLEXIO_ShifterBufferNibbleSwapped

Shifter Buffer N Nibble Swapped Register.

enum _flexio_gpio_direction

FLEXIO gpio direction definition.

Values:

enumerator kFLEXIO_DigitalInput

Set current pin as digital input

enumerator kFLEXIO_DigitalOutput

Set current pin as digital output

enum _flexio_pin_input_config

FLEXIO gpio input config.

Values:

enumerator kFLEXIO_InputInterruptDisabled

Interrupt request is disabled.

enumerator kFLEXIO_InputInterruptEnable

Interrupt request is enable.

enumerator kFLEXIO_FlagRisingEdgeEnable

Input pin flag on rising edge.

enumerator kFLEXIO_FlagFallingEdgeEnable

Input pin flag on falling edge.

typedef enum _flexio_timer_trigger_polarity flexio_timer_trigger_polarity_t

Define time of timer trigger polarity.

typedef enum _flexio_timer_trigger_source flexio_timer_trigger_source_t

Define type of timer trigger source.

typedef enum _flexio_pin_config flexio_pin_config_t

Define type of timer/shifter pin configuration.

typedef enum _flexio_pin_polarity flexio_pin_polarity_t

Definition of pin polarity.

typedef enum _flexio_timer_mode flexio_timer_mode_t

Define type of timer work mode.

typedef enum _flexio_timer_output flexio_timer_output_t

Define type of timer initial output or timer reset condition.

typedef enum _flexio_timer_decrement_source flexio_timer_decrement_source_t

Define type of timer decrement.

typedef enum _flexio_timer_reset_condition flexio_timer_reset_condition_t

Define type of timer reset condition.

typedef enum _flexio_timer_disable_condition flexio_timer_disable_condition_t

Define type of timer disable condition.

typedef enum _flexio_timer_enable_condition flexio_timer_enable_condition_t

Define type of timer enable condition.

typedef enum _flexio_timer_stop_bit_condition flexio_timer_stop_bit_condition_t

Define type of timer stop bit generate condition.

typedef enum _flexio_timer_start_bit_condition flexio_timer_start_bit_condition_t

Define type of timer start bit generate condition.

typedef enum _flexio_timer_output_state flexio_timer_output_state_t

FlexIO as PWM channel output state.

typedef enum _flexio_shifter_timer_polarity flexio_shifter_timer_polarity_t

Define type of timer polarity for shifter control.

typedef enum _flexio_shifter_mode flexio_shifter_mode_t

Define type of shifter working mode.

typedef enum _flexio_shifter_input_source flexio_shifter_input_source_t

Define type of shifter input source.

typedef enum _flexio_shifter_stop_bit flexio_shifter_stop_bit_t

Define of STOP bit configuration.

typedef enum _flexio_shifter_start_bit flexio_shifter_start_bit_t

Define type of START bit configuration.

typedef enum _flexio_shifter_buffer_type flexio_shifter_buffer_type_t

Define FlexIO shifter buffer type.

typedef struct _flexio_config_ flexio_config_t

Define FlexIO user configuration structure.

typedef struct _flexio_timer_config flexio_timer_config_t

Define FlexIO timer configuration structure.

typedef struct _flexio_shifter_config flexio_shifter_config_t

Define FlexIO shifter configuration structure.

typedef enum _flexio_gpio_direction flexio_gpio_direction_t

FLEXIO gpio direction definition.

typedef enum _flexio_pin_input_config flexio_pin_input_config_t

FLEXIO gpio input config.

typedef struct _flexio_gpio_config flexio_gpio_config_t

The FLEXIO pin configuration structure.

Each pin can only be configured as either an output pin or an input pin at a time. If configured as an input pin, use inputConfig param. If configured as an output pin, use outputLogic.

typedef void (*flexio_isr_t)(void *base, void *handle)

typedef for FlexIO simulated driver interrupt handler.

FLEXIO_Type *const s_flexioBases[]

Pointers to flexio bases for each instance.

const clock_ip_name_t s_flexioClocks[]

Pointers to flexio clocks for each instance.

void FLEXIO_SetPinConfig(FLEXIO_Type *base, uint32_t pin, flexio_gpio_config_t *config)

Configure a FLEXIO pin used by the board.

To Config the FLEXIO PIN, define a pin configuration, as either input or output, in the user file. Then, call the FLEXIO_SetPinConfig() function.

This is an example to define an input pin or an output pin configuration.

Define a digital input pin configuration,
flexio_gpio_config_t config =
{
  kFLEXIO_DigitalInput,
  0U,
  kFLEXIO_FlagRisingEdgeEnable | kFLEXIO_InputInterruptEnable,
}
Define a digital output pin configuration,
flexio_gpio_config_t config =
{
  kFLEXIO_DigitalOutput,
  0U,
  0U
}

Parameters:
  • base – FlexIO peripheral base address

  • pin – FLEXIO pin number.

  • config – FLEXIO pin configuration pointer.

FLEXIO_TIMER_TRIGGER_SEL_PININPUT(x)

Calculate FlexIO timer trigger.

FLEXIO_TIMER_TRIGGER_SEL_SHIFTnSTAT(x)
FLEXIO_TIMER_TRIGGER_SEL_TIMn(x)
struct _flexio_config_
#include <fsl_flexio.h>

Define FlexIO user configuration structure.

Public Members

bool enableFlexio

Enable/disable FlexIO module

bool enableInDoze

Enable/disable FlexIO operation in doze mode

bool enableInDebug

Enable/disable FlexIO operation in debug mode

bool enableFastAccess

Enable/disable fast access to FlexIO registers, fast access requires the FlexIO clock to be at least twice the frequency of the bus clock.

struct _flexio_timer_config
#include <fsl_flexio.h>

Define FlexIO timer configuration structure.

Public Members

uint32_t triggerSelect

The internal trigger selection number using MACROs.

flexio_timer_trigger_polarity_t triggerPolarity

Trigger Polarity.

flexio_timer_trigger_source_t triggerSource

Trigger Source, internal (see ‘trgsel’) or external.

flexio_pin_config_t pinConfig

Timer Pin Configuration.

uint32_t pinSelect

Timer Pin number Select.

flexio_pin_polarity_t pinPolarity

Timer Pin Polarity.

flexio_timer_mode_t timerMode

Timer work Mode.

flexio_timer_output_t timerOutput

Configures the initial state of the Timer Output and whether it is affected by the Timer reset.

flexio_timer_decrement_source_t timerDecrement

Configures the source of the Timer decrement and the source of the Shift clock.

flexio_timer_reset_condition_t timerReset

Configures the condition that causes the timer counter (and optionally the timer output) to be reset.

flexio_timer_disable_condition_t timerDisable

Configures the condition that causes the Timer to be disabled and stop decrementing.

flexio_timer_enable_condition_t timerEnable

Configures the condition that causes the Timer to be enabled and start decrementing.

flexio_timer_stop_bit_condition_t timerStop

Timer STOP Bit generation.

flexio_timer_start_bit_condition_t timerStart

Timer STRAT Bit generation.

uint32_t timerCompare

Value for Timer Compare N Register.

struct _flexio_shifter_config
#include <fsl_flexio.h>

Define FlexIO shifter configuration structure.

Public Members

uint32_t timerSelect

Selects which Timer is used for controlling the logic/shift register and generating the Shift clock.

flexio_shifter_timer_polarity_t timerPolarity

Timer Polarity.

flexio_pin_config_t pinConfig

Shifter Pin Configuration.

uint32_t pinSelect

Shifter Pin number Select.

flexio_pin_polarity_t pinPolarity

Shifter Pin Polarity.

flexio_shifter_mode_t shifterMode

Configures the mode of the Shifter.

uint32_t parallelWidth

Configures the parallel width when using parallel mode.

flexio_shifter_input_source_t inputSource

Selects the input source for the shifter.

flexio_shifter_stop_bit_t shifterStop

Shifter STOP bit.

flexio_shifter_start_bit_t shifterStart

Shifter START bit.

struct _flexio_gpio_config
#include <fsl_flexio.h>

The FLEXIO pin configuration structure.

Each pin can only be configured as either an output pin or an input pin at a time. If configured as an input pin, use inputConfig param. If configured as an output pin, use outputLogic.

Public Members

flexio_gpio_direction_t pinDirection

FLEXIO pin direction, input or output

uint8_t outputLogic

Set a default output logic, which has no use in input

uint8_t inputConfig

Set an input config

FlexIO eDMA I2S Driver

void FLEXIO_I2S_TransferTxCreateHandleEDMA(FLEXIO_I2S_Type *base, flexio_i2s_edma_handle_t *handle, flexio_i2s_edma_callback_t callback, void *userData, edma_handle_t *dmaHandle)

Initializes the FlexIO I2S eDMA handle.

This function initializes the FlexIO I2S master DMA handle which can be used for other FlexIO I2S master transactional APIs. Usually, for a specified FlexIO I2S instance, call this API once to get the initialized handle.

Parameters:
  • base – FlexIO I2S peripheral base address.

  • handle – FlexIO I2S eDMA handle pointer.

  • callback – FlexIO I2S eDMA callback function called while finished a block.

  • userData – User parameter for callback.

  • dmaHandle – eDMA handle for FlexIO I2S. This handle is a static value allocated by users.

void FLEXIO_I2S_TransferRxCreateHandleEDMA(FLEXIO_I2S_Type *base, flexio_i2s_edma_handle_t *handle, flexio_i2s_edma_callback_t callback, void *userData, edma_handle_t *dmaHandle)

Initializes the FlexIO I2S Rx eDMA handle.

This function initializes the FlexIO I2S slave DMA handle which can be used for other FlexIO I2S master transactional APIs. Usually, for a specified FlexIO I2S instance, call this API once to get the initialized handle.

Parameters:
  • base – FlexIO I2S peripheral base address.

  • handle – FlexIO I2S eDMA handle pointer.

  • callback – FlexIO I2S eDMA callback function called while finished a block.

  • userData – User parameter for callback.

  • dmaHandle – eDMA handle for FlexIO I2S. This handle is a static value allocated by users.

void FLEXIO_I2S_TransferSetFormatEDMA(FLEXIO_I2S_Type *base, flexio_i2s_edma_handle_t *handle, flexio_i2s_format_t *format, uint32_t srcClock_Hz)

Configures the FlexIO I2S Tx audio format.

Audio format can be changed in run-time of FlexIO I2S. This function configures the sample rate and audio data format to be transferred. This function also sets the eDMA parameter according to format.

Parameters:
  • base – FlexIO I2S peripheral base address.

  • handle – FlexIO I2S eDMA handle pointer

  • format – Pointer to FlexIO I2S audio data format structure.

  • srcClock_Hz – FlexIO I2S clock source frequency in Hz, it should be 0 while in slave mode.

status_t FLEXIO_I2S_TransferSendEDMA(FLEXIO_I2S_Type *base, flexio_i2s_edma_handle_t *handle, flexio_i2s_transfer_t *xfer)

Performs a non-blocking FlexIO I2S transfer using DMA.

Note

This interface returned immediately after transfer initiates. Users should call FLEXIO_I2S_GetTransferStatus to poll the transfer status and check whether the FlexIO I2S transfer is finished.

Parameters:
  • base – FlexIO I2S peripheral base address.

  • handle – FlexIO I2S DMA handle pointer.

  • xfer – Pointer to DMA transfer structure.

Return values:
  • kStatus_Success – Start a FlexIO I2S eDMA send successfully.

  • kStatus_InvalidArgument – The input arguments is invalid.

  • kStatus_TxBusy – FlexIO I2S is busy sending data.

status_t FLEXIO_I2S_TransferReceiveEDMA(FLEXIO_I2S_Type *base, flexio_i2s_edma_handle_t *handle, flexio_i2s_transfer_t *xfer)

Performs a non-blocking FlexIO I2S receive using eDMA.

Note

This interface returned immediately after transfer initiates. Users should call FLEXIO_I2S_GetReceiveRemainingBytes to poll the transfer status and check whether the FlexIO I2S transfer is finished.

Parameters:
  • base – FlexIO I2S peripheral base address.

  • handle – FlexIO I2S DMA handle pointer.

  • xfer – Pointer to DMA transfer structure.

Return values:
  • kStatus_Success – Start a FlexIO I2S eDMA receive successfully.

  • kStatus_InvalidArgument – The input arguments is invalid.

  • kStatus_RxBusy – FlexIO I2S is busy receiving data.

void FLEXIO_I2S_TransferAbortSendEDMA(FLEXIO_I2S_Type *base, flexio_i2s_edma_handle_t *handle)

Aborts a FlexIO I2S transfer using eDMA.

Parameters:
  • base – FlexIO I2S peripheral base address.

  • handle – FlexIO I2S DMA handle pointer.

void FLEXIO_I2S_TransferAbortReceiveEDMA(FLEXIO_I2S_Type *base, flexio_i2s_edma_handle_t *handle)

Aborts a FlexIO I2S receive using eDMA.

Parameters:
  • base – FlexIO I2S peripheral base address.

  • handle – FlexIO I2S DMA handle pointer.

status_t FLEXIO_I2S_TransferGetSendCountEDMA(FLEXIO_I2S_Type *base, flexio_i2s_edma_handle_t *handle, size_t *count)

Gets the remaining bytes to be sent.

Parameters:
  • base – FlexIO I2S peripheral base address.

  • handle – FlexIO I2S DMA handle pointer.

  • count – Bytes sent.

Return values:
  • kStatus_Success – Succeed get the transfer count.

  • kStatus_NoTransferInProgress – There is not a non-blocking transaction currently in progress.

status_t FLEXIO_I2S_TransferGetReceiveCountEDMA(FLEXIO_I2S_Type *base, flexio_i2s_edma_handle_t *handle, size_t *count)

Get the remaining bytes to be received.

Parameters:
  • base – FlexIO I2S peripheral base address.

  • handle – FlexIO I2S DMA handle pointer.

  • count – Bytes received.

Return values:
  • kStatus_Success – Succeed get the transfer count.

  • kStatus_NoTransferInProgress – There is not a non-blocking transaction currently in progress.

FSL_FLEXIO_I2S_EDMA_DRIVER_VERSION

FlexIO I2S EDMA driver version 2.1.9.

typedef struct _flexio_i2s_edma_handle flexio_i2s_edma_handle_t
typedef void (*flexio_i2s_edma_callback_t)(FLEXIO_I2S_Type *base, flexio_i2s_edma_handle_t *handle, status_t status, void *userData)

FlexIO I2S eDMA transfer callback function for finish and error.

struct _flexio_i2s_edma_handle
#include <fsl_flexio_i2s_edma.h>

FlexIO I2S DMA transfer handle, users should not touch the content of the handle.

Public Members

edma_handle_t *dmaHandle

DMA handler for FlexIO I2S send

uint8_t bytesPerFrame

Bytes in a frame

uint8_t nbytes

eDMA minor byte transfer count initially configured.

uint32_t state

Internal state for FlexIO I2S eDMA transfer

flexio_i2s_edma_callback_t callback

Callback for users while transfer finish or error occurred

void *userData

User callback parameter

edma_tcd_t tcd[(4U) + 1U]

TCD pool for eDMA transfer.

flexio_i2s_transfer_t queue[(4U)]

Transfer queue storing queued transfer.

size_t transferSize[(4U)]

Data bytes need to transfer

volatile uint8_t queueUser

Index for user to queue transfer.

volatile uint8_t queueDriver

Index for driver to get the transfer data and size

FlexIO eDMA SPI Driver

status_t FLEXIO_SPI_MasterTransferCreateHandleEDMA(FLEXIO_SPI_Type *base, flexio_spi_master_edma_handle_t *handle, flexio_spi_master_edma_transfer_callback_t callback, void *userData, edma_handle_t *txHandle, edma_handle_t *rxHandle)

Initializes the FlexIO SPI master eDMA handle.

This function initializes the FlexIO SPI master eDMA handle which can be used for other FlexIO SPI master transactional APIs. For a specified FlexIO SPI instance, call this API once to get the initialized handle.

Parameters:
  • base – Pointer to FLEXIO_SPI_Type structure.

  • handle – Pointer to flexio_spi_master_edma_handle_t structure to store the transfer state.

  • callback – SPI callback, NULL means no callback.

  • userData – callback function parameter.

  • txHandle – User requested eDMA handle for FlexIO SPI RX eDMA transfer.

  • rxHandle – User requested eDMA handle for FlexIO SPI TX eDMA transfer.

Return values:
  • kStatus_Success – Successfully create the handle.

  • kStatus_OutOfRange – The FlexIO SPI eDMA type/handle table out of range.

status_t FLEXIO_SPI_MasterTransferEDMA(FLEXIO_SPI_Type *base, flexio_spi_master_edma_handle_t *handle, flexio_spi_transfer_t *xfer)

Performs a non-blocking FlexIO SPI transfer using eDMA.

Note

This interface returns immediately after transfer initiates. Call FLEXIO_SPI_MasterGetTransferCountEDMA to poll the transfer status and check whether the FlexIO SPI transfer is finished.

Parameters:
  • base – Pointer to FLEXIO_SPI_Type structure.

  • handle – Pointer to flexio_spi_master_edma_handle_t structure to store the transfer state.

  • xfer – Pointer to FlexIO SPI transfer structure.

Return values:
  • kStatus_Success – Successfully start a transfer.

  • kStatus_InvalidArgument – Input argument is invalid.

  • kStatus_FLEXIO_SPI_Busy – FlexIO SPI is not idle, is running another transfer.

void FLEXIO_SPI_MasterTransferAbortEDMA(FLEXIO_SPI_Type *base, flexio_spi_master_edma_handle_t *handle)

Aborts a FlexIO SPI transfer using eDMA.

Parameters:
  • base – Pointer to FLEXIO_SPI_Type structure.

  • handle – FlexIO SPI eDMA handle pointer.

status_t FLEXIO_SPI_MasterTransferGetCountEDMA(FLEXIO_SPI_Type *base, flexio_spi_master_edma_handle_t *handle, size_t *count)

Gets the number of bytes transferred so far using FlexIO SPI master eDMA.

Parameters:
  • base – Pointer to FLEXIO_SPI_Type structure.

  • handle – FlexIO SPI eDMA handle pointer.

  • count – Number of bytes transferred so far by the non-blocking transaction.

static inline void FLEXIO_SPI_SlaveTransferCreateHandleEDMA(FLEXIO_SPI_Type *base, flexio_spi_slave_edma_handle_t *handle, flexio_spi_slave_edma_transfer_callback_t callback, void *userData, edma_handle_t *txHandle, edma_handle_t *rxHandle)

Initializes the FlexIO SPI slave eDMA handle.

This function initializes the FlexIO SPI slave eDMA handle.

Parameters:
  • base – Pointer to FLEXIO_SPI_Type structure.

  • handle – Pointer to flexio_spi_slave_edma_handle_t structure to store the transfer state.

  • callback – SPI callback, NULL means no callback.

  • userData – callback function parameter.

  • txHandle – User requested eDMA handle for FlexIO SPI TX eDMA transfer.

  • rxHandle – User requested eDMA handle for FlexIO SPI RX eDMA transfer.

status_t FLEXIO_SPI_SlaveTransferEDMA(FLEXIO_SPI_Type *base, flexio_spi_slave_edma_handle_t *handle, flexio_spi_transfer_t *xfer)

Performs a non-blocking FlexIO SPI transfer using eDMA.

Note

This interface returns immediately after transfer initiates. Call FLEXIO_SPI_SlaveGetTransferCountEDMA to poll the transfer status and check whether the FlexIO SPI transfer is finished.

Parameters:
  • base – Pointer to FLEXIO_SPI_Type structure.

  • handle – Pointer to flexio_spi_slave_edma_handle_t structure to store the transfer state.

  • xfer – Pointer to FlexIO SPI transfer structure.

Return values:
  • kStatus_Success – Successfully start a transfer.

  • kStatus_InvalidArgument – Input argument is invalid.

  • kStatus_FLEXIO_SPI_Busy – FlexIO SPI is not idle, is running another transfer.

static inline void FLEXIO_SPI_SlaveTransferAbortEDMA(FLEXIO_SPI_Type *base, flexio_spi_slave_edma_handle_t *handle)

Aborts a FlexIO SPI transfer using eDMA.

Parameters:
  • base – Pointer to FLEXIO_SPI_Type structure.

  • handle – Pointer to flexio_spi_slave_edma_handle_t structure to store the transfer state.

static inline status_t FLEXIO_SPI_SlaveTransferGetCountEDMA(FLEXIO_SPI_Type *base, flexio_spi_slave_edma_handle_t *handle, size_t *count)

Gets the number of bytes transferred so far using FlexIO SPI slave eDMA.

Parameters:
  • base – Pointer to FLEXIO_SPI_Type structure.

  • handle – FlexIO SPI eDMA handle pointer.

  • count – Number of bytes transferred so far by the non-blocking transaction.

FSL_FLEXIO_SPI_EDMA_DRIVER_VERSION

FlexIO SPI EDMA driver version.

typedef struct _flexio_spi_master_edma_handle flexio_spi_master_edma_handle_t

typedef for flexio_spi_master_edma_handle_t in advance.

typedef flexio_spi_master_edma_handle_t flexio_spi_slave_edma_handle_t

Slave handle is the same with master handle.

typedef void (*flexio_spi_master_edma_transfer_callback_t)(FLEXIO_SPI_Type *base, flexio_spi_master_edma_handle_t *handle, status_t status, void *userData)

FlexIO SPI master callback for finished transmit.

typedef void (*flexio_spi_slave_edma_transfer_callback_t)(FLEXIO_SPI_Type *base, flexio_spi_slave_edma_handle_t *handle, status_t status, void *userData)

FlexIO SPI slave callback for finished transmit.

struct _flexio_spi_master_edma_handle
#include <fsl_flexio_spi_edma.h>

FlexIO SPI eDMA transfer handle, users should not touch the content of the handle.

Public Members

size_t transferSize

Total bytes to be transferred.

uint8_t nbytes

eDMA minor byte transfer count initially configured.

bool txInProgress

Send transfer in progress

bool rxInProgress

Receive transfer in progress

edma_handle_t *txHandle

DMA handler for SPI send

edma_handle_t *rxHandle

DMA handler for SPI receive

flexio_spi_master_edma_transfer_callback_t callback

Callback for SPI DMA transfer

void *userData

User Data for SPI DMA callback

FlexIO eDMA UART Driver

status_t FLEXIO_UART_TransferCreateHandleEDMA(FLEXIO_UART_Type *base, flexio_uart_edma_handle_t *handle, flexio_uart_edma_transfer_callback_t callback, void *userData, edma_handle_t *txEdmaHandle, edma_handle_t *rxEdmaHandle)

Initializes the UART handle which is used in transactional functions.

Parameters:
  • base – Pointer to FLEXIO_UART_Type.

  • handle – Pointer to flexio_uart_edma_handle_t structure.

  • callback – The callback function.

  • userData – The parameter of the callback function.

  • rxEdmaHandle – User requested DMA handle for RX DMA transfer.

  • txEdmaHandle – User requested DMA handle for TX DMA transfer.

Return values:
  • kStatus_Success – Successfully create the handle.

  • kStatus_OutOfRange – The FlexIO SPI eDMA type/handle table out of range.

status_t FLEXIO_UART_TransferSendEDMA(FLEXIO_UART_Type *base, flexio_uart_edma_handle_t *handle, flexio_uart_transfer_t *xfer)

Sends data using eDMA.

This function sends data using eDMA. This is a non-blocking function, which returns right away. When all data is sent out, the send callback function is called.

Parameters:
  • base – Pointer to FLEXIO_UART_Type

  • handle – UART handle pointer.

  • xfer – UART eDMA transfer structure, see flexio_uart_transfer_t.

Return values:
  • kStatus_Success – if succeed, others failed.

  • kStatus_FLEXIO_UART_TxBusy – Previous transfer on going.

status_t FLEXIO_UART_TransferReceiveEDMA(FLEXIO_UART_Type *base, flexio_uart_edma_handle_t *handle, flexio_uart_transfer_t *xfer)

Receives data using eDMA.

This function receives data using eDMA. This is a non-blocking function, which returns right away. When all data is received, the receive callback function is called.

Parameters:
  • base – Pointer to FLEXIO_UART_Type

  • handle – Pointer to flexio_uart_edma_handle_t structure

  • xfer – UART eDMA transfer structure, see flexio_uart_transfer_t.

Return values:
  • kStatus_Success – if succeed, others failed.

  • kStatus_UART_RxBusy – Previous transfer on going.

void FLEXIO_UART_TransferAbortSendEDMA(FLEXIO_UART_Type *base, flexio_uart_edma_handle_t *handle)

Aborts the sent data which using eDMA.

This function aborts sent data which using eDMA.

Parameters:
  • base – Pointer to FLEXIO_UART_Type

  • handle – Pointer to flexio_uart_edma_handle_t structure

void FLEXIO_UART_TransferAbortReceiveEDMA(FLEXIO_UART_Type *base, flexio_uart_edma_handle_t *handle)

Aborts the receive data which using eDMA.

This function aborts the receive data which using eDMA.

Parameters:
  • base – Pointer to FLEXIO_UART_Type

  • handle – Pointer to flexio_uart_edma_handle_t structure

status_t FLEXIO_UART_TransferGetSendCountEDMA(FLEXIO_UART_Type *base, flexio_uart_edma_handle_t *handle, size_t *count)

Gets the number of bytes sent out.

This function gets the number of bytes sent out.

Parameters:
  • base – Pointer to FLEXIO_UART_Type

  • handle – Pointer to flexio_uart_edma_handle_t structure

  • count – Number of bytes sent so far by the non-blocking transaction.

Return values:
  • kStatus_NoTransferInProgress – transfer has finished or no transfer in progress.

  • kStatus_Success – Successfully return the count.

status_t FLEXIO_UART_TransferGetReceiveCountEDMA(FLEXIO_UART_Type *base, flexio_uart_edma_handle_t *handle, size_t *count)

Gets the number of bytes received.

This function gets the number of bytes received.

Parameters:
  • base – Pointer to FLEXIO_UART_Type

  • handle – Pointer to flexio_uart_edma_handle_t structure

  • count – Number of bytes received so far by the non-blocking transaction.

Return values:
  • kStatus_NoTransferInProgress – transfer has finished or no transfer in progress.

  • kStatus_Success – Successfully return the count.

FSL_FLEXIO_UART_EDMA_DRIVER_VERSION

FlexIO UART EDMA driver version.

typedef struct _flexio_uart_edma_handle flexio_uart_edma_handle_t
typedef void (*flexio_uart_edma_transfer_callback_t)(FLEXIO_UART_Type *base, flexio_uart_edma_handle_t *handle, status_t status, void *userData)

UART transfer callback function.

struct _flexio_uart_edma_handle
#include <fsl_flexio_uart_edma.h>

UART eDMA handle.

Public Members

flexio_uart_edma_transfer_callback_t callback

Callback function.

void *userData

UART callback function parameter.

size_t txDataSizeAll

Total bytes to be sent.

size_t rxDataSizeAll

Total bytes to be received.

edma_handle_t *txEdmaHandle

The eDMA TX channel used.

edma_handle_t *rxEdmaHandle

The eDMA RX channel used.

uint8_t nbytes

eDMA minor byte transfer count initially configured.

volatile uint8_t txState

TX transfer state.

volatile uint8_t rxState

RX transfer state

FlexIO I2C Master Driver

status_t FLEXIO_I2C_CheckForBusyBus(FLEXIO_I2C_Type *base)

Make sure the bus isn’t already pulled down.

Check the FLEXIO pin status to see whether either of SDA and SCL pin is pulled down.

Parameters:
  • base – Pointer to FLEXIO_I2C_Type structure..

Return values:
  • kStatus_Success

  • kStatus_FLEXIO_I2C_Busy

status_t FLEXIO_I2C_MasterInit(FLEXIO_I2C_Type *base, flexio_i2c_master_config_t *masterConfig, uint32_t srcClock_Hz)

Ungates the FlexIO clock, resets the FlexIO module, and configures the FlexIO I2C hardware configuration.

Example

FLEXIO_I2C_Type base = {
.flexioBase = FLEXIO,
.SDAPinIndex = 0,
.SCLPinIndex = 1,
.shifterIndex = {0,1},
.timerIndex = {0,1}
};
flexio_i2c_master_config_t config = {
.enableInDoze = false,
.enableInDebug = true,
.enableFastAccess = false,
.baudRate_Bps = 100000
};
FLEXIO_I2C_MasterInit(base, &config, srcClock_Hz);

Parameters:
  • base – Pointer to FLEXIO_I2C_Type structure.

  • masterConfig – Pointer to flexio_i2c_master_config_t structure.

  • srcClock_Hz – FlexIO source clock in Hz.

Return values:
  • kStatus_Success – Initialization successful

  • kStatus_InvalidArgument – The source clock exceed upper range limitation

void FLEXIO_I2C_MasterDeinit(FLEXIO_I2C_Type *base)

De-initializes the FlexIO I2C master peripheral. Calling this API Resets the FlexIO I2C master shifer and timer config, module can’t work unless the FLEXIO_I2C_MasterInit is called.

Parameters:
  • base – pointer to FLEXIO_I2C_Type structure.

void FLEXIO_I2C_MasterGetDefaultConfig(flexio_i2c_master_config_t *masterConfig)

Gets the default configuration to configure the FlexIO module. The configuration can be used directly for calling the FLEXIO_I2C_MasterInit().

Example:

flexio_i2c_master_config_t config;
FLEXIO_I2C_MasterGetDefaultConfig(&config);

Parameters:
  • masterConfig – Pointer to flexio_i2c_master_config_t structure.

static inline void FLEXIO_I2C_MasterEnable(FLEXIO_I2C_Type *base, bool enable)

Enables/disables the FlexIO module operation.

Parameters:
  • base – Pointer to FLEXIO_I2C_Type structure.

  • enable – Pass true to enable module, false does not have any effect.

uint32_t FLEXIO_I2C_MasterGetStatusFlags(FLEXIO_I2C_Type *base)

Gets the FlexIO I2C master status flags.

Parameters:
  • base – Pointer to FLEXIO_I2C_Type structure

Returns:

Status flag, use status flag to AND _flexio_i2c_master_status_flags can get the related status.

void FLEXIO_I2C_MasterClearStatusFlags(FLEXIO_I2C_Type *base, uint32_t mask)

Clears the FlexIO I2C master status flags.

Parameters:
  • base – Pointer to FLEXIO_I2C_Type structure.

  • mask – Status flag. The parameter can be any combination of the following values:

    • kFLEXIO_I2C_RxFullFlag

    • kFLEXIO_I2C_ReceiveNakFlag

void FLEXIO_I2C_MasterEnableInterrupts(FLEXIO_I2C_Type *base, uint32_t mask)

Enables the FlexIO i2c master interrupt requests.

Parameters:
  • base – Pointer to FLEXIO_I2C_Type structure.

  • mask – Interrupt source. Currently only one interrupt request source:

    • kFLEXIO_I2C_TransferCompleteInterruptEnable

void FLEXIO_I2C_MasterDisableInterrupts(FLEXIO_I2C_Type *base, uint32_t mask)

Disables the FlexIO I2C master interrupt requests.

Parameters:
  • base – Pointer to FLEXIO_I2C_Type structure.

  • mask – Interrupt source.

void FLEXIO_I2C_MasterSetBaudRate(FLEXIO_I2C_Type *base, uint32_t baudRate_Bps, uint32_t srcClock_Hz)

Sets the FlexIO I2C master transfer baudrate.

Parameters:
  • base – Pointer to FLEXIO_I2C_Type structure

  • baudRate_Bps – the baud rate value in HZ

  • srcClock_Hz – source clock in HZ

void FLEXIO_I2C_MasterStart(FLEXIO_I2C_Type *base, uint8_t address, flexio_i2c_direction_t direction)

Sends START + 7-bit address to the bus.

Note

This API should be called when the transfer configuration is ready to send a START signal and 7-bit address to the bus. This is a non-blocking API, which returns directly after the address is put into the data register but the address transfer is not finished on the bus. Ensure that the kFLEXIO_I2C_RxFullFlag status is asserted before calling this API.

Parameters:
  • base – Pointer to FLEXIO_I2C_Type structure.

  • address – 7-bit address.

  • direction – transfer direction. This parameter is one of the values in flexio_i2c_direction_t:

    • kFLEXIO_I2C_Write: Transmit

    • kFLEXIO_I2C_Read: Receive

void FLEXIO_I2C_MasterStop(FLEXIO_I2C_Type *base)

Sends the stop signal on the bus.

Parameters:
  • base – Pointer to FLEXIO_I2C_Type structure.

void FLEXIO_I2C_MasterRepeatedStart(FLEXIO_I2C_Type *base)

Sends the repeated start signal on the bus.

Parameters:
  • base – Pointer to FLEXIO_I2C_Type structure.

void FLEXIO_I2C_MasterAbortStop(FLEXIO_I2C_Type *base)

Sends the stop signal when transfer is still on-going.

Parameters:
  • base – Pointer to FLEXIO_I2C_Type structure.

void FLEXIO_I2C_MasterEnableAck(FLEXIO_I2C_Type *base, bool enable)

Configures the sent ACK/NAK for the following byte.

Parameters:
  • base – Pointer to FLEXIO_I2C_Type structure.

  • enable – True to configure send ACK, false configure to send NAK.

status_t FLEXIO_I2C_MasterSetTransferCount(FLEXIO_I2C_Type *base, uint16_t count)

Sets the number of bytes to be transferred from a start signal to a stop signal.

Note

Call this API before a transfer begins because the timer generates a number of clocks according to the number of bytes that need to be transferred.

Parameters:
  • base – Pointer to FLEXIO_I2C_Type structure.

  • count – Number of bytes need to be transferred from a start signal to a re-start/stop signal

Return values:
  • kStatus_Success – Successfully configured the count.

  • kStatus_InvalidArgument – Input argument is invalid.

static inline void FLEXIO_I2C_MasterWriteByte(FLEXIO_I2C_Type *base, uint32_t data)

Writes one byte of data to the I2C bus.

Note

This is a non-blocking API, which returns directly after the data is put into the data register but the data transfer is not finished on the bus. Ensure that the TxEmptyFlag is asserted before calling this API.

Parameters:
  • base – Pointer to FLEXIO_I2C_Type structure.

  • data – a byte of data.

static inline uint8_t FLEXIO_I2C_MasterReadByte(FLEXIO_I2C_Type *base)

Reads one byte of data from the I2C bus.

Note

This is a non-blocking API, which returns directly after the data is read from the data register. Ensure that the data is ready in the register.

Parameters:
  • base – Pointer to FLEXIO_I2C_Type structure.

Returns:

data byte read.

status_t FLEXIO_I2C_MasterWriteBlocking(FLEXIO_I2C_Type *base, const uint8_t *txBuff, uint8_t txSize)

Sends a buffer of data in bytes.

Note

This function blocks via polling until all bytes have been sent.

Parameters:
  • base – Pointer to FLEXIO_I2C_Type structure.

  • txBuff – The data bytes to send.

  • txSize – The number of data bytes to send.

Return values:
  • kStatus_Success – Successfully write data.

  • kStatus_FLEXIO_I2C_Nak – Receive NAK during writing data.

  • kStatus_FLEXIO_I2C_Timeout – Timeout polling status flags.

status_t FLEXIO_I2C_MasterReadBlocking(FLEXIO_I2C_Type *base, uint8_t *rxBuff, uint8_t rxSize)

Receives a buffer of bytes.

Note

This function blocks via polling until all bytes have been received.

Parameters:
  • base – Pointer to FLEXIO_I2C_Type structure.

  • rxBuff – The buffer to store the received bytes.

  • rxSize – The number of data bytes to be received.

Return values:
  • kStatus_Success – Successfully read data.

  • kStatus_FLEXIO_I2C_Timeout – Timeout polling status flags.

status_t FLEXIO_I2C_MasterTransferBlocking(FLEXIO_I2C_Type *base, flexio_i2c_master_transfer_t *xfer)

Performs a master polling transfer on the I2C bus.

Note

The API does not return until the transfer succeeds or fails due to receiving NAK.

Parameters:
  • base – pointer to FLEXIO_I2C_Type structure.

  • xfer – pointer to flexio_i2c_master_transfer_t structure.

Returns:

status of status_t.

status_t FLEXIO_I2C_MasterTransferCreateHandle(FLEXIO_I2C_Type *base, flexio_i2c_master_handle_t *handle, flexio_i2c_master_transfer_callback_t callback, void *userData)

Initializes the I2C handle which is used in transactional functions.

Parameters:
  • base – Pointer to FLEXIO_I2C_Type structure.

  • handle – Pointer to flexio_i2c_master_handle_t structure to store the transfer state.

  • callback – Pointer to user callback function.

  • userData – User param passed to the callback function.

Return values:
  • kStatus_Success – Successfully create the handle.

  • kStatus_OutOfRange – The FlexIO type/handle/isr table out of range.

status_t FLEXIO_I2C_MasterTransferNonBlocking(FLEXIO_I2C_Type *base, flexio_i2c_master_handle_t *handle, flexio_i2c_master_transfer_t *xfer)

Performs a master interrupt non-blocking transfer on the I2C bus.

Note

The API returns immediately after the transfer initiates. Call FLEXIO_I2C_MasterTransferGetCount to poll the transfer status to check whether the transfer is finished. If the return status is not kStatus_FLEXIO_I2C_Busy, the transfer is finished.

Parameters:
  • base – Pointer to FLEXIO_I2C_Type structure

  • handle – Pointer to flexio_i2c_master_handle_t structure which stores the transfer state

  • xfer – pointer to flexio_i2c_master_transfer_t structure

Return values:
  • kStatus_Success – Successfully start a transfer.

  • kStatus_FLEXIO_I2C_Busy – FlexIO I2C is not idle, is running another transfer.

status_t FLEXIO_I2C_MasterTransferGetCount(FLEXIO_I2C_Type *base, flexio_i2c_master_handle_t *handle, size_t *count)

Gets the master transfer status during a interrupt non-blocking transfer.

Parameters:
  • base – Pointer to FLEXIO_I2C_Type structure.

  • handle – Pointer to flexio_i2c_master_handle_t structure which stores the transfer state.

  • count – Number of bytes transferred so far by the non-blocking transaction.

Return values:
  • kStatus_InvalidArgument – count is Invalid.

  • kStatus_NoTransferInProgress – There is not a non-blocking transaction currently in progress.

  • kStatus_Success – Successfully return the count.

void FLEXIO_I2C_MasterTransferAbort(FLEXIO_I2C_Type *base, flexio_i2c_master_handle_t *handle)

Aborts an interrupt non-blocking transfer early.

Note

This API can be called at any time when an interrupt non-blocking transfer initiates to abort the transfer early.

Parameters:
  • base – Pointer to FLEXIO_I2C_Type structure

  • handle – Pointer to flexio_i2c_master_handle_t structure which stores the transfer state

void FLEXIO_I2C_MasterTransferHandleIRQ(void *i2cType, void *i2cHandle)

Master interrupt handler.

Parameters:
  • i2cType – Pointer to FLEXIO_I2C_Type structure

  • i2cHandle – Pointer to flexio_i2c_master_transfer_t structure

FSL_FLEXIO_I2C_MASTER_DRIVER_VERSION

FlexIO I2C transfer status.

Values:

enumerator kStatus_FLEXIO_I2C_Busy

I2C is busy doing transfer.

enumerator kStatus_FLEXIO_I2C_Idle

I2C is busy doing transfer.

enumerator kStatus_FLEXIO_I2C_Nak

NAK received during transfer.

enumerator kStatus_FLEXIO_I2C_Timeout

Timeout polling status flags.

enum _flexio_i2c_master_interrupt

Define FlexIO I2C master interrupt mask.

Values:

enumerator kFLEXIO_I2C_TxEmptyInterruptEnable

Tx buffer empty interrupt enable.

enumerator kFLEXIO_I2C_RxFullInterruptEnable

Rx buffer full interrupt enable.

enum _flexio_i2c_master_status_flags

Define FlexIO I2C master status mask.

Values:

enumerator kFLEXIO_I2C_TxEmptyFlag

Tx shifter empty flag.

enumerator kFLEXIO_I2C_RxFullFlag

Rx shifter full/Transfer complete flag.

enumerator kFLEXIO_I2C_ReceiveNakFlag

Receive NAK flag.

enum _flexio_i2c_direction

Direction of master transfer.

Values:

enumerator kFLEXIO_I2C_Write

Master send to slave.

enumerator kFLEXIO_I2C_Read

Master receive from slave.

typedef enum _flexio_i2c_direction flexio_i2c_direction_t

Direction of master transfer.

typedef struct _flexio_i2c_type FLEXIO_I2C_Type

Define FlexIO I2C master access structure typedef.

typedef struct _flexio_i2c_master_config flexio_i2c_master_config_t

Define FlexIO I2C master user configuration structure.

typedef struct _flexio_i2c_master_transfer flexio_i2c_master_transfer_t

Define FlexIO I2C master transfer structure.

typedef struct _flexio_i2c_master_handle flexio_i2c_master_handle_t

FlexIO I2C master handle typedef.

typedef void (*flexio_i2c_master_transfer_callback_t)(FLEXIO_I2C_Type *base, flexio_i2c_master_handle_t *handle, status_t status, void *userData)

FlexIO I2C master transfer callback typedef.

I2C_RETRY_TIMES

Retry times for waiting flag.

struct _flexio_i2c_type
#include <fsl_flexio_i2c_master.h>

Define FlexIO I2C master access structure typedef.

Public Members

FLEXIO_Type *flexioBase

FlexIO base pointer.

uint8_t SDAPinIndex

Pin select for I2C SDA.

uint8_t SCLPinIndex

Pin select for I2C SCL.

uint8_t shifterIndex[2]

Shifter index used in FlexIO I2C.

uint8_t timerIndex[3]

Timer index used in FlexIO I2C.

uint32_t baudrate

Master transfer baudrate, used to calculate delay time.

struct _flexio_i2c_master_config
#include <fsl_flexio_i2c_master.h>

Define FlexIO I2C master user configuration structure.

Public Members

bool enableMaster

Enables the FlexIO I2C peripheral at initialization time.

bool enableInDoze

Enable/disable FlexIO operation in doze mode.

bool enableInDebug

Enable/disable FlexIO operation in debug mode.

bool enableFastAccess

Enable/disable fast access to FlexIO registers, fast access requires the FlexIO clock to be at least twice the frequency of the bus clock.

uint32_t baudRate_Bps

Baud rate in Bps.

struct _flexio_i2c_master_transfer
#include <fsl_flexio_i2c_master.h>

Define FlexIO I2C master transfer structure.

Public Members

uint32_t flags

Transfer flag which controls the transfer, reserved for FlexIO I2C.

uint8_t slaveAddress

7-bit slave address.

flexio_i2c_direction_t direction

Transfer direction, read or write.

uint32_t subaddress

Sub address. Transferred MSB first.

uint8_t subaddressSize

Size of sub address.

uint8_t volatile *data

Transfer buffer.

volatile size_t dataSize

Transfer size.

struct _flexio_i2c_master_handle
#include <fsl_flexio_i2c_master.h>

Define FlexIO I2C master handle structure.

Public Members

flexio_i2c_master_transfer_t transfer

FlexIO I2C master transfer copy.

size_t transferSize

Total bytes to be transferred.

uint8_t state

Transfer state maintained during transfer.

flexio_i2c_master_transfer_callback_t completionCallback

Callback function called at transfer event. Callback function called at transfer event.

void *userData

Callback parameter passed to callback function.

bool needRestart

Whether master needs to send re-start signal.

FlexIO I2S Driver

void FLEXIO_I2S_Init(FLEXIO_I2S_Type *base, const flexio_i2s_config_t *config)

Initializes the FlexIO I2S.

This API configures FlexIO pins and shifter to I2S and configures the FlexIO I2S with a configuration structure. The configuration structure can be filled by the user, or be set with default values by FLEXIO_I2S_GetDefaultConfig().

Note

This API should be called at the beginning of the application to use the FlexIO I2S driver. Otherwise, any access to the FlexIO I2S module can cause hard fault because the clock is not enabled.

Parameters:
  • base – FlexIO I2S base pointer

  • config – FlexIO I2S configure structure.

void FLEXIO_I2S_GetDefaultConfig(flexio_i2s_config_t *config)

Sets the FlexIO I2S configuration structure to default values.

The purpose of this API is to get the configuration structure initialized for use in FLEXIO_I2S_Init(). Users may use the initialized structure unchanged in FLEXIO_I2S_Init() or modify some fields of the structure before calling FLEXIO_I2S_Init().

Parameters:
  • config – pointer to master configuration structure

void FLEXIO_I2S_Deinit(FLEXIO_I2S_Type *base)

De-initializes the FlexIO I2S.

Calling this API resets the FlexIO I2S shifter and timer config. After calling this API, call the FLEXO_I2S_Init to use the FlexIO I2S module.

Parameters:
  • base – FlexIO I2S base pointer

static inline void FLEXIO_I2S_Enable(FLEXIO_I2S_Type *base, bool enable)

Enables/disables the FlexIO I2S module operation.

Parameters:
  • base – Pointer to FLEXIO_I2S_Type

  • enable – True to enable, false dose not have any effect.

uint32_t FLEXIO_I2S_GetStatusFlags(FLEXIO_I2S_Type *base)

Gets the FlexIO I2S status flags.

Parameters:
  • base – Pointer to FLEXIO_I2S_Type structure

Returns:

Status flag, which are ORed by the enumerators in the _flexio_i2s_status_flags.

void FLEXIO_I2S_EnableInterrupts(FLEXIO_I2S_Type *base, uint32_t mask)

Enables the FlexIO I2S interrupt.

This function enables the FlexIO UART interrupt.

Parameters:
  • base – Pointer to FLEXIO_I2S_Type structure

  • mask – interrupt source

void FLEXIO_I2S_DisableInterrupts(FLEXIO_I2S_Type *base, uint32_t mask)

Disables the FlexIO I2S interrupt.

This function enables the FlexIO UART interrupt.

Parameters:
  • base – pointer to FLEXIO_I2S_Type structure

  • mask – interrupt source

static inline void FLEXIO_I2S_TxEnableDMA(FLEXIO_I2S_Type *base, bool enable)

Enables/disables the FlexIO I2S Tx DMA requests.

Parameters:
  • base – FlexIO I2S base pointer

  • enable – True means enable DMA, false means disable DMA.

static inline void FLEXIO_I2S_RxEnableDMA(FLEXIO_I2S_Type *base, bool enable)

Enables/disables the FlexIO I2S Rx DMA requests.

Parameters:
  • base – FlexIO I2S base pointer

  • enable – True means enable DMA, false means disable DMA.

static inline uint32_t FLEXIO_I2S_TxGetDataRegisterAddress(FLEXIO_I2S_Type *base)

Gets the FlexIO I2S send data register address.

This function returns the I2S data register address, mainly used by DMA/eDMA.

Parameters:
  • base – Pointer to FLEXIO_I2S_Type structure

Returns:

FlexIO i2s send data register address.

static inline uint32_t FLEXIO_I2S_RxGetDataRegisterAddress(FLEXIO_I2S_Type *base)

Gets the FlexIO I2S receive data register address.

This function returns the I2S data register address, mainly used by DMA/eDMA.

Parameters:
  • base – Pointer to FLEXIO_I2S_Type structure

Returns:

FlexIO i2s receive data register address.

void FLEXIO_I2S_MasterSetFormat(FLEXIO_I2S_Type *base, flexio_i2s_format_t *format, uint32_t srcClock_Hz)

Configures the FlexIO I2S audio format in master mode.

Audio format can be changed in run-time of FlexIO I2S. This function configures the sample rate and audio data format to be transferred.

Parameters:
  • base – Pointer to FLEXIO_I2S_Type structure

  • format – Pointer to FlexIO I2S audio data format structure.

  • srcClock_Hz – I2S master clock source frequency in Hz.

void FLEXIO_I2S_SlaveSetFormat(FLEXIO_I2S_Type *base, flexio_i2s_format_t *format)

Configures the FlexIO I2S audio format in slave mode.

Audio format can be changed in run-time of FlexIO I2S. This function configures the sample rate and audio data format to be transferred.

Parameters:
  • base – Pointer to FLEXIO_I2S_Type structure

  • format – Pointer to FlexIO I2S audio data format structure.

status_t FLEXIO_I2S_WriteBlocking(FLEXIO_I2S_Type *base, uint8_t bitWidth, uint8_t *txData, size_t size)

Sends data using a blocking method.

Note

This function blocks via polling until data is ready to be sent.

Parameters:
  • base – FlexIO I2S base pointer.

  • bitWidth – How many bits in a audio word, usually 8/16/24/32 bits.

  • txData – Pointer to the data to be written.

  • size – Bytes to be written.

Return values:
  • kStatus_Success – Successfully write data.

  • kStatus_FLEXIO_I2C_Timeout – Timeout polling status flags.

static inline void FLEXIO_I2S_WriteData(FLEXIO_I2S_Type *base, uint8_t bitWidth, uint32_t data)

Writes data into a data register.

Parameters:
  • base – FlexIO I2S base pointer.

  • bitWidth – How many bits in a audio word, usually 8/16/24/32 bits.

  • data – Data to be written.

status_t FLEXIO_I2S_ReadBlocking(FLEXIO_I2S_Type *base, uint8_t bitWidth, uint8_t *rxData, size_t size)

Receives a piece of data using a blocking method.

Note

This function blocks via polling until data is ready to be sent.

Parameters:
  • base – FlexIO I2S base pointer

  • bitWidth – How many bits in a audio word, usually 8/16/24/32 bits.

  • rxData – Pointer to the data to be read.

  • size – Bytes to be read.

Return values:
  • kStatus_Success – Successfully read data.

  • kStatus_FLEXIO_I2C_Timeout – Timeout polling status flags.

static inline uint32_t FLEXIO_I2S_ReadData(FLEXIO_I2S_Type *base)

Reads a data from the data register.

Parameters:
  • base – FlexIO I2S base pointer

Returns:

Data read from data register.

void FLEXIO_I2S_TransferTxCreateHandle(FLEXIO_I2S_Type *base, flexio_i2s_handle_t *handle, flexio_i2s_callback_t callback, void *userData)

Initializes the FlexIO I2S handle.

This function initializes the FlexIO I2S handle which can be used for other FlexIO I2S transactional APIs. Call this API once to get the initialized handle.

Parameters:
  • base – Pointer to FLEXIO_I2S_Type structure

  • handle – Pointer to flexio_i2s_handle_t structure to store the transfer state.

  • callback – FlexIO I2S callback function, which is called while finished a block.

  • userData – User parameter for the FlexIO I2S callback.

void FLEXIO_I2S_TransferSetFormat(FLEXIO_I2S_Type *base, flexio_i2s_handle_t *handle, flexio_i2s_format_t *format, uint32_t srcClock_Hz)

Configures the FlexIO I2S audio format.

Audio format can be changed at run-time of FlexIO I2S. This function configures the sample rate and audio data format to be transferred.

Parameters:
  • base – Pointer to FLEXIO_I2S_Type structure.

  • handle – FlexIO I2S handle pointer.

  • format – Pointer to audio data format structure.

  • srcClock_Hz – FlexIO I2S bit clock source frequency in Hz. This parameter should be 0 while in slave mode.

void FLEXIO_I2S_TransferRxCreateHandle(FLEXIO_I2S_Type *base, flexio_i2s_handle_t *handle, flexio_i2s_callback_t callback, void *userData)

Initializes the FlexIO I2S receive handle.

This function initializes the FlexIO I2S handle which can be used for other FlexIO I2S transactional APIs. Call this API once to get the initialized handle.

Parameters:
  • base – Pointer to FLEXIO_I2S_Type structure.

  • handle – Pointer to flexio_i2s_handle_t structure to store the transfer state.

  • callback – FlexIO I2S callback function, which is called while finished a block.

  • userData – User parameter for the FlexIO I2S callback.

status_t FLEXIO_I2S_TransferSendNonBlocking(FLEXIO_I2S_Type *base, flexio_i2s_handle_t *handle, flexio_i2s_transfer_t *xfer)

Performs an interrupt non-blocking send transfer on FlexIO I2S.

Note

The API returns immediately after transfer initiates. Call FLEXIO_I2S_GetRemainingBytes to poll the transfer status and check whether the transfer is finished. If the return status is 0, the transfer is finished.

Parameters:
  • base – Pointer to FLEXIO_I2S_Type structure.

  • handle – Pointer to flexio_i2s_handle_t structure which stores the transfer state

  • xfer – Pointer to flexio_i2s_transfer_t structure

Return values:
  • kStatus_Success – Successfully start the data transmission.

  • kStatus_FLEXIO_I2S_TxBusy – Previous transmission still not finished, data not all written to TX register yet.

  • kStatus_InvalidArgument – The input parameter is invalid.

status_t FLEXIO_I2S_TransferReceiveNonBlocking(FLEXIO_I2S_Type *base, flexio_i2s_handle_t *handle, flexio_i2s_transfer_t *xfer)

Performs an interrupt non-blocking receive transfer on FlexIO I2S.

Note

The API returns immediately after transfer initiates. Call FLEXIO_I2S_GetRemainingBytes to poll the transfer status to check whether the transfer is finished. If the return status is 0, the transfer is finished.

Parameters:
  • base – Pointer to FLEXIO_I2S_Type structure.

  • handle – Pointer to flexio_i2s_handle_t structure which stores the transfer state

  • xfer – Pointer to flexio_i2s_transfer_t structure

Return values:
  • kStatus_Success – Successfully start the data receive.

  • kStatus_FLEXIO_I2S_RxBusy – Previous receive still not finished.

  • kStatus_InvalidArgument – The input parameter is invalid.

void FLEXIO_I2S_TransferAbortSend(FLEXIO_I2S_Type *base, flexio_i2s_handle_t *handle)

Aborts the current send.

Note

This API can be called at any time when interrupt non-blocking transfer initiates to abort the transfer in a early time.

Parameters:
  • base – Pointer to FLEXIO_I2S_Type structure.

  • handle – Pointer to flexio_i2s_handle_t structure which stores the transfer state

void FLEXIO_I2S_TransferAbortReceive(FLEXIO_I2S_Type *base, flexio_i2s_handle_t *handle)

Aborts the current receive.

Note

This API can be called at any time when interrupt non-blocking transfer initiates to abort the transfer in a early time.

Parameters:
  • base – Pointer to FLEXIO_I2S_Type structure.

  • handle – Pointer to flexio_i2s_handle_t structure which stores the transfer state

status_t FLEXIO_I2S_TransferGetSendCount(FLEXIO_I2S_Type *base, flexio_i2s_handle_t *handle, size_t *count)

Gets the remaining bytes to be sent.

Parameters:
  • base – Pointer to FLEXIO_I2S_Type structure.

  • handle – Pointer to flexio_i2s_handle_t structure which stores the transfer state

  • count – Bytes sent.

Return values:
  • kStatus_Success – Succeed get the transfer count.

  • kStatus_NoTransferInProgress – There is not a non-blocking transaction currently in progress.

status_t FLEXIO_I2S_TransferGetReceiveCount(FLEXIO_I2S_Type *base, flexio_i2s_handle_t *handle, size_t *count)

Gets the remaining bytes to be received.

Parameters:
  • base – Pointer to FLEXIO_I2S_Type structure.

  • handle – Pointer to flexio_i2s_handle_t structure which stores the transfer state

  • count – Bytes recieved.

Return values:
  • kStatus_Success – Succeed get the transfer count.

  • kStatus_NoTransferInProgress – There is not a non-blocking transaction currently in progress.

Returns:

count Bytes received.

void FLEXIO_I2S_TransferTxHandleIRQ(void *i2sBase, void *i2sHandle)

Tx interrupt handler.

Parameters:
  • i2sBase – Pointer to FLEXIO_I2S_Type structure.

  • i2sHandle – Pointer to flexio_i2s_handle_t structure

void FLEXIO_I2S_TransferRxHandleIRQ(void *i2sBase, void *i2sHandle)

Rx interrupt handler.

Parameters:
  • i2sBase – Pointer to FLEXIO_I2S_Type structure.

  • i2sHandle – Pointer to flexio_i2s_handle_t structure.

FSL_FLEXIO_I2S_DRIVER_VERSION

FlexIO I2S driver version 2.2.2.

FlexIO I2S transfer status.

Values:

enumerator kStatus_FLEXIO_I2S_Idle

FlexIO I2S is in idle state

enumerator kStatus_FLEXIO_I2S_TxBusy

FlexIO I2S Tx is busy

enumerator kStatus_FLEXIO_I2S_RxBusy

FlexIO I2S Tx is busy

enumerator kStatus_FLEXIO_I2S_Error

FlexIO I2S error occurred

enumerator kStatus_FLEXIO_I2S_QueueFull

FlexIO I2S transfer queue is full.

enumerator kStatus_FLEXIO_I2S_Timeout

FlexIO I2S timeout polling status flags.

enum _flexio_i2s_master_slave

Master or slave mode.

Values:

enumerator kFLEXIO_I2S_Master

Master mode

enumerator kFLEXIO_I2S_Slave

Slave mode

_flexio_i2s_interrupt_enable Define FlexIO FlexIO I2S interrupt mask.

Values:

enumerator kFLEXIO_I2S_TxDataRegEmptyInterruptEnable

Transmit buffer empty interrupt enable.

enumerator kFLEXIO_I2S_RxDataRegFullInterruptEnable

Receive buffer full interrupt enable.

_flexio_i2s_status_flags Define FlexIO FlexIO I2S status mask.

Values:

enumerator kFLEXIO_I2S_TxDataRegEmptyFlag

Transmit buffer empty flag.

enumerator kFLEXIO_I2S_RxDataRegFullFlag

Receive buffer full flag.

enum _flexio_i2s_sample_rate

Audio sample rate.

Values:

enumerator kFLEXIO_I2S_SampleRate8KHz

Sample rate 8000Hz

enumerator kFLEXIO_I2S_SampleRate11025Hz

Sample rate 11025Hz

enumerator kFLEXIO_I2S_SampleRate12KHz

Sample rate 12000Hz

enumerator kFLEXIO_I2S_SampleRate16KHz

Sample rate 16000Hz

enumerator kFLEXIO_I2S_SampleRate22050Hz

Sample rate 22050Hz

enumerator kFLEXIO_I2S_SampleRate24KHz

Sample rate 24000Hz

enumerator kFLEXIO_I2S_SampleRate32KHz

Sample rate 32000Hz

enumerator kFLEXIO_I2S_SampleRate44100Hz

Sample rate 44100Hz

enumerator kFLEXIO_I2S_SampleRate48KHz

Sample rate 48000Hz

enumerator kFLEXIO_I2S_SampleRate96KHz

Sample rate 96000Hz

enum _flexio_i2s_word_width

Audio word width.

Values:

enumerator kFLEXIO_I2S_WordWidth8bits

Audio data width 8 bits

enumerator kFLEXIO_I2S_WordWidth16bits

Audio data width 16 bits

enumerator kFLEXIO_I2S_WordWidth24bits

Audio data width 24 bits

enumerator kFLEXIO_I2S_WordWidth32bits

Audio data width 32 bits

typedef struct _flexio_i2s_type FLEXIO_I2S_Type

Define FlexIO I2S access structure typedef.

typedef enum _flexio_i2s_master_slave flexio_i2s_master_slave_t

Master or slave mode.

typedef struct _flexio_i2s_config flexio_i2s_config_t

FlexIO I2S configure structure.

typedef struct _flexio_i2s_format flexio_i2s_format_t

FlexIO I2S audio format, FlexIO I2S only support the same format in Tx and Rx.

typedef enum _flexio_i2s_sample_rate flexio_i2s_sample_rate_t

Audio sample rate.

typedef enum _flexio_i2s_word_width flexio_i2s_word_width_t

Audio word width.

typedef struct _flexio_i2s_transfer flexio_i2s_transfer_t

Define FlexIO I2S transfer structure.

typedef struct _flexio_i2s_handle flexio_i2s_handle_t
typedef void (*flexio_i2s_callback_t)(FLEXIO_I2S_Type *base, flexio_i2s_handle_t *handle, status_t status, void *userData)

FlexIO I2S xfer callback prototype.

I2S_RETRY_TIMES

Retry times for waiting flag.

FLEXIO_I2S_XFER_QUEUE_SIZE

FlexIO I2S transfer queue size, user can refine it according to use case.

struct _flexio_i2s_type
#include <fsl_flexio_i2s.h>

Define FlexIO I2S access structure typedef.

Public Members

FLEXIO_Type *flexioBase

FlexIO base pointer

uint8_t txPinIndex

Tx data pin index in FlexIO pins

uint8_t rxPinIndex

Rx data pin index

uint8_t bclkPinIndex

Bit clock pin index

uint8_t fsPinIndex

Frame sync pin index

uint8_t txShifterIndex

Tx data shifter index

uint8_t rxShifterIndex

Rx data shifter index

uint8_t bclkTimerIndex

Bit clock timer index

uint8_t fsTimerIndex

Frame sync timer index

struct _flexio_i2s_config
#include <fsl_flexio_i2s.h>

FlexIO I2S configure structure.

Public Members

bool enableI2S

Enable FlexIO I2S

flexio_i2s_master_slave_t masterSlave

Master or slave

flexio_pin_polarity_t txPinPolarity

Tx data pin polarity, active high or low

flexio_pin_polarity_t rxPinPolarity

Rx data pin polarity

flexio_pin_polarity_t bclkPinPolarity

Bit clock pin polarity

flexio_pin_polarity_t fsPinPolarity

Frame sync pin polarity

flexio_shifter_timer_polarity_t txTimerPolarity

Tx data valid on bclk rising or falling edge

flexio_shifter_timer_polarity_t rxTimerPolarity

Rx data valid on bclk rising or falling edge

struct _flexio_i2s_format
#include <fsl_flexio_i2s.h>

FlexIO I2S audio format, FlexIO I2S only support the same format in Tx and Rx.

Public Members

uint8_t bitWidth

Bit width of audio data, always 8/16/24/32 bits

uint32_t sampleRate_Hz

Sample rate of the audio data

struct _flexio_i2s_transfer
#include <fsl_flexio_i2s.h>

Define FlexIO I2S transfer structure.

Public Members

uint8_t *data

Data buffer start pointer

size_t dataSize

Bytes to be transferred.

struct _flexio_i2s_handle
#include <fsl_flexio_i2s.h>

Define FlexIO I2S handle structure.

Public Members

uint32_t state

Internal state

flexio_i2s_callback_t callback

Callback function called at transfer event

void *userData

Callback parameter passed to callback function

uint8_t bitWidth

Bit width for transfer, 8/16/24/32bits

flexio_i2s_transfer_t queue[(4U)]

Transfer queue storing queued transfer

size_t transferSize[(4U)]

Data bytes need to transfer

volatile uint8_t queueUser

Index for user to queue transfer

volatile uint8_t queueDriver

Index for driver to get the transfer data and size

FlexIO SPI Driver

void FLEXIO_SPI_MasterInit(FLEXIO_SPI_Type *base, flexio_spi_master_config_t *masterConfig, uint32_t srcClock_Hz)

Ungates the FlexIO clock, resets the FlexIO module, configures the FlexIO SPI master hardware, and configures the FlexIO SPI with FlexIO SPI master configuration. The configuration structure can be filled by the user, or be set with default values by the FLEXIO_SPI_MasterGetDefaultConfig().

Example

FLEXIO_SPI_Type spiDev = {
.flexioBase = FLEXIO,
.SDOPinIndex = 0,
.SDIPinIndex = 1,
.SCKPinIndex = 2,
.CSnPinIndex = 3,
.shifterIndex = {0,1},
.timerIndex = {0,1}
};
flexio_spi_master_config_t config = {
.enableMaster = true,
.enableInDoze = false,
.enableInDebug = true,
.enableFastAccess = false,
.baudRate_Bps = 500000,
.phase = kFLEXIO_SPI_ClockPhaseFirstEdge,
.direction = kFLEXIO_SPI_MsbFirst,
.dataMode = kFLEXIO_SPI_8BitMode
};
FLEXIO_SPI_MasterInit(&spiDev, &config, srcClock_Hz);

Note

1.FlexIO SPI master only support CPOL = 0, which means clock inactive low. 2.For FlexIO SPI master, the input valid time is 1.5 clock cycles, for slave the output valid time is 2.5 clock cycles. So if FlexIO SPI master communicates with other spi IPs, the maximum baud rate is FlexIO clock frequency divided by 2*2=4. If FlexIO SPI master communicates with FlexIO SPI slave, the maximum baud rate is FlexIO clock frequency divided by (1.5+2.5)*2=8.

Parameters:
  • base – Pointer to the FLEXIO_SPI_Type structure.

  • masterConfig – Pointer to the flexio_spi_master_config_t structure.

  • srcClock_Hz – FlexIO source clock in Hz.

void FLEXIO_SPI_MasterDeinit(FLEXIO_SPI_Type *base)

Resets the FlexIO SPI timer and shifter config.

Parameters:
  • base – Pointer to the FLEXIO_SPI_Type.

void FLEXIO_SPI_MasterGetDefaultConfig(flexio_spi_master_config_t *masterConfig)

Gets the default configuration to configure the FlexIO SPI master. The configuration can be used directly by calling the FLEXIO_SPI_MasterConfigure(). Example:

flexio_spi_master_config_t masterConfig;
FLEXIO_SPI_MasterGetDefaultConfig(&masterConfig);

Parameters:
  • masterConfig – Pointer to the flexio_spi_master_config_t structure.

void FLEXIO_SPI_SlaveInit(FLEXIO_SPI_Type *base, flexio_spi_slave_config_t *slaveConfig)

Ungates the FlexIO clock, resets the FlexIO module, configures the FlexIO SPI slave hardware configuration, and configures the FlexIO SPI with FlexIO SPI slave configuration. The configuration structure can be filled by the user, or be set with default values by the FLEXIO_SPI_SlaveGetDefaultConfig().

Note

1.Only one timer is needed in the FlexIO SPI slave. As a result, the second timer index is ignored. 2.FlexIO SPI slave only support CPOL = 0, which means clock inactive low. 3.For FlexIO SPI master, the input valid time is 1.5 clock cycles, for slave the output valid time is 2.5 clock cycles. So if FlexIO SPI slave communicates with other spi IPs, the maximum baud rate is FlexIO clock frequency divided by 3*2=6. If FlexIO SPI slave communicates with FlexIO SPI master, the maximum baud rate is FlexIO clock frequency divided by (1.5+2.5)*2=8. Example

FLEXIO_SPI_Type spiDev = {
.flexioBase = FLEXIO,
.SDOPinIndex = 0,
.SDIPinIndex = 1,
.SCKPinIndex = 2,
.CSnPinIndex = 3,
.shifterIndex = {0,1},
.timerIndex = {0}
};
flexio_spi_slave_config_t config = {
.enableSlave = true,
.enableInDoze = false,
.enableInDebug = true,
.enableFastAccess = false,
.phase = kFLEXIO_SPI_ClockPhaseFirstEdge,
.direction = kFLEXIO_SPI_MsbFirst,
.dataMode = kFLEXIO_SPI_8BitMode
};
FLEXIO_SPI_SlaveInit(&spiDev, &config);

Parameters:
  • base – Pointer to the FLEXIO_SPI_Type structure.

  • slaveConfig – Pointer to the flexio_spi_slave_config_t structure.

void FLEXIO_SPI_SlaveDeinit(FLEXIO_SPI_Type *base)

Gates the FlexIO clock.

Parameters:
  • base – Pointer to the FLEXIO_SPI_Type.

void FLEXIO_SPI_SlaveGetDefaultConfig(flexio_spi_slave_config_t *slaveConfig)

Gets the default configuration to configure the FlexIO SPI slave. The configuration can be used directly for calling the FLEXIO_SPI_SlaveConfigure(). Example:

flexio_spi_slave_config_t slaveConfig;
FLEXIO_SPI_SlaveGetDefaultConfig(&slaveConfig);

Parameters:
  • slaveConfig – Pointer to the flexio_spi_slave_config_t structure.

uint32_t FLEXIO_SPI_GetStatusFlags(FLEXIO_SPI_Type *base)

Gets FlexIO SPI status flags.

Parameters:
  • base – Pointer to the FLEXIO_SPI_Type structure.

Returns:

status flag; Use the status flag to AND the following flag mask and get the status.

  • kFLEXIO_SPI_TxEmptyFlag

  • kFLEXIO_SPI_RxEmptyFlag

void FLEXIO_SPI_ClearStatusFlags(FLEXIO_SPI_Type *base, uint32_t mask)

Clears FlexIO SPI status flags.

Parameters:
  • base – Pointer to the FLEXIO_SPI_Type structure.

  • mask – status flag The parameter can be any combination of the following values:

    • kFLEXIO_SPI_TxEmptyFlag

    • kFLEXIO_SPI_RxEmptyFlag

void FLEXIO_SPI_EnableInterrupts(FLEXIO_SPI_Type *base, uint32_t mask)

Enables the FlexIO SPI interrupt.

This function enables the FlexIO SPI interrupt.

Parameters:
  • base – Pointer to the FLEXIO_SPI_Type structure.

  • mask – interrupt source. The parameter can be any combination of the following values:

    • kFLEXIO_SPI_RxFullInterruptEnable

    • kFLEXIO_SPI_TxEmptyInterruptEnable

void FLEXIO_SPI_DisableInterrupts(FLEXIO_SPI_Type *base, uint32_t mask)

Disables the FlexIO SPI interrupt.

This function disables the FlexIO SPI interrupt.

Parameters:
  • base – Pointer to the FLEXIO_SPI_Type structure.

  • mask – interrupt source The parameter can be any combination of the following values:

    • kFLEXIO_SPI_RxFullInterruptEnable

    • kFLEXIO_SPI_TxEmptyInterruptEnable

void FLEXIO_SPI_EnableDMA(FLEXIO_SPI_Type *base, uint32_t mask, bool enable)

Enables/disables the FlexIO SPI transmit DMA. This function enables/disables the FlexIO SPI Tx DMA, which means that asserting the kFLEXIO_SPI_TxEmptyFlag does/doesn’t trigger the DMA request.

Parameters:
  • base – Pointer to the FLEXIO_SPI_Type structure.

  • mask – SPI DMA source.

  • enable – True means enable DMA, false means disable DMA.

static inline uint32_t FLEXIO_SPI_GetTxDataRegisterAddress(FLEXIO_SPI_Type *base, flexio_spi_shift_direction_t direction)

Gets the FlexIO SPI transmit data register address for MSB first transfer.

This function returns the SPI data register address, which is mainly used by DMA/eDMA.

Parameters:
  • base – Pointer to the FLEXIO_SPI_Type structure.

  • direction – Shift direction of MSB first or LSB first.

Returns:

FlexIO SPI transmit data register address.

static inline uint32_t FLEXIO_SPI_GetRxDataRegisterAddress(FLEXIO_SPI_Type *base, flexio_spi_shift_direction_t direction)

Gets the FlexIO SPI receive data register address for the MSB first transfer.

This function returns the SPI data register address, which is mainly used by DMA/eDMA.

Parameters:
  • base – Pointer to the FLEXIO_SPI_Type structure.

  • direction – Shift direction of MSB first or LSB first.

Returns:

FlexIO SPI receive data register address.

static inline void FLEXIO_SPI_Enable(FLEXIO_SPI_Type *base, bool enable)

Enables/disables the FlexIO SPI module operation.

Parameters:
  • base – Pointer to the FLEXIO_SPI_Type.

  • enable – True to enable, false does not have any effect.

void FLEXIO_SPI_MasterSetBaudRate(FLEXIO_SPI_Type *base, uint32_t baudRate_Bps, uint32_t srcClockHz)

Sets baud rate for the FlexIO SPI transfer, which is only used for the master.

Parameters:
  • base – Pointer to the FLEXIO_SPI_Type structure.

  • baudRate_Bps – Baud Rate needed in Hz.

  • srcClockHz – SPI source clock frequency in Hz.

static inline void FLEXIO_SPI_WriteData(FLEXIO_SPI_Type *base, flexio_spi_shift_direction_t direction, uint32_t data)

Writes one byte of data, which is sent using the MSB method.

Note

This is a non-blocking API, which returns directly after the data is put into the data register but the data transfer is not finished on the bus. Ensure that the TxEmptyFlag is asserted before calling this API.

Parameters:
  • base – Pointer to the FLEXIO_SPI_Type structure.

  • direction – Shift direction of MSB first or LSB first.

  • data – 8/16/32 bit data.

static inline uint32_t FLEXIO_SPI_ReadData(FLEXIO_SPI_Type *base, flexio_spi_shift_direction_t direction)

Reads 8 bit/16 bit data.

Note

This is a non-blocking API, which returns directly after the data is read from the data register. Ensure that the RxFullFlag is asserted before calling this API.

Parameters:
  • base – Pointer to the FLEXIO_SPI_Type structure.

  • direction – Shift direction of MSB first or LSB first.

Returns:

8 bit/16 bit data received.

status_t FLEXIO_SPI_WriteBlocking(FLEXIO_SPI_Type *base, flexio_spi_shift_direction_t direction, const uint8_t *buffer, size_t size)

Sends a buffer of data bytes.

Note

This function blocks using the polling method until all bytes have been sent.

Parameters:
  • base – Pointer to the FLEXIO_SPI_Type structure.

  • direction – Shift direction of MSB first or LSB first.

  • buffer – The data bytes to send.

  • size – The number of data bytes to send.

Return values:
  • kStatus_Success – Successfully create the handle.

  • kStatus_FLEXIO_SPI_Timeout – The transfer timed out and was aborted.

status_t FLEXIO_SPI_ReadBlocking(FLEXIO_SPI_Type *base, flexio_spi_shift_direction_t direction, uint8_t *buffer, size_t size)

Receives a buffer of bytes.

Note

This function blocks using the polling method until all bytes have been received.

Parameters:
  • base – Pointer to the FLEXIO_SPI_Type structure.

  • direction – Shift direction of MSB first or LSB first.

  • buffer – The buffer to store the received bytes.

  • size – The number of data bytes to be received.

Return values:
  • kStatus_Success – Successfully create the handle.

  • kStatus_FLEXIO_SPI_Timeout – The transfer timed out and was aborted.

status_t FLEXIO_SPI_MasterTransferBlocking(FLEXIO_SPI_Type *base, flexio_spi_transfer_t *xfer)

Receives a buffer of bytes.

Note

This function blocks via polling until all bytes have been received.

Parameters:
  • base – pointer to FLEXIO_SPI_Type structure

  • xfer – FlexIO SPI transfer structure, see flexio_spi_transfer_t.

Return values:
  • kStatus_Success – Successfully create the handle.

  • kStatus_FLEXIO_SPI_Timeout – The transfer timed out and was aborted.

void FLEXIO_SPI_FlushShifters(FLEXIO_SPI_Type *base)

Flush tx/rx shifters.

Parameters:
  • base – Pointer to the FLEXIO_SPI_Type structure.

status_t FLEXIO_SPI_MasterTransferCreateHandle(FLEXIO_SPI_Type *base, flexio_spi_master_handle_t *handle, flexio_spi_master_transfer_callback_t callback, void *userData)

Initializes the FlexIO SPI Master handle, which is used in transactional functions.

Parameters:
  • base – Pointer to the FLEXIO_SPI_Type structure.

  • handle – Pointer to the flexio_spi_master_handle_t structure to store the transfer state.

  • callback – The callback function.

  • userData – The parameter of the callback function.

Return values:
  • kStatus_Success – Successfully create the handle.

  • kStatus_OutOfRange – The FlexIO type/handle/ISR table out of range.

status_t FLEXIO_SPI_MasterTransferNonBlocking(FLEXIO_SPI_Type *base, flexio_spi_master_handle_t *handle, flexio_spi_transfer_t *xfer)

Master transfer data using IRQ.

This function sends data using IRQ. This is a non-blocking function, which returns right away. When all data is sent out/received, the callback function is called.

Parameters:
  • base – Pointer to the FLEXIO_SPI_Type structure.

  • handle – Pointer to the flexio_spi_master_handle_t structure to store the transfer state.

  • xfer – FlexIO SPI transfer structure. See flexio_spi_transfer_t.

Return values:
  • kStatus_Success – Successfully start a transfer.

  • kStatus_InvalidArgument – Input argument is invalid.

  • kStatus_FLEXIO_SPI_Busy – SPI is not idle, is running another transfer.

void FLEXIO_SPI_MasterTransferAbort(FLEXIO_SPI_Type *base, flexio_spi_master_handle_t *handle)

Aborts the master data transfer, which used IRQ.

Parameters:
  • base – Pointer to the FLEXIO_SPI_Type structure.

  • handle – Pointer to the flexio_spi_master_handle_t structure to store the transfer state.

status_t FLEXIO_SPI_MasterTransferGetCount(FLEXIO_SPI_Type *base, flexio_spi_master_handle_t *handle, size_t *count)

Gets the data transfer status which used IRQ.

Parameters:
  • base – Pointer to the FLEXIO_SPI_Type structure.

  • handle – Pointer to the flexio_spi_master_handle_t structure to store the transfer state.

  • count – Number of bytes transferred so far by the non-blocking transaction.

Return values:
  • kStatus_InvalidArgument – count is Invalid.

  • kStatus_Success – Successfully return the count.

void FLEXIO_SPI_MasterTransferHandleIRQ(void *spiType, void *spiHandle)

FlexIO SPI master IRQ handler function.

Parameters:
  • spiType – Pointer to the FLEXIO_SPI_Type structure.

  • spiHandle – Pointer to the flexio_spi_master_handle_t structure to store the transfer state.

status_t FLEXIO_SPI_SlaveTransferCreateHandle(FLEXIO_SPI_Type *base, flexio_spi_slave_handle_t *handle, flexio_spi_slave_transfer_callback_t callback, void *userData)

Initializes the FlexIO SPI Slave handle, which is used in transactional functions.

Parameters:
  • base – Pointer to the FLEXIO_SPI_Type structure.

  • handle – Pointer to the flexio_spi_slave_handle_t structure to store the transfer state.

  • callback – The callback function.

  • userData – The parameter of the callback function.

Return values:
  • kStatus_Success – Successfully create the handle.

  • kStatus_OutOfRange – The FlexIO type/handle/ISR table out of range.

status_t FLEXIO_SPI_SlaveTransferNonBlocking(FLEXIO_SPI_Type *base, flexio_spi_slave_handle_t *handle, flexio_spi_transfer_t *xfer)

Slave transfer data using IRQ.

This function sends data using IRQ. This is a non-blocking function, which returns right away. When all data is sent out/received, the callback function is called.

Parameters:
  • handle – Pointer to the flexio_spi_slave_handle_t structure to store the transfer state.

  • base – Pointer to the FLEXIO_SPI_Type structure.

  • xfer – FlexIO SPI transfer structure. See flexio_spi_transfer_t.

Return values:
  • kStatus_Success – Successfully start a transfer.

  • kStatus_InvalidArgument – Input argument is invalid.

  • kStatus_FLEXIO_SPI_Busy – SPI is not idle; it is running another transfer.

static inline void FLEXIO_SPI_SlaveTransferAbort(FLEXIO_SPI_Type *base, flexio_spi_slave_handle_t *handle)

Aborts the slave data transfer which used IRQ, share same API with master.

Parameters:
  • base – Pointer to the FLEXIO_SPI_Type structure.

  • handle – Pointer to the flexio_spi_slave_handle_t structure to store the transfer state.

static inline status_t FLEXIO_SPI_SlaveTransferGetCount(FLEXIO_SPI_Type *base, flexio_spi_slave_handle_t *handle, size_t *count)

Gets the data transfer status which used IRQ, share same API with master.

Parameters:
  • base – Pointer to the FLEXIO_SPI_Type structure.

  • handle – Pointer to the flexio_spi_slave_handle_t structure to store the transfer state.

  • count – Number of bytes transferred so far by the non-blocking transaction.

Return values:
  • kStatus_InvalidArgument – count is Invalid.

  • kStatus_Success – Successfully return the count.

void FLEXIO_SPI_SlaveTransferHandleIRQ(void *spiType, void *spiHandle)

FlexIO SPI slave IRQ handler function.

Parameters:
  • spiType – Pointer to the FLEXIO_SPI_Type structure.

  • spiHandle – Pointer to the flexio_spi_slave_handle_t structure to store the transfer state.

FSL_FLEXIO_SPI_DRIVER_VERSION

FlexIO SPI driver version.

Error codes for the FlexIO SPI driver.

Values:

enumerator kStatus_FLEXIO_SPI_Busy

FlexIO SPI is busy.

enumerator kStatus_FLEXIO_SPI_Idle

SPI is idle

enumerator kStatus_FLEXIO_SPI_Error

FlexIO SPI error.

enumerator kStatus_FLEXIO_SPI_Timeout

FlexIO SPI timeout polling status flags.

enum _flexio_spi_clock_phase

FlexIO SPI clock phase configuration.

Values:

enumerator kFLEXIO_SPI_ClockPhaseFirstEdge

First edge on SPSCK occurs at the middle of the first cycle of a data transfer.

enumerator kFLEXIO_SPI_ClockPhaseSecondEdge

First edge on SPSCK occurs at the start of the first cycle of a data transfer.

enum _flexio_spi_shift_direction

FlexIO SPI data shifter direction options.

Values:

enumerator kFLEXIO_SPI_MsbFirst

Data transfers start with most significant bit.

enumerator kFLEXIO_SPI_LsbFirst

Data transfers start with least significant bit.

enum _flexio_spi_data_bitcount_mode

FlexIO SPI data length mode options.

Values:

enumerator kFLEXIO_SPI_8BitMode

8-bit data transmission mode.

enumerator kFLEXIO_SPI_16BitMode

16-bit data transmission mode.

enumerator kFLEXIO_SPI_32BitMode

32-bit data transmission mode.

enum _flexio_spi_interrupt_enable

Define FlexIO SPI interrupt mask.

Values:

enumerator kFLEXIO_SPI_TxEmptyInterruptEnable

Transmit buffer empty interrupt enable.

enumerator kFLEXIO_SPI_RxFullInterruptEnable

Receive buffer full interrupt enable.

enum _flexio_spi_status_flags

Define FlexIO SPI status mask.

Values:

enumerator kFLEXIO_SPI_TxBufferEmptyFlag

Transmit buffer empty flag.

enumerator kFLEXIO_SPI_RxBufferFullFlag

Receive buffer full flag.

enum _flexio_spi_dma_enable

Define FlexIO SPI DMA mask.

Values:

enumerator kFLEXIO_SPI_TxDmaEnable

Tx DMA request source

enumerator kFLEXIO_SPI_RxDmaEnable

Rx DMA request source

enumerator kFLEXIO_SPI_DmaAllEnable

All DMA request source

enum _flexio_spi_transfer_flags

Define FlexIO SPI transfer flags.

Note

Use kFLEXIO_SPI_csContinuous and one of the other flags to OR together to form the transfer flag.

Values:

enumerator kFLEXIO_SPI_8bitMsb

FlexIO SPI 8-bit MSB first

enumerator kFLEXIO_SPI_8bitLsb

FlexIO SPI 8-bit LSB first

enumerator kFLEXIO_SPI_16bitMsb

FlexIO SPI 16-bit MSB first

enumerator kFLEXIO_SPI_16bitLsb

FlexIO SPI 16-bit LSB first

enumerator kFLEXIO_SPI_32bitMsb

FlexIO SPI 32-bit MSB first

enumerator kFLEXIO_SPI_32bitLsb

FlexIO SPI 32-bit LSB first

enumerator kFLEXIO_SPI_csContinuous

Enable the CS signal continuous mode

typedef enum _flexio_spi_clock_phase flexio_spi_clock_phase_t

FlexIO SPI clock phase configuration.

typedef enum _flexio_spi_shift_direction flexio_spi_shift_direction_t

FlexIO SPI data shifter direction options.

typedef enum _flexio_spi_data_bitcount_mode flexio_spi_data_bitcount_mode_t

FlexIO SPI data length mode options.

typedef struct _flexio_spi_type FLEXIO_SPI_Type

Define FlexIO SPI access structure typedef.

typedef struct _flexio_spi_master_config flexio_spi_master_config_t

Define FlexIO SPI master configuration structure.

typedef struct _flexio_spi_slave_config flexio_spi_slave_config_t

Define FlexIO SPI slave configuration structure.

typedef struct _flexio_spi_transfer flexio_spi_transfer_t

Define FlexIO SPI transfer structure.

typedef struct _flexio_spi_master_handle flexio_spi_master_handle_t

typedef for flexio_spi_master_handle_t in advance.

typedef flexio_spi_master_handle_t flexio_spi_slave_handle_t

Slave handle is the same with master handle.

typedef void (*flexio_spi_master_transfer_callback_t)(FLEXIO_SPI_Type *base, flexio_spi_master_handle_t *handle, status_t status, void *userData)

FlexIO SPI master callback for finished transmit.

typedef void (*flexio_spi_slave_transfer_callback_t)(FLEXIO_SPI_Type *base, flexio_spi_slave_handle_t *handle, status_t status, void *userData)

FlexIO SPI slave callback for finished transmit.

FLEXIO_SPI_DUMMYDATA

FlexIO SPI dummy transfer data, the data is sent while txData is NULL.

SPI_RETRY_TIMES

Retry times for waiting flag.

FLEXIO_SPI_XFER_DATA_FORMAT(flag)

Get the transfer data format of width and bit order.

struct _flexio_spi_type
#include <fsl_flexio_spi.h>

Define FlexIO SPI access structure typedef.

Public Members

FLEXIO_Type *flexioBase

FlexIO base pointer.

uint8_t SDOPinIndex

Pin select for data output. To set SDO pin in Hi-Z state, user needs to mux the pin as GPIO input and disable all pull up/down in application.

uint8_t SDIPinIndex

Pin select for data input.

uint8_t SCKPinIndex

Pin select for clock.

uint8_t CSnPinIndex

Pin select for enable.

uint8_t shifterIndex[2]

Shifter index used in FlexIO SPI.

uint8_t timerIndex[2]

Timer index used in FlexIO SPI.

struct _flexio_spi_master_config
#include <fsl_flexio_spi.h>

Define FlexIO SPI master configuration structure.

Public Members

bool enableMaster

Enable/disable FlexIO SPI master after configuration.

bool enableInDoze

Enable/disable FlexIO operation in doze mode.

bool enableInDebug

Enable/disable FlexIO operation in debug mode.

bool enableFastAccess

Enable/disable fast access to FlexIO registers, fast access requires the FlexIO clock to be at least twice the frequency of the bus clock.

uint32_t baudRate_Bps

Baud rate in Bps.

flexio_spi_clock_phase_t phase

Clock phase.

flexio_spi_data_bitcount_mode_t dataMode

8bit or 16bit mode.

struct _flexio_spi_slave_config
#include <fsl_flexio_spi.h>

Define FlexIO SPI slave configuration structure.

Public Members

bool enableSlave

Enable/disable FlexIO SPI slave after configuration.

bool enableInDoze

Enable/disable FlexIO operation in doze mode.

bool enableInDebug

Enable/disable FlexIO operation in debug mode.

bool enableFastAccess

Enable/disable fast access to FlexIO registers, fast access requires the FlexIO clock to be at least twice the frequency of the bus clock.

flexio_spi_clock_phase_t phase

Clock phase.

flexio_spi_data_bitcount_mode_t dataMode

8bit or 16bit mode.

struct _flexio_spi_transfer
#include <fsl_flexio_spi.h>

Define FlexIO SPI transfer structure.

Public Members

const uint8_t *txData

Send buffer.

uint8_t *rxData

Receive buffer.

size_t dataSize

Transfer bytes.

uint8_t flags

FlexIO SPI control flag, MSB first or LSB first.

struct _flexio_spi_master_handle
#include <fsl_flexio_spi.h>

Define FlexIO SPI handle structure.

Public Members

const uint8_t *txData

Transfer buffer.

uint8_t *rxData

Receive buffer.

size_t transferSize

Total bytes to be transferred.

volatile size_t txRemainingBytes

Send data remaining in bytes.

volatile size_t rxRemainingBytes

Receive data remaining in bytes.

volatile uint32_t state

FlexIO SPI internal state.

uint8_t bytePerFrame

SPI mode, 2bytes or 1byte in a frame

flexio_spi_shift_direction_t direction

Shift direction.

flexio_spi_master_transfer_callback_t callback

FlexIO SPI callback.

void *userData

Callback parameter.

bool isCsContinuous

Is current transfer using CS continuous mode.

uint32_t timer1Cfg

TIMER1 TIMCFG regiser value backup.

FlexIO UART Driver

status_t FLEXIO_UART_Init(FLEXIO_UART_Type *base, const flexio_uart_config_t *userConfig, uint32_t srcClock_Hz)

Ungates the FlexIO clock, resets the FlexIO module, configures FlexIO UART hardware, and configures the FlexIO UART with FlexIO UART configuration. The configuration structure can be filled by the user or be set with default values by FLEXIO_UART_GetDefaultConfig().

Example

FLEXIO_UART_Type base = {
.flexioBase = FLEXIO,
.TxPinIndex = 0,
.RxPinIndex = 1,
.shifterIndex = {0,1},
.timerIndex = {0,1}
};
flexio_uart_config_t config = {
.enableInDoze = false,
.enableInDebug = true,
.enableFastAccess = false,
.baudRate_Bps = 115200U,
.bitCountPerChar = 8
};
FLEXIO_UART_Init(base, &config, srcClock_Hz);

Parameters:
  • base – Pointer to the FLEXIO_UART_Type structure.

  • userConfig – Pointer to the flexio_uart_config_t structure.

  • srcClock_Hz – FlexIO source clock in Hz.

Return values:
  • kStatus_Success – Configuration success.

  • kStatus_FLEXIO_UART_BaudrateNotSupport – Baudrate is not supported for current clock source frequency.

void FLEXIO_UART_Deinit(FLEXIO_UART_Type *base)

Resets the FlexIO UART shifter and timer config.

Note

After calling this API, call the FLEXO_UART_Init to use the FlexIO UART module.

Parameters:
  • base – Pointer to FLEXIO_UART_Type structure

void FLEXIO_UART_GetDefaultConfig(flexio_uart_config_t *userConfig)

Gets the default configuration to configure the FlexIO UART. The configuration can be used directly for calling the FLEXIO_UART_Init(). Example:

flexio_uart_config_t config;
FLEXIO_UART_GetDefaultConfig(&userConfig);

Parameters:
  • userConfig – Pointer to the flexio_uart_config_t structure.

uint32_t FLEXIO_UART_GetStatusFlags(FLEXIO_UART_Type *base)

Gets the FlexIO UART status flags.

Parameters:
  • base – Pointer to the FLEXIO_UART_Type structure.

Returns:

FlexIO UART status flags.

void FLEXIO_UART_ClearStatusFlags(FLEXIO_UART_Type *base, uint32_t mask)

Gets the FlexIO UART status flags.

Parameters:
  • base – Pointer to the FLEXIO_UART_Type structure.

  • mask – Status flag. The parameter can be any combination of the following values:

    • kFLEXIO_UART_TxDataRegEmptyFlag

    • kFLEXIO_UART_RxEmptyFlag

    • kFLEXIO_UART_RxOverRunFlag

void FLEXIO_UART_EnableInterrupts(FLEXIO_UART_Type *base, uint32_t mask)

Enables the FlexIO UART interrupt.

This function enables the FlexIO UART interrupt.

Parameters:
  • base – Pointer to the FLEXIO_UART_Type structure.

  • mask – Interrupt source.

void FLEXIO_UART_DisableInterrupts(FLEXIO_UART_Type *base, uint32_t mask)

Disables the FlexIO UART interrupt.

This function disables the FlexIO UART interrupt.

Parameters:
  • base – Pointer to the FLEXIO_UART_Type structure.

  • mask – Interrupt source.

static inline uint32_t FLEXIO_UART_GetTxDataRegisterAddress(FLEXIO_UART_Type *base)

Gets the FlexIO UARt transmit data register address.

This function returns the UART data register address, which is mainly used by DMA/eDMA.

Parameters:
  • base – Pointer to the FLEXIO_UART_Type structure.

Returns:

FlexIO UART transmit data register address.

static inline uint32_t FLEXIO_UART_GetRxDataRegisterAddress(FLEXIO_UART_Type *base)

Gets the FlexIO UART receive data register address.

This function returns the UART data register address, which is mainly used by DMA/eDMA.

Parameters:
  • base – Pointer to the FLEXIO_UART_Type structure.

Returns:

FlexIO UART receive data register address.

static inline void FLEXIO_UART_EnableTxDMA(FLEXIO_UART_Type *base, bool enable)

Enables/disables the FlexIO UART transmit DMA. This function enables/disables the FlexIO UART Tx DMA, which means asserting the kFLEXIO_UART_TxDataRegEmptyFlag does/doesn’t trigger the DMA request.

Parameters:
  • base – Pointer to the FLEXIO_UART_Type structure.

  • enable – True to enable, false to disable.

static inline void FLEXIO_UART_EnableRxDMA(FLEXIO_UART_Type *base, bool enable)

Enables/disables the FlexIO UART receive DMA. This function enables/disables the FlexIO UART Rx DMA, which means asserting kFLEXIO_UART_RxDataRegFullFlag does/doesn’t trigger the DMA request.

Parameters:
  • base – Pointer to the FLEXIO_UART_Type structure.

  • enable – True to enable, false to disable.

static inline void FLEXIO_UART_Enable(FLEXIO_UART_Type *base, bool enable)

Enables/disables the FlexIO UART module operation.

Parameters:
  • base – Pointer to the FLEXIO_UART_Type.

  • enable – True to enable, false does not have any effect.

static inline void FLEXIO_UART_WriteByte(FLEXIO_UART_Type *base, const uint8_t *buffer)

Writes one byte of data.

Note

This is a non-blocking API, which returns directly after the data is put into the data register. Ensure that the TxEmptyFlag is asserted before calling this API.

Parameters:
  • base – Pointer to the FLEXIO_UART_Type structure.

  • buffer – The data bytes to send.

static inline void FLEXIO_UART_ReadByte(FLEXIO_UART_Type *base, uint8_t *buffer)

Reads one byte of data.

Note

This is a non-blocking API, which returns directly after the data is read from the data register. Ensure that the RxFullFlag is asserted before calling this API.

Parameters:
  • base – Pointer to the FLEXIO_UART_Type structure.

  • buffer – The buffer to store the received bytes.

status_t FLEXIO_UART_WriteBlocking(FLEXIO_UART_Type *base, const uint8_t *txData, size_t txSize)

Sends a buffer of data bytes.

Note

This function blocks using the polling method until all bytes have been sent.

Parameters:
  • base – Pointer to the FLEXIO_UART_Type structure.

  • txData – The data bytes to send.

  • txSize – The number of data bytes to send.

Return values:
  • kStatus_FLEXIO_UART_Timeout – Transmission timed out and was aborted.

  • kStatus_Success – Successfully wrote all data.

status_t FLEXIO_UART_ReadBlocking(FLEXIO_UART_Type *base, uint8_t *rxData, size_t rxSize)

Receives a buffer of bytes.

Note

This function blocks using the polling method until all bytes have been received.

Parameters:
  • base – Pointer to the FLEXIO_UART_Type structure.

  • rxData – The buffer to store the received bytes.

  • rxSize – The number of data bytes to be received.

Return values:
  • kStatus_FLEXIO_UART_Timeout – Transmission timed out and was aborted.

  • kStatus_Success – Successfully received all data.

status_t FLEXIO_UART_TransferCreateHandle(FLEXIO_UART_Type *base, flexio_uart_handle_t *handle, flexio_uart_transfer_callback_t callback, void *userData)

Initializes the UART handle.

This function initializes the FlexIO UART handle, which can be used for other FlexIO UART transactional APIs. Call this API once to get the initialized handle.

The UART driver supports the “background” receiving, which means that users can set up a RX ring buffer optionally. Data received is stored into the ring buffer even when the user doesn’t call the FLEXIO_UART_TransferReceiveNonBlocking() API. If there is already data received in the ring buffer, users can get the received data from the ring buffer directly. The ring buffer is disabled if passing NULL as ringBuffer.

Parameters:
  • base – to FLEXIO_UART_Type structure.

  • handle – Pointer to the flexio_uart_handle_t structure to store the transfer state.

  • callback – The callback function.

  • userData – The parameter of the callback function.

Return values:
  • kStatus_Success – Successfully create the handle.

  • kStatus_OutOfRange – The FlexIO type/handle/ISR table out of range.

void FLEXIO_UART_TransferStartRingBuffer(FLEXIO_UART_Type *base, flexio_uart_handle_t *handle, uint8_t *ringBuffer, size_t ringBufferSize)

Sets up the RX ring buffer.

This function sets up the RX ring buffer to a specific UART handle.

When the RX ring buffer is used, data received is stored into the ring buffer even when the user doesn’t call the UART_ReceiveNonBlocking() API. If there is already data received in the ring buffer, users can get the received data from the ring buffer directly.

Note

When using the RX ring buffer, one byte is reserved for internal use. In other words, if ringBufferSize is 32, only 31 bytes are used for saving data.

Parameters:
  • base – Pointer to the FLEXIO_UART_Type structure.

  • handle – Pointer to the flexio_uart_handle_t structure to store the transfer state.

  • ringBuffer – Start address of ring buffer for background receiving. Pass NULL to disable the ring buffer.

  • ringBufferSize – Size of the ring buffer.

void FLEXIO_UART_TransferStopRingBuffer(FLEXIO_UART_Type *base, flexio_uart_handle_t *handle)

Aborts the background transfer and uninstalls the ring buffer.

This function aborts the background transfer and uninstalls the ring buffer.

Parameters:
  • base – Pointer to the FLEXIO_UART_Type structure.

  • handle – Pointer to the flexio_uart_handle_t structure to store the transfer state.

status_t FLEXIO_UART_TransferSendNonBlocking(FLEXIO_UART_Type *base, flexio_uart_handle_t *handle, flexio_uart_transfer_t *xfer)

Transmits a buffer of data using the interrupt method.

This function sends data using an interrupt method. This is a non-blocking function, which returns directly without waiting for all data to be written to the TX register. When all data is written to the TX register in ISR, the FlexIO UART driver calls the callback function and passes the kStatus_FLEXIO_UART_TxIdle as status parameter.

Note

The kStatus_FLEXIO_UART_TxIdle is passed to the upper layer when all data is written to the TX register. However, it does not ensure that all data is sent out.

Parameters:
  • base – Pointer to the FLEXIO_UART_Type structure.

  • handle – Pointer to the flexio_uart_handle_t structure to store the transfer state.

  • xfer – FlexIO UART transfer structure. See flexio_uart_transfer_t.

Return values:
  • kStatus_Success – Successfully starts the data transmission.

  • kStatus_UART_TxBusy – Previous transmission still not finished, data not written to the TX register.

void FLEXIO_UART_TransferAbortSend(FLEXIO_UART_Type *base, flexio_uart_handle_t *handle)

Aborts the interrupt-driven data transmit.

This function aborts the interrupt-driven data sending. Get the remainBytes to find out how many bytes are still not sent out.

Parameters:
  • base – Pointer to the FLEXIO_UART_Type structure.

  • handle – Pointer to the flexio_uart_handle_t structure to store the transfer state.

status_t FLEXIO_UART_TransferGetSendCount(FLEXIO_UART_Type *base, flexio_uart_handle_t *handle, size_t *count)

Gets the number of bytes sent.

This function gets the number of bytes sent driven by interrupt.

Parameters:
  • base – Pointer to the FLEXIO_UART_Type structure.

  • handle – Pointer to the flexio_uart_handle_t structure to store the transfer state.

  • count – Number of bytes sent so far by the non-blocking transaction.

Return values:
  • kStatus_NoTransferInProgress – transfer has finished or no transfer in progress.

  • kStatus_Success – Successfully return the count.

status_t FLEXIO_UART_TransferReceiveNonBlocking(FLEXIO_UART_Type *base, flexio_uart_handle_t *handle, flexio_uart_transfer_t *xfer, size_t *receivedBytes)

Receives a buffer of data using the interrupt method.

This function receives data using the interrupt method. This is a non-blocking function, which returns without waiting for all data to be received. If the RX ring buffer is used and not empty, the data in ring buffer is copied and the parameter receivedBytes shows how many bytes are copied from the ring buffer. After copying, if the data in ring buffer is not enough to read, the receive request is saved by the UART driver. When new data arrives, the receive request is serviced first. When all data is received, the UART driver notifies the upper layer through a callback function and passes the status parameter kStatus_UART_RxIdle. For example, if the upper layer needs 10 bytes but there are only 5 bytes in the ring buffer, the 5 bytes are copied to xfer->data. This function returns with the parameter receivedBytes set to 5. For the last 5 bytes, newly arrived data is saved from the xfer->data[5]. When 5 bytes are received, the UART driver notifies upper layer. If the RX ring buffer is not enabled, this function enables the RX and RX interrupt to receive data to xfer->data. When all data is received, the upper layer is notified.

Parameters:
  • base – Pointer to the FLEXIO_UART_Type structure.

  • handle – Pointer to the flexio_uart_handle_t structure to store the transfer state.

  • xfer – UART transfer structure. See flexio_uart_transfer_t.

  • receivedBytes – Bytes received from the ring buffer directly.

Return values:
  • kStatus_Success – Successfully queue the transfer into the transmit queue.

  • kStatus_FLEXIO_UART_RxBusy – Previous receive request is not finished.

void FLEXIO_UART_TransferAbortReceive(FLEXIO_UART_Type *base, flexio_uart_handle_t *handle)

Aborts the receive data which was using IRQ.

This function aborts the receive data which was using IRQ.

Parameters:
  • base – Pointer to the FLEXIO_UART_Type structure.

  • handle – Pointer to the flexio_uart_handle_t structure to store the transfer state.

status_t FLEXIO_UART_TransferGetReceiveCount(FLEXIO_UART_Type *base, flexio_uart_handle_t *handle, size_t *count)

Gets the number of bytes received.

This function gets the number of bytes received driven by interrupt.

Parameters:
  • base – Pointer to the FLEXIO_UART_Type structure.

  • handle – Pointer to the flexio_uart_handle_t structure to store the transfer state.

  • count – Number of bytes received so far by the non-blocking transaction.

Return values:
  • kStatus_NoTransferInProgress – transfer has finished or no transfer in progress.

  • kStatus_Success – Successfully return the count.

void FLEXIO_UART_TransferHandleIRQ(void *uartType, void *uartHandle)

FlexIO UART IRQ handler function.

This function processes the FlexIO UART transmit and receives the IRQ request.

Parameters:
  • uartType – Pointer to the FLEXIO_UART_Type structure.

  • uartHandle – Pointer to the flexio_uart_handle_t structure to store the transfer state.

void FLEXIO_UART_FlushShifters(FLEXIO_UART_Type *base)

Flush tx/rx shifters.

Parameters:
  • base – Pointer to the FLEXIO_UART_Type structure.

FSL_FLEXIO_UART_DRIVER_VERSION

FlexIO UART driver version.

Error codes for the UART driver.

Values:

enumerator kStatus_FLEXIO_UART_TxBusy

Transmitter is busy.

enumerator kStatus_FLEXIO_UART_RxBusy

Receiver is busy.

enumerator kStatus_FLEXIO_UART_TxIdle

UART transmitter is idle.

enumerator kStatus_FLEXIO_UART_RxIdle

UART receiver is idle.

enumerator kStatus_FLEXIO_UART_ERROR

ERROR happens on UART.

enumerator kStatus_FLEXIO_UART_RxRingBufferOverrun

UART RX software ring buffer overrun.

enumerator kStatus_FLEXIO_UART_RxHardwareOverrun

UART RX receiver overrun.

enumerator kStatus_FLEXIO_UART_Timeout

UART times out.

enumerator kStatus_FLEXIO_UART_BaudrateNotSupport

Baudrate is not supported in current clock source

enum _flexio_uart_bit_count_per_char

FlexIO UART bit count per char.

Values:

enumerator kFLEXIO_UART_7BitsPerChar

7-bit data characters

enumerator kFLEXIO_UART_8BitsPerChar

8-bit data characters

enumerator kFLEXIO_UART_9BitsPerChar

9-bit data characters

enum _flexio_uart_interrupt_enable

Define FlexIO UART interrupt mask.

Values:

enumerator kFLEXIO_UART_TxDataRegEmptyInterruptEnable

Transmit buffer empty interrupt enable.

enumerator kFLEXIO_UART_RxDataRegFullInterruptEnable

Receive buffer full interrupt enable.

enum _flexio_uart_status_flags

Define FlexIO UART status mask.

Values:

enumerator kFLEXIO_UART_TxDataRegEmptyFlag

Transmit buffer empty flag.

enumerator kFLEXIO_UART_RxDataRegFullFlag

Receive buffer full flag.

enumerator kFLEXIO_UART_RxOverRunFlag

Receive buffer over run flag.

typedef enum _flexio_uart_bit_count_per_char flexio_uart_bit_count_per_char_t

FlexIO UART bit count per char.

typedef struct _flexio_uart_type FLEXIO_UART_Type

Define FlexIO UART access structure typedef.

typedef struct _flexio_uart_config flexio_uart_config_t

Define FlexIO UART user configuration structure.

typedef struct _flexio_uart_transfer flexio_uart_transfer_t

Define FlexIO UART transfer structure.

typedef struct _flexio_uart_handle flexio_uart_handle_t
typedef void (*flexio_uart_transfer_callback_t)(FLEXIO_UART_Type *base, flexio_uart_handle_t *handle, status_t status, void *userData)

FlexIO UART transfer callback function.

UART_RETRY_TIMES

Retry times for waiting flag.

struct _flexio_uart_type
#include <fsl_flexio_uart.h>

Define FlexIO UART access structure typedef.

Public Members

FLEXIO_Type *flexioBase

FlexIO base pointer.

uint8_t TxPinIndex

Pin select for UART_Tx.

uint8_t RxPinIndex

Pin select for UART_Rx.

uint8_t shifterIndex[2]

Shifter index used in FlexIO UART.

uint8_t timerIndex[2]

Timer index used in FlexIO UART.

struct _flexio_uart_config
#include <fsl_flexio_uart.h>

Define FlexIO UART user configuration structure.

Public Members

bool enableUart

Enable/disable FlexIO UART TX & RX.

bool enableInDoze

Enable/disable FlexIO operation in doze mode

bool enableInDebug

Enable/disable FlexIO operation in debug mode

bool enableFastAccess

Enable/disable fast access to FlexIO registers, fast access requires the FlexIO clock to be at least twice the frequency of the bus clock.

uint32_t baudRate_Bps

Baud rate in Bps.

flexio_uart_bit_count_per_char_t bitCountPerChar

number of bits, 7/8/9 -bit

struct _flexio_uart_transfer
#include <fsl_flexio_uart.h>

Define FlexIO UART transfer structure.

Public Members

size_t dataSize

Transfer size

struct _flexio_uart_handle
#include <fsl_flexio_uart.h>

Define FLEXIO UART handle structure.

Public Members

const uint8_t *volatile txData

Address of remaining data to send.

volatile size_t txDataSize

Size of the remaining data to send.

uint8_t *volatile rxData

Address of remaining data to receive.

volatile size_t rxDataSize

Size of the remaining data to receive.

size_t txDataSizeAll

Total bytes to be sent.

size_t rxDataSizeAll

Total bytes to be received.

uint8_t *rxRingBuffer

Start address of the receiver ring buffer.

size_t rxRingBufferSize

Size of the ring buffer.

volatile uint16_t rxRingBufferHead

Index for the driver to store received data into ring buffer.

volatile uint16_t rxRingBufferTail

Index for the user to get data from the ring buffer.

flexio_uart_transfer_callback_t callback

Callback function.

void *userData

UART callback function parameter.

volatile uint8_t txState

TX transfer state.

volatile uint8_t rxState

RX transfer state

union __unnamed159__

Public Members

uint8_t *data

The buffer of data to be transfer.

uint8_t *rxData

The buffer to receive data.

const uint8_t *txData

The buffer of data to be sent.

FLEXSPI: Flexible Serial Peripheral Interface Driver

uint32_t FLEXSPI_GetInstance(FLEXSPI_Type *base)

Get the instance number for FLEXSPI.

Parameters:
  • base – FLEXSPI base pointer.

status_t FLEXSPI_CheckAndClearError(FLEXSPI_Type *base, uint32_t status)

Check and clear IP command execution errors.

Parameters:
  • base – FLEXSPI base pointer.

  • status – interrupt status.

void FLEXSPI_Init(FLEXSPI_Type *base, const flexspi_config_t *config)

Initializes the FLEXSPI module and internal state.

This function enables the clock for FLEXSPI and also configures the FLEXSPI with the input configure parameters. Users should call this function before any FLEXSPI operations.

Parameters:
  • base – FLEXSPI peripheral base address.

  • config – FLEXSPI configure structure.

void FLEXSPI_GetDefaultConfig(flexspi_config_t *config)

Gets default settings for FLEXSPI.

Parameters:
  • config – FLEXSPI configuration structure.

void FLEXSPI_Deinit(FLEXSPI_Type *base)

Deinitializes the FLEXSPI module.

Clears the FLEXSPI state and FLEXSPI module registers.

Parameters:
  • base – FLEXSPI peripheral base address.

void FLEXSPI_UpdateDllValue(FLEXSPI_Type *base, flexspi_device_config_t *config, flexspi_port_t port)

Update FLEXSPI DLL value depending on currently flexspi root clock.

Parameters:
  • base – FLEXSPI peripheral base address.

  • config – Flash configuration parameters.

  • port – FLEXSPI Operation port.

void FLEXSPI_SetFlashConfig(FLEXSPI_Type *base, flexspi_device_config_t *config, flexspi_port_t port)

Configures the connected device parameter.

This function configures the connected device relevant parameters, such as the size, command, and so on. The flash configuration value cannot have a default value. The user needs to configure it according to the connected device.

Parameters:
  • base – FLEXSPI peripheral base address.

  • config – Flash configuration parameters.

  • port – FLEXSPI Operation port.

void FLEXSPI_SoftwareReset(FLEXSPI_Type *base)

Software reset for the FLEXSPI logic.

This function sets the software reset flags for both AHB and buffer domain and resets both AHB buffer and also IP FIFOs.

Parameters:
  • base – FLEXSPI peripheral base address.

static inline void FLEXSPI_Enable(FLEXSPI_Type *base, bool enable)

Enables or disables the FLEXSPI module.

Parameters:
  • base – FLEXSPI peripheral base address.

  • enable – True means enable FLEXSPI, false means disable.

void FLEXSPI_UpdateAhbBuffersSettings(FLEXSPI_Type *base, flexspi_ahbBuffers_ctrl_t *ptrAhbBufferCtrl)

Update all AHB buffers’ settings, including buffer size, master ID.

Parameters:
  • base – FLEXSPI peripheral base address.

  • ptrAhbBufferCtrl – Pointer to structure flexspi_ahbBuffers_ctrl_t which store all AHB buffers’ settings.

static inline void FLEXSPI_EnableInterrupts(FLEXSPI_Type *base, uint32_t mask)

Enables the FLEXSPI interrupts.

Parameters:
  • base – FLEXSPI peripheral base address.

  • mask – FLEXSPI interrupt source.

static inline void FLEXSPI_DisableInterrupts(FLEXSPI_Type *base, uint32_t mask)

Disable the FLEXSPI interrupts.

Parameters:
  • base – FLEXSPI peripheral base address.

  • mask – FLEXSPI interrupt source.

static inline void FLEXSPI_EnableTxDMA(FLEXSPI_Type *base, bool enable)

Enables or disables FLEXSPI IP Tx FIFO DMA requests.

Parameters:
  • base – FLEXSPI peripheral base address.

  • enable – Enable flag for transmit DMA request. Pass true for enable, false for disable.

static inline void FLEXSPI_EnableRxDMA(FLEXSPI_Type *base, bool enable)

Enables or disables FLEXSPI IP Rx FIFO DMA requests.

Parameters:
  • base – FLEXSPI peripheral base address.

  • enable – Enable flag for receive DMA request. Pass true for enable, false for disable.

static inline uint32_t FLEXSPI_GetTxFifoAddress(FLEXSPI_Type *base)

Gets FLEXSPI IP tx fifo address for DMA transfer.

Parameters:
  • base – FLEXSPI peripheral base address.

Return values:

The – tx fifo address.

static inline uint32_t FLEXSPI_GetRxFifoAddress(FLEXSPI_Type *base)

Gets FLEXSPI IP rx fifo address for DMA transfer.

Parameters:
  • base – FLEXSPI peripheral base address.

Return values:

The – rx fifo address.

static inline void FLEXSPI_ResetFifos(FLEXSPI_Type *base, bool txFifo, bool rxFifo)

Clears the FLEXSPI IP FIFO logic.

Parameters:
  • base – FLEXSPI peripheral base address.

  • txFifo – Pass true to reset TX FIFO.

  • rxFifo – Pass true to reset RX FIFO.

static inline void FLEXSPI_GetFifoCounts(FLEXSPI_Type *base, size_t *txCount, size_t *rxCount)

Gets the valid data entries in the FLEXSPI FIFOs.

Parameters:
  • base – FLEXSPI peripheral base address.

  • txCount[out] Pointer through which the current number of bytes in the transmit FIFO is returned. Pass NULL if this value is not required.

  • rxCount[out] Pointer through which the current number of bytes in the receive FIFO is returned. Pass NULL if this value is not required.

static inline uint32_t FLEXSPI_GetInterruptStatusFlags(FLEXSPI_Type *base)

Get the FLEXSPI interrupt status flags.

Parameters:
  • base – FLEXSPI peripheral base address.

Return values:

interrupt – status flag, use status flag to AND flexspi_flags_t could get the related status.

static inline void FLEXSPI_ClearInterruptStatusFlags(FLEXSPI_Type *base, uint32_t mask)

Get the FLEXSPI interrupt status flags.

Parameters:
  • base – FLEXSPI peripheral base address.

  • mask – FLEXSPI interrupt source.

static inline void FLEXSPI_GetDataLearningPhase(FLEXSPI_Type *base, uint8_t *portAPhase, uint8_t *portBPhase)

Gets the sampling clock phase selection after Data Learning.

Parameters:
  • base – FLEXSPI peripheral base address.

  • portAPhase – Pointer to a uint8_t type variable to receive the selected clock phase on PORTA.

  • portBPhase – Pointer to a uint8_t type variable to receive the selected clock phase on PORTB.

static inline flexspi_arb_command_source_t FLEXSPI_GetArbitratorCommandSource(FLEXSPI_Type *base)

Gets the trigger source of current command sequence granted by arbitrator.

Parameters:
  • base – FLEXSPI peripheral base address.

Return values:

trigger – source of current command sequence.

static inline flexspi_ip_error_code_t FLEXSPI_GetIPCommandErrorCode(FLEXSPI_Type *base, uint8_t *index)

Gets the error code when IP command error detected.

Parameters:
  • base – FLEXSPI peripheral base address.

  • index – Pointer to a uint8_t type variable to receive the sequence index when error detected.

Return values:

error – code when IP command error detected.

static inline flexspi_ahb_error_code_t FLEXSPI_GetAHBCommandErrorCode(FLEXSPI_Type *base, uint8_t *index)

Gets the error code when AHB command error detected.

Parameters:
  • base – FLEXSPI peripheral base address.

  • index – Pointer to a uint8_t type variable to receive the sequence index when error detected.

Return values:

error – code when AHB command error detected.

static inline bool FLEXSPI_GetBusIdleStatus(FLEXSPI_Type *base)

Returns whether the bus is idle.

Parameters:
  • base – FLEXSPI peripheral base address.

Return values:
  • true – Bus is idle.

  • false – Bus is busy.

void FLEXSPI_UpdateRxSampleClock(FLEXSPI_Type *base, flexspi_read_sample_clock_t clockSource)

Update read sample clock source.

Parameters:
  • base – FLEXSPI peripheral base address.

  • clockSource – clockSource of type flexspi_read_sample_clock_t

static inline void FLEXSPI_EnableIPParallelMode(FLEXSPI_Type *base, bool enable)

Enables/disables the FLEXSPI IP command parallel mode.

Parameters:
  • base – FLEXSPI peripheral base address.

  • enable – True means enable parallel mode, false means disable parallel mode.

static inline void FLEXSPI_EnableAHBParallelMode(FLEXSPI_Type *base, bool enable)

Enables/disables the FLEXSPI AHB command parallel mode.

Parameters:
  • base – FLEXSPI peripheral base address.

  • enable – True means enable parallel mode, false means disable parallel mode.

void FLEXSPI_UpdateLUT(FLEXSPI_Type *base, uint32_t index, const uint32_t *cmd, uint32_t count)

Updates the LUT table.

Parameters:
  • base – FLEXSPI peripheral base address.

  • index – From which index start to update. It could be any index of the LUT table, which also allows user to update command content inside a command. Each command consists of up to 8 instructions and occupy 4*32-bit memory.

  • cmd – Command sequence array.

  • count – Number of sequences.

static inline void FLEXSPI_WriteData(FLEXSPI_Type *base, uint32_t data, uint8_t fifoIndex)

Writes data into FIFO.

Parameters:
  • base – FLEXSPI peripheral base address

  • data – The data bytes to send

  • fifoIndex – Destination fifo index.

static inline uint32_t FLEXSPI_ReadData(FLEXSPI_Type *base, uint8_t fifoIndex)

Receives data from data FIFO.

Parameters:
  • base – FLEXSPI peripheral base address

  • fifoIndex – Source fifo index.

Returns:

The data in the FIFO.

status_t FLEXSPI_WriteBlocking(FLEXSPI_Type *base, uint8_t *buffer, size_t size)

Sends a buffer of data bytes using blocking method.

Note

This function blocks via polling until all bytes have been sent.

Parameters:
  • base – FLEXSPI peripheral base address

  • buffer – The data bytes to send

  • size – The number of data bytes to send

Return values:
  • kStatus_Success – write success without error

  • kStatus_FLEXSPI_SequenceExecutionTimeout – sequence execution timeout

  • kStatus_FLEXSPI_IpCommandSequenceError – IP command sequence error detected

  • kStatus_FLEXSPI_IpCommandGrantTimeout – IP command grant timeout detected

status_t FLEXSPI_ReadBlocking(FLEXSPI_Type *base, uint8_t *buffer, size_t size)

Receives a buffer of data bytes using a blocking method.

Note

This function blocks via polling until all bytes have been sent.

Parameters:
  • base – FLEXSPI peripheral base address

  • buffer – The data bytes to send

  • size – The number of data bytes to receive

Return values:
  • kStatus_Success – read success without error

  • kStatus_FLEXSPI_SequenceExecutionTimeout – sequence execution timeout

  • kStatus_FLEXSPI_IpCommandSequenceError – IP command sequencen error detected

  • kStatus_FLEXSPI_IpCommandGrantTimeout – IP command grant timeout detected

status_t FLEXSPI_TransferBlocking(FLEXSPI_Type *base, flexspi_transfer_t *xfer)

Execute command to transfer a buffer data bytes using a blocking method.

Parameters:
  • base – FLEXSPI peripheral base address

  • xfer – pointer to the transfer structure.

Return values:
  • kStatus_Success – command transfer success without error

  • kStatus_FLEXSPI_SequenceExecutionTimeout – sequence execution timeout

  • kStatus_FLEXSPI_IpCommandSequenceError – IP command sequence error detected

  • kStatus_FLEXSPI_IpCommandGrantTimeout – IP command grant timeout detected

void FLEXSPI_TransferCreateHandle(FLEXSPI_Type *base, flexspi_handle_t *handle, flexspi_transfer_callback_t callback, void *userData)

Initializes the FLEXSPI handle which is used in transactional functions.

Parameters:
  • base – FLEXSPI peripheral base address.

  • handle – pointer to flexspi_handle_t structure to store the transfer state.

  • callback – pointer to user callback function.

  • userData – user parameter passed to the callback function.

status_t FLEXSPI_TransferNonBlocking(FLEXSPI_Type *base, flexspi_handle_t *handle, flexspi_transfer_t *xfer)

Performs a interrupt non-blocking transfer on the FLEXSPI bus.

Note

Calling the API returns immediately after transfer initiates. The user needs to call FLEXSPI_GetTransferCount to poll the transfer status to check whether the transfer is finished. If the return status is not kStatus_FLEXSPI_Busy, the transfer is finished. For FLEXSPI_Read, the dataSize should be multiple of rx watermark level, or FLEXSPI could not read data properly.

Parameters:
  • base – FLEXSPI peripheral base address.

  • handle – pointer to flexspi_handle_t structure which stores the transfer state.

  • xfer – pointer to flexspi_transfer_t structure.

Return values:
  • kStatus_Success – Successfully start the data transmission.

  • kStatus_FLEXSPI_Busy – Previous transmission still not finished.

status_t FLEXSPI_TransferGetCount(FLEXSPI_Type *base, flexspi_handle_t *handle, size_t *count)

Gets the master transfer status during a interrupt non-blocking transfer.

Parameters:
  • base – FLEXSPI peripheral base address.

  • handle – pointer to flexspi_handle_t structure which stores the transfer state.

  • count – Number of bytes transferred so far by the non-blocking transaction.

Return values:
  • kStatus_InvalidArgument – count is Invalid.

  • kStatus_Success – Successfully return the count.

void FLEXSPI_TransferAbort(FLEXSPI_Type *base, flexspi_handle_t *handle)

Aborts an interrupt non-blocking transfer early.

Note

This API can be called at any time when an interrupt non-blocking transfer initiates to abort the transfer early.

Parameters:
  • base – FLEXSPI peripheral base address.

  • handle – pointer to flexspi_handle_t structure which stores the transfer state

void FLEXSPI_TransferHandleIRQ(FLEXSPI_Type *base, flexspi_handle_t *handle)

Master interrupt handler.

Parameters:
  • base – FLEXSPI peripheral base address.

  • handle – pointer to flexspi_handle_t structure.

FSL_FLEXSPI_DRIVER_VERSION

FLEXSPI driver version.

Status structure of FLEXSPI.

Values:

enumerator kStatus_FLEXSPI_Busy

FLEXSPI is busy

enumerator kStatus_FLEXSPI_SequenceExecutionTimeout

Sequence execution timeout error occurred during FLEXSPI transfer.

enumerator kStatus_FLEXSPI_IpCommandSequenceError

IP command Sequence execution timeout error occurred during FLEXSPI transfer.

enumerator kStatus_FLEXSPI_IpCommandGrantTimeout

IP command grant timeout error occurred during FLEXSPI transfer.

CMD definition of FLEXSPI, use to form LUT instruction, _flexspi_command.

Values:

enumerator kFLEXSPI_Command_STOP

Stop execution, deassert CS.

enumerator kFLEXSPI_Command_SDR

Transmit Command code to Flash, using SDR mode.

enumerator kFLEXSPI_Command_RADDR_SDR

Transmit Row Address to Flash, using SDR mode.

enumerator kFLEXSPI_Command_CADDR_SDR

Transmit Column Address to Flash, using SDR mode.

enumerator kFLEXSPI_Command_MODE1_SDR

Transmit 1-bit Mode bits to Flash, using SDR mode.

enumerator kFLEXSPI_Command_MODE2_SDR

Transmit 2-bit Mode bits to Flash, using SDR mode.

enumerator kFLEXSPI_Command_MODE4_SDR

Transmit 4-bit Mode bits to Flash, using SDR mode.

enumerator kFLEXSPI_Command_MODE8_SDR

Transmit 8-bit Mode bits to Flash, using SDR mode.

enumerator kFLEXSPI_Command_WRITE_SDR

Transmit Programming Data to Flash, using SDR mode.

enumerator kFLEXSPI_Command_READ_SDR

Receive Read Data from Flash, using SDR mode.

enumerator kFLEXSPI_Command_LEARN_SDR

Receive Read Data or Preamble bit from Flash, SDR mode.

enumerator kFLEXSPI_Command_DATSZ_SDR

Transmit Read/Program Data size (byte) to Flash, SDR mode.

enumerator kFLEXSPI_Command_DUMMY_SDR

Leave data lines undriven by FlexSPI controller.

enumerator kFLEXSPI_Command_DUMMY_RWDS_SDR

Leave data lines undriven by FlexSPI controller, dummy cycles decided by RWDS.

enumerator kFLEXSPI_Command_DDR

Transmit Command code to Flash, using DDR mode.

enumerator kFLEXSPI_Command_RADDR_DDR

Transmit Row Address to Flash, using DDR mode.

enumerator kFLEXSPI_Command_CADDR_DDR

Transmit Column Address to Flash, using DDR mode.

enumerator kFLEXSPI_Command_MODE1_DDR

Transmit 1-bit Mode bits to Flash, using DDR mode.

enumerator kFLEXSPI_Command_MODE2_DDR

Transmit 2-bit Mode bits to Flash, using DDR mode.

enumerator kFLEXSPI_Command_MODE4_DDR

Transmit 4-bit Mode bits to Flash, using DDR mode.

enumerator kFLEXSPI_Command_MODE8_DDR

Transmit 8-bit Mode bits to Flash, using DDR mode.

enumerator kFLEXSPI_Command_WRITE_DDR

Transmit Programming Data to Flash, using DDR mode.

enumerator kFLEXSPI_Command_READ_DDR

Receive Read Data from Flash, using DDR mode.

enumerator kFLEXSPI_Command_LEARN_DDR

Receive Read Data or Preamble bit from Flash, DDR mode.

enumerator kFLEXSPI_Command_DATSZ_DDR

Transmit Read/Program Data size (byte) to Flash, DDR mode.

enumerator kFLEXSPI_Command_DUMMY_DDR

Leave data lines undriven by FlexSPI controller.

enumerator kFLEXSPI_Command_DUMMY_RWDS_DDR

Leave data lines undriven by FlexSPI controller, dummy cycles decided by RWDS.

enumerator kFLEXSPI_Command_JUMP_ON_CS

Stop execution, deassert CS and save operand[7:0] as the instruction start pointer for next sequence

enum _flexspi_pad

pad definition of FLEXSPI, use to form LUT instruction.

Values:

enumerator kFLEXSPI_1PAD

Transmit command/address and transmit/receive data only through DATA0/DATA1.

enumerator kFLEXSPI_2PAD

Transmit command/address and transmit/receive data only through DATA[1:0].

enumerator kFLEXSPI_4PAD

Transmit command/address and transmit/receive data only through DATA[3:0].

enumerator kFLEXSPI_8PAD

Transmit command/address and transmit/receive data only through DATA[7:0].

enum _flexspi_flags

FLEXSPI interrupt status flags.

Values:

enumerator kFLEXSPI_SequenceExecutionTimeoutFlag

Sequence execution timeout.

enumerator kFLEXSPI_AhbBusTimeoutFlag

AHB Bus timeout.

enumerator kFLEXSPI_SckStoppedBecauseTxEmptyFlag

SCK is stopped during command sequence because Async TX FIFO empty.

enumerator kFLEXSPI_SckStoppedBecauseRxFullFlag

SCK is stopped during command sequence because Async RX FIFO full.

enumerator kFLEXSPI_DataLearningFailedFlag

Data learning failed.

enumerator kFLEXSPI_IpTxFifoWatermarkEmptyFlag

IP TX FIFO WaterMark empty.

enumerator kFLEXSPI_IpRxFifoWatermarkAvailableFlag

IP RX FIFO WaterMark available.

enumerator kFLEXSPI_AhbCommandSequenceErrorFlag

AHB triggered Command Sequences Error.

enumerator kFLEXSPI_IpCommandSequenceErrorFlag

IP triggered Command Sequences Error.

enumerator kFLEXSPI_AhbCommandGrantTimeoutFlag

AHB triggered Command Sequences Grant Timeout.

enumerator kFLEXSPI_IpCommandGrantTimeoutFlag

IP triggered Command Sequences Grant Timeout.

enumerator kFLEXSPI_IpCommandExecutionDoneFlag

IP triggered Command Sequences Execution finished.

enumerator kFLEXSPI_AllInterruptFlags

All flags.

enum _flexspi_read_sample_clock

FLEXSPI sample clock source selection for Flash Reading.

Values:

enumerator kFLEXSPI_ReadSampleClkLoopbackInternally

Dummy Read strobe generated by FlexSPI Controller and loopback internally.

enumerator kFLEXSPI_ReadSampleClkLoopbackFromDqsPad

Dummy Read strobe generated by FlexSPI Controller and loopback from DQS pad.

enumerator kFLEXSPI_ReadSampleClkLoopbackFromSckPad

SCK output clock and loopback from SCK pad.

enumerator kFLEXSPI_ReadSampleClkExternalInputFromDqsPad

Flash provided Read strobe and input from DQS pad.

enum _flexspi_cs_interval_cycle_unit

FLEXSPI interval unit for flash device select.

Values:

enumerator kFLEXSPI_CsIntervalUnit1SckCycle

Chip selection interval: CSINTERVAL * 1 serial clock cycle.

enumerator kFLEXSPI_CsIntervalUnit256SckCycle

Chip selection interval: CSINTERVAL * 256 serial clock cycle.

enum _flexspi_ahb_write_wait_unit

FLEXSPI AHB wait interval unit for writing.

Values:

enumerator kFLEXSPI_AhbWriteWaitUnit2AhbCycle

AWRWAIT unit is 2 ahb clock cycle.

enumerator kFLEXSPI_AhbWriteWaitUnit8AhbCycle

AWRWAIT unit is 8 ahb clock cycle.

enumerator kFLEXSPI_AhbWriteWaitUnit32AhbCycle

AWRWAIT unit is 32 ahb clock cycle.

enumerator kFLEXSPI_AhbWriteWaitUnit128AhbCycle

AWRWAIT unit is 128 ahb clock cycle.

enumerator kFLEXSPI_AhbWriteWaitUnit512AhbCycle

AWRWAIT unit is 512 ahb clock cycle.

enumerator kFLEXSPI_AhbWriteWaitUnit2048AhbCycle

AWRWAIT unit is 2048 ahb clock cycle.

enumerator kFLEXSPI_AhbWriteWaitUnit8192AhbCycle

AWRWAIT unit is 8192 ahb clock cycle.

enumerator kFLEXSPI_AhbWriteWaitUnit32768AhbCycle

AWRWAIT unit is 32768 ahb clock cycle.

enum _flexspi_ip_error_code

Error Code when IP command Error detected.

Values:

enumerator kFLEXSPI_IpCmdErrorNoError

No error.

enumerator kFLEXSPI_IpCmdErrorJumpOnCsInIpCmd

IP command with JMP_ON_CS instruction used.

enumerator kFLEXSPI_IpCmdErrorUnknownOpCode

Unknown instruction opcode in the sequence.

enumerator kFLEXSPI_IpCmdErrorSdrDummyInDdrSequence

Instruction DUMMY_SDR/DUMMY_RWDS_SDR used in DDR sequence.

enumerator kFLEXSPI_IpCmdErrorDdrDummyInSdrSequence

Instruction DUMMY_DDR/DUMMY_RWDS_DDR used in SDR sequence.

enumerator kFLEXSPI_IpCmdErrorInvalidAddress

Flash access start address exceed the whole flash address range (A1/A2/B1/B2).

enumerator kFLEXSPI_IpCmdErrorSequenceExecutionTimeout

Sequence execution timeout.

enumerator kFLEXSPI_IpCmdErrorFlashBoundaryAcrosss

Flash boundary crossed.

enum _flexspi_ahb_error_code

Error Code when AHB command Error detected.

Values:

enumerator kFLEXSPI_AhbCmdErrorNoError

No error.

enumerator kFLEXSPI_AhbCmdErrorJumpOnCsInWriteCmd

AHB Write command with JMP_ON_CS instruction used in the sequence.

enumerator kFLEXSPI_AhbCmdErrorUnknownOpCode

Unknown instruction opcode in the sequence.

enumerator kFLEXSPI_AhbCmdErrorSdrDummyInDdrSequence

Instruction DUMMY_SDR/DUMMY_RWDS_SDR used in DDR sequence.

enumerator kFLEXSPI_AhbCmdErrorDdrDummyInSdrSequence

Instruction DUMMY_DDR/DUMMY_RWDS_DDR used in SDR sequence.

enumerator kFLEXSPI_AhbCmdSequenceExecutionTimeout

Sequence execution timeout.

enum _flexspi_port

FLEXSPI operation port select.

Values:

enumerator kFLEXSPI_PortA1

Access flash on A1 port.

enumerator kFLEXSPI_PortA2

Access flash on A2 port.

enumerator kFLEXSPI_PortB1

Access flash on B1 port.

enumerator kFLEXSPI_PortB2

Access flash on B2 port.

enumerator kFLEXSPI_PortCount
enum _flexspi_arb_command_source

Trigger source of current command sequence granted by arbitrator.

Values:

enumerator kFLEXSPI_AhbReadCommand
enumerator kFLEXSPI_AhbWriteCommand
enumerator kFLEXSPI_IpCommand
enumerator kFLEXSPI_SuspendedCommand
enum _flexspi_command_type

Command type.

Values:

enumerator kFLEXSPI_Command

FlexSPI operation: Only command, both TX and Rx buffer are ignored.

enumerator kFLEXSPI_Config

FlexSPI operation: Configure device mode, the TX fifo size is fixed in LUT.

enumerator kFLEXSPI_Read
enumerator kFLEXSPI_Write
typedef enum _flexspi_pad flexspi_pad_t

pad definition of FLEXSPI, use to form LUT instruction.

typedef enum _flexspi_flags flexspi_flags_t

FLEXSPI interrupt status flags.

typedef enum _flexspi_read_sample_clock flexspi_read_sample_clock_t

FLEXSPI sample clock source selection for Flash Reading.

typedef enum _flexspi_cs_interval_cycle_unit flexspi_cs_interval_cycle_unit_t

FLEXSPI interval unit for flash device select.

typedef enum _flexspi_ahb_write_wait_unit flexspi_ahb_write_wait_unit_t

FLEXSPI AHB wait interval unit for writing.

typedef enum _flexspi_ip_error_code flexspi_ip_error_code_t

Error Code when IP command Error detected.

typedef enum _flexspi_ahb_error_code flexspi_ahb_error_code_t

Error Code when AHB command Error detected.

typedef enum _flexspi_port flexspi_port_t

FLEXSPI operation port select.

typedef enum _flexspi_arb_command_source flexspi_arb_command_source_t

Trigger source of current command sequence granted by arbitrator.

typedef enum _flexspi_command_type flexspi_command_type_t

Command type.

typedef struct _flexspi_ahbBuffer_config flexspi_ahbBuffer_config_t
typedef struct _flexspi_ahbBuffers_ctrl flexspi_ahbBuffers_ctrl_t

Structure to control all AHB buffers.

typedef struct _flexspi_config flexspi_config_t

FLEXSPI configuration structure.

typedef struct _flexspi_device_config flexspi_device_config_t

External device configuration items.

typedef struct _flexspi_transfer flexspi_transfer_t

Transfer structure for FLEXSPI.

typedef struct _flexspi_handle flexspi_handle_t
typedef void (*flexspi_transfer_callback_t)(FLEXSPI_Type *base, flexspi_handle_t *handle, status_t status, void *userData)

FLEXSPI transfer callback function.

typedef struct _flexspi_addr_map_config flexspi_addr_map_config_t

Address mapping configuration structure.

FSL_FEATURE_FLEXSPI_AHB_BUFFER_COUNT
FLEXSPI_LUT_SEQ(cmd0, pad0, op0, cmd1, pad1, op1)

Formula to form FLEXSPI instructions in LUT table.

struct _flexspi_ahbBuffer_config
#include <fsl_flexspi.h>

Public Members

uint8_t priority

This priority for AHB Master Read which this AHB RX Buffer is assigned.

uint8_t masterIndex

AHB Master ID the AHB RX Buffer is assigned.

uint16_t bufferSize

AHB buffer size in byte.

bool enablePrefetch

AHB Read Prefetch Enable for current AHB RX Buffer corresponding Master, allows prefetch disable/enable separately for each master.

struct _flexspi_ahbBuffers_ctrl
#include <fsl_flexspi.h>

Structure to control all AHB buffers.

Public Members

flexspi_ahbBuffer_config_t buffer[FSL_FEATURE_FLEXSPI_AHB_BUFFER_COUNTn(0)]

Configurations of all AHB buffers.

struct _flexspi_config
#include <fsl_flexspi.h>

FLEXSPI configuration structure.

Public Members

flexspi_read_sample_clock_t rxSampleClock

Sample Clock source selection for Flash Reading.

bool enableSckFreeRunning

Enable/disable SCK output free-running.

bool enableCombination

Enable/disable combining PORT A and B Data Pins (SIOA[3:0] and SIOB[3:0]) to support Flash Octal mode.

bool enableDoze

Enable/disable doze mode support.

bool enableHalfSpeedAccess

Enable/disable divide by 2 of the clock for half speed commands.

bool enableSckBDiffOpt

Enable/disable SCKB pad use as SCKA differential clock output, when enable, Port B flash access is not available.

bool enableSameConfigForAll

Enable/disable same configuration for all connected devices when enabled, same configuration in FLASHA1CRx is applied to all.

uint16_t seqTimeoutCycle

Timeout wait cycle for command sequence execution, timeout after ahbGrantTimeoutCyle*1024 serial root clock cycles.

uint8_t ipGrantTimeoutCycle

Timeout wait cycle for IP command grant, timeout after ipGrantTimeoutCycle*1024 AHB clock cycles.

uint8_t txWatermark

FLEXSPI IP transmit watermark value.

uint8_t rxWatermark

FLEXSPI receive watermark value.

struct _flexspi_device_config
#include <fsl_flexspi.h>

External device configuration items.

Public Members

uint32_t flexspiRootClk

FLEXSPI serial root clock.

bool isSck2Enabled

FLEXSPI use SCK2.

uint32_t flashSize

Flash size in KByte.

flexspi_cs_interval_cycle_unit_t CSIntervalUnit

CS interval unit, 1 or 256 cycle.

uint16_t CSInterval

CS line assert interval, multiply CS interval unit to get the CS line assert interval cycles.

uint8_t CSHoldTime

CS line hold time.

uint8_t CSSetupTime

CS line setup time.

uint8_t dataValidTime

Data valid time for external device.

uint8_t columnspace

Column space size.

bool enableWordAddress

If enable word address.

uint8_t AWRSeqIndex

Sequence ID for AHB write command.

uint8_t AWRSeqNumber

Sequence number for AHB write command.

uint8_t ARDSeqIndex

Sequence ID for AHB read command.

uint8_t ARDSeqNumber

Sequence number for AHB read command.

flexspi_ahb_write_wait_unit_t AHBWriteWaitUnit

AHB write wait unit.

uint16_t AHBWriteWaitInterval

AHB write wait interval, multiply AHB write interval unit to get the AHB write wait cycles.

bool enableWriteMask

Enable/Disable FLEXSPI drive DQS pin as write mask when writing to external device.

struct _flexspi_transfer
#include <fsl_flexspi.h>

Transfer structure for FLEXSPI.

Public Members

uint32_t deviceAddress

Operation device address.

flexspi_port_t port

Operation port.

flexspi_command_type_t cmdType

Execution command type.

uint8_t seqIndex

Sequence ID for command.

uint8_t SeqNumber

Sequence number for command.

uint32_t *data

Data buffer.

size_t dataSize

Data size in bytes.

struct _flexspi_handle
#include <fsl_flexspi.h>

Transfer handle structure for FLEXSPI.

Public Members

uint32_t state

Internal state for FLEXSPI transfer

uint8_t *data

Data buffer.

size_t dataSize

Remaining Data size in bytes.

size_t transferTotalSize

Total Data size in bytes.

flexspi_transfer_callback_t completionCallback

Callback for users while transfer finish or error occurred

void *userData

FLEXSPI callback function parameter.

struct _flexspi_addr_map_config
#include <fsl_flexspi.h>

Address mapping configuration structure.

Public Members

uint32_t addrStart

Remapping start address.

uint32_t addrEnd

Remapping end address.

uint32_t addrOffset

Address offset.

bool remapEnable

Enable address remapping.

struct ahbConfig

Public Members

uint8_t ahbGrantTimeoutCycle

Timeout wait cycle for AHB command grant, timeout after ahbGrantTimeoutCyle*1024 AHB clock cycles.

uint16_t ahbBusTimeoutCycle

Timeout wait cycle for AHB read/write access, timeout after ahbBusTimeoutCycle*1024 AHB clock cycles.

uint8_t resumeWaitCycle

Wait cycle for idle state before suspended command sequence resume, timeout after ahbBusTimeoutCycle AHB clock cycles.

flexspi_ahbBuffer_config_t buffer[FSL_FEATURE_FLEXSPI_AHB_BUFFER_COUNTn(0)]

AHB buffer size.

bool enableClearAHBBufferOpt

Enable/disable automatically clean AHB RX Buffer and TX Buffer when FLEXSPI returns STOP mode ACK.

bool enableReadAddressOpt

Enable/disable remove AHB read burst start address alignment limitation. when enable, there is no AHB read burst start address alignment limitation.

bool enableAHBPrefetch

Enable/disable AHB read prefetch feature, when enabled, FLEXSPI will fetch more data than current AHB burst.

bool enableAHBBufferable

Enable/disable AHB bufferable write access support, when enabled, FLEXSPI return before waiting for command execution finished.

bool enableAHBCachable

Enable AHB bus cachable read access support.

FLEXSPI eDMA Driver

void FLEXSPI_TransferCreateHandleEDMA(FLEXSPI_Type *base, flexspi_edma_handle_t *handle, flexspi_edma_callback_t callback, void *userData, edma_handle_t *txDmaHandle, edma_handle_t *rxDmaHandle)

Initializes the FLEXSPI handle for transfer which is used in transactional functions and set the callback.

Parameters:
  • base – FLEXSPI peripheral base address

  • handle – Pointer to flexspi_edma_handle_t structure

  • callback – FLEXSPI callback, NULL means no callback.

  • userData – User callback function data.

  • txDmaHandle – User requested DMA handle for TX DMA transfer.

  • rxDmaHandle – User requested DMA handle for RX DMA transfer.

void FLEXSPI_TransferUpdateSizeEDMA(FLEXSPI_Type *base, flexspi_edma_handle_t *handle, flexspi_edma_transfer_nsize_t nsize)

Update FLEXSPI EDMA transfer source data transfer size(SSIZE) and destination data transfer size(DSIZE).

See also

flexspi_edma_transfer_nsize_t .

Parameters:
  • base – FLEXSPI peripheral base address

  • handle – Pointer to flexspi_edma_handle_t structure

  • nsize – FLEXSPI DMA transfer data transfer size(SSIZE/DSIZE), by default the size is kFLEXPSI_EDMAnSize1Bytes(one byte).

status_t FLEXSPI_TransferEDMA(FLEXSPI_Type *base, flexspi_edma_handle_t *handle, flexspi_transfer_t *xfer)

Transfers FLEXSPI data using an eDMA non-blocking method.

This function writes/receives data to/from the FLEXSPI transmit/receive FIFO. This function is non-blocking.

Parameters:
  • base – FLEXSPI peripheral base address.

  • handle – Pointer to flexspi_edma_handle_t structure

  • xfer – FLEXSPI transfer structure.

Return values:
  • kStatus_FLEXSPI_Busy – FLEXSPI is busy transfer.

  • kStatus_InvalidArgument – The watermark configuration is invalid, the watermark should be power of 2 to do successfully EDMA transfer.

  • kStatus_Success – FLEXSPI successfully start edma transfer.

void FLEXSPI_TransferAbortEDMA(FLEXSPI_Type *base, flexspi_edma_handle_t *handle)

Aborts the transfer data using eDMA.

This function aborts the transfer data using eDMA.

Parameters:
  • base – FLEXSPI peripheral base address.

  • handle – Pointer to flexspi_edma_handle_t structure

status_t FLEXSPI_TransferGetTransferCountEDMA(FLEXSPI_Type *base, flexspi_edma_handle_t *handle, size_t *count)

Gets the transferred counts of transfer.

Parameters:
  • base – FLEXSPI peripheral base address.

  • handle – Pointer to flexspi_edma_handle_t structure.

  • count – Bytes transfer.

Return values:
  • kStatus_Success – Succeed get the transfer count.

  • kStatus_NoTransferInProgress – There is not a non-blocking transaction currently in progress.

FSL_FLEXSPI_EDMA_DRIVER_VERSION

FLEXSPI EDMA driver version.

FLEXSPI EDMA driver.

FSL_FLEXSPI_EDMA_DRIVER_VERSION

FLEXSPI EDMA driver.

enum _flexspi_edma_ntransfer_size

eDMA transfer configuration

Values:

enumerator kFLEXPSI_EDMAnSize1Bytes

Source/Destination data transfer size is 1 byte every time

enumerator kFLEXPSI_EDMAnSize2Bytes

Source/Destination data transfer size is 2 bytes every time

enumerator kFLEXPSI_EDMAnSize4Bytes

Source/Destination data transfer size is 4 bytes every time

enumerator kFLEXPSI_EDMAnSize8Bytes

Source/Destination data transfer size is 8 bytes every time

enumerator kFLEXPSI_EDMAnSize32Bytes

Source/Destination data transfer size is 32 bytes every time

enum _flexspi_edma_ntransfer_size

eDMA transfer configuration

Values:

enumerator kFLEXPSI_EDMAnSize1Bytes

Source/Destination data transfer size is 1 byte every time

enumerator kFLEXPSI_EDMAnSize2Bytes

Source/Destination data transfer size is 2 bytes every time

enumerator kFLEXPSI_EDMAnSize4Bytes

Source/Destination data transfer size is 4 bytes every time

enumerator kFLEXPSI_EDMAnSize8Bytes

Source/Destination data transfer size is 8 bytes every time

enumerator kFLEXPSI_EDMAnSize32Bytes

Source/Destination data transfer size is 32 bytes every time

typedef struct _flexspi_edma_handle flexspi_edma_handle_t
typedef void (*flexspi_edma_callback_t)(FLEXSPI_Type *base, flexspi_edma_handle_t *handle, status_t status, void *userData)

FLEXSPI eDMA transfer callback function for finish and error.

typedef enum _flexspi_edma_ntransfer_size flexspi_edma_transfer_nsize_t

eDMA transfer configuration

typedef struct _flexspi_edma_handle flexspi_edma_handle_t
typedef void (*flexspi_edma_callback_t)(FLEXSPI_Type *base, flexspi_edma_handle_t *handle, status_t status, void *userData)

FLEXSPI eDMA transfer callback function for finish and error.

typedef enum _flexspi_edma_ntransfer_size flexspi_edma_transfer_nsize_t

eDMA transfer configuration

struct _flexspi_edma_handle
#include <fsl_flexspi_edma.h>

FLEXSPI DMA transfer handle, users should not touch the content of the handle.

Public Members

edma_handle_t *txDmaHandle

eDMA handler for FLEXSPI Tx.

edma_handle_t *rxDmaHandle

eDMA handler for FLEXSPI Rx.

size_t transferSize

Bytes need to transfer.

flexspi_edma_transfer_nsize_t nsize

eDMA SSIZE/DSIZE in each transfer.

uint8_t nbytes

eDMA minor byte transfer count initially configured.

uint8_t count

The transfer data count in a DMA request.

uint32_t state

Internal state for FLEXSPI eDMA transfer.

flexspi_edma_callback_t completionCallback

A callback function called after the eDMA transfer is finished.

void *userData

User callback parameter

Flexspi_nor_flash_driver

Flash Pad Definitions.

Values:

enumerator kSerialFlash_1Pad
enumerator kSerialFlash_2Pads
enumerator kSerialFlash_4Pads
enumerator kSerialFlash_8Pads

FLEXSPI clock configuration type.

Values:

enumerator kFLEXSPIClk_SDR

Clock configure for SDR mode

enumerator kFLEXSPIClk_DDR

Clock configurat for DDR mode

enum _flexspi_read_sample_clk

FLEXSPI Read Sample Clock Source definition.

Values:

enumerator kFLEXSPIReadSampleClk_LoopbackInternally
enumerator kFLEXSPIReadSampleClk_LoopbackFromDqsPad
enumerator kFLEXSPIReadSampleClk_LoopbackFromSckPad
enumerator kFLEXSPIReadSampleClk_ExternalInputFromDqsPad

Flash Type Definition.

Values:

enumerator kFLEXSPIDeviceType_SerialNOR

Flash device is Serial NOR

Flash Configuration Command Type.

Values:

enumerator kDeviceConfigCmdType_Generic

Generic command, for example: configure dummy cycles, drive strength, etc

enumerator kDeviceConfigCmdType_QuadEnable

Quad Enable command

enumerator kDeviceConfigCmdType_Spi2Xpi

Switch from SPI to DPI/QPI/OPI mode

enumerator kDeviceConfigCmdType_Xpi2Spi

Switch from DPI/QPI/OPI to SPI mode

enumerator kDeviceConfigCmdType_Spi2NoCmd

Switch to 0-4-4/0-8-8 mode

enumerator kDeviceConfigCmdType_Reset

Reset device command

enum _flexspi_serial_clk_freq

Defintions for FLEXSPI Serial Clock Frequency.

Values:

enumerator kFLEXSPISerialClk_NoChange
enumerator kFLEXSPISerialClk_30MHz
enumerator kFLEXSPISerialClk_50MHz
enumerator kFLEXSPISerialClk_60MHz
enumerator kFLEXSPISerialClk_75MHz
enumerator kFLEXSPISerialClk_100MHz

Misc feature bit definitions.

Values:

enumerator kFLEXSPIMiscOffset_DiffClkEnable

Bit for Differential clock enable

enumerator kFLEXSPIMiscOffset_Ck2Enable

Bit for CK2 enable

enumerator kFLEXSPIMiscOffset_ParallelEnable

Bit for Parallel mode enable

enumerator kFLEXSPIMiscOffset_WordAddressableEnable

Bit for Word Addressable enable

enumerator kFLEXSPIMiscOffset_SafeConfigFreqEnable

Bit for Safe Configuration Frequency enable

enumerator kFLEXSPIMiscOffset_PadSettingOverrideEnable

Bit for Pad setting override enable

enumerator kFLEXSPIMiscOffset_DdrModeEnable

Bit for DDR clock confiuration indication.

enumerator kFLEXSPIMiscOffset_UseValidTimeForAllFreq

Bit for DLLCR settings under all modes

enum _flexspi_status_groups

FLEXSPI status group numbers.

Values:

enumerator kStatusROMGroup_FLEXSPI

Group number for ROM FLEXSPI status codes.

enumerator kStatusROMGroup_FLEXSPINOR

ROM FLEXSPI NOR status group number.

enum _flexspi_nor_status

FLEXSPI NOR status.

Values:

enumerator kStatus_FLEXSPINOR_ProgramFail

Status for Page programming failure

enumerator kStatus_FLEXSPINOR_EraseSectorFail

Status for Sector Erase failure

enumerator kStatus_FLEXSPINOR_EraseAllFail

Status for Chip Erase failure

enumerator kStatus_FLEXSPINOR_WaitTimeout

Status for timeout

enumerator kStatus_FlexSPINOR_NotSupported
enumerator kStatus_FlexSPINOR_WriteAlignmentError

Status for Alignement error

enumerator kStatus_FlexSPINOR_CommandFailure

Status for Erase/Program Verify Error

enumerator kStatus_FlexSPINOR_SFDP_NotFound

Status for SFDP read failure

enumerator kStatus_FLEXSPINOR_Unsupported_SFDP_Version

Status for Unrecognized SFDP version

enumerator kStatus_FLEXSPINOR_Flash_NotFound

Status for Flash detection failure

enumerator kStatus_FLEXSPINOR_DTRRead_DummyProbeFailed

Status for DDR Read dummy probe failure

enumerator kStatus_FLEXSPI_SequenceExecutionTimeout

Status for Sequence Execution timeout

enumerator kStatus_FLEXSPI_InvalidSequence

Status for Invalid Sequence

enumerator kStatus_FLEXSPI_DeviceTimeout

Status for Device timeout

Configure the device_type of “serial_nor_config_option_t” structure.

Values:

enumerator kSerialNorCfgOption_Tag
enumerator kSerialNorCfgOption_DeviceType_ReadSFDP_SDR
enumerator kSerialNorCfgOption_DeviceType_ReadSFDP_DDR
enumerator kSerialNorCfgOption_DeviceType_HyperFLASH1V8
enumerator kSerialNorCfgOption_DeviceType_HyperFLASH3V0
enumerator kSerialNorCfgOption_DeviceType_MacronixOctalDDR
enumerator kSerialNorCfgOption_DeviceType_MacronixOctalSDR
enumerator kSerialNorCfgOption_DeviceType_MicronOctalDDR
enumerator kSerialNorCfgOption_DeviceType_MicronOctalSDR
enumerator kSerialNorCfgOption_DeviceType_AdestoOctalDDR
enumerator kSerialNorCfgOption_DeviceType_AdestoOctalSDR

Configure the quad_mode_setting of “serial_nor_config_option_t” structure.

Values:

enumerator kSerialNorQuadMode_NotConfig
enumerator kSerialNorQuadMode_StatusReg1_Bit6
enumerator kSerialNorQuadMode_StatusReg2_Bit1
enumerator kSerialNorQuadMode_StatusReg2_Bit7
enumerator kSerialNorQuadMode_StatusReg2_Bit1_0x31

FLEXSPI NOR Octal mode.

Values:

enumerator kSerialNorOctaldMode_NoOctalEnableBit
enumerator kSerialNorOctaldMode_HasOctalEnableBit

miscellaneous mode

Values:

enumerator kSerialNorEnhanceMode_Disabled
enumerator kSerialNorEnhanceMode_0_4_4_Mode
enumerator kSerialNorEnhanceMode_0_8_8_Mode
enumerator kSerialNorEnhanceMode_DataOrderSwapped
enumerator kSerialNorEnhanceMode_2ndPinMux
enumerator kSerialNorEnhanceMode_InternalLoopback
enumerator kSerialNorEnhanceMode_SpiMode
enumerator kSerialNorEnhanceMode_ExtDqs

FLEXSPI NOR reset logic options.

Values:

enumerator kFlashResetLogic_Disabled
enumerator kFlashResetLogic_ResetPin
enumerator kFlashResetLogic_JedecHwReset

Configure the flash_connection of “serial_nor_config_option_t” structure.

Values:

enumerator kSerialNorConnection_SinglePortA
enumerator kSerialNorConnection_Parallel
enumerator kSerialNorConnection_SinglePortB
enumerator kSerialNorConnection_BothPorts

FLEXSPI ROOT clock soruce related definitions.

Values:

enumerator kFLEXSPIClkSrc_MainClk
enumerator kFLEXSPIClkSrc_Pll0
enumerator kFLEXSPIClkSrc_FroHf
enumerator kFLEXSPIClkSrc_Pll1

Restore sequence options Configure the restore_sequence of “flash_run_context_t” structure.

Values:

enumerator kRestoreSequence_None
enumerator kRestoreSequence_HW_Reset
enumerator kRestoreSequence_QPI_4_0xFFs
enumerator kRestoreSequence_QPI_Mode_0x00
enumerator kRestoreSequence_8QPI_FF
enumerator kRestoreSequence_Send_F0
enumerator kRestoreSequence_Send_66_99
enumerator kRestoreSequence_Send_6699_9966
enumerator kRestoreSequence_Send_06_FF

Adesto EcoXIP

enumerator kRestoreSequence_QPI_5_0xFFs
enumerator kRestoreSequence_Send_QPI_8_0xFFs
enumerator kRestoreSequence_Wakeup_0xAB
enumerator kRestoreSequence_Wakeup_0xAB_54

Port mode options.

Values:

enumerator kFlashInstMode_ExtendedSpi
enumerator kFlashInstMode_0_4_4_SDR
enumerator kFlashInstMode_0_4_4_DDR
enumerator kFlashInstMode_DPI_SDR
enumerator kFlashInstMode_DPI_DDR
enumerator kFlashInstMode_QPI_SDR
enumerator kFlashInstMode_QPI_DDR
enumerator kFlashInstMode_OPI_SDR
enumerator kFlashInstMode_OPI_DDR

Manufacturer ID.

Values:

enumerator kSerialFlash_ISSI_ManufacturerID

Manufacturer ID of the ISSI serial flash

enumerator kSerialFlash_Adesto_ManufacturerID

Manufacturer ID of the Adesto Technologies serial flash

enumerator kSerialFlash_Winbond_ManufacturerID

Manufacturer ID of the Winbond serial flash

enumerator kSerialFlash_Cypress_ManufacturerID

Manufacturer ID for Cypress

enum _flexspi_operation

Values:

enumerator kFLEXSPIOperation_Command

FLEXSPI operation: Only command, both TX and RX buffer are ignored.

enumerator kFLEXSPIOperation_Config

FLEXSPI operation: Configure device mode, the TX FIFO size is fixed in LUT.

enumerator kFLEXSPIOperation_Write

FLEXSPI operation: Write, only TX buffer is effective

enumerator kFLEXSPIOperation_Read

FLEXSPI operation: Read, only Rx Buffer is effective.

enumerator kFLEXSPIOperation_End
enum flexspi_clock_type_t

FLEXSPI Clock Type.

Values:

enumerator kFlexSpiClock_CoreClock

ARM Core Clock

enumerator kFlexSpiClock_AhbClock

AHB clock

enumerator kFlexSpiClock_SerialRootClock

Serial Root Clock

enumerator kFlexSpiClock_IpgClock

IPG clock

typedef struct _serial_nor_config_option serial_nor_config_option_t

Serial NOR configuration option.

typedef struct _lut_sequence flexspi_lut_seq_t

FLEXSPI LUT Sequence structure.

typedef struct _FlexSPIConfig flexspi_mem_config_t

FLEXSPI Memory Configuration Block.

typedef struct _flexspi_nor_config flexspi_nor_config_t

Serial NOR configuration block.

typedef enum _flexspi_operation flexspi_operation_t
typedef struct _flexspi_xfer flexspi_xfer_t

FLEXSPI Transfer Context.

uint32_t max_freq

Maximum supported Frequency

uint32_t misc_mode

miscellaneous mode

uint32_t quad_mode_setting

Quad mode setting

uint32_t cmd_pads

Command pads

uint32_t query_pads

SFDP read pads

uint32_t device_type

Device type

uint32_t option_size

Option size, in terms of uint32_t, size = (option_size + 1) * 4

uint32_t tag

Tag, must be 0x0E

struct _serial_nor_config_option B
uint32_t U
union _serial_nor_config_option option0
uint32_t dummy_cycles

Dummy cycles before read

uint32_t status_override

Override status register value during device mode configuration

uint32_t pinmux_group

The pinmux group selection

uint32_t dqs_pinmux_group

The DQS Pinmux Group Selection

uint32_t drive_strength

The Drive Strength of FLEXSPI Pads

uint32_t flash_connection

Flash connection option: 0 - Single Flash connected to port A, 1 - Parallel mode, 2 - Single Flash connected to Port B

struct _serial_nor_config_option B
uint32_t U
union _serial_nor_config_option option1
uint8_t por_mode
uint8_t current_mode
uint8_t exit_no_cmd_sequence
uint8_t restore_sequence
struct flash_run_context_t B
uint32_t U
uint8_t seqNum

Sequence Number, valid number: 1-16

uint8_t seqId

Sequence Index, valid number: 0-15

uint16_t reserved
uint8_t time_100ps

Data valid time, in terms of 100ps

uint8_t delay_cells

Data valid time, in terms of delay cells

uint32_t tag

[0x000-0x003] Tag, fixed value 0x42464346UL

uint32_t version

[0x004-0x007] Version,[31:24] -‘V’, [23:16] - Major, [15:8] - Minor, [7:0] - bugfix

uint32_t reserved0

[0x008-0x00b] Reserved for future use

uint8_t readSampleClkSrc

[0x00c-0x00c] Read Sample Clock Source, valid value: 0/1/3

uint8_t csHoldTime

[0x00d-0x00d] CS hold time, default value: 3

uint8_t csSetupTime

[0x00e-0x00e] CS setup time, default value: 3

uint8_t columnAddressWidth

[0x00f-0x00f] Column Address with, for HyperBus protocol, it is fixed to 3, For Serial NAND, need to refer to datasheet

uint8_t deviceModeCfgEnable

[0x010-0x010] Device Mode Configure enable flag, 1 - Enable, 0 - Disable

uint8_t deviceModeType

[0x011-0x011] Specify the configuration command type:Quad Enable, DPI/QPI/OPI switch, Generic configuration, etc.

uint16_t waitTimeCfgCommands

[0x012-0x013] Wait time for all configuration commands, unit: 100us, Used for DPI/QPI/OPI switch or reset command

flexspi_lut_seq_t deviceModeSeq

[0x014-0x017] Device mode sequence info, [7:0] - LUT sequence id, [15:8] - LUt sequence number, [31:16] Reserved

uint32_t deviceModeArg

[0x018-0x01b] Argument/Parameter for device configuration

uint8_t configCmdEnable

[0x01c-0x01c] Configure command Enable Flag, 1 - Enable, 0 - Disable

uint8_t configModeType[3]

[0x01d-0x01f] Configure Mode Type, similar as deviceModeTpe

flexspi_lut_seq_t configCmdSeqs[3]

[0x020-0x02b] Sequence info for Device Configuration command, similar as deviceModeSeq

uint32_t reserved1

[0x02c-0x02f] Reserved for future use

uint32_t configCmdArgs[3]

[0x030-0x03b] Arguments/Parameters for device Configuration commands

uint32_t reserved2

[0x03c-0x03f] Reserved for future use

uint32_t controllerMiscOption

[0x040-0x043] Controller Misc Options, see Misc feature bit definitions for more details

uint8_t deviceType

[0x044-0x044] Device Type: See Flash Type Definition for more details

uint8_t sflashPadType

[0x045-0x045] Serial Flash Pad Type: 1 - Single, 2 - Dual, 4 - Quad, 8 - Octal

uint8_t serialClkFreq

[0x046-0x046] Serial Flash Frequencey, device specific definitions, See System Boot Chapter for more details

uint8_t lutCustomSeqEnable

[0x047-0x047] LUT customization Enable, it is required if the program/erase cannot be done using 1 LUT sequence, currently, only applicable to HyperFLASH

uint32_t reserved3[2]

[0x048-0x04f] Reserved for future use

uint32_t sflashA1Size

[0x050-0x053] Size of Flash connected to A1

uint32_t sflashA2Size

[0x054-0x057] Size of Flash connected to A2

uint32_t sflashB1Size

[0x058-0x05b] Size of Flash connected to B1

uint32_t sflashB2Size

[0x05c-0x05f] Size of Flash connected to B2

uint32_t csPadSettingOverride

[0x060-0x063] CS pad setting override value

uint32_t sclkPadSettingOverride

[0x064-0x067] SCK pad setting override value

uint32_t dataPadSettingOverride

[0x068-0x06b] data pad setting override value

uint32_t dqsPadSettingOverride

[0x06c-0x06f] DQS pad setting override value

uint32_t timeoutInMs

[0x070-0x073] Timeout threshold for read status command

uint32_t commandInterval

[0x074-0x077] CS deselect interval between two commands

flexspi_dll_time_t dataValidTime[2]

[0x078-0x07b] CLK edge to data valid time for PORT A and PORT B

uint16_t busyOffset

[0x07c-0x07d] Busy offset, valid value: 0-31

uint16_t busyBitPolarity

[0x07e-0x07f] Busy flag polarity, 0 - busy flag is 1 when flash device is busy, 1 - busy flag is 0 when flash device is busy

uint32_t lookupTable[64]

[0x080-0x17f] Lookup table holds Flash command sequences

flexspi_lut_seq_t lutCustomSeq[12]

[0x180-0x1af] Customizable LUT Sequences

uint32_t dll0CrVal
uint32_t dll1CrVal

[0x1b0-0x1b3] Customizable DLL0CR setting */

uint32_t reserved4[2]

[0x1b4-0x1b7] Customizable DLL1CR setting */

[0x1b8-0x1bf] Reserved for future use

flexspi_mem_config_t memConfig

Common memory configuration info via FLEXSPI

uint32_t pageSize

Page size of Serial NOR

uint32_t sectorSize

Sector size of Serial NOR

uint8_t ipcmdSerialClkFreq

Clock frequency for IP command

uint8_t isUniformBlockSize

Sector/Block size is the same

uint8_t isDataOrderSwapped

Data order (D0, D1, D2, D3) is swapped (D1,D0, D3, D2)

uint8_t reserved0[1]

Reserved for future use

uint8_t serialNorType

Serial NOR Flash type: 0/1/2/3

uint8_t needExitNoCmdMode

Need to exit NoCmd mode before other IP command

uint8_t halfClkForNonReadCmd

Half the Serial Clock for non-read command: true/false

uint8_t needRestoreNoCmdMode

Need to Restore NoCmd mode after IP commmand execution

uint32_t blockSize

Block size

uint32_t flashStateCtx

Flash State Context

uint32_t reserve2[10]

Reserved for future use

flexspi_operation_t operation

FLEXSPI operation

uint32_t baseAddress

FLEXSPI operation base address

uint32_t seqId

Sequence Id

uint32_t seqNum

Sequence Number

bool isParallelModeEnable

Is a parallel transfer

uint32_t *txBuffer

Tx buffer

uint32_t txSize

Tx size in bytes

uint32_t *rxBuffer

Rx buffer

uint32_t rxSize

Rx size in bytes

uint32_t FLEXSPI_NorFlash_GetVersion(void)
status_t FLEXSPI_NorFlash_Init(uint32_t instance, flexspi_nor_config_t *config)

Initialize Serial NOR devices via FLEXSPI.

This function checks and initializes the FLEXSPI module for the other FLEXSPI APIs.

Parameters:
  • instance – storage the instance of FLEXSPI.

  • config – A pointer to the storage for the driver runtime state.

Return values:
  • kStatus_Success – Api was executed succesfuly.

  • kStatus_InvalidArgument – A invalid argument is provided.

  • kStatus_FLEXSPI_InvalidSequence – A invalid Sequence is provided.

  • kStatus_FLEXSPI_SequenceExecutionTimeout – Sequence Execution timeout.

  • kStatus_FLEXSPI_DeviceTimeout – the device timeout

status_t FLEXSPI_NorFlash_ProgramPage(uint32_t instance, flexspi_nor_config_t *config, uint32_t dstAddr, const uint32_t *src)

Program data to Serial NOR via FLEXSPI.

This function programs the NOR flash memory with the dest address for a given flash area as determined by the dst address and the length.

Parameters:
  • instance – storage the instance of FLEXSPI.

  • config – A pointer to the storage for the driver runtime state.

  • dst_addr – A pointer to the desired flash memory to be programmed. NOTE: It is recommended that use page aligned access; If the dst_addr is not aligned to page,the driver automatically aligns address down with the page address.

  • src – A pointer to the source buffer of data that is to be programmed into the NOR flash.

Return values:
  • kStatus_Success – Api was executed succesfuly.

  • kStatus_InvalidArgument – A invalid argument is provided.

  • kStatus_FLEXSPI_InvalidSequence – A invalid Sequence is provided.

  • kStatus_FLEXSPI_SequenceExecutionTimeout – Sequence Execution timeout.

  • kStatus_FLEXSPI_DeviceTimeout – the device timeout

status_t FLEXSPI_NorFlash_EraseAll(uint32_t instance, flexspi_nor_config_t *config)

Erase all the Serial NOR devices connected on FLEXSPI.

Parameters:
  • instance – storage the instance of FLEXSPI.

  • config – A pointer to the storage for the driver runtime state.

Return values:
  • kStatus_Success – Api was executed succesfuly.

  • kStatus_InvalidArgument – A invalid argument is provided.

  • kStatus_FLEXSPI_InvalidSequence – A invalid Sequence is provided.

  • kStatus_FLEXSPI_SequenceExecutionTimeout – Sequence Execution timeout.

  • kStatus_FLEXSPI_DeviceTimeout – the device timeout

status_t FLEXSPI_NorFlash_EraseSector(uint32_t instance, flexspi_nor_config_t *config, uint32_t address)

Erase one sector specified by address.

This function erases one of NOR flash sectors based on the desired address.

Parameters:
  • instance – storage the index of FLEXSPI.

  • config – A pointer to the storage for the driver runtime state.

  • address – The start address of the desired NOR flash memory to be erased. NOTE: It is recommended that use sector-aligned access nor device; If dstAddr is not aligned with the sector,The driver automatically aligns address down with the sector address.

Return values:
  • kStatus_Success – Api was executed succesfuly.

  • kStatus_InvalidArgument – A invalid argument is provided.

  • kStatus_FLEXSPI_InvalidSequence – A invalid Sequence is provided.

  • kStatus_FLEXSPI_SequenceExecutionTimeout – Sequence Execution timeout.

  • kStatus_FLEXSPI_DeviceTimeout – the device timeout

status_t FLEXSPI_NorFlash_EraseBlock(uint32_t instance, flexspi_nor_config_t *config, uint32_t address)

Erase one block specified by address.

This function erases one block of NOR flash based on the desired address.

Parameters:
  • instance – storage the index of FLEXSPI.

  • config – A pointer to the storage for the driver runtime state.

  • start – The start address of the desired NOR flash memory to be erased. NOTE: It is recommended that use block-aligned access nor device; If dstAddr is not aligned with the block,The driver automatically aligns address down with the block address.

Return values:
  • kStatus_Success – Api was executed succesfuly.

  • kStatus_InvalidArgument – A invalid argument is provided.

  • kStatus_FLEXSPI_InvalidSequence – A invalid Sequence is provided.

  • kStatus_FLEXSPI_SequenceExecutionTimeout – Sequence Execution timeout.

  • kStatus_FLEXSPI_DeviceTimeout – the device timeout

status_t FLEXSPI_NorFlash_GetConfig(uint32_t instance, flexspi_nor_config_t *config, serial_nor_config_option_t *option)

Get FLEXSPI NOR Configuration Block based on specified option.

Parameters:
  • instance – storage the instance of FLEXSPI.

  • config – A pointer to the storage for the driver runtime state.

  • option – A pointer to the storage Serial NOR Configuration Option Context.

Return values:
  • kStatus_Success – Api was executed succesfuly.

  • kStatus_InvalidArgument – A invalid argument is provided.

  • kStatus_FLEXSPI_InvalidSequence – A invalid Sequence is provided.

  • kStatus_FLEXSPI_SequenceExecutionTimeout – Sequence Execution timeout.

  • kStatus_FLEXSPI_DeviceTimeout – the device timeout

status_t FLEXSPI_NorFlash_Erase(uint32_t instance, flexspi_nor_config_t *config, uint32_t start, uint32_t length)

Erase Flash Region specified by address and length.

This function erases the appropriate number of flash sectors based on the desired start address and length.

Parameters:
  • instance – storage the index of FLEXSPI.

  • config – A pointer to the storage for the driver runtime state.

  • start – The start address of the desired NOR flash memory to be erased. NOTE: It is recommended that use sector-aligned access nor device; If dstAddr is not aligned with the sector,the driver automatically aligns address down with the sector address.

  • length – The length, given in bytes to be erased. NOTE: It is recommended that use sector-aligned access nor device; If length is not aligned with the sector,the driver automatically aligns up with the sector.

Return values:
  • kStatus_Success – Api was executed succesfuly.

  • kStatus_InvalidArgument – A invalid argument is provided.

  • kStatus_FLEXSPI_InvalidSequence – A invalid Sequence is provided.

  • kStatus_FLEXSPI_SequenceExecutionTimeout – Sequence Execution timeout.

  • kStatus_FLEXSPI_DeviceTimeout – the device timeout

status_t FLEXSPI_NorFlash_Read(uint32_t instance, flexspi_nor_config_t *config, uint32_t *dst, uint32_t start, uint32_t bytes)

Read data from Serial NOR via FLEXSPI.

This function read the NOR flash memory with the start address for a given flash area as determined by the dst address and the length.

Parameters:
  • instance – storage the instance of FLEXSPI.

  • config – A pointer to the storage for the driver runtime state.

  • dst – A pointer to the dest buffer of data that is to be read from the NOR flash. NOTE: It is recommended that use page aligned access; If the dstAddr is not aligned to page,the driver automatically aligns address down with the page address.

  • start – The start address of the desired NOR flash memory to be read.

  • lengthInBytes – The length, given in bytes to be read.

Return values:
  • kStatus_Success – Api was executed succesfuly.

  • kStatus_InvalidArgument – A invalid argument is provided.

  • kStatus_FLEXSPI_InvalidSequence – A invalid Sequence is provided.

  • kStatus_FLEXSPI_SequenceExecutionTimeout – Sequence Execution timeout.

  • kStatus_FLEXSPI_DeviceTimeout – the device timeout

status_t FLEXSPI_NorFlash_CommandXfer(uint32_t instance, flexspi_xfer_t *xfer)

FLEXSPI command.

This function is used to perform the command write sequence to the NOR device.

Parameters:
  • instance – storage the index of FLEXSPI.

  • xfer – A pointer to the storage FLEXSPI Transfer Context.

Return values:
  • kStatus_Success – Api was executed succesfuly.

  • kStatus_InvalidArgument – A invalid argument is provided.

  • kStatus_ROM_FLEXSPI_InvalidSequence – A invalid Sequence is provided.

  • kStatus_ROM_FLEXSPI_SequenceExecutionTimeout – Sequence Execution timeout.

status_t FLEXSPI_NorFlash_UpdateLut(uint32_t instance, uint32_t seqIndex, const uint32_t *lutBase, uint32_t seqNumber)

Configure FLEXSPI Lookup table.

Parameters:
  • instance – storage the index of FLEXSPI.

  • seqIndex – storage the sequence Id.

  • lutBase – A pointer to the look-up-table for command sequences.

  • seqNumber – storage sequence number.

Return values:
  • kStatus_Success – Api was executed succesfuly.

  • kStatus_InvalidArgument – A invalid argument is provided.

  • kStatus_ROM_FLEXSPI_InvalidSequence – A invalid Sequence is provided.

  • kStatus_ROM_FLEXSPI_SequenceExecutionTimeout – Sequence Execution timeout.

status_t FLEXSPI_NorFlash_SetClockSource(uint32_t clockSource)

Set the clock source for FLEXSPI NOR.

Parameters:
  • clockSource – Clock source for FLEXSPI NOR. See to “_flexspi_nor_clock_source”.

Return values:
  • kStatus_Success – Api was executed succesfuly.

  • kStatus_InvalidArgument – A invalid argument is provided.

void FLEXSPI_NorFlash_ConfigClock(uint32_t instance, uint32_t freqOption, uint32_t sampleClkMode)

Configure the FlexSPI clock.

The API is used for configuring the FlexSPI clock.

Parameters:
  • instance – storage the index of FLEXSPI.

  • freqOption – storage FlexSPIFlexSPI flash serial clock frequency.

  • sampleClkMode – storage the FlexSPI clock configuration type.

Return values:
  • kStatus_Success – Api was executed succesfuly.

  • kStatus_InvalidArgument – A invalid argument is provided.

FLEXSPI_FEATURE_HAS_PARALLEL_MODE

FLEXSPI Feature related definitions

FSL_ROM_FLEXSPI_LUT_SEQ(cmd0, pad0, op0, cmd1, pad1, op1)
CMD_SDR
CMD_DDR
RADDR_SDR
RADDR_DDR
CADDR_SDR
CADDR_DDR
MODE1_SDR
MODE1_DDR
MODE2_SDR
MODE2_DDR
MODE4_SDR
MODE4_DDR
MODE8_SDR
MODE8_DDR
WRITE_SDR
WRITE_DDR
READ_SDR
READ_DDR
LEARN_SDR
LEARN_DDR
DATSZ_SDR
DATSZ_DDR
DUMMY_SDR
DUMMY_DDR
DUMMY_RWDS_SDR
DUMMY_RWDS_DDR
JMP_ON_CS
FLEXSPI_STOP
FLEXSPI_1PAD
FLEXSPI_2PAD
FLEXSPI_4PAD
FLEXSPI_8PAD
NOR_CMD_LUT_SEQ_IDX_READ

NOR LUT sequence index used for default LUT assignment NOTE: The will take effect if the lut sequences are not customized.

READ LUT sequence id in lookupTable stored in config block

NOR_CMD_LUT_SEQ_IDX_READSTATUS

Read Status LUT sequence id in lookupTable stored in config block

NOR_CMD_LUT_SEQ_IDX_READSTATUS_XPI

Read status DPI/QPI/OPI sequence id in lookupTable stored in config block

NOR_CMD_LUT_SEQ_IDX_WRITEENABLE

Write Enable sequence id in lookupTable stored in config block

NOR_CMD_LUT_SEQ_IDX_WRITEENABLE_XPI

Write Enable DPI/QPI/OPI sequence id in lookupTable stored in config block

NOR_CMD_LUT_SEQ_IDX_ERASESECTOR

Erase Sector sequence id in lookupTable stored in config block

NOR_CMD_LUT_SEQ_IDX_READID
NOR_CMD_LUT_SEQ_IDX_ERASEBLOCK

Erase Block sequence id in lookupTable stored in config block

NOR_CMD_LUT_SEQ_IDX_PAGEPROGRAM

Program sequence id in lookupTable stored in config block

NOR_CMD_LUT_SEQ_IDX_CHIPERASE

Chip Erase sequence in lookupTable id stored in config block

NOR_CMD_LUT_SEQ_IDX_READ_SFDP

Read SFDP sequence in lookupTable id stored in config block

NOR_CMD_LUT_SEQ_IDX_RESTORE_NOCMD

Restore 0-4-4/0-8-8 mode sequence id in lookupTable stored in config block

NOR_CMD_LUT_SEQ_IDX_EXIT_NOCMD

Exit 0-4-4/0-8-8 mode sequence id in lookupTable stored in config blobk

struct _serial_nor_config_option
#include <fsl_flexspi_nor_flash.h>

Serial NOR configuration option.

union flash_run_context_t
#include <fsl_flexspi_nor_flash.h>
struct _lut_sequence
#include <fsl_flexspi_nor_flash.h>

FLEXSPI LUT Sequence structure.

struct flexspi_dll_time_t
#include <fsl_flexspi_nor_flash.h>
struct _FlexSPIConfig
#include <fsl_flexspi_nor_flash.h>

FLEXSPI Memory Configuration Block.

struct _flexspi_nor_config
#include <fsl_flexspi_nor_flash.h>

Serial NOR configuration block.

struct _flexspi_xfer
#include <fsl_flexspi_nor_flash.h>

FLEXSPI Transfer Context.

union option0

Public Members

struct _serial_nor_config_option B
uint32_t U
struct B

Public Members

uint32_t max_freq

Maximum supported Frequency

uint32_t misc_mode

miscellaneous mode

uint32_t quad_mode_setting

Quad mode setting

uint32_t cmd_pads

Command pads

uint32_t query_pads

SFDP read pads

uint32_t device_type

Device type

uint32_t option_size

Option size, in terms of uint32_t, size = (option_size + 1) * 4

uint32_t tag

Tag, must be 0x0E

union option1

Public Members

struct _serial_nor_config_option B
uint32_t U
struct B

Public Members

uint32_t dummy_cycles

Dummy cycles before read

uint32_t status_override

Override status register value during device mode configuration

uint32_t pinmux_group

The pinmux group selection

uint32_t dqs_pinmux_group

The DQS Pinmux Group Selection

uint32_t drive_strength

The Drive Strength of FLEXSPI Pads

uint32_t flash_connection

Flash connection option: 0 - Single Flash connected to port A, 1 - Parallel mode, 2 - Single Flash connected to Port B

struct B

FREQME: Frequency Measurement

GDET

status_t GDET_Init(GDET_Type *base)

Initialize GDET.

This function initializes GDET block and setting.

Parameters:
  • base – GDET peripheral base address

Returns:

Status of the init operation

void GDET_Deinit(GDET_Type *base)

Deinitialize GDET.

This function deinitializes GDET secure counter.

Parameters:
  • base – GDET peripheral base address

status_t GDET_Enable(GDET_Type *base)

Enable GDET.

This function enables GDET and interrupts.

Parameters:
  • base – GDET peripheral base address

Returns:

Status of the enable operation

status_t GDET_Disable(GDET_Type *base)

Disable GDET.

This function disables GDET and interrupts.

Parameters:
  • base – GDET peripheral base address

Returns:

Status of the disable operation

status_t GDET_IsolateOn(GDET_Type *base)

Turn on GDET isolation.

This function turns on isolation of GDET peripheral

Parameters:
  • base – GDET peripheral base address

Returns:

Status of the operation

status_t GDET_IsolateOff(GDET_Type *base)

Turn off GDET isolation.

This function turns off isolation of GDET peripheral

Parameters:
  • base – GDET peripheral base address

Returns:

Status of the operation

status_t GDET_ReconfigureVoltageMode(GDET_Type *base, gdet_core_voltage_t voltage)

Change expected core voltage.

This function changes core voltage which Glitch detector expect.

Parameters:
  • base – GDET peripheral base address

  • voltage – Expected core voltage

Returns:

Status of the GDET reconfiguration operation

FSL_GDET_DRIVER_VERSION

Defines GDET driver version 2.1.0.

Change log:

  • Version 2.1.0

    • Update for multiple instances

    • Fix bug in isolation off API

    • Add enable and disable APIs

  • 2.0.1

    • Fix MISRA in GDET_ReconfigureVoltageMode()

  • Version 2.0.0

    • initial version

typedef uint32_t gdet_core_voltage_t

GDET Core Voltage.

These constants are used to define core voltage argument to be used with GDET_ReconfigureVoltageMode(). Different SoC may support various volatages, refer to documentation.

void GDET_DriverIRQHandler(void)
kGDET_0_9v

Voltage (0.9V)

kGDET_1_0v

Voltage (1.0V)

kGDET_1_1v

Voltage (1.1V)

Glitch Detect

GPIO: General-Purpose Input/Output Driver

FSL_GPIO_DRIVER_VERSION

GPIO driver version.

enum _gpio_pin_direction

GPIO direction definition.

Values:

enumerator kGPIO_DigitalInput

Set current pin as digital input

enumerator kGPIO_DigitalOutput

Set current pin as digital output

enum _gpio_checker_attribute

GPIO checker attribute.

Values:

enumerator kGPIO_UsernonsecureRWUsersecureRWPrivilegedsecureRW

User nonsecure:Read+Write; User Secure:Read+Write; Privileged Secure:Read+Write

enumerator kGPIO_UsernonsecureRUsersecureRWPrivilegedsecureRW

User nonsecure:Read; User Secure:Read+Write; Privileged Secure:Read+Write

enumerator kGPIO_UsernonsecureNUsersecureRWPrivilegedsecureRW

User nonsecure:None; User Secure:Read+Write; Privileged Secure:Read+Write

enumerator kGPIO_UsernonsecureRUsersecureRPrivilegedsecureRW

User nonsecure:Read; User Secure:Read; Privileged Secure:Read+Write

enumerator kGPIO_UsernonsecureNUsersecureRPrivilegedsecureRW

User nonsecure:None; User Secure:Read; Privileged Secure:Read+Write

enumerator kGPIO_UsernonsecureNUsersecureNPrivilegedsecureRW

User nonsecure:None; User Secure:None; Privileged Secure:Read+Write

enumerator kGPIO_UsernonsecureNUsersecureNPrivilegedsecureR

User nonsecure:None; User Secure:None; Privileged Secure:Read

enumerator kGPIO_UsernonsecureNUsersecureNPrivilegedsecureN

User nonsecure:None; User Secure:None; Privileged Secure:None

enumerator kGPIO_IgnoreAttributeCheck

Ignores the attribute check

enum _gpio_interrupt_config

Configures the interrupt generation condition.

Values:

enumerator kGPIO_InterruptStatusFlagDisabled

Interrupt status flag is disabled.

enumerator kGPIO_DMARisingEdge

ISF flag and DMA request on rising edge.

enumerator kGPIO_DMAFallingEdge

ISF flag and DMA request on falling edge.

enumerator kGPIO_DMAEitherEdge

ISF flag and DMA request on either edge.

enumerator kGPIO_FlagRisingEdge

Flag sets on rising edge.

enumerator kGPIO_FlagFallingEdge

Flag sets on falling edge.

enumerator kGPIO_FlagEitherEdge

Flag sets on either edge.

enumerator kGPIO_InterruptLogicZero

Interrupt when logic zero.

enumerator kGPIO_InterruptRisingEdge

Interrupt on rising edge.

enumerator kGPIO_InterruptFallingEdge

Interrupt on falling edge.

enumerator kGPIO_InterruptEitherEdge

Interrupt on either edge.

enumerator kGPIO_InterruptLogicOne

Interrupt when logic one.

enumerator kGPIO_ActiveHighTriggerOutputEnable

Enable active high-trigger output.

enumerator kGPIO_ActiveLowTriggerOutputEnable

Enable active low-trigger output.

enum _gpio_interrupt_selection

Configures the selection of interrupt/DMA request/trigger output.

Values:

enumerator kGPIO_InterruptOutput0

Interrupt/DMA request/trigger output 0.

enumerator kGPIO_InterruptOutput1

Interrupt/DMA request/trigger output 1.

enum gpio_pin_interrupt_control_t

GPIO pin and interrupt control.

Values:

enumerator kGPIO_PinControlNonSecure

Pin Control Non-Secure.

enumerator kGPIO_InterruptControlNonSecure

Interrupt Control Non-Secure.

enumerator kGPIO_PinControlNonPrivilege

Pin Control Non-Privilege.

enumerator kGPIO_InterruptControlNonPrivilege

Interrupt Control Non-Privilege.

typedef enum _gpio_pin_direction gpio_pin_direction_t

GPIO direction definition.

typedef enum _gpio_checker_attribute gpio_checker_attribute_t

GPIO checker attribute.

typedef struct _gpio_pin_config gpio_pin_config_t

The GPIO pin configuration structure.

Each pin can only be configured as either an output pin or an input pin at a time. If configured as an input pin, leave the outputConfig unused. Note that in some use cases, the corresponding port property should be configured in advance with the PORT_SetPinConfig().

typedef enum _gpio_interrupt_config gpio_interrupt_config_t

Configures the interrupt generation condition.

typedef enum _gpio_interrupt_selection gpio_interrupt_selection_t

Configures the selection of interrupt/DMA request/trigger output.

typedef struct _gpio_version_info gpio_version_info_t

GPIO version information.

GPIO_FIT_REG(value)
struct _gpio_pin_config
#include <fsl_gpio.h>

The GPIO pin configuration structure.

Each pin can only be configured as either an output pin or an input pin at a time. If configured as an input pin, leave the outputConfig unused. Note that in some use cases, the corresponding port property should be configured in advance with the PORT_SetPinConfig().

Public Members

gpio_pin_direction_t pinDirection

GPIO direction, input or output

uint8_t outputLogic

Set a default output logic, which has no use in input

struct _gpio_version_info
#include <fsl_gpio.h>

GPIO version information.

Public Members

uint16_t feature

Feature Specification Number.

uint8_t minor

Minor Version Number.

uint8_t major

Major Version Number.

GPIO Driver

void GPIO_PortInit(GPIO_Type *base)

Initializes the GPIO peripheral.

This function ungates the GPIO clock.

Parameters:
  • base – GPIO peripheral base pointer.

void GPIO_PortDenit(GPIO_Type *base)

Denitializes the GPIO peripheral.

Parameters:
  • base – GPIO peripheral base pointer.

void GPIO_PinInit(GPIO_Type *base, uint32_t pin, const gpio_pin_config_t *config)

Initializes a GPIO pin used by the board.

To initialize the GPIO, define a pin configuration, as either input or output, in the user file. Then, call the GPIO_PinInit() function.

This is an example to define an input pin or an output pin configuration.

Define a digital input pin configuration,
gpio_pin_config_t config =
{
  kGPIO_DigitalInput,
  0,
}
Define a digital output pin configuration,
gpio_pin_config_t config =
{
  kGPIO_DigitalOutput,
  0,
}

Parameters:
  • base – GPIO peripheral base pointer (GPIOA, GPIOB, GPIOC, and so on.)

  • pin – GPIO port pin number

  • config – GPIO pin configuration pointer

void GPIO_GetVersionInfo(GPIO_Type *base, gpio_version_info_t *info)

Get GPIO version information.

Parameters:
  • base – GPIO peripheral base pointer (GPIOA, GPIOB, GPIOC, and so on.)

  • info – GPIO version information

static inline void GPIO_SecurePrivilegeLock(GPIO_Type *base, gpio_pin_interrupt_control_t mask)

lock or unlock secure privilege.

Parameters:
  • base – GPIO peripheral base pointer (GPIOA, GPIOB, GPIOC, and so on.)

  • mask – pin or interrupt macro

static inline void GPIO_EnablePinControlNonSecure(GPIO_Type *base, uint32_t mask)

Enable Pin Control Non-Secure.

Parameters:
  • base – GPIO peripheral base pointer (GPIOA, GPIOB, GPIOC, and so on.)

  • mask – GPIO pin number macro

static inline void GPIO_DisablePinControlNonSecure(GPIO_Type *base, uint32_t mask)

Disable Pin Control Non-Secure.

Parameters:
  • base – GPIO peripheral base pointer (GPIOA, GPIOB, GPIOC, and so on.)

  • mask – GPIO pin number macro

static inline void GPIO_EnablePinControlNonPrivilege(GPIO_Type *base, uint32_t mask)

Enable Pin Control Non-Privilege.

Parameters:
  • base – GPIO peripheral base pointer (GPIOA, GPIOB, GPIOC, and so on.)

  • mask – GPIO pin number macro

static inline void GPIO_DisablePinControlNonPrivilege(GPIO_Type *base, uint32_t mask)

Disable Pin Control Non-Privilege.

Parameters:
  • base – GPIO peripheral base pointer (GPIOA, GPIOB, GPIOC, and so on.)

  • mask – GPIO pin number macro

static inline void GPIO_EnableInterruptControlNonSecure(GPIO_Type *base, uint32_t mask)

Enable Interrupt Control Non-Secure.

Parameters:
  • base – GPIO peripheral base pointer (GPIOA, GPIOB, GPIOC, and so on.)

  • mask – GPIO pin number macro

static inline void GPIO_DisableInterruptControlNonSecure(GPIO_Type *base, uint32_t mask)

Disable Interrupt Control Non-Secure.

Parameters:
  • base – GPIO peripheral base pointer (GPIOA, GPIOB, GPIOC, and so on.)

  • mask – GPIO pin number macro

static inline void GPIO_EnableInterruptControlNonPrivilege(GPIO_Type *base, uint32_t mask)

Enable Interrupt Control Non-Privilege.

Parameters:
  • base – GPIO peripheral base pointer (GPIOA, GPIOB, GPIOC, and so on.)

  • mask – GPIO pin number macro

static inline void GPIO_DisableInterruptControlNonPrivilege(GPIO_Type *base, uint32_t mask)

Disable Interrupt Control Non-Privilege.

Parameters:
  • base – GPIO peripheral base pointer (GPIOA, GPIOB, GPIOC, and so on.)

  • mask – GPIO pin number macro

static inline void GPIO_PortInputEnable(GPIO_Type *base, uint32_t mask)

Enable port input.

Parameters:
  • base – GPIO peripheral base pointer (GPIOA, GPIOB, GPIOC, and so on.)

  • mask – GPIO pin number macro

static inline void GPIO_PortInputDisable(GPIO_Type *base, uint32_t mask)

Disable port input.

Parameters:
  • base – GPIO peripheral base pointer (GPIOA, GPIOB, GPIOC, and so on.)

  • mask – GPIO pin number macro

static inline void GPIO_PinWrite(GPIO_Type *base, uint32_t pin, uint8_t output)

Sets the output level of the multiple GPIO pins to the logic 1 or 0.

Parameters:
  • base – GPIO peripheral base pointer (GPIOA, GPIOB, GPIOC, and so on.)

  • pin – GPIO pin number

  • output – GPIO pin output logic level.

    • 0: corresponding pin output low-logic level.

    • 1: corresponding pin output high-logic level.

static inline void GPIO_PortSet(GPIO_Type *base, uint32_t mask)

Sets the output level of the multiple GPIO pins to the logic 1.

Parameters:
  • base – GPIO peripheral base pointer (GPIOA, GPIOB, GPIOC, and so on.)

  • mask – GPIO pin number macro

static inline void GPIO_PortClear(GPIO_Type *base, uint32_t mask)

Sets the output level of the multiple GPIO pins to the logic 0.

Parameters:
  • base – GPIO peripheral base pointer (GPIOA, GPIOB, GPIOC, and so on.)

  • mask – GPIO pin number macro

static inline void GPIO_PortToggle(GPIO_Type *base, uint32_t mask)

Reverses the current output logic of the multiple GPIO pins.

Parameters:
  • base – GPIO peripheral base pointer (GPIOA, GPIOB, GPIOC, and so on.)

  • mask – GPIO pin number macro

static inline uint32_t GPIO_PinRead(GPIO_Type *base, uint32_t pin)

Reads the current input value of the GPIO port.

Parameters:
  • base – GPIO peripheral base pointer (GPIOA, GPIOB, GPIOC, and so on.)

  • pin – GPIO pin number

Return values:

GPIO – port input value

  • 0: corresponding pin input low-logic level.

  • 1: corresponding pin input high-logic level.

static inline void GPIO_SetPinInterruptConfig(GPIO_Type *base, uint32_t pin, gpio_interrupt_config_t config)

Configures the gpio pin interrupt/DMA request.

Parameters:
  • base – GPIO peripheral base pointer.

  • pin – GPIO pin number.

  • config – GPIO pin interrupt configuration.

    • kGPIO_InterruptStatusFlagDisabled: Interrupt/DMA request disabled.

    • kGPIO_DMARisingEdge : DMA request on rising edge(if the DMA requests exit).

    • kGPIO_DMAFallingEdge: DMA request on falling edge(if the DMA requests exit).

    • kGPIO_DMAEitherEdge : DMA request on either edge(if the DMA requests exit).

    • kGPIO_FlagRisingEdge : Flag sets on rising edge(if the Flag states exit).

    • kGPIO_FlagFallingEdge : Flag sets on falling edge(if the Flag states exit).

    • kGPIO_FlagEitherEdge : Flag sets on either edge(if the Flag states exit).

    • kGPIO_InterruptLogicZero : Interrupt when logic zero.

    • kGPIO_InterruptRisingEdge : Interrupt on rising edge.

    • kGPIO_InterruptFallingEdge: Interrupt on falling edge.

    • kGPIO_InterruptEitherEdge : Interrupt on either edge.

    • kGPIO_InterruptLogicOne : Interrupt when logic one.

    • kGPIO_ActiveHighTriggerOutputEnable : Enable active high-trigger output (if the trigger states exit).

    • kGPIO_ActiveLowTriggerOutputEnable : Enable active low-trigger output (if the trigger states exit).

static inline void GPIO_SetPinInterruptChannel(GPIO_Type *base, uint32_t pin, gpio_interrupt_selection_t selection)

Configures the gpio pin interrupt/DMA request/trigger output channel selection.

Parameters:
  • base – GPIO peripheral base pointer.

  • pin – GPIO pin number.

  • selection – GPIO pin interrupt output selection.

    • kGPIO_InterruptOutput0: Interrupt/DMA request/trigger output 0.

    • kGPIO_InterruptOutput1 : Interrupt/DMA request/trigger output 1.

uint32_t GPIO_GpioGetInterruptFlags(GPIO_Type *base)

Read the GPIO interrupt status flags.

Parameters:
  • base – GPIO peripheral base pointer. (GPIOA, GPIOB, GPIOC, and so on.)

Returns:

The current GPIO’s interrupt status flag. ‘1’ means the related pin’s flag is set, ‘0’ means the related pin’s flag not set. For example, the return value 0x00010001 means the pin 0 and 17 have the interrupt pending.

uint32_t GPIO_GpioGetInterruptChannelFlags(GPIO_Type *base, uint32_t channel)

Read the GPIO interrupt status flags based on selected interrupt channel(IRQS).

Parameters:
  • base – GPIO peripheral base pointer. (GPIOA, GPIOB, GPIOC, and so on.)

  • channel – ‘0’ means selete interrupt channel 0, ‘1’ means selete interrupt channel 1.

Returns:

The current GPIO’s interrupt status flag based on the selected interrupt channel. ‘1’ means the related pin’s flag is set, ‘0’ means the related pin’s flag not set. For example, the return value 0x00010001 means the pin 0 and 17 have the interrupt pending.

uint8_t GPIO_PinGetInterruptFlag(GPIO_Type *base, uint32_t pin)

Read individual pin’s interrupt status flag.

Parameters:
  • base – GPIO peripheral base pointer. (GPIOA, GPIOB, GPIOC, and so on)

  • pin – GPIO specific pin number.

Returns:

The current selected pin’s interrupt status flag.

void GPIO_GpioClearInterruptFlags(GPIO_Type *base, uint32_t mask)

Clears GPIO pin interrupt status flags.

Parameters:
  • base – GPIO peripheral base pointer (GPIOA, GPIOB, GPIOC, and so on.)

  • mask – GPIO pin number macro

void GPIO_GpioClearInterruptChannelFlags(GPIO_Type *base, uint32_t mask, uint32_t channel)

Clears GPIO pin interrupt status flags based on selected interrupt channel(IRQS).

Parameters:
  • base – GPIO peripheral base pointer (GPIOA, GPIOB, GPIOC, and so on.)

  • mask – GPIO pin number macro

  • channel – ‘0’ means selete interrupt channel 0, ‘1’ means selete interrupt channel 1.

void GPIO_PinClearInterruptFlag(GPIO_Type *base, uint32_t pin)

Clear GPIO individual pin’s interrupt status flag.

Parameters:
  • base – GPIO peripheral base pointer (GPIOA, GPIOB, GPIOC, and so on).

  • pin – GPIO specific pin number.

static inline void GPIO_SetMultipleInterruptPinsConfig(GPIO_Type *base, uint32_t mask, gpio_interrupt_config_t config)

Sets the GPIO interrupt configuration in PCR register for multiple pins.

Parameters:
  • base – GPIO peripheral base pointer.

  • mask – GPIO pin number macro.

  • config – GPIO pin interrupt configuration.

    • kGPIO_InterruptStatusFlagDisabled: Interrupt disabled.

    • kGPIO_DMARisingEdge : DMA request on rising edge(if the DMA requests exit).

    • kGPIO_DMAFallingEdge: DMA request on falling edge(if the DMA requests exit).

    • kGPIO_DMAEitherEdge : DMA request on either edge(if the DMA requests exit).

    • kGPIO_FlagRisingEdge : Flag sets on rising edge(if the Flag states exit).

    • kGPIO_FlagFallingEdge : Flag sets on falling edge(if the Flag states exit).

    • kGPIO_FlagEitherEdge : Flag sets on either edge(if the Flag states exit).

    • kGPIO_InterruptLogicZero : Interrupt when logic zero.

    • kGPIO_InterruptRisingEdge : Interrupt on rising edge.

    • kGPIO_InterruptFallingEdge: Interrupt on falling edge.

    • kGPIO_InterruptEitherEdge : Interrupt on either edge.

    • kGPIO_InterruptLogicOne : Interrupt when logic one.

    • kGPIO_ActiveHighTriggerOutputEnable : Enable active high-trigger output (if the trigger states exit).

    • kGPIO_ActiveLowTriggerOutputEnable : Enable active low-trigger output (if the trigger states exit)..

void GPIO_CheckAttributeBytes(GPIO_Type *base, gpio_checker_attribute_t attribute)

brief The GPIO module supports a device-specific number of data ports, organized as 32-bit words/8-bit Bytes. Each 32-bit/8-bit data port includes a GACR register, which defines the byte-level attributes required for a successful access to the GPIO programming model. If the GPIO module’s GACR register organized as 32-bit words, the attribute controls for the 4 data bytes in the GACR follow a standard little endian data convention.

Parameters:
  • base – GPIO peripheral base pointer (GPIOA, GPIOB, GPIOC, and so on.)

  • attribute – GPIO checker attribute

I3C: I3C Driver

FSL_I3C_DRIVER_VERSION

I3C driver version.

I3C status return codes.

Values:

enumerator kStatus_I3C_Busy

The master is already performing a transfer.

enumerator kStatus_I3C_Idle

The slave driver is idle.

enumerator kStatus_I3C_Nak

The slave device sent a NAK in response to an address.

enumerator kStatus_I3C_WriteAbort

The slave device sent a NAK in response to a write.

enumerator kStatus_I3C_Term

The master terminates slave read.

enumerator kStatus_I3C_HdrParityError

Parity error from DDR read.

enumerator kStatus_I3C_CrcError

CRC error from DDR read.

enumerator kStatus_I3C_ReadFifoError

Read from M/SRDATAB register when FIFO empty.

enumerator kStatus_I3C_WriteFifoError

Write to M/SWDATAB register when FIFO full.

enumerator kStatus_I3C_MsgError

Message SDR/DDR mismatch or read/write message in wrong state

enumerator kStatus_I3C_InvalidReq

Invalid use of request.

enumerator kStatus_I3C_Timeout

The module has stalled too long in a frame.

enumerator kStatus_I3C_SlaveCountExceed

The I3C slave count has exceed the definition in I3C_MAX_DEVCNT.

enumerator kStatus_I3C_IBIWon

The I3C slave event IBI or MR or HJ won the arbitration on a header address.

enumerator kStatus_I3C_OverrunError

Slave internal from-bus buffer/FIFO overrun.

enumerator kStatus_I3C_UnderrunError

Slave internal to-bus buffer/FIFO underrun

enumerator kStatus_I3C_UnderrunNak

Slave internal from-bus buffer/FIFO underrun and NACK error

enumerator kStatus_I3C_InvalidStart

Slave invalid start flag

enumerator kStatus_I3C_SdrParityError

SDR parity error

enumerator kStatus_I3C_S0S1Error

S0 or S1 error

enum _i3c_hdr_mode

I3C HDR modes.

Values:

enumerator kI3C_HDRModeNone
enumerator kI3C_HDRModeDDR
enumerator kI3C_HDRModeTSP
enumerator kI3C_HDRModeTSL
typedef enum _i3c_hdr_mode i3c_hdr_mode_t

I3C HDR modes.

typedef struct _i3c_device_info i3c_device_info_t

I3C device information.

I3C_RETRY_TIMES

Max loops to wait for I3C operation status complete.

This is the maximum number of loops to wait for I3C operation status complete. If set to 0, it will wait indefinitely.

I3C_MAX_DEVCNT
I3C_IBI_BUFF_SIZE
struct _i3c_device_info
#include <fsl_i3c.h>

I3C device information.

Public Members

uint8_t dynamicAddr

Device dynamic address.

uint8_t staticAddr

Static address.

uint8_t dcr

Device characteristics register information.

uint8_t bcr

Bus characteristics register information.

uint16_t vendorID

Device vendor ID(manufacture ID).

uint32_t partNumber

Device part number info

uint16_t maxReadLength

Maximum read length.

uint16_t maxWriteLength

Maximum write length.

uint8_t hdrMode

Support hdr mode, could be OR logic in i3c_hdr_mode.

I3C Common Driver

typedef struct _i3c_config i3c_config_t

Structure with settings to initialize the I3C module, could both initialize master and slave functionality.

This structure holds configuration settings for the I3C peripheral. To initialize this structure to reasonable defaults, call the I3C_GetDefaultConfig() function and pass a pointer to your configuration structure instance.

The configuration structure can be made constant so it resides in flash.

uint32_t I3C_GetInstance(I3C_Type *base)

Get which instance current I3C is used.

Parameters:
  • base – The I3C peripheral base address.

void I3C_GetDefaultConfig(i3c_config_t *config)

Provides a default configuration for the I3C peripheral, the configuration covers both master functionality and slave functionality.

This function provides the following default configuration for I3C:

config->enableMaster                 = kI3C_MasterCapable;
config->disableTimeout               = false;
config->hKeep                        = kI3C_MasterHighKeeperNone;
config->enableOpenDrainStop          = true;
config->enableOpenDrainHigh          = true;
config->baudRate_Hz.i2cBaud          = 400000U;
config->baudRate_Hz.i3cPushPullBaud  = 12500000U;
config->baudRate_Hz.i3cOpenDrainBaud = 2500000U;
config->masterDynamicAddress         = 0x0AU;
config->slowClock_Hz                 = 1000000U;
config->enableSlave                  = true;
config->vendorID                     = 0x11BU;
config->enableRandomPart             = false;
config->partNumber                   = 0;
config->dcr                          = 0;
config->bcr = 0;
config->hdrMode             = (uint8_t)kI3C_HDRModeDDR;
config->nakAllRequest       = false;
config->ignoreS0S1Error     = false;
config->offline             = false;
config->matchSlaveStartStop = false;

After calling this function, you can override any settings in order to customize the configuration, prior to initializing the common I3C driver with I3C_Init().

Parameters:
  • config[out] User provided configuration structure for default values. Refer to i3c_config_t.

void I3C_Init(I3C_Type *base, const i3c_config_t *config, uint32_t sourceClock_Hz)

Initializes the I3C peripheral. This function enables the peripheral clock and initializes the I3C peripheral as described by the user provided configuration. This will initialize both the master peripheral and slave peripheral so that I3C module could work as pure master, pure slave or secondary master, etc. A software reset is performed prior to configuration.

Parameters:
  • base – The I3C peripheral base address.

  • config – User provided peripheral configuration. Use I3C_GetDefaultConfig() to get a set of defaults that you can override.

  • sourceClock_Hz – Frequency in Hertz of the I3C functional clock. Used to calculate the baud rate divisors, filter widths, and timeout periods.

struct _i3c_config
#include <fsl_i3c.h>

Structure with settings to initialize the I3C module, could both initialize master and slave functionality.

This structure holds configuration settings for the I3C peripheral. To initialize this structure to reasonable defaults, call the I3C_GetDefaultConfig() function and pass a pointer to your configuration structure instance.

The configuration structure can be made constant so it resides in flash.

Public Members

i3c_master_enable_t enableMaster

Enable master mode.

bool disableTimeout

Whether to disable timeout to prevent the ERRWARN.

i3c_master_hkeep_t hKeep

High keeper mode setting.

bool enableOpenDrainStop

Whether to emit open-drain speed STOP.

bool enableOpenDrainHigh

Enable Open-Drain High to be 1 PPBAUD count for i3c messages, or 1 ODBAUD.

i3c_baudrate_hz_t baudRate_Hz

Desired baud rate settings.

uint8_t masterDynamicAddress

Main master dynamic address configuration.

uint32_t maxWriteLength

Maximum write length.

uint32_t maxReadLength

Maximum read length.

bool enableSlave

Whether to enable slave.

bool isHotJoin

Whether to enable slave hotjoin before enable slave.

uint8_t staticAddr

Static address.

uint16_t vendorID

Device vendor ID(manufacture ID).

uint32_t partNumber

Device part number info

uint8_t dcr

Device characteristics register information.

uint8_t bcr

Bus characteristics register information.

uint8_t hdrMode

Support hdr mode, could be OR logic in enumeration:i3c_hdr_mode_t.

bool nakAllRequest

Whether to reply NAK to all requests except broadcast CCC.

bool ignoreS0S1Error

Whether to ignore S0/S1 error in SDR mode.

bool offline

Whether to wait 60 us of bus quiet or HDR request to ensure slave track SDR mode safely.

bool matchSlaveStartStop

Whether to assert start/stop status only the time slave is addressed.

I3C Master Driver

void I3C_MasterGetDefaultConfig(i3c_master_config_t *masterConfig)

Provides a default configuration for the I3C master peripheral.

This function provides the following default configuration for the I3C master peripheral:

masterConfig->enableMaster            = kI3C_MasterOn;
masterConfig->disableTimeout          = false;
masterConfig->hKeep                   = kI3C_MasterHighKeeperNone;
masterConfig->enableOpenDrainStop     = true;
masterConfig->enableOpenDrainHigh     = true;
masterConfig->baudRate_Hz             = 100000U;
masterConfig->busType                 = kI3C_TypeI2C;

After calling this function, you can override any settings in order to customize the configuration, prior to initializing the master driver with I3C_MasterInit().

Parameters:
  • masterConfig[out] User provided configuration structure for default values. Refer to i3c_master_config_t.

void I3C_MasterInit(I3C_Type *base, const i3c_master_config_t *masterConfig, uint32_t sourceClock_Hz)

Initializes the I3C master peripheral.

This function enables the peripheral clock and initializes the I3C master peripheral as described by the user provided configuration. A software reset is performed prior to configuration.

Parameters:
  • base – The I3C peripheral base address.

  • masterConfig – User provided peripheral configuration. Use I3C_MasterGetDefaultConfig() to get a set of defaults that you can override.

  • sourceClock_Hz – Frequency in Hertz of the I3C functional clock. Used to calculate the baud rate divisors, filter widths, and timeout periods.

void I3C_MasterDeinit(I3C_Type *base)

Deinitializes the I3C master peripheral.

This function disables the I3C master peripheral and gates the clock. It also performs a software reset to restore the peripheral to reset conditions.

Parameters:
  • base – The I3C peripheral base address.

status_t I3C_MasterCheckAndClearError(I3C_Type *base, uint32_t status)
status_t I3C_MasterWaitForCtrlDone(I3C_Type *base, bool waitIdle)
status_t I3C_CheckForBusyBus(I3C_Type *base)
static inline void I3C_MasterEnable(I3C_Type *base, i3c_master_enable_t enable)

Set I3C module master mode.

Parameters:
  • base – The I3C peripheral base address.

  • enable – Enable master mode.

void I3C_SlaveGetDefaultConfig(i3c_slave_config_t *slaveConfig)

Provides a default configuration for the I3C slave peripheral.

This function provides the following default configuration for the I3C slave peripheral:

slaveConfig->enableslave             = true;

After calling this function, you can override any settings in order to customize the configuration, prior to initializing the slave driver with I3C_SlaveInit().

Parameters:
  • slaveConfig[out] User provided configuration structure for default values. Refer to i3c_slave_config_t.

void I3C_SlaveInit(I3C_Type *base, const i3c_slave_config_t *slaveConfig, uint32_t slowClock_Hz)

Initializes the I3C slave peripheral.

This function enables the peripheral clock and initializes the I3C slave peripheral as described by the user provided configuration.

Parameters:
  • base – The I3C peripheral base address.

  • slaveConfig – User provided peripheral configuration. Use I3C_SlaveGetDefaultConfig() to get a set of defaults that you can override.

  • slowClock_Hz – Frequency in Hertz of the I3C slow clock. Used to calculate the bus match condition values. If FSL_FEATURE_I3C_HAS_NO_SCONFIG_BAMATCH defines as 1, this parameter is useless.

void I3C_SlaveDeinit(I3C_Type *base)

Deinitializes the I3C slave peripheral.

This function disables the I3C slave peripheral and gates the clock.

Parameters:
  • base – The I3C peripheral base address.

static inline void I3C_SlaveEnable(I3C_Type *base, bool isEnable)

Enable/Disable Slave.

Parameters:
  • base – The I3C peripheral base address.

  • isEnable – Enable or disable.

static inline uint32_t I3C_MasterGetStatusFlags(I3C_Type *base)

Gets the I3C master status flags.

A bit mask with the state of all I3C master status flags is returned. For each flag, the corresponding bit in the return value is set if the flag is asserted.

See also

_i3c_master_flags

Parameters:
  • base – The I3C peripheral base address.

Returns:

State of the status flags:

  • 1: related status flag is set.

  • 0: related status flag is not set.

static inline void I3C_MasterClearStatusFlags(I3C_Type *base, uint32_t statusMask)

Clears the I3C master status flag state.

The following status register flags can be cleared:

  • kI3C_MasterSlaveStartFlag

  • kI3C_MasterControlDoneFlag

  • kI3C_MasterCompleteFlag

  • kI3C_MasterArbitrationWonFlag

  • kI3C_MasterSlave2MasterFlag

Attempts to clear other flags has no effect.

See also

_i3c_master_flags.

Parameters:
  • base – The I3C peripheral base address.

  • statusMask – A bitmask of status flags that are to be cleared. The mask is composed of _i3c_master_flags enumerators OR’d together. You may pass the result of a previous call to I3C_MasterGetStatusFlags().

static inline uint32_t I3C_MasterGetErrorStatusFlags(I3C_Type *base)

Gets the I3C master error status flags.

A bit mask with the state of all I3C master error status flags is returned. For each flag, the corresponding bit in the return value is set if the flag is asserted.

See also

_i3c_master_error_flags

Parameters:
  • base – The I3C peripheral base address.

Returns:

State of the error status flags:

  • 1: related status flag is set.

  • 0: related status flag is not set.

static inline void I3C_MasterClearErrorStatusFlags(I3C_Type *base, uint32_t statusMask)

Clears the I3C master error status flag state.

See also

_i3c_master_error_flags.

Parameters:
  • base – The I3C peripheral base address.

  • statusMask – A bitmask of error status flags that are to be cleared. The mask is composed of _i3c_master_error_flags enumerators OR’d together. You may pass the result of a previous call to I3C_MasterGetStatusFlags().

i3c_master_state_t I3C_MasterGetState(I3C_Type *base)

Gets the I3C master state.

Parameters:
  • base – The I3C peripheral base address.

Returns:

I3C master state.

static inline uint32_t I3C_SlaveGetStatusFlags(I3C_Type *base)

Gets the I3C slave status flags.

A bit mask with the state of all I3C slave status flags is returned. For each flag, the corresponding bit in the return value is set if the flag is asserted.

See also

_i3c_slave_flags

Parameters:
  • base – The I3C peripheral base address.

Returns:

State of the status flags:

  • 1: related status flag is set.

  • 0: related status flag is not set.

static inline void I3C_SlaveClearStatusFlags(I3C_Type *base, uint32_t statusMask)

Clears the I3C slave status flag state.

The following status register flags can be cleared:

  • kI3C_SlaveBusStartFlag

  • kI3C_SlaveMatchedFlag

  • kI3C_SlaveBusStopFlag

Attempts to clear other flags has no effect.

See also

_i3c_slave_flags.

Parameters:
  • base – The I3C peripheral base address.

  • statusMask – A bitmask of status flags that are to be cleared. The mask is composed of _i3c_slave_flags enumerators OR’d together. You may pass the result of a previous call to I3C_SlaveGetStatusFlags().

static inline uint32_t I3C_SlaveGetErrorStatusFlags(I3C_Type *base)

Gets the I3C slave error status flags.

A bit mask with the state of all I3C slave error status flags is returned. For each flag, the corresponding bit in the return value is set if the flag is asserted.

See also

_i3c_slave_error_flags

Parameters:
  • base – The I3C peripheral base address.

Returns:

State of the error status flags:

  • 1: related status flag is set.

  • 0: related status flag is not set.

static inline void I3C_SlaveClearErrorStatusFlags(I3C_Type *base, uint32_t statusMask)

Clears the I3C slave error status flag state.

See also

_i3c_slave_error_flags.

Parameters:
  • base – The I3C peripheral base address.

  • statusMask – A bitmask of error status flags that are to be cleared. The mask is composed of _i3c_slave_error_flags enumerators OR’d together. You may pass the result of a previous call to I3C_SlaveGetErrorStatusFlags().

i3c_slave_activity_state_t I3C_SlaveGetActivityState(I3C_Type *base)

Gets the I3C slave state.

Parameters:
  • base – The I3C peripheral base address.

Returns:

I3C slave activity state, refer i3c_slave_activity_state_t.

status_t I3C_SlaveCheckAndClearError(I3C_Type *base, uint32_t status)
static inline void I3C_MasterEnableInterrupts(I3C_Type *base, uint32_t interruptMask)

Enables the I3C master interrupt requests.

All flags except kI3C_MasterBetweenFlag and kI3C_MasterNackDetectFlag can be enabled as interrupts.

Parameters:
  • base – The I3C peripheral base address.

  • interruptMask – Bit mask of interrupts to enable. See _i3c_master_flags for the set of constants that should be OR’d together to form the bit mask.

static inline void I3C_MasterDisableInterrupts(I3C_Type *base, uint32_t interruptMask)

Disables the I3C master interrupt requests.

All flags except kI3C_MasterBetweenFlag and kI3C_MasterNackDetectFlag can be enabled as interrupts.

Parameters:
  • base – The I3C peripheral base address.

  • interruptMask – Bit mask of interrupts to disable. See _i3c_master_flags for the set of constants that should be OR’d together to form the bit mask.

static inline uint32_t I3C_MasterGetEnabledInterrupts(I3C_Type *base)

Returns the set of currently enabled I3C master interrupt requests.

Parameters:
  • base – The I3C peripheral base address.

Returns:

A bitmask composed of _i3c_master_flags enumerators OR’d together to indicate the set of enabled interrupts.

static inline uint32_t I3C_MasterGetPendingInterrupts(I3C_Type *base)

Returns the set of pending I3C master interrupt requests.

Parameters:
  • base – The I3C peripheral base address.

Returns:

A bitmask composed of _i3c_master_flags enumerators OR’d together to indicate the set of pending interrupts.

static inline void I3C_SlaveEnableInterrupts(I3C_Type *base, uint32_t interruptMask)

Enables the I3C slave interrupt requests.

Only below flags can be enabled as interrupts.

  • kI3C_SlaveBusStartFlag

  • kI3C_SlaveMatchedFlag

  • kI3C_SlaveBusStopFlag

  • kI3C_SlaveRxReadyFlag

  • kI3C_SlaveTxReadyFlag

  • kI3C_SlaveDynamicAddrChangedFlag

  • kI3C_SlaveReceivedCCCFlag

  • kI3C_SlaveErrorFlag

  • kI3C_SlaveHDRCommandMatchFlag

  • kI3C_SlaveCCCHandledFlag

  • kI3C_SlaveEventSentFlag

Parameters:
  • base – The I3C peripheral base address.

  • interruptMask – Bit mask of interrupts to enable. See _i3c_slave_flags for the set of constants that should be OR’d together to form the bit mask.

static inline void I3C_SlaveDisableInterrupts(I3C_Type *base, uint32_t interruptMask)

Disables the I3C slave interrupt requests.

Only below flags can be disabled as interrupts.

  • kI3C_SlaveBusStartFlag

  • kI3C_SlaveMatchedFlag

  • kI3C_SlaveBusStopFlag

  • kI3C_SlaveRxReadyFlag

  • kI3C_SlaveTxReadyFlag

  • kI3C_SlaveDynamicAddrChangedFlag

  • kI3C_SlaveReceivedCCCFlag

  • kI3C_SlaveErrorFlag

  • kI3C_SlaveHDRCommandMatchFlag

  • kI3C_SlaveCCCHandledFlag

  • kI3C_SlaveEventSentFlag

Parameters:
  • base – The I3C peripheral base address.

  • interruptMask – Bit mask of interrupts to disable. See _i3c_slave_flags for the set of constants that should be OR’d together to form the bit mask.

static inline uint32_t I3C_SlaveGetEnabledInterrupts(I3C_Type *base)

Returns the set of currently enabled I3C slave interrupt requests.

Parameters:
  • base – The I3C peripheral base address.

Returns:

A bitmask composed of _i3c_slave_flags enumerators OR’d together to indicate the set of enabled interrupts.

static inline uint32_t I3C_SlaveGetPendingInterrupts(I3C_Type *base)

Returns the set of pending I3C slave interrupt requests.

Parameters:
  • base – The I3C peripheral base address.

Returns:

A bitmask composed of _i3c_slave_flags enumerators OR’d together to indicate the set of pending interrupts.

static inline void I3C_MasterEnableDMA(I3C_Type *base, bool enableTx, bool enableRx, uint32_t width)

Enables or disables I3C master DMA requests.

Parameters:
  • base – The I3C peripheral base address.

  • enableTx – Enable flag for transmit DMA request. Pass true for enable, false for disable.

  • enableRx – Enable flag for receive DMA request. Pass true for enable, false for disable.

  • width – DMA read/write unit in bytes.

static inline uint32_t I3C_MasterGetTxFifoAddress(I3C_Type *base, uint32_t width)

Gets I3C master transmit data register address for DMA transfer.

Parameters:
  • base – The I3C peripheral base address.

  • width – DMA read/write unit in bytes.

Returns:

The I3C Master Transmit Data Register address.

static inline uint32_t I3C_MasterGetRxFifoAddress(I3C_Type *base, uint32_t width)

Gets I3C master receive data register address for DMA transfer.

Parameters:
  • base – The I3C peripheral base address.

  • width – DMA read/write unit in bytes.

Returns:

The I3C Master Receive Data Register address.

static inline void I3C_SlaveEnableDMA(I3C_Type *base, bool enableTx, bool enableRx, uint32_t width)

Enables or disables I3C slave DMA requests.

Parameters:
  • base – The I3C peripheral base address.

  • enableTx – Enable flag for transmit DMA request. Pass true for enable, false for disable.

  • enableRx – Enable flag for receive DMA request. Pass true for enable, false for disable.

  • width – DMA read/write unit in bytes.

static inline uint32_t I3C_SlaveGetTxFifoAddress(I3C_Type *base, uint32_t width)

Gets I3C slave transmit data register address for DMA transfer.

Parameters:
  • base – The I3C peripheral base address.

  • width – DMA read/write unit in bytes.

Returns:

The I3C Slave Transmit Data Register address.

static inline uint32_t I3C_SlaveGetRxFifoAddress(I3C_Type *base, uint32_t width)

Gets I3C slave receive data register address for DMA transfer.

Parameters:
  • base – The I3C peripheral base address.

  • width – DMA read/write unit in bytes.

Returns:

The I3C Slave Receive Data Register address.

static inline void I3C_MasterSetWatermarks(I3C_Type *base, i3c_tx_trigger_level_t txLvl, i3c_rx_trigger_level_t rxLvl, bool flushTx, bool flushRx)

Sets the watermarks for I3C master FIFOs.

Parameters:
  • base – The I3C peripheral base address.

  • txLvl – Transmit FIFO watermark level. The kI3C_MasterTxReadyFlag flag is set whenever the number of words in the transmit FIFO reaches txLvl.

  • rxLvl – Receive FIFO watermark level. The kI3C_MasterRxReadyFlag flag is set whenever the number of words in the receive FIFO reaches rxLvl.

  • flushTx – true if TX FIFO is to be cleared, otherwise TX FIFO remains unchanged.

  • flushRx – true if RX FIFO is to be cleared, otherwise RX FIFO remains unchanged.

static inline void I3C_MasterGetFifoCounts(I3C_Type *base, size_t *rxCount, size_t *txCount)

Gets the current number of bytes in the I3C master FIFOs.

Parameters:
  • base – The I3C peripheral base address.

  • txCount[out] Pointer through which the current number of bytes in the transmit FIFO is returned. Pass NULL if this value is not required.

  • rxCount[out] Pointer through which the current number of bytes in the receive FIFO is returned. Pass NULL if this value is not required.

static inline void I3C_SlaveSetWatermarks(I3C_Type *base, i3c_tx_trigger_level_t txLvl, i3c_rx_trigger_level_t rxLvl, bool flushTx, bool flushRx)

Sets the watermarks for I3C slave FIFOs.

Parameters:
  • base – The I3C peripheral base address.

  • txLvl – Transmit FIFO watermark level. The kI3C_SlaveTxReadyFlag flag is set whenever the number of words in the transmit FIFO reaches txLvl.

  • rxLvl – Receive FIFO watermark level. The kI3C_SlaveRxReadyFlag flag is set whenever the number of words in the receive FIFO reaches rxLvl.

  • flushTx – true if TX FIFO is to be cleared, otherwise TX FIFO remains unchanged.

  • flushRx – true if RX FIFO is to be cleared, otherwise RX FIFO remains unchanged.

static inline void I3C_SlaveGetFifoCounts(I3C_Type *base, size_t *rxCount, size_t *txCount)

Gets the current number of bytes in the I3C slave FIFOs.

Parameters:
  • base – The I3C peripheral base address.

  • txCount[out] Pointer through which the current number of bytes in the transmit FIFO is returned. Pass NULL if this value is not required.

  • rxCount[out] Pointer through which the current number of bytes in the receive FIFO is returned. Pass NULL if this value is not required.

void I3C_MasterSetBaudRate(I3C_Type *base, const i3c_baudrate_hz_t *baudRate_Hz, uint32_t sourceClock_Hz)

Sets the I3C bus frequency for master transactions.

The I3C master is automatically disabled and re-enabled as necessary to configure the baud rate. Do not call this function during a transfer, or the transfer is aborted.

Parameters:
  • base – The I3C peripheral base address.

  • baudRate_Hz – Pointer to structure of requested bus frequency in Hertz.

  • sourceClock_Hz – I3C functional clock frequency in Hertz.

static inline bool I3C_MasterGetBusIdleState(I3C_Type *base)

Returns whether the bus is idle.

Requires the master mode to be enabled.

Parameters:
  • base – The I3C peripheral base address.

Return values:
  • true – Bus is busy.

  • false – Bus is idle.

status_t I3C_MasterStartWithRxSize(I3C_Type *base, i3c_bus_type_t type, uint8_t address, i3c_direction_t dir, uint8_t rxSize)

Sends a START signal and slave address on the I2C/I3C bus, receive size is also specified in the call.

This function is used to initiate a new master mode transfer. First, the bus state is checked to ensure that another master is not occupying the bus. Then a START signal is transmitted, followed by the 7-bit address specified in the a address parameter. Note that this function does not actually wait until the START and address are successfully sent on the bus before returning.

Parameters:
  • base – The I3C peripheral base address.

  • type – The bus type to use in this transaction.

  • address – 7-bit slave device address, in bits [6:0].

  • dir – Master transfer direction, either kI3C_Read or kI3C_Write. This parameter is used to set the R/w bit (bit 0) in the transmitted slave address.

  • rxSize – Read terminate size for the followed read transfer, limit to 255 bytes.

Return values:
  • kStatus_Success – START signal and address were successfully enqueued in the transmit FIFO.

  • kStatus_I3C_Busy – Another master is currently utilizing the bus.

status_t I3C_MasterStart(I3C_Type *base, i3c_bus_type_t type, uint8_t address, i3c_direction_t dir)

Sends a START signal and slave address on the I2C/I3C bus.

This function is used to initiate a new master mode transfer. First, the bus state is checked to ensure that another master is not occupying the bus. Then a START signal is transmitted, followed by the 7-bit address specified in the address parameter. Note that this function does not actually wait until the START and address are successfully sent on the bus before returning.

Parameters:
  • base – The I3C peripheral base address.

  • type – The bus type to use in this transaction.

  • address – 7-bit slave device address, in bits [6:0].

  • dir – Master transfer direction, either kI3C_Read or kI3C_Write. This parameter is used to set the R/w bit (bit 0) in the transmitted slave address.

Return values:
  • kStatus_Success – START signal and address were successfully enqueued in the transmit FIFO.

  • kStatus_I3C_Busy – Another master is currently utilizing the bus.

status_t I3C_MasterRepeatedStartWithRxSize(I3C_Type *base, i3c_bus_type_t type, uint8_t address, i3c_direction_t dir, uint8_t rxSize)

Sends a repeated START signal and slave address on the I2C/I3C bus, receive size is also specified in the call.

This function is used to send a Repeated START signal when a transfer is already in progress. Like I3C_MasterStart(), it also sends the specified 7-bit address. Call this API also configures the read terminate size for the following read transfer. For example, set the rxSize = 2, the following read transfer will be terminated after two bytes of data received. Write transfer will not be affected by the rxSize configuration.

Note

This function exists primarily to maintain compatible APIs between I3C and I2C drivers, as well as to better document the intent of code that uses these APIs.

Parameters:
  • base – The I3C peripheral base address.

  • type – The bus type to use in this transaction.

  • address – 7-bit slave device address, in bits [6:0].

  • dir – Master transfer direction, either kI3C_Read or kI3C_Write. This parameter is used to set the R/w bit (bit 0) in the transmitted slave address.

  • rxSize – Read terminate size for the followed read transfer, limit to 255 bytes.

Return values:

kStatus_Success – Repeated START signal and address were successfully enqueued in the transmit FIFO.

static inline status_t I3C_MasterRepeatedStart(I3C_Type *base, i3c_bus_type_t type, uint8_t address, i3c_direction_t dir)

Sends a repeated START signal and slave address on the I2C/I3C bus.

This function is used to send a Repeated START signal when a transfer is already in progress. Like I3C_MasterStart(), it also sends the specified 7-bit address.

Note

This function exists primarily to maintain compatible APIs between I3C and I2C drivers, as well as to better document the intent of code that uses these APIs.

Parameters:
  • base – The I3C peripheral base address.

  • type – The bus type to use in this transaction.

  • address – 7-bit slave device address, in bits [6:0].

  • dir – Master transfer direction, either kI3C_Read or kI3C_Write. This parameter is used to set the R/w bit (bit 0) in the transmitted slave address.

Return values:

kStatus_Success – Repeated START signal and address were successfully enqueued in the transmit FIFO.

status_t I3C_MasterSend(I3C_Type *base, const void *txBuff, size_t txSize, uint32_t flags)

Performs a polling send transfer on the I2C/I3C bus.

Sends up to txSize number of bytes to the previously addressed slave device. The slave may reply with a NAK to any byte in order to terminate the transfer early. If this happens, this function returns kStatus_I3C_Nak.

Parameters:
  • base – The I3C peripheral base address.

  • txBuff – The pointer to the data to be transferred.

  • txSize – The length in bytes of the data to be transferred.

  • flags – Bit mask of options for the transfer. See enumeration _i3c_master_transfer_flags for available options.

Return values:
  • kStatus_Success – Data was sent successfully.

  • kStatus_I3C_Busy – Another master is currently utilizing the bus.

  • kStatus_I3C_Timeout – The module has stalled too long in a frame.

  • kStatus_I3C_Nak – The slave device sent a NAK in response to an address.

  • kStatus_I3C_WriteAbort – The slave device sent a NAK in response to a write.

  • kStatus_I3C_MsgError – Message SDR/DDR mismatch or read/write message in wrong state.

  • kStatus_I3C_WriteFifoError – Write to M/SWDATAB register when FIFO full.

  • kStatus_I3C_InvalidReq – Invalid use of request.

status_t I3C_MasterReceive(I3C_Type *base, void *rxBuff, size_t rxSize, uint32_t flags)

Performs a polling receive transfer on the I2C/I3C bus.

Parameters:
  • base – The I3C peripheral base address.

  • rxBuff – The pointer to the data to be transferred.

  • rxSize – The length in bytes of the data to be transferred.

  • flags – Bit mask of options for the transfer. See enumeration _i3c_master_transfer_flags for available options.

Return values:
  • kStatus_Success – Data was received successfully.

  • kStatus_I3C_Busy – Another master is currently utilizing the bus.

  • kStatus_I3C_Timeout – The module has stalled too long in a frame.

  • kStatus_I3C_Term – The master terminates slave read.

  • kStatus_I3C_HdrParityError – Parity error from DDR read.

  • kStatus_I3C_CrcError – CRC error from DDR read.

  • kStatus_I3C_MsgError – Message SDR/DDR mismatch or read/write message in wrong state.

  • kStatus_I3C_ReadFifoError – Read from M/SRDATAB register when FIFO empty.

  • kStatus_I3C_InvalidReq – Invalid use of request.

status_t I3C_MasterStop(I3C_Type *base)

Sends a STOP signal on the I2C/I3C bus.

This function does not return until the STOP signal is seen on the bus, or an error occurs.

Parameters:
  • base – The I3C peripheral base address.

Return values:
  • kStatus_Success – The STOP signal was successfully sent on the bus and the transaction terminated.

  • kStatus_I3C_Busy – Another master is currently utilizing the bus.

  • kStatus_I3C_Timeout – The module has stalled too long in a frame.

  • kStatus_I3C_InvalidReq – Invalid use of request.

void I3C_MasterEmitRequest(I3C_Type *base, i3c_bus_request_t masterReq)

I3C master emit request.

Parameters:
  • base – The I3C peripheral base address.

  • masterReq – I3C master request of type i3c_bus_request_t

static inline void I3C_MasterEmitIBIResponse(I3C_Type *base, i3c_ibi_response_t ibiResponse)

I3C master emit request.

Parameters:
  • base – The I3C peripheral base address.

  • ibiResponse – I3C master emit IBI response of type i3c_ibi_response_t

void I3C_MasterRegisterIBI(I3C_Type *base, i3c_register_ibi_addr_t *ibiRule)

I3C master register IBI rule.

Parameters:
  • base – The I3C peripheral base address.

  • ibiRule – Pointer to ibi rule description of type i3c_register_ibi_addr_t

void I3C_MasterGetIBIRules(I3C_Type *base, i3c_register_ibi_addr_t *ibiRule)

I3C master get IBI rule.

Parameters:
  • base – The I3C peripheral base address.

  • ibiRule – Pointer to store the read out ibi rule description.

i3c_ibi_type_t I3C_GetIBIType(I3C_Type *base)

I3C master get IBI Type.

Parameters:
  • base – The I3C peripheral base address.

Return values:

i3c_ibi_type_t – Type of i3c_ibi_type_t.

static inline uint8_t I3C_GetIBIAddress(I3C_Type *base)

I3C master get IBI Address.

Parameters:
  • base – The I3C peripheral base address.

Return values:

The – 8-bit IBI address.

status_t I3C_MasterProcessDAASpecifiedBaudrate(I3C_Type *base, uint8_t *addressList, uint32_t count, i3c_master_daa_baudrate_t *daaBaudRate)

Performs a DAA in the i3c bus with specified temporary baud rate.

Parameters:
  • base – The I3C peripheral base address.

  • addressList – The pointer for address list which is used to do DAA.

  • count – The address count in the address list.

  • daaBaudRate – The temporary baud rate in DAA process, NULL for using initial setting. The initial setting is set back between the completion of the DAA and the return of this function.

Return values:
  • kStatus_Success – The transaction was started successfully.

  • kStatus_I3C_Busy – Either another master is currently utilizing the bus, or a non-blocking transaction is already in progress.

  • kStatus_I3C_SlaveCountExceed – The I3C slave count has exceed the definition in I3C_MAX_DEVCNT.

static inline status_t I3C_MasterProcessDAA(I3C_Type *base, uint8_t *addressList, uint32_t count)

Performs a DAA in the i3c bus.

Parameters:
  • base – The I3C peripheral base address.

  • addressList – The pointer for address list which is used to do DAA.

  • count – The address count in the address list. The initial setting is set back between the completion of the DAA and the return of this function.

Return values:
  • kStatus_Success – The transaction was started successfully.

  • kStatus_I3C_Busy – Either another master is currently utilizing the bus, or a non-blocking transaction is already in progress.

  • kStatus_I3C_SlaveCountExceed – The I3C slave count has exceed the definition in I3C_MAX_DEVCNT.

i3c_device_info_t *I3C_MasterGetDeviceListAfterDAA(I3C_Type *base, uint8_t *count)

Get device information list after DAA process is done.

Parameters:
  • base – The I3C peripheral base address.

  • count[out] The pointer to store the available device count.

Returns:

Pointer to the i3c_device_info_t array.

void I3C_MasterClearDeviceCount(I3C_Type *base)

Clear the global device count which represents current devices number on the bus. When user resets all dynamic addresses on the bus, should call this API.

Parameters:
  • base – The I3C peripheral base address.

status_t I3C_MasterTransferBlocking(I3C_Type *base, i3c_master_transfer_t *transfer)

Performs a master polling transfer on the I2C/I3C bus.

Note

The API does not return until the transfer succeeds or fails due to error happens during transfer.

Parameters:
  • base – The I3C peripheral base address.

  • transfer – Pointer to the transfer structure.

Return values:
  • kStatus_Success – Data was received successfully.

  • kStatus_I3C_Busy – Another master is currently utilizing the bus.

  • kStatus_I3C_IBIWon – The I3C slave event IBI or MR or HJ won the arbitration on a header address.

  • kStatus_I3C_Timeout – The module has stalled too long in a frame.

  • kStatus_I3C_Nak – The slave device sent a NAK in response to an address.

  • kStatus_I3C_WriteAbort – The slave device sent a NAK in response to a write.

  • kStatus_I3C_Term – The master terminates slave read.

  • kStatus_I3C_HdrParityError – Parity error from DDR read.

  • kStatus_I3C_CrcError – CRC error from DDR read.

  • kStatus_I3C_MsgError – Message SDR/DDR mismatch or read/write message in wrong state.

  • kStatus_I3C_ReadFifoError – Read from M/SRDATAB register when FIFO empty.

  • kStatus_I3C_WriteFifoError – Write to M/SWDATAB register when FIFO full.

  • kStatus_I3C_InvalidReq – Invalid use of request.

void I3C_SlaveRequestEvent(I3C_Type *base, i3c_slave_event_t event)

I3C slave request event.

Parameters:
  • base – The I3C peripheral base address.

  • event – I3C slave event of type i3c_slave_event_t

status_t I3C_SlaveSend(I3C_Type *base, const void *txBuff, size_t txSize)

Performs a polling send transfer on the I3C bus.

Parameters:
  • base – The I3C peripheral base address.

  • txBuff – The pointer to the data to be transferred.

  • txSize – The length in bytes of the data to be transferred.

Returns:

Error or success status returned by API.

status_t I3C_SlaveReceive(I3C_Type *base, void *rxBuff, size_t rxSize)

Performs a polling receive transfer on the I3C bus.

Parameters:
  • base – The I3C peripheral base address.

  • rxBuff – The pointer to the data to be transferred.

  • rxSize – The length in bytes of the data to be transferred.

Returns:

Error or success status returned by API.

void I3C_MasterTransferCreateHandle(I3C_Type *base, i3c_master_handle_t *handle, const i3c_master_transfer_callback_t *callback, void *userData)

Creates a new handle for the I3C master non-blocking APIs.

The creation of a handle is for use with the non-blocking APIs. Once a handle is created, there is not a corresponding destroy handle. If the user wants to terminate a transfer, the I3C_MasterTransferAbort() API shall be called.

Note

The function also enables the NVIC IRQ for the input I3C. Need to notice that on some SoCs the I3C IRQ is connected to INTMUX, in this case user needs to enable the associated INTMUX IRQ in application.

Parameters:
  • base – The I3C peripheral base address.

  • handle[out] Pointer to the I3C master driver handle.

  • callback – User provided pointer to the asynchronous callback function.

  • userData – User provided pointer to the application callback data.

status_t I3C_MasterTransferNonBlocking(I3C_Type *base, i3c_master_handle_t *handle, i3c_master_transfer_t *transfer)

Performs a non-blocking transaction on the I2C/I3C bus.

Parameters:
  • base – The I3C peripheral base address.

  • handle – Pointer to the I3C master driver handle.

  • transfer – The pointer to the transfer descriptor.

Return values:
  • kStatus_Success – The transaction was started successfully.

  • kStatus_I3C_Busy – Either another master is currently utilizing the bus, or a non-blocking transaction is already in progress.

status_t I3C_MasterTransferGetCount(I3C_Type *base, i3c_master_handle_t *handle, size_t *count)

Returns number of bytes transferred so far.

Parameters:
  • base – The I3C peripheral base address.

  • handle – Pointer to the I3C master driver handle.

  • count[out] Number of bytes transferred so far by the non-blocking transaction.

Return values:
  • kStatus_Success

  • kStatus_NoTransferInProgress – There is not a non-blocking transaction currently in progress.

void I3C_MasterTransferAbort(I3C_Type *base, i3c_master_handle_t *handle)

Terminates a non-blocking I3C master transmission early.

Note

It is not safe to call this function from an IRQ handler that has a higher priority than the I3C peripheral’s IRQ priority.

Parameters:
  • base – The I3C peripheral base address.

  • handle – Pointer to the I3C master driver handle.

void I3C_MasterTransferHandleIRQ(I3C_Type *base, void *intHandle)

Reusable routine to handle master interrupts.

Note

This function does not need to be called unless you are reimplementing the nonblocking API’s interrupt handler routines to add special functionality.

Parameters:
  • base – The I3C peripheral base address.

  • intHandle – Pointer to the I3C master driver handle.

enum _i3c_master_flags

I3C master peripheral flags.

The following status register flags can be cleared:

  • kI3C_MasterSlaveStartFlag

  • kI3C_MasterControlDoneFlag

  • kI3C_MasterCompleteFlag

  • kI3C_MasterArbitrationWonFlag

  • kI3C_MasterSlave2MasterFlag

All flags except kI3C_MasterBetweenFlag and kI3C_MasterNackDetectFlag can be enabled as interrupts.

Note

These enums are meant to be OR’d together to form a bit mask.

Values:

enumerator kI3C_MasterBetweenFlag

Between messages/DAAs flag

enumerator kI3C_MasterNackDetectFlag

NACK detected flag

enumerator kI3C_MasterSlaveStartFlag

Slave request start flag

enumerator kI3C_MasterControlDoneFlag

Master request complete flag

enumerator kI3C_MasterCompleteFlag

Transfer complete flag

enumerator kI3C_MasterRxReadyFlag

Rx data ready in Rx buffer flag

enumerator kI3C_MasterTxReadyFlag

Tx buffer ready for Tx data flag

enumerator kI3C_MasterArbitrationWonFlag

Header address won arbitration flag

enumerator kI3C_MasterErrorFlag

Error occurred flag

enumerator kI3C_MasterSlave2MasterFlag

Switch from slave to master flag

enumerator kI3C_MasterClearFlags
enum _i3c_master_error_flags

I3C master error flags to indicate the causes.

Note

These enums are meant to be OR’d together to form a bit mask.

Values:

enumerator kI3C_MasterErrorNackFlag

Slave NACKed the last address

enumerator kI3C_MasterErrorWriteAbortFlag

Slave NACKed the write data

enumerator kI3C_MasterErrorParityFlag

Parity error from DDR read

enumerator kI3C_MasterErrorCrcFlag

CRC error from DDR read

enumerator kI3C_MasterErrorReadFlag

Read from MRDATAB register when FIFO empty

enumerator kI3C_MasterErrorWriteFlag

Write to MWDATAB register when FIFO full

enumerator kI3C_MasterErrorMsgFlag

Message SDR/DDR mismatch or read/write message in wrong state

enumerator kI3C_MasterErrorInvalidReqFlag

Invalid use of request

enumerator kI3C_MasterErrorTimeoutFlag

The module has stalled too long in a frame

enumerator kI3C_MasterAllErrorFlags

All error flags

enum _i3c_master_state

I3C working master state.

Values:

enumerator kI3C_MasterStateIdle

Bus stopped.

enumerator kI3C_MasterStateSlvReq

Bus stopped but slave holding SDA low.

enumerator kI3C_MasterStateMsgSdr

In SDR Message mode from using MWMSG_SDR.

enumerator kI3C_MasterStateNormAct

In normal active SDR mode.

enumerator kI3C_MasterStateDdr

In DDR Message mode.

enumerator kI3C_MasterStateDaa

In ENTDAA mode.

enumerator kI3C_MasterStateIbiAck

Waiting on IBI ACK/NACK decision.

enumerator kI3C_MasterStateIbiRcv

Receiving IBI.

enum _i3c_master_enable

I3C master enable configuration.

Values:

enumerator kI3C_MasterOff

Master off.

enumerator kI3C_MasterOn

Master on.

enumerator kI3C_MasterCapable

Master capable.

enum _i3c_master_hkeep

I3C high keeper configuration.

Values:

enumerator kI3C_MasterHighKeeperNone

Use PUR to hold SCL high.

enumerator kI3C_MasterHighKeeperWiredIn

Use pin_HK controls.

enumerator kI3C_MasterPassiveSDA

Hi-Z for Bus Free and hold SDA.

enumerator kI3C_MasterPassiveSDASCL

Hi-Z both for Bus Free, and can Hi-Z SDA for hold.

enum _i3c_bus_request

Emits the requested operation when doing in pieces vs. by message.

Values:

enumerator kI3C_RequestNone

No request.

enumerator kI3C_RequestEmitStartAddr

Request to emit start and address on bus.

enumerator kI3C_RequestEmitStop

Request to emit stop on bus.

enumerator kI3C_RequestIbiAckNack

Manual IBI ACK or NACK.

enumerator kI3C_RequestProcessDAA

Process DAA.

enumerator kI3C_RequestForceExit

Request to force exit.

enumerator kI3C_RequestAutoIbi

Hold in stopped state, but Auto-emit START,7E.

enum _i3c_bus_type

Bus type with EmitStartAddr.

Values:

enumerator kI3C_TypeI3CSdr

SDR mode of I3C.

enumerator kI3C_TypeI2C

Standard i2c protocol.

enumerator kI3C_TypeI3CDdr

HDR-DDR mode of I3C.

enum _i3c_ibi_response

IBI response.

Values:

enumerator kI3C_IbiRespAck

ACK with no mandatory byte.

enumerator kI3C_IbiRespNack

NACK.

enumerator kI3C_IbiRespAckMandatory

ACK with mandatory byte.

enumerator kI3C_IbiRespManual

Reserved.

enum _i3c_ibi_type

IBI type.

Values:

enumerator kI3C_IbiNormal

In-band interrupt.

enumerator kI3C_IbiHotJoin

slave hot join.

enumerator kI3C_IbiMasterRequest

slave master ship request.

enum _i3c_ibi_state

IBI state.

Values:

enumerator kI3C_IbiReady

In-band interrupt ready state, ready for user to handle.

enumerator kI3C_IbiDataBuffNeed

In-band interrupt need data buffer for data receive.

enumerator kI3C_IbiAckNackPending

In-band interrupt Ack/Nack pending for decision.

enum _i3c_direction

Direction of master and slave transfers.

Values:

enumerator kI3C_Write

Master transmit.

enumerator kI3C_Read

Master receive.

enum _i3c_tx_trigger_level

Watermark of TX int/dma trigger level.

Values:

enumerator kI3C_TxTriggerOnEmpty

Trigger on empty.

enumerator kI3C_TxTriggerUntilOneQuarterOrLess

Trigger on 1/4 full or less.

enumerator kI3C_TxTriggerUntilOneHalfOrLess

Trigger on 1/2 full or less.

enumerator kI3C_TxTriggerUntilOneLessThanFull

Trigger on 1 less than full or less.

enum _i3c_rx_trigger_level

Watermark of RX int/dma trigger level.

Values:

enumerator kI3C_RxTriggerOnNotEmpty

Trigger on not empty.

enumerator kI3C_RxTriggerUntilOneQuarterOrMore

Trigger on 1/4 full or more.

enumerator kI3C_RxTriggerUntilOneHalfOrMore

Trigger on 1/2 full or more.

enumerator kI3C_RxTriggerUntilThreeQuarterOrMore

Trigger on 3/4 full or more.

enum _i3c_rx_term_ops

I3C master read termination operations.

Values:

enumerator kI3C_RxTermDisable

Master doesn’t terminate read, used for CCC transfer.

enumerator kI3C_RxAutoTerm

Master auto terminate read after receiving specified bytes(<=255).

enumerator kI3C_RxTermLastByte

Master terminates read at any time after START, no length limitation.

enum _i3c_start_scl_delay

I3C start SCL delay options.

Values:

enumerator kI3C_NoDelay

No delay.

enumerator kI3C_IncreaseSclHalfPeriod

Increases SCL clock period by 1/2.

enumerator kI3C_IncreaseSclOnePeriod

Increases SCL clock period by 1.

enumerator kI3C_IncreaseSclOneAndHalfPeriod

Increases SCL clock period by 1 1/2

enum _i3c_master_transfer_flags

Transfer option flags.

Note

These enumerations are intended to be OR’d together to form a bit mask of options for the _i3c_master_transfer::flags field.

Values:

enumerator kI3C_TransferDefaultFlag

Transfer starts with a start signal, stops with a stop signal.

enumerator kI3C_TransferNoStartFlag

Don’t send a start condition, address, and sub address

enumerator kI3C_TransferRepeatedStartFlag

Send a repeated start condition

enumerator kI3C_TransferNoStopFlag

Don’t send a stop condition.

enumerator kI3C_TransferWordsFlag

Transfer in words, else transfer in bytes.

enumerator kI3C_TransferDisableRxTermFlag

Disable Rx termination. Note: It’s for I3C CCC transfer.

enumerator kI3C_TransferRxAutoTermFlag

Set Rx auto-termination. Note: It’s adaptive based on Rx size(<=255 bytes) except in I3C_MasterReceive.

enumerator kI3C_TransferStartWithBroadcastAddr

Start transfer with 0x7E, then read/write data with device address.

typedef enum _i3c_master_state i3c_master_state_t

I3C working master state.

typedef enum _i3c_master_enable i3c_master_enable_t

I3C master enable configuration.

typedef enum _i3c_master_hkeep i3c_master_hkeep_t

I3C high keeper configuration.

typedef enum _i3c_bus_request i3c_bus_request_t

Emits the requested operation when doing in pieces vs. by message.

typedef enum _i3c_bus_type i3c_bus_type_t

Bus type with EmitStartAddr.

typedef enum _i3c_ibi_response i3c_ibi_response_t

IBI response.

typedef enum _i3c_ibi_type i3c_ibi_type_t

IBI type.

typedef enum _i3c_ibi_state i3c_ibi_state_t

IBI state.

typedef enum _i3c_direction i3c_direction_t

Direction of master and slave transfers.

typedef enum _i3c_tx_trigger_level i3c_tx_trigger_level_t

Watermark of TX int/dma trigger level.

typedef enum _i3c_rx_trigger_level i3c_rx_trigger_level_t

Watermark of RX int/dma trigger level.

typedef enum _i3c_rx_term_ops i3c_rx_term_ops_t

I3C master read termination operations.

typedef enum _i3c_start_scl_delay i3c_start_scl_delay_t

I3C start SCL delay options.

typedef struct _i3c_register_ibi_addr i3c_register_ibi_addr_t

Structure with setting master IBI rules and slave registry.

typedef struct _i3c_baudrate i3c_baudrate_hz_t

Structure with I3C baudrate settings.

typedef struct _i3c_master_daa_baudrate i3c_master_daa_baudrate_t

I3C DAA baud rate configuration.

typedef struct _i3c_master_config i3c_master_config_t

Structure with settings to initialize the I3C master module.

This structure holds configuration settings for the I3C peripheral. To initialize this structure to reasonable defaults, call the I3C_MasterGetDefaultConfig() function and pass a pointer to your configuration structure instance.

The configuration structure can be made constant so it resides in flash.

typedef struct _i3c_master_transfer i3c_master_transfer_t
typedef struct _i3c_master_handle i3c_master_handle_t
typedef struct _i3c_master_transfer_callback i3c_master_transfer_callback_t

i3c master callback functions.

typedef void (*i3c_master_isr_t)(I3C_Type *base, void *handle)

Typedef for master interrupt handler.

struct _i3c_register_ibi_addr
#include <fsl_i3c.h>

Structure with setting master IBI rules and slave registry.

Public Members

uint8_t address[5]

Address array for registry.

bool i3cFastStart

Allow the START header to run as push-pull speed if all dynamic addresses take MSB 0.

bool ibiHasPayload

Whether the address array has mandatory IBI byte.

struct _i3c_baudrate
#include <fsl_i3c.h>

Structure with I3C baudrate settings.

Public Members

uint32_t i2cBaud

Desired I2C baud rate in Hertz.

uint32_t i3cPushPullBaud

Desired I3C push-pull baud rate in Hertz.

uint32_t i3cOpenDrainBaud

Desired I3C open-drain baud rate in Hertz.

struct _i3c_master_daa_baudrate
#include <fsl_i3c.h>

I3C DAA baud rate configuration.

Public Members

uint32_t sourceClock_Hz

FCLK, function clock in Hertz.

uint32_t i3cPushPullBaud

Desired I3C push-pull baud rate in Hertz.

uint32_t i3cOpenDrainBaud

Desired I3C open-drain baud rate in Hertz.

struct _i3c_master_config
#include <fsl_i3c.h>

Structure with settings to initialize the I3C master module.

This structure holds configuration settings for the I3C peripheral. To initialize this structure to reasonable defaults, call the I3C_MasterGetDefaultConfig() function and pass a pointer to your configuration structure instance.

The configuration structure can be made constant so it resides in flash.

Public Members

i3c_master_enable_t enableMaster

Enable master mode.

bool disableTimeout

Whether to disable timeout to prevent the ERRWARN.

i3c_master_hkeep_t hKeep

High keeper mode setting.

bool enableOpenDrainStop

Whether to emit open-drain speed STOP.

bool enableOpenDrainHigh

Enable Open-Drain High to be 1 PPBAUD count for i3c messages, or 1 ODBAUD.

i3c_baudrate_hz_t baudRate_Hz

Desired baud rate settings.

struct _i3c_master_transfer_callback
#include <fsl_i3c.h>

i3c master callback functions.

Public Members

void (*slave2Master)(I3C_Type *base, void *userData)

Transfer complete callback

void (*ibiCallback)(I3C_Type *base, i3c_master_handle_t *handle, i3c_ibi_type_t ibiType, i3c_ibi_state_t ibiState)

IBI event callback

void (*transferComplete)(I3C_Type *base, i3c_master_handle_t *handle, status_t completionStatus, void *userData)

Transfer complete callback

struct _i3c_master_transfer
#include <fsl_i3c.h>

Non-blocking transfer descriptor structure.

This structure is used to pass transaction parameters to the I3C_MasterTransferNonBlocking() API.

Public Members

uint32_t flags

Bit mask of options for the transfer. See enumeration _i3c_master_transfer_flags for available options. Set to 0 or kI3C_TransferDefaultFlag for normal transfers.

uint8_t slaveAddress

The 7-bit slave address.

i3c_direction_t direction

Either kI3C_Read or kI3C_Write.

uint32_t subaddress

Sub address. Transferred MSB first.

size_t subaddressSize

Length of sub address to send in bytes. Maximum size is 4 bytes.

void *data

Pointer to data to transfer.

size_t dataSize

Number of bytes to transfer.

i3c_bus_type_t busType

bus type.

i3c_ibi_response_t ibiResponse

ibi response during transfer.

struct _i3c_master_handle
#include <fsl_i3c.h>

Driver handle for master non-blocking APIs.

Note

The contents of this structure are private and subject to change.

Public Members

uint8_t state

Transfer state machine current state.

uint32_t remainingBytes

Remaining byte count in current state.

i3c_rx_term_ops_t rxTermOps

Read termination operation.

i3c_master_transfer_t transfer

Copy of the current transfer info.

uint8_t ibiAddress

Slave address which request IBI.

uint8_t *ibiBuff

Pointer to IBI buffer to keep ibi bytes.

size_t ibiPayloadSize

IBI payload size.

i3c_ibi_type_t ibiType

IBI type.

i3c_master_transfer_callback_t callback

Callback functions pointer.

void *userData

Application data passed to callback.

I3C Master DMA Driver

void I3C_MasterTransferCreateHandleEDMA(I3C_Type *base, i3c_master_edma_handle_t *handle, const i3c_master_edma_callback_t *callback, void *userData, edma_handle_t *rxDmaHandle, edma_handle_t *txDmaHandle)

Create a new handle for the I3C master DMA APIs.

The creation of a handle is for use with the DMA APIs. Once a handle is created, there is not a corresponding destroy handle. If the user wants to terminate a transfer, the I3C_MasterTransferAbortDMA() API shall be called.

For devices where the I3C send and receive DMA requests are OR’d together, the txDmaHandle parameter is ignored and may be set to NULL.

Parameters:
  • base – The I3C peripheral base address.

  • handle – Pointer to the I3C master driver handle.

  • callback – User provided pointer to the asynchronous callback function.

  • userData – User provided pointer to the application callback data.

  • rxDmaHandle – Handle for the DMA receive channel. Created by the user prior to calling this function.

  • txDmaHandle – Handle for the DMA transmit channel. Created by the user prior to calling this function.

status_t I3C_MasterTransferEDMA(I3C_Type *base, i3c_master_edma_handle_t *handle, i3c_master_transfer_t *transfer)

Performs a non-blocking DMA-based transaction on the I3C bus.

The callback specified when the handle was created is invoked when the transaction has completed.

Parameters:
  • base – The I3C peripheral base address.

  • handle – Pointer to the I3C master driver handle.

  • transfer – The pointer to the transfer descriptor.

Return values:
  • kStatus_Success – The transaction was started successfully.

  • kStatus_I3C_Busy – Either another master is currently utilizing the bus, or another DMA transaction is already in progress.

status_t I3C_MasterTransferGetCountEDMA(I3C_Type *base, i3c_master_edma_handle_t *handle, size_t *count)

Returns number of bytes transferred so far.

Parameters:
  • base – The I3C peripheral base address.

  • handle – Pointer to the I3C master driver handle.

  • count[out] Number of bytes transferred so far by the non-blocking transaction.

Return values:
  • kStatus_Success

  • kStatus_NoTransferInProgress – There is not a DMA transaction currently in progress.

void I3C_MasterTransferAbortEDMA(I3C_Type *base, i3c_master_edma_handle_t *handle)

Terminates a non-blocking I3C master transmission early.

Note

It is not safe to call this function from an IRQ handler that has a higher priority than the DMA peripheral’s IRQ priority.

Parameters:
  • base – The I3C peripheral base address.

  • handle – Pointer to the I3C master driver handle.

void I3C_MasterTransferEDMAHandleIRQ(I3C_Type *base, void *i3cHandle)

Reusable routine to handle master interrupts.

Note

This function does not need to be called unless you are reimplementing the nonblocking API’s interrupt handler routines to add special functionality.

Parameters:
  • base – The I3C peripheral base address.

  • i3cHandle – Pointer to the I3C master DMA driver handle.

typedef struct _i3c_master_edma_handle i3c_master_edma_handle_t
typedef struct _i3c_master_edma_callback i3c_master_edma_callback_t

i3c master callback functions.

struct _i3c_master_edma_callback
#include <fsl_i3c_edma.h>

i3c master callback functions.

Public Members

void (*slave2Master)(I3C_Type *base, void *userData)

Target asks for controller request.

void (*ibiCallback)(I3C_Type *base, i3c_master_edma_handle_t *handle, i3c_ibi_type_t ibiType, i3c_ibi_state_t ibiState)

IBI event callback.

void (*transferComplete)(I3C_Type *base, i3c_master_edma_handle_t *handle, status_t status, void *userData)

Transfer complete callback.

struct _i3c_master_edma_handle
#include <fsl_i3c_edma.h>

Driver handle for master EDMA APIs.

Note

The contents of this structure are private and subject to change.

Public Members

I3C_Type *base

I3C base pointer.

uint8_t state

Transfer state machine current state.

uint32_t transferCount

Indicates progress of the transfer

uint8_t subaddressBuffer[4]

Saving subaddress command.

uint8_t subaddressCount

Saving command count.

i3c_master_transfer_t transfer

Copy of the current transfer info.

i3c_master_edma_callback_t callback

Callback function pointer.

void *userData

Application data passed to callback.

edma_handle_t *rxDmaHandle

Handle for receive DMA channel.

edma_handle_t *txDmaHandle

Handle for transmit DMA channel.

bool ibiFlag

IBIWON flag.

uint8_t ibiAddress

Slave address which request IBI.

uint8_t *ibiBuff

Pointer to IBI buffer to keep ibi bytes.

size_t ibiPayloadSize

IBI payload size.

i3c_ibi_type_t ibiType

IBI type.

status_t result

Transfer result.

I3C Slave Driver

void I3C_SlaveGetDefaultConfig(i3c_slave_config_t *slaveConfig)

Provides a default configuration for the I3C slave peripheral.

This function provides the following default configuration for the I3C slave peripheral:

slaveConfig->enableslave             = true;

After calling this function, you can override any settings in order to customize the configuration, prior to initializing the slave driver with I3C_SlaveInit().

Parameters:
  • slaveConfig[out] User provided configuration structure for default values. Refer to i3c_slave_config_t.

void I3C_SlaveInit(I3C_Type *base, const i3c_slave_config_t *slaveConfig, uint32_t slowClock_Hz)

Initializes the I3C slave peripheral.

This function enables the peripheral clock and initializes the I3C slave peripheral as described by the user provided configuration.

Parameters:
  • base – The I3C peripheral base address.

  • slaveConfig – User provided peripheral configuration. Use I3C_SlaveGetDefaultConfig() to get a set of defaults that you can override.

  • slowClock_Hz – Frequency in Hertz of the I3C slow clock. Used to calculate the bus match condition values. If FSL_FEATURE_I3C_HAS_NO_SCONFIG_BAMATCH defines as 1, this parameter is useless.

void I3C_SlaveDeinit(I3C_Type *base)

Deinitializes the I3C slave peripheral.

This function disables the I3C slave peripheral and gates the clock.

Parameters:
  • base – The I3C peripheral base address.

static inline void I3C_SlaveEnable(I3C_Type *base, bool isEnable)

Enable/Disable Slave.

Parameters:
  • base – The I3C peripheral base address.

  • isEnable – Enable or disable.

static inline uint32_t I3C_SlaveGetStatusFlags(I3C_Type *base)

Gets the I3C slave status flags.

A bit mask with the state of all I3C slave status flags is returned. For each flag, the corresponding bit in the return value is set if the flag is asserted.

See also

_i3c_slave_flags

Parameters:
  • base – The I3C peripheral base address.

Returns:

State of the status flags:

  • 1: related status flag is set.

  • 0: related status flag is not set.

static inline void I3C_SlaveClearStatusFlags(I3C_Type *base, uint32_t statusMask)

Clears the I3C slave status flag state.

The following status register flags can be cleared:

  • kI3C_SlaveBusStartFlag

  • kI3C_SlaveMatchedFlag

  • kI3C_SlaveBusStopFlag

Attempts to clear other flags has no effect.

See also

_i3c_slave_flags.

Parameters:
  • base – The I3C peripheral base address.

  • statusMask – A bitmask of status flags that are to be cleared. The mask is composed of _i3c_slave_flags enumerators OR’d together. You may pass the result of a previous call to I3C_SlaveGetStatusFlags().

static inline uint32_t I3C_SlaveGetErrorStatusFlags(I3C_Type *base)

Gets the I3C slave error status flags.

A bit mask with the state of all I3C slave error status flags is returned. For each flag, the corresponding bit in the return value is set if the flag is asserted.

See also

_i3c_slave_error_flags

Parameters:
  • base – The I3C peripheral base address.

Returns:

State of the error status flags:

  • 1: related status flag is set.

  • 0: related status flag is not set.

static inline void I3C_SlaveClearErrorStatusFlags(I3C_Type *base, uint32_t statusMask)

Clears the I3C slave error status flag state.

See also

_i3c_slave_error_flags.

Parameters:
  • base – The I3C peripheral base address.

  • statusMask – A bitmask of error status flags that are to be cleared. The mask is composed of _i3c_slave_error_flags enumerators OR’d together. You may pass the result of a previous call to I3C_SlaveGetErrorStatusFlags().

i3c_slave_activity_state_t I3C_SlaveGetActivityState(I3C_Type *base)

Gets the I3C slave state.

Parameters:
  • base – The I3C peripheral base address.

Returns:

I3C slave activity state, refer i3c_slave_activity_state_t.

status_t I3C_SlaveCheckAndClearError(I3C_Type *base, uint32_t status)
static inline void I3C_SlaveEnableInterrupts(I3C_Type *base, uint32_t interruptMask)

Enables the I3C slave interrupt requests.

Only below flags can be enabled as interrupts.

  • kI3C_SlaveBusStartFlag

  • kI3C_SlaveMatchedFlag

  • kI3C_SlaveBusStopFlag

  • kI3C_SlaveRxReadyFlag

  • kI3C_SlaveTxReadyFlag

  • kI3C_SlaveDynamicAddrChangedFlag

  • kI3C_SlaveReceivedCCCFlag

  • kI3C_SlaveErrorFlag

  • kI3C_SlaveHDRCommandMatchFlag

  • kI3C_SlaveCCCHandledFlag

  • kI3C_SlaveEventSentFlag

Parameters:
  • base – The I3C peripheral base address.

  • interruptMask – Bit mask of interrupts to enable. See _i3c_slave_flags for the set of constants that should be OR’d together to form the bit mask.

static inline void I3C_SlaveDisableInterrupts(I3C_Type *base, uint32_t interruptMask)

Disables the I3C slave interrupt requests.

Only below flags can be disabled as interrupts.

  • kI3C_SlaveBusStartFlag

  • kI3C_SlaveMatchedFlag

  • kI3C_SlaveBusStopFlag

  • kI3C_SlaveRxReadyFlag

  • kI3C_SlaveTxReadyFlag

  • kI3C_SlaveDynamicAddrChangedFlag

  • kI3C_SlaveReceivedCCCFlag

  • kI3C_SlaveErrorFlag

  • kI3C_SlaveHDRCommandMatchFlag

  • kI3C_SlaveCCCHandledFlag

  • kI3C_SlaveEventSentFlag

Parameters:
  • base – The I3C peripheral base address.

  • interruptMask – Bit mask of interrupts to disable. See _i3c_slave_flags for the set of constants that should be OR’d together to form the bit mask.

static inline uint32_t I3C_SlaveGetEnabledInterrupts(I3C_Type *base)

Returns the set of currently enabled I3C slave interrupt requests.

Parameters:
  • base – The I3C peripheral base address.

Returns:

A bitmask composed of _i3c_slave_flags enumerators OR’d together to indicate the set of enabled interrupts.

static inline uint32_t I3C_SlaveGetPendingInterrupts(I3C_Type *base)

Returns the set of pending I3C slave interrupt requests.

Parameters:
  • base – The I3C peripheral base address.

Returns:

A bitmask composed of _i3c_slave_flags enumerators OR’d together to indicate the set of pending interrupts.

static inline void I3C_SlaveEnableDMA(I3C_Type *base, bool enableTx, bool enableRx, uint32_t width)

Enables or disables I3C slave DMA requests.

Parameters:
  • base – The I3C peripheral base address.

  • enableTx – Enable flag for transmit DMA request. Pass true for enable, false for disable.

  • enableRx – Enable flag for receive DMA request. Pass true for enable, false for disable.

  • width – DMA read/write unit in bytes.

static inline uint32_t I3C_SlaveGetTxFifoAddress(I3C_Type *base, uint32_t width)

Gets I3C slave transmit data register address for DMA transfer.

Parameters:
  • base – The I3C peripheral base address.

  • width – DMA read/write unit in bytes.

Returns:

The I3C Slave Transmit Data Register address.

static inline uint32_t I3C_SlaveGetRxFifoAddress(I3C_Type *base, uint32_t width)

Gets I3C slave receive data register address for DMA transfer.

Parameters:
  • base – The I3C peripheral base address.

  • width – DMA read/write unit in bytes.

Returns:

The I3C Slave Receive Data Register address.

static inline void I3C_SlaveSetWatermarks(I3C_Type *base, i3c_tx_trigger_level_t txLvl, i3c_rx_trigger_level_t rxLvl, bool flushTx, bool flushRx)

Sets the watermarks for I3C slave FIFOs.

Parameters:
  • base – The I3C peripheral base address.

  • txLvl – Transmit FIFO watermark level. The kI3C_SlaveTxReadyFlag flag is set whenever the number of words in the transmit FIFO reaches txLvl.

  • rxLvl – Receive FIFO watermark level. The kI3C_SlaveRxReadyFlag flag is set whenever the number of words in the receive FIFO reaches rxLvl.

  • flushTx – true if TX FIFO is to be cleared, otherwise TX FIFO remains unchanged.

  • flushRx – true if RX FIFO is to be cleared, otherwise RX FIFO remains unchanged.

static inline void I3C_SlaveGetFifoCounts(I3C_Type *base, size_t *rxCount, size_t *txCount)

Gets the current number of bytes in the I3C slave FIFOs.

Parameters:
  • base – The I3C peripheral base address.

  • txCount[out] Pointer through which the current number of bytes in the transmit FIFO is returned. Pass NULL if this value is not required.

  • rxCount[out] Pointer through which the current number of bytes in the receive FIFO is returned. Pass NULL if this value is not required.

void I3C_SlaveRequestEvent(I3C_Type *base, i3c_slave_event_t event)

I3C slave request event.

Parameters:
  • base – The I3C peripheral base address.

  • event – I3C slave event of type i3c_slave_event_t

status_t I3C_SlaveSend(I3C_Type *base, const void *txBuff, size_t txSize)

Performs a polling send transfer on the I3C bus.

Parameters:
  • base – The I3C peripheral base address.

  • txBuff – The pointer to the data to be transferred.

  • txSize – The length in bytes of the data to be transferred.

Returns:

Error or success status returned by API.

status_t I3C_SlaveReceive(I3C_Type *base, void *rxBuff, size_t rxSize)

Performs a polling receive transfer on the I3C bus.

Parameters:
  • base – The I3C peripheral base address.

  • rxBuff – The pointer to the data to be transferred.

  • rxSize – The length in bytes of the data to be transferred.

Returns:

Error or success status returned by API.

void I3C_SlaveTransferCreateHandle(I3C_Type *base, i3c_slave_handle_t *handle, i3c_slave_transfer_callback_t callback, void *userData)

Creates a new handle for the I3C slave non-blocking APIs.

The creation of a handle is for use with the non-blocking APIs. Once a handle is created, there is not a corresponding destroy handle. If the user wants to terminate a transfer, the I3C_SlaveTransferAbort() API shall be called.

Note

The function also enables the NVIC IRQ for the input I3C. Need to notice that on some SoCs the I3C IRQ is connected to INTMUX, in this case user needs to enable the associated INTMUX IRQ in application.

Parameters:
  • base – The I3C peripheral base address.

  • handle[out] Pointer to the I3C slave driver handle.

  • callback – User provided pointer to the asynchronous callback function.

  • userData – User provided pointer to the application callback data.

status_t I3C_SlaveTransferNonBlocking(I3C_Type *base, i3c_slave_handle_t *handle, uint32_t eventMask)

Starts accepting slave transfers.

Call this API after calling I2C_SlaveInit() and I3C_SlaveTransferCreateHandle() to start processing transactions driven by an I2C master. The slave monitors the I2C bus and pass events to the callback that was passed into the call to I3C_SlaveTransferCreateHandle(). The callback is always invoked from the interrupt context.

The set of events received by the callback is customizable. To do so, set the eventMask parameter to the OR’d combination of i3c_slave_transfer_event_t enumerators for the events you wish to receive. The kI3C_SlaveTransmitEvent and kI3C_SlaveReceiveEvent events are always enabled and do not need to be included in the mask. Alternatively, you can pass 0 to get a default set of only the transmit and receive events that are always enabled. In addition, the kI3C_SlaveAllEvents constant is provided as a convenient way to enable all events.

Parameters:
  • base – The I3C peripheral base address.

  • handle – Pointer to struct: _i3c_slave_handle structure which stores the transfer state.

  • eventMask – Bit mask formed by OR’ing together i3c_slave_transfer_event_t enumerators to specify which events to send to the callback. Other accepted values are 0 to get a default set of only the transmit and receive events, and kI3C_SlaveAllEvents to enable all events.

Return values:
  • kStatus_Success – Slave transfers were successfully started.

  • kStatus_I3C_Busy – Slave transfers have already been started on this handle.

status_t I3C_SlaveTransferGetCount(I3C_Type *base, i3c_slave_handle_t *handle, size_t *count)

Gets the slave transfer status during a non-blocking transfer.

Parameters:
  • base – The I3C peripheral base address.

  • handle – Pointer to i2c_slave_handle_t structure.

  • count[out] Pointer to a value to hold the number of bytes transferred. May be NULL if the count is not required.

Return values:
  • kStatus_Success

  • kStatus_NoTransferInProgress

void I3C_SlaveTransferAbort(I3C_Type *base, i3c_slave_handle_t *handle)

Aborts the slave non-blocking transfers.

Note

This API could be called at any time to stop slave for handling the bus events.

Parameters:
  • base – The I3C peripheral base address.

  • handle – Pointer to struct: _i3c_slave_handle structure which stores the transfer state.

void I3C_SlaveTransferHandleIRQ(I3C_Type *base, void *intHandle)

Reusable routine to handle slave interrupts.

Note

This function does not need to be called unless you are reimplementing the non blocking API’s interrupt handler routines to add special functionality.

Parameters:
  • base – The I3C peripheral base address.

  • intHandle – Pointer to struct: _i3c_slave_handle structure which stores the transfer state.

void I3C_SlaveRequestIBIWithData(I3C_Type *base, uint8_t *data, size_t dataSize)

I3C slave request IBI event with data payload(mandatory and extended).

Parameters:
  • base – The I3C peripheral base address.

  • data – Pointer to IBI data to be sent in the request.

  • dataSize – IBI data size.

void I3C_SlaveRequestIBIWithSingleData(I3C_Type *base, uint8_t data, size_t dataSize)

I3C slave request IBI event with single data.

Deprecated:

Do not use this function. It has been superseded by I3C_SlaveRequestIBIWithData.

Parameters:
  • base – The I3C peripheral base address.

  • data – IBI data to be sent in the request.

  • dataSize – IBI data size.

enum _i3c_slave_flags

I3C slave peripheral flags.

The following status register flags can be cleared:

  • kI3C_SlaveBusStartFlag

  • kI3C_SlaveMatchedFlag

  • kI3C_SlaveBusStopFlag

Only below flags can be enabled as interrupts.

  • kI3C_SlaveBusStartFlag

  • kI3C_SlaveMatchedFlag

  • kI3C_SlaveBusStopFlag

  • kI3C_SlaveRxReadyFlag

  • kI3C_SlaveTxReadyFlag

  • kI3C_SlaveDynamicAddrChangedFlag

  • kI3C_SlaveReceivedCCCFlag

  • kI3C_SlaveErrorFlag

  • kI3C_SlaveHDRCommandMatchFlag

  • kI3C_SlaveCCCHandledFlag

  • kI3C_SlaveEventSentFlag

Note

These enums are meant to be OR’d together to form a bit mask.

Values:

enumerator kI3C_SlaveNotStopFlag

Slave status not stop flag

enumerator kI3C_SlaveMessageFlag

Slave status message, indicating slave is listening to the bus traffic or responding

enumerator kI3C_SlaveRequiredReadFlag

Slave status required, either is master doing SDR read from slave, or is IBI pushing out.

enumerator kI3C_SlaveRequiredWriteFlag

Slave status request write, master is doing SDR write to slave, except slave in ENTDAA mode

enumerator kI3C_SlaveBusDAAFlag

I3C bus is in ENTDAA mode

enumerator kI3C_SlaveBusHDRModeFlag

I3C bus is in HDR mode

enumerator kI3C_SlaveBusStartFlag

Start/Re-start event is seen since the bus was last cleared

enumerator kI3C_SlaveMatchedFlag

Slave address(dynamic/static) matched since last cleared

enumerator kI3C_SlaveBusStopFlag

Stop event is seen since the bus was last cleared

enumerator kI3C_SlaveRxReadyFlag

Rx data ready in rx buffer flag

enumerator kI3C_SlaveTxReadyFlag

Tx buffer ready for Tx data flag

enumerator kI3C_SlaveDynamicAddrChangedFlag

Slave dynamic address has been assigned, re-assigned, or lost

enumerator kI3C_SlaveReceivedCCCFlag

Slave received Common command code

enumerator kI3C_SlaveErrorFlag

Error occurred flag

enumerator kI3C_SlaveHDRCommandMatchFlag

High data rate command match

enumerator kI3C_SlaveCCCHandledFlag

Slave received Common command code is handled by I3C module

enumerator kI3C_SlaveEventSentFlag

Slave IBI/P2P/MR/HJ event has been sent

enumerator kI3C_SlaveIbiDisableFlag

Slave in band interrupt is disabled.

enumerator kI3C_SlaveMasterRequestDisabledFlag

Slave master request is disabled.

enumerator kI3C_SlaveHotJoinDisabledFlag

Slave Hot-Join is disabled.

enumerator kI3C_SlaveClearFlags

All flags which are cleared by the driver upon starting a transfer.

enumerator kI3C_SlaveAllIrqFlags
enum _i3c_slave_error_flags

I3C slave error flags to indicate the causes.

Note

These enums are meant to be OR’d together to form a bit mask.

Values:

enumerator kI3C_SlaveErrorOverrunFlag

Slave internal from-bus buffer/FIFO overrun.

enumerator kI3C_SlaveErrorUnderrunFlag

Slave internal to-bus buffer/FIFO underrun

enumerator kI3C_SlaveErrorUnderrunNakFlag

Slave internal from-bus buffer/FIFO underrun and NACK error

enumerator kI3C_SlaveErrorTermFlag

Terminate error from master

enumerator kI3C_SlaveErrorInvalidStartFlag

Slave invalid start flag

enumerator kI3C_SlaveErrorSdrParityFlag

SDR parity error

enumerator kI3C_SlaveErrorHdrParityFlag

HDR parity error

enumerator kI3C_SlaveErrorHdrCRCFlag

HDR-DDR CRC error

enumerator kI3C_SlaveErrorS0S1Flag

S0 or S1 error

enumerator kI3C_SlaveErrorOverreadFlag

Over-read error

enumerator kI3C_SlaveErrorOverwriteFlag

Over-write error

enum _i3c_slave_event

I3C slave.event.

Values:

enumerator kI3C_SlaveEventNormal

Normal mode.

enumerator kI3C_SlaveEventIBI

In band interrupt event.

enumerator kI3C_SlaveEventMasterReq

Master request event.

enumerator kI3C_SlaveEventHotJoinReq

Hot-join event.

enum _i3c_slave_activity_state

I3C slave.activity state.

Values:

enumerator kI3C_SlaveNoLatency

Normal bus operation

enumerator kI3C_SlaveLatency1Ms

1ms of latency.

enumerator kI3C_SlaveLatency100Ms

100ms of latency.

enumerator kI3C_SlaveLatency10S

10s latency.

enum _i3c_slave_transfer_event

Set of events sent to the callback for non blocking slave transfers.

These event enumerations are used for two related purposes. First, a bit mask created by OR’ing together events is passed to I3C_SlaveTransferNonBlocking() in order to specify which events to enable. Then, when the slave callback is invoked, it is passed the current event through its transfer parameter.

Note

These enumerations are meant to be OR’d together to form a bit mask of events.

Values:

enumerator kI3C_SlaveAddressMatchEvent

Received the slave address after a start or repeated start.

enumerator kI3C_SlaveTransmitEvent

Callback is requested to provide data to transmit (slave-transmitter role).

enumerator kI3C_SlaveReceiveEvent

Callback is requested to provide a buffer in which to place received data (slave-receiver role).

enumerator kI3C_SlaveRequiredTransmitEvent

Callback is requested to provide a buffer in which to place received data (slave-receiver role).

enumerator kI3C_SlaveStartEvent

A start/repeated start was detected.

enumerator kI3C_SlaveHDRCommandMatchEvent

Slave Match HDR Command.

enumerator kI3C_SlaveCompletionEvent

A stop was detected, completing the transfer.

enumerator kI3C_SlaveRequestSentEvent

Slave request event sent.

enumerator kI3C_SlaveReceivedCCCEvent

Slave received CCC event, need to handle by application.

enumerator kI3C_SlaveAllEvents

Bit mask of all available events.

typedef enum _i3c_slave_event i3c_slave_event_t

I3C slave.event.

typedef enum _i3c_slave_activity_state i3c_slave_activity_state_t

I3C slave.activity state.

typedef struct _i3c_slave_config i3c_slave_config_t

Structure with settings to initialize the I3C slave module.

This structure holds configuration settings for the I3C peripheral. To initialize this structure to reasonable defaults, call the I3C_SlaveGetDefaultConfig() function and pass a pointer to your configuration structure instance.

The configuration structure can be made constant so it resides in flash.

typedef enum _i3c_slave_transfer_event i3c_slave_transfer_event_t

Set of events sent to the callback for non blocking slave transfers.

These event enumerations are used for two related purposes. First, a bit mask created by OR’ing together events is passed to I3C_SlaveTransferNonBlocking() in order to specify which events to enable. Then, when the slave callback is invoked, it is passed the current event through its transfer parameter.

Note

These enumerations are meant to be OR’d together to form a bit mask of events.

typedef struct _i3c_slave_transfer i3c_slave_transfer_t

I3C slave transfer structure.

typedef struct _i3c_slave_handle i3c_slave_handle_t
typedef void (*i3c_slave_transfer_callback_t)(I3C_Type *base, i3c_slave_transfer_t *transfer, void *userData)

Slave event callback function pointer type.

This callback is used only for the slave non-blocking transfer API. To install a callback, use the I3C_SlaveSetCallback() function after you have created a handle.

Param base:

Base address for the I3C instance on which the event occurred.

Param transfer:

Pointer to transfer descriptor containing values passed to and/or from the callback.

Param userData:

Arbitrary pointer-sized value passed from the application.

typedef void (*i3c_slave_isr_t)(I3C_Type *base, void *handle)

Typedef for slave interrupt handler.

struct _i3c_slave_config
#include <fsl_i3c.h>

Structure with settings to initialize the I3C slave module.

This structure holds configuration settings for the I3C peripheral. To initialize this structure to reasonable defaults, call the I3C_SlaveGetDefaultConfig() function and pass a pointer to your configuration structure instance.

The configuration structure can be made constant so it resides in flash.

Public Members

bool enableSlave

Whether to enable slave.

bool isHotJoin

Whether to enable slave hotjoin before enable slave.

uint8_t staticAddr

Static address.

uint16_t vendorID

Device vendor ID(manufacture ID).

uint32_t partNumber

Device part number info

uint8_t dcr

Device characteristics register information.

uint8_t bcr

Bus characteristics register information.

uint8_t hdrMode

Support hdr mode, could be OR logic in enumeration:i3c_hdr_mode_t.

bool nakAllRequest

Whether to reply NAK to all requests except broadcast CCC.

bool ignoreS0S1Error

Whether to ignore S0/S1 error in SDR mode.

bool offline

Whether to wait 60 us of bus quiet or HDR request to ensure slave track SDR mode safely.

bool matchSlaveStartStop

Whether to assert start/stop status only the time slave is addressed.

uint32_t maxWriteLength

Maximum write length.

uint32_t maxReadLength

Maximum read length.

struct _i3c_slave_transfer
#include <fsl_i3c.h>

I3C slave transfer structure.

Public Members

uint32_t event

Reason the callback is being invoked.

uint8_t *txData

Transfer buffer

size_t txDataSize

Transfer size

uint8_t *rxData

Transfer buffer

size_t rxDataSize

Transfer size

status_t completionStatus

Success or error code describing how the transfer completed. Only applies for kI3C_SlaveCompletionEvent.

size_t transferredCount

Number of bytes actually transferred since start or last repeated start.

struct _i3c_slave_handle
#include <fsl_i3c.h>

I3C slave handle structure.

Note

The contents of this structure are private and subject to change.

Public Members

i3c_slave_transfer_t transfer

I3C slave transfer copy.

bool isBusy

Whether transfer is busy.

bool wasTransmit

Whether the last transfer was a transmit.

uint32_t eventMask

Mask of enabled events.

uint32_t transferredCount

Count of bytes transferred.

i3c_slave_transfer_callback_t callback

Callback function called at transfer event.

void *userData

Callback parameter passed to callback.

size_t txFifoSize

Tx Fifo size

I3C Slave DMA Driver

void I3C_SlaveTransferCreateHandleEDMA(I3C_Type *base, i3c_slave_edma_handle_t *handle, i3c_slave_edma_callback_t callback, void *userData, edma_handle_t *rxDmaHandle, edma_handle_t *txDmaHandle)

Create a new handle for the I3C slave DMA APIs.

The creation of a handle is for use with the DMA APIs. Once a handle is created, there is not a corresponding destroy handle. If the user wants to terminate a transfer, the I3C_SlaveTransferAbortDMA() API shall be called.

For devices where the I3C send and receive DMA requests are OR’d together, the txDmaHandle parameter is ignored and may be set to NULL.

Parameters:
  • base – The I3C peripheral base address.

  • handle – Pointer to the I3C slave driver handle.

  • callback – User provided pointer to the asynchronous callback function.

  • userData – User provided pointer to the application callback data.

  • rxDmaHandle – Handle for the DMA receive channel. Created by the user prior to calling this function.

  • txDmaHandle – Handle for the DMA transmit channel. Created by the user prior to calling this function.

status_t I3C_SlaveTransferEDMA(I3C_Type *base, i3c_slave_edma_handle_t *handle, i3c_slave_edma_transfer_t *transfer, uint32_t eventMask)

Prepares for a non-blocking DMA-based transaction on the I3C bus.

The API will do DMA configuration according to the input transfer descriptor, and the data will be transferred when there’s bus master requesting transfer from/to this slave. So the timing of call to this API need be aligned with master application to ensure the transfer is executed as expected. Callback specified when the handle was created is invoked when the transaction has completed.

Parameters:
  • base – The I3C peripheral base address.

  • handle – Pointer to the I3C slave driver handle.

  • transfer – The pointer to the transfer descriptor.

  • eventMask – Bit mask formed by OR’ing together i3c_slave_transfer_event_t enumerators to specify which events to send to the callback. The transmit and receive events is not allowed to be enabled.

Return values:
  • kStatus_Success – The transaction was started successfully.

  • kStatus_I3C_Busy – Either another master is currently utilizing the bus, or another DMA transaction is already in progress.

  • kStatus_Fail – The transaction can’t be set.

void I3C_SlaveTransferAbortEDMA(I3C_Type *base, i3c_slave_edma_handle_t *handle)

Abort a slave edma non-blocking transfer in a early time.

Parameters:
  • base – I3C peripheral base address

  • handle – pointer to i3c_slave_edma_handle_t structure

void I3C_SlaveTransferEDMAHandleIRQ(I3C_Type *base, void *i3cHandle)

Reusable routine to handle slave interrupts.

Note

This function does not need to be called unless you are reimplementing the nonblocking API’s interrupt handler routines to add special functionality.

Parameters:
  • base – The I3C peripheral base address.

  • i3cHandle – Pointer to the I3C slave DMA driver handle.

typedef struct _i3c_slave_edma_handle i3c_slave_edma_handle_t
typedef struct _i3c_slave_edma_transfer i3c_slave_edma_transfer_t

I3C slave transfer structure.

typedef void (*i3c_slave_edma_callback_t)(I3C_Type *base, i3c_slave_edma_transfer_t *transfer, void *userData)

Slave event callback function pointer type.

This callback is used only for the slave DMA transfer API.

Param base:

Base address for the I3C instance on which the event occurred.

Param handle:

Pointer to slave DMA transfer handle.

Param transfer:

Pointer to transfer descriptor containing values passed to and/or from the callback.

Param userData:

Arbitrary pointer-sized value passed from the application.

struct _i3c_slave_edma_transfer
#include <fsl_i3c_edma.h>

I3C slave transfer structure.

Public Members

uint32_t event

Reason the callback is being invoked.

uint8_t *txData

Transfer buffer

size_t txDataSize

Transfer size

uint8_t *rxData

Transfer buffer

size_t rxDataSize

Transfer size

status_t completionStatus

Success or error code describing how the transfer completed. Only applies for kI3C_SlaveCompletionEvent.

struct _i3c_slave_edma_handle
#include <fsl_i3c_edma.h>

I3C slave edma handle structure.

Note

The contents of this structure are private and subject to change.

Public Members

I3C_Type *base

I3C base pointer.

i3c_slave_edma_transfer_t transfer

I3C slave transfer copy.

bool isBusy

Whether transfer is busy.

bool wasTransmit

Whether the last transfer was a transmit.

uint32_t eventMask

Mask of enabled events.

i3c_slave_edma_callback_t callback

Callback function called at transfer event.

edma_handle_t *rxDmaHandle

Handle for receive DMA channel.

edma_handle_t *txDmaHandle

Handle for transmit DMA channel.

void *userData

Callback parameter passed to callback.

INPUTMUX: Input Multiplexing Driver

enum _inputmux_connection_t

INPUTMUX connections type.

Values:

enumerator kINPUTMUX_Sct0In0ToSct0

SCT0 INMUX.

enumerator kINPUTMUX_Sct0In1ToSct0
enumerator kINPUTMUX_Sct0In2ToSct0
enumerator kINPUTMUX_Sct0In3ToSct0
enumerator kINPUTMUX_Sct0In4ToSct0
enumerator kINPUTMUX_Sct0In5ToSct0
enumerator kINPUTMUX_Sct0In6ToSct0
enumerator kINPUTMUX_Sct0In7ToSct0
enumerator kINPUTMUX_Ctimer0M0ToSct0
enumerator kINPUTMUX_Ctimer1M0ToSct0
enumerator kINPUTMUX_Ctimer2M0ToSct0
enumerator kINPUTMUX_Ctimer3M0ToSct0
enumerator kINPUTMUX_Ctimer4M0ToSct0
enumerator kINPUTMUX_Adc0IrqToSct0
enumerator kINPUTMUX_GpioIntBmatToSct0
enumerator kINPUTMUX_Usb0StartOfFrameToggleToSct0
enumerator kINPUTMUX_Usb1StartOfFrameToggleToSct0
enumerator kINPUTMUX_SincFilterCh0ToSct0
enumerator kINPUTMUX_SincFilterCh1ToSct0
enumerator kINPUTMUX_SincFilterCh2ToSct0
enumerator kINPUTMUX_SincFilterCh3ToSct0
enumerator kINPUTMUX_SincFilterCh4ToSct0
enumerator kINPUTMUX_ArmTxevToSct0
enumerator kINPUTMUX_DebugHaltedToSct0
enumerator kINPUTMUX_Adc1IrqToSct0
enumerator kINPUTMUX_Adc0tcomp0ToSct0
enumerator kINPUTMUX_Adc0tcomp1ToSct0
enumerator kINPUTMUX_Adc0tcomp2ToSct0
enumerator kINPUTMUX_Adc0tcomp3ToSct0
enumerator kINPUTMUX_Adc1tcomp0ToSct0
enumerator kINPUTMUX_Adc1tcomp1ToSct0
enumerator kINPUTMUX_Adc1tcomp2ToSct0
enumerator kINPUTMUX_Adc1tcomp3ToSct0
enumerator kINPUTMUX_Cmp0OutToSct0
enumerator kINPUTMUX_Cmp1OutToSct0
enumerator kINPUTMUX_Cmp2OutToSct0
enumerator kINPUTMUX_Pwm0A0Trig01ToSct0
enumerator kINPUTMUX_Pwm0A1Trig01ToSct0
enumerator kINPUTMUX_Pwm0A2Trig01ToSct0
enumerator kINPUTMUX_Pwm0A3Trig01ToSct0
enumerator kINPUTMUX_Pwm1A0Trig01ToSct0
enumerator kINPUTMUX_Pwm1A1Trig01ToSct0
enumerator kINPUTMUX_Pwm1A2Trig01ToSct0
enumerator kINPUTMUX_Pwm1A3Trig01ToSct0
enumerator kINPUTMUX_Qdc0CmpPosMatchToSct0
enumerator kINPUTMUX_Qdc1CmpPosMatchToSct0
enumerator kINPUTMUX_EvtgOut0AToSct0
enumerator kINPUTMUX_EvtgOut0BToSct0
enumerator kINPUTMUX_EvtgOut1AToSct0
enumerator kINPUTMUX_EvtgOut1BToSct0
enumerator kINPUTMUX_EvtgOut2AToSct0
enumerator kINPUTMUX_EvtgOut2BToSct0
enumerator kINPUTMUX_EvtgOut3AToSct0
enumerator kINPUTMUX_EvtgOut3BToSct0
enumerator kINPUTMUX_Fc3P0ToSct0
enumerator kINPUTMUX_Fc3P1ToSct0
enumerator kINPUTMUX_Fc3P2ToSct0
enumerator kINPUTMUX_Fc3P3ToSct0
enumerator kINPUTMUX_Lpflexcomm0Trig0ToSct0
enumerator kINPUTMUX_Lpflexcomm0Trig1ToSct0
enumerator kINPUTMUX_Lpflexcomm0Trig2ToSct0
enumerator kINPUTMUX_Lpflexcomm1Trig0ToSct0
enumerator kINPUTMUX_Lpflexcomm1Trig1ToSct0
enumerator kINPUTMUX_Lpflexcomm1Trig2ToSct0
enumerator kINPUTMUX_Lpflexcomm2Trig0ToSct0
enumerator kINPUTMUX_Lpflexcomm2Trig1ToSct0
enumerator kINPUTMUX_Lpflexcomm2Trig2ToSct0
enumerator kINPUTMUX_Lpflexcomm3Trig0ToSct0
enumerator kINPUTMUX_Lpflexcomm3Trig1ToSct0
enumerator kINPUTMUX_Lpflexcomm3Trig2ToSct0
enumerator kINPUTMUX_Lpflexcomm3Trig3ToSct0
enumerator kINPUTMUX_Sai0TxBclkToSct0
enumerator kINPUTMUX_Sai0RxBclkToSct0
enumerator kINPUTMUX_Sai1TxBclkToSct0
enumerator kINPUTMUX_Sai1RxBclkToSct0

TIMER0 CAPTSEL.

enumerator kINPUTMUX_CtimerInp0ToTimer0Captsel
enumerator kINPUTMUX_CtimerInp1ToTimer0Captsel
enumerator kINPUTMUX_CtimerInp2ToTimer0Captsel
enumerator kINPUTMUX_CtimerInp3ToTimer0Captsel
enumerator kINPUTMUX_CtimerInp4ToTimer0Captsel
enumerator kINPUTMUX_CtimerInp5ToTimer0Captsel
enumerator kINPUTMUX_CtimerInp6ToTimer0Captsel
enumerator kINPUTMUX_CtimerInp7ToTimer0Captsel
enumerator kINPUTMUX_CtimerInp8ToTimer0Captsel
enumerator kINPUTMUX_CtimerInp9ToTimer0Captsel
enumerator kINPUTMUX_CtimerInp10ToTimer0Captsel
enumerator kINPUTMUX_CtimerInp11ToTimer0Captsel
enumerator kINPUTMUX_CtimerInp12ToTimer0Captsel
enumerator kINPUTMUX_CtimerInp13ToTimer0Captsel
enumerator kINPUTMUX_CtimerInp14ToTimer0Captsel
enumerator kINPUTMUX_CtimerInp15ToTimer0Captsel
enumerator kINPUTMUX_CtimerInp16ToTimer0Captsel
enumerator kINPUTMUX_CtimerInp17ToTimer0Captsel
enumerator kINPUTMUX_CtimerInp18ToTimer0Captsel
enumerator kINPUTMUX_CtimerInp19ToTimer0Captsel
enumerator kINPUTMUX_Usb0StartOfFrameToTimer0Captsel
enumerator kINPUTMUX_Usb1StartOfFrameToTimer0Captsel
enumerator kINPUTMUX_DcdcBurstActiveToTimer0Captsel
enumerator kINPUTMUX_Sai0TxSyncOutToTimer0Captsel
enumerator kINPUTMUX_Sai0RxSyncOutToTimer0Captsel
enumerator kINPUTMUX_Adc0IrqToTimer0Captsel
enumerator kINPUTMUX_Adc1IrqToTimer0Captsel
enumerator kINPUTMUX_Cmp0OutToTimer0Captsel
enumerator kINPUTMUX_Cmp1OutToTimer0Captsel
enumerator kINPUTMUX_Cmp2OutToTimer0Captsel
enumerator kINPUTMUX_Pwm0A0Trig01ToTimer0Captsel
enumerator kINPUTMUX_Pwm0A1Trig01ToTimer0Captsel
enumerator kINPUTMUX_Pwm0A2Trig01ToTimer0Captsel
enumerator kINPUTMUX_Pwm0A3Trig01ToTimer0Captsel
enumerator kINPUTMUX_Pwm1A0Trig01ToTimer0Captsel
enumerator kINPUTMUX_Pwm1A1Trig01ToTimer0Captsel
enumerator kINPUTMUX_Pwm1A2Trig01ToTimer0Captsel
enumerator kINPUTMUX_Pwm1A3Trig01ToTimer0Captsel
enumerator kINPUTMUX_Qdc0CmpPosMatchToTimer0Captsel
enumerator kINPUTMUX_Qdc1CmpPosMatchToTimer0Captsel
enumerator kINPUTMUX_EvtgOut0AToTimer0Captsel
enumerator kINPUTMUX_EvtgOut0BToTimer0Captsel
enumerator kINPUTMUX_EvtgOut1AToTimer0Captsel
enumerator kINPUTMUX_EvtgOut1BToTimer0Captsel
enumerator kINPUTMUX_EvtgOut2AToTimer0Captsel
enumerator kINPUTMUX_EvtgOut2BToTimer0Captsel
enumerator kINPUTMUX_EvtgOut3AToTimer0Captsel
enumerator kINPUTMUX_EvtgOut3BToTimer0Captsel
enumerator kINPUTMUX_LpFlexcomm0Trig0ToTimer0Captsel
enumerator kINPUTMUX_LpFlexcomm0Trig1ToTimer0Captsel
enumerator kINPUTMUX_LpFlexcomm0Trig2ToTimer0Captsel
enumerator kINPUTMUX_LpFlexcomm1Trig0ToTimer0Captsel
enumerator kINPUTMUX_LpFlexcomm1Trig1ToTimer0Captsel
enumerator kINPUTMUX_LpFlexcomm1Trig2ToTimer0Captsel
enumerator kINPUTMUX_LpFlexcomm2Trig0ToTimer0Captsel
enumerator kINPUTMUX_LpFlexcomm2Trig1ToTimer0Captsel
enumerator kINPUTMUX_LpFlexcomm2Trig2ToTimer0Captsel
enumerator kINPUTMUX_LpFlexcomm3Trig0ToTimer0Captsel
enumerator kINPUTMUX_LpFlexcomm3Trig1ToTimer0Captsel
enumerator kINPUTMUX_LpFlexcomm3Trig2ToTimer0Captsel
enumerator kINPUTMUX_LpFlexcomm3Trig3ToTimer0Captsel
enumerator kINPUTMUX_Sai1TxSyncOutToTimer0Captsel
enumerator kINPUTMUX_Sai1RxSyncOutToTimer0Captsel

TIMER1 CAPTSEL.

enumerator kINPUTMUX_CtimerInp0ToTimer1Captsel
enumerator kINPUTMUX_CtimerInp1ToTimer1Captsel
enumerator kINPUTMUX_CtimerInp2ToTimer1Captsel
enumerator kINPUTMUX_CtimerInp3ToTimer1Captsel
enumerator kINPUTMUX_CtimerInp4ToTimer1Captsel
enumerator kINPUTMUX_CtimerInp5ToTimer1Captsel
enumerator kINPUTMUX_CtimerInp6ToTimer1Captsel
enumerator kINPUTMUX_CtimerInp7ToTimer1Captsel
enumerator kINPUTMUX_CtimerInp8ToTimer1Captsel
enumerator kINPUTMUX_CtimerInp9ToTimer1Captsel
enumerator kINPUTMUX_CtimerInp10ToTimer1Captsel
enumerator kINPUTMUX_CtimerInp11ToTimer1Captsel
enumerator kINPUTMUX_CtimerInp12ToTimer1Captsel
enumerator kINPUTMUX_CtimerInp13ToTimer1Captsel
enumerator kINPUTMUX_CtimerInp14ToTimer1Captsel
enumerator kINPUTMUX_CtimerInp15ToTimer1Captsel
enumerator kINPUTMUX_CtimerInp16ToTimer1Captsel
enumerator kINPUTMUX_CtimerInp17ToTimer1Captsel
enumerator kINPUTMUX_CtimerInp18ToTimer1Captsel
enumerator kINPUTMUX_CtimerInp19ToTimer1Captsel
enumerator kINPUTMUX_Usb0StartOfFrameToTimer1Captsel
enumerator kINPUTMUX_Usb1StartOfFrameToTimer1Captsel
enumerator kINPUTMUX_DcdcBurstActiveToTimer1Captsel
enumerator kINPUTMUX_Sai0TxSyncOutToTimer1Captsel
enumerator kINPUTMUX_Sai0RxSyncOutToTimer1Captsel
enumerator kINPUTMUX_Adc0IrqToTimer1Captsel
enumerator kINPUTMUX_Adc1IrqToTimer1Captsel
enumerator kINPUTMUX_Cmp0OutToTimer1Captsel
enumerator kINPUTMUX_Cmp1OutToTimer1Captsel
enumerator kINPUTMUX_Cmp2OutToTimer1Captsel
enumerator kINPUTMUX_Pwm0A0Trig01ToTimer1Captsel
enumerator kINPUTMUX_Pwm0A1Trig01ToTimer1Captsel
enumerator kINPUTMUX_Pwm0A2Trig01ToTimer1Captsel
enumerator kINPUTMUX_Pwm0A3Trig01ToTimer1Captsel
enumerator kINPUTMUX_Pwm1A0Trig01ToTimer1Captsel
enumerator kINPUTMUX_Pwm1A1Trig01ToTimer1Captsel
enumerator kINPUTMUX_Pwm1A2Trig01ToTimer1Captsel
enumerator kINPUTMUX_Pwm1A3Trig01ToTimer1Captsel
enumerator kINPUTMUX_Qdc0CmpPosMatchToTimer1Captsel
enumerator kINPUTMUX_Qdc1CmpPosMatchToTimer1Captsel
enumerator kINPUTMUX_EvtgOut0AToTimer1Captsel
enumerator kINPUTMUX_EvtgOut0BToTimer1Captsel
enumerator kINPUTMUX_EvtgOut1AToTimer1Captsel
enumerator kINPUTMUX_EvtgOut1BToTimer1Captsel
enumerator kINPUTMUX_EvtgOut2AToTimer1Captsel
enumerator kINPUTMUX_EvtgOut2BToTimer1Captsel
enumerator kINPUTMUX_EvtgOut3AToTimer1Captsel
enumerator kINPUTMUX_EvtgOut3BToTimer1Captsel
enumerator kINPUTMUX_LpFlexcomm0Trig0ToTimer1Captsel
enumerator kINPUTMUX_LpFlexcomm0Trig1ToTimer1Captsel
enumerator kINPUTMUX_LpFlexcomm0Trig2ToTimer1Captsel
enumerator kINPUTMUX_LpFlexcomm1Trig0ToTimer1Captsel
enumerator kINPUTMUX_LpFlexcomm1Trig1ToTimer1Captsel
enumerator kINPUTMUX_LpFlexcomm1Trig2ToTimer1Captsel
enumerator kINPUTMUX_LpFlexcomm2Trig0ToTimer1Captsel
enumerator kINPUTMUX_LpFlexcomm2Trig1ToTimer1Captsel
enumerator kINPUTMUX_LpFlexcomm2Trig2ToTimer1Captsel
enumerator kINPUTMUX_LpFlexcomm3Trig0ToTimer1Captsel
enumerator kINPUTMUX_LpFlexcomm3Trig1ToTimer1Captsel
enumerator kINPUTMUX_LpFlexcomm3Trig2ToTimer1Captsel
enumerator kINPUTMUX_LpFlexcomm3Trig3ToTimer1Captsel
enumerator kINPUTMUX_Sai1TxSyncOutToTimer1Captsel
enumerator kINPUTMUX_Sai1RxSyncOutToTimer1Captsel

TIMER2 CAPTSEL.

enumerator kINPUTMUX_CtimerInp0ToTimer2Captsel
enumerator kINPUTMUX_CtimerInp1ToTimer2Captsel
enumerator kINPUTMUX_CtimerInp2ToTimer2Captsel
enumerator kINPUTMUX_CtimerInp3ToTimer2Captsel
enumerator kINPUTMUX_CtimerInp4ToTimer2Captsel
enumerator kINPUTMUX_CtimerInp5ToTimer2Captsel
enumerator kINPUTMUX_CtimerInp6ToTimer2Captsel
enumerator kINPUTMUX_CtimerInp7ToTimer2Captsel
enumerator kINPUTMUX_CtimerInp8ToTimer2Captsel
enumerator kINPUTMUX_CtimerInp9ToTimer2Captsel
enumerator kINPUTMUX_CtimerInp10ToTimer2Captsel
enumerator kINPUTMUX_CtimerInp11ToTimer2Captsel
enumerator kINPUTMUX_CtimerInp12ToTimer2Captsel
enumerator kINPUTMUX_CtimerInp13ToTimer2Captsel
enumerator kINPUTMUX_CtimerInp14ToTimer2Captsel
enumerator kINPUTMUX_CtimerInp15ToTimer2Captsel
enumerator kINPUTMUX_CtimerInp16ToTimer2Captsel
enumerator kINPUTMUX_CtimerInp17ToTimer2Captsel
enumerator kINPUTMUX_CtimerInp18ToTimer2Captsel
enumerator kINPUTMUX_CtimerInp19ToTimer2Captsel
enumerator kINPUTMUX_Usb0StartOfFrameToTimer2Captsel
enumerator kINPUTMUX_Usb1StartOfFrameToTimer2Captsel
enumerator kINPUTMUX_DcdcBurstActiveToTimer2Captsel
enumerator kINPUTMUX_Sai0TxSyncOutToTimer2Captsel
enumerator kINPUTMUX_Sai0RxSyncOutToTimer2Captsel
enumerator kINPUTMUX_Adc0IrqToTimer2Captsel
enumerator kINPUTMUX_Adc1IrqToTimer2Captsel
enumerator kINPUTMUX_Cmp0OutToTimer2Captsel
enumerator kINPUTMUX_Cmp1OutToTimer2Captsel
enumerator kINPUTMUX_Cmp2OutToTimer2Captsel
enumerator kINPUTMUX_Pwm0A0Trig01ToTimer2Captsel
enumerator kINPUTMUX_Pwm0A1Trig01ToTimer2Captsel
enumerator kINPUTMUX_Pwm0A2Trig01ToTimer2Captsel
enumerator kINPUTMUX_Pwm0A3Trig01ToTimer2Captsel
enumerator kINPUTMUX_Pwm1A0Trig01ToTimer2Captsel
enumerator kINPUTMUX_Pwm1A1Trig01ToTimer2Captsel
enumerator kINPUTMUX_Pwm1A2Trig01ToTimer2Captsel
enumerator kINPUTMUX_Pwm1A3Trig01ToTimer2Captsel
enumerator kINPUTMUX_Qdc0CmpPosMatchToTimer2Captsel
enumerator kINPUTMUX_Qdc1CmpPosMatchToTimer2Captsel
enumerator kINPUTMUX_EvtgOut0AToTimer2Captsel
enumerator kINPUTMUX_EvtgOut0BToTimer2Captsel
enumerator kINPUTMUX_EvtgOut1AToTimer2Captsel
enumerator kINPUTMUX_EvtgOut1BToTimer2Captsel
enumerator kINPUTMUX_EvtgOut2AToTimer2Captsel
enumerator kINPUTMUX_EvtgOut2BToTimer2Captsel
enumerator kINPUTMUX_EvtgOut3AToTimer2Captsel
enumerator kINPUTMUX_EvtgOut3BToTimer2Captsel
enumerator kINPUTMUX_LpFlexcomm0Trig0ToTimer2Captsel
enumerator kINPUTMUX_LpFlexcomm0Trig1ToTimer2Captsel
enumerator kINPUTMUX_LpFlexcomm0Trig2ToTimer2Captsel
enumerator kINPUTMUX_LpFlexcomm1Trig0ToTimer2Captsel
enumerator kINPUTMUX_LpFlexcomm1Trig1ToTimer2Captsel
enumerator kINPUTMUX_LpFlexcomm1Trig2ToTimer2Captsel
enumerator kINPUTMUX_LpFlexcomm2Trig0ToTimer2Captsel
enumerator kINPUTMUX_LpFlexcomm2Trig1ToTimer2Captsel
enumerator kINPUTMUX_LpFlexcomm2Trig2ToTimer2Captsel
enumerator kINPUTMUX_LpFlexcomm3Trig0ToTimer2Captsel
enumerator kINPUTMUX_LpFlexcomm3Trig1ToTimer2Captsel
enumerator kINPUTMUX_LpFlexcomm3Trig2ToTimer2Captsel
enumerator kINPUTMUX_LpFlexcomm3Trig3ToTimer2Captsel
enumerator kINPUTMUX_Sai1TxSyncOutToTimer2Captsel
enumerator kINPUTMUX_Sai1RxSyncOutToTimer2Captsel

TIMER3 CAPTSEL.

enumerator kINPUTMUX_CtimerInp0ToTimer3Captsel
enumerator kINPUTMUX_CtimerInp1ToTimer3Captsel
enumerator kINPUTMUX_CtimerInp2ToTimer3Captsel
enumerator kINPUTMUX_CtimerInp3ToTimer3Captsel
enumerator kINPUTMUX_CtimerInp4ToTimer3Captsel
enumerator kINPUTMUX_CtimerInp5ToTimer3Captsel
enumerator kINPUTMUX_CtimerInp6ToTimer3Captsel
enumerator kINPUTMUX_CtimerInp7ToTimer3Captsel
enumerator kINPUTMUX_CtimerInp8ToTimer3Captsel
enumerator kINPUTMUX_CtimerInp9ToTimer3Captsel
enumerator kINPUTMUX_CtimerInp10ToTimer3Captsel
enumerator kINPUTMUX_CtimerInp11ToTimer3Captsel
enumerator kINPUTMUX_CtimerInp12ToTimer3Captsel
enumerator kINPUTMUX_CtimerInp13ToTimer3Captsel
enumerator kINPUTMUX_CtimerInp14ToTimer3Captsel
enumerator kINPUTMUX_CtimerInp15ToTimer3Captsel
enumerator kINPUTMUX_CtimerInp16ToTimer3Captsel
enumerator kINPUTMUX_CtimerInp17ToTimer3Captsel
enumerator kINPUTMUX_CtimerInp18ToTimer3Captsel
enumerator kINPUTMUX_CtimerInp19ToTimer3Captsel
enumerator kINPUTMUX_Usb0StartOfFrameToTimer3Captsel
enumerator kINPUTMUX_Usb1StartOfFrameToTimer3Captsel
enumerator kINPUTMUX_DcdcBurstActiveToTimer3Captsel
enumerator kINPUTMUX_Sai0TxSyncOutToTimer3Captsel
enumerator kINPUTMUX_Sai0RxSyncOutToTimer3Captsel
enumerator kINPUTMUX_Adc0IrqToTimer3Captsel
enumerator kINPUTMUX_Adc1IrqToTimer3Captsel
enumerator kINPUTMUX_Cmp0OutToTimer3Captsel
enumerator kINPUTMUX_Cmp1OutToTimer3Captsel
enumerator kINPUTMUX_Cmp2OutToTimer3Captsel
enumerator kINPUTMUX_Pwm0A0Trig01ToTimer3Captsel
enumerator kINPUTMUX_Pwm0A1Trig01ToTimer3Captsel
enumerator kINPUTMUX_Pwm0A2Trig01ToTimer3Captsel
enumerator kINPUTMUX_Pwm0A3Trig01ToTimer3Captsel
enumerator kINPUTMUX_Pwm1A0Trig01ToTimer3Captsel
enumerator kINPUTMUX_Pwm1A1Trig01ToTimer3Captsel
enumerator kINPUTMUX_Pwm1A2Trig01ToTimer3Captsel
enumerator kINPUTMUX_Pwm1A3Trig01ToTimer3Captsel
enumerator kINPUTMUX_Qdc0CmpPosMatchToTimer3Captsel
enumerator kINPUTMUX_Qdc1CmpPosMatchToTimer3Captsel
enumerator kINPUTMUX_EvtgOut0AToTimer3Captsel
enumerator kINPUTMUX_EvtgOut0BToTimer3Captsel
enumerator kINPUTMUX_EvtgOut1AToTimer3Captsel
enumerator kINPUTMUX_EvtgOut1BToTimer3Captsel
enumerator kINPUTMUX_EvtgOut2AToTimer3Captsel
enumerator kINPUTMUX_EvtgOut2BToTimer3Captsel
enumerator kINPUTMUX_EvtgOut3AToTimer3Captsel
enumerator kINPUTMUX_EvtgOut3BToTimer3Captsel
enumerator kINPUTMUX_LpFlexcomm0Trig0ToTimer3Captsel
enumerator kINPUTMUX_LpFlexcomm0Trig1ToTimer3Captsel
enumerator kINPUTMUX_LpFlexcomm0Trig2ToTimer3Captsel
enumerator kINPUTMUX_LpFlexcomm1Trig0ToTimer3Captsel
enumerator kINPUTMUX_LpFlexcomm1Trig1ToTimer3Captsel
enumerator kINPUTMUX_LpFlexcomm1Trig2ToTimer3Captsel
enumerator kINPUTMUX_LpFlexcomm2Trig0ToTimer3Captsel
enumerator kINPUTMUX_LpFlexcomm2Trig1ToTimer3Captsel
enumerator kINPUTMUX_LpFlexcomm2Trig2ToTimer3Captsel
enumerator kINPUTMUX_LpFlexcomm3Trig0ToTimer3Captsel
enumerator kINPUTMUX_LpFlexcomm3Trig1ToTimer3Captsel
enumerator kINPUTMUX_LpFlexcomm3Trig2ToTimer3Captsel
enumerator kINPUTMUX_LpFlexcomm3Trig3ToTimer3Captsel
enumerator kINPUTMUX_Sai1TxSyncOutToTimer3Captsel
enumerator kINPUTMUX_Sai1RxSyncOutToTimer3Captsel

Timer4 CAPTSEL.

enumerator kINPUTMUX_CtimerInp0ToTimer4Captsel
enumerator kINPUTMUX_CtimerInp1ToTimer4Captsel
enumerator kINPUTMUX_CtimerInp2ToTimer4Captsel
enumerator kINPUTMUX_CtimerInp3ToTimer4Captsel
enumerator kINPUTMUX_CtimerInp4ToTimer4Captsel
enumerator kINPUTMUX_CtimerInp5ToTimer4Captsel
enumerator kINPUTMUX_CtimerInp6ToTimer4Captsel
enumerator kINPUTMUX_CtimerInp7ToTimer4Captsel
enumerator kINPUTMUX_CtimerInp8ToTimer4Captsel
enumerator kINPUTMUX_CtimerInp9ToTimer4Captsel
enumerator kINPUTMUX_CtimerInp10ToTimer4Captsel
enumerator kINPUTMUX_CtimerInp11ToTimer4Captsel
enumerator kINPUTMUX_CtimerInp12ToTimer4Captsel
enumerator kINPUTMUX_CtimerInp13ToTimer4Captsel
enumerator kINPUTMUX_CtimerInp14ToTimer4Captsel
enumerator kINPUTMUX_CtimerInp15ToTimer4Captsel
enumerator kINPUTMUX_CtimerInp16ToTimer4Captsel
enumerator kINPUTMUX_CtimerInp17ToTimer4Captsel
enumerator kINPUTMUX_CtimerInp18ToTimer4Captsel
enumerator kINPUTMUX_CtimerInp19ToTimer4Captsel
enumerator kINPUTMUX_Usb0StartOfFrameToTimer4Captsel
enumerator kINPUTMUX_Usb1StartOfFrameToTimer4Captsel
enumerator kINPUTMUX_DcdcBurstActiveToTimer4Captsel
enumerator kINPUTMUX_Sai0TxSyncOutToTimer4Captsel
enumerator kINPUTMUX_Sai0RxSyncOutToTimer4Captsel
enumerator kINPUTMUX_Adc0IrqToTimer4Captsel
enumerator kINPUTMUX_Adc1IrqToTimer4Captsel
enumerator kINPUTMUX_Cmp0OutToTimer4Captsel
enumerator kINPUTMUX_Cmp1OutToTimer4Captsel
enumerator kINPUTMUX_Cmp2OutToTimer4Captsel
enumerator kINPUTMUX_Pwm0A0Trig01ToTimer4Captsel
enumerator kINPUTMUX_Pwm0A1Trig01ToTimer4Captsel
enumerator kINPUTMUX_Pwm0A2Trig01ToTimer4Captsel
enumerator kINPUTMUX_Pwm0A3Trig01ToTimer4Captsel
enumerator kINPUTMUX_Pwm1A0Trig01ToTimer4Captsel
enumerator kINPUTMUX_Pwm1A1Trig01ToTimer4Captsel
enumerator kINPUTMUX_Pwm1A2Trig01ToTimer4Captsel
enumerator kINPUTMUX_Pwm1A3Trig01ToTimer4Captsel
enumerator kINPUTMUX_Qdc0CmpPosMatchToTimer4Captsel
enumerator kINPUTMUX_Qdc1CmpPosMatchToTimer4Captsel
enumerator kINPUTMUX_EvtgOut0AToTimer4Captsel
enumerator kINPUTMUX_EvtgOut0BToTimer4Captsel
enumerator kINPUTMUX_EvtgOut1AToTimer4Captsel
enumerator kINPUTMUX_EvtgOut1BToTimer4Captsel
enumerator kINPUTMUX_EvtgOut2AToTimer4Captsel
enumerator kINPUTMUX_EvtgOut2BToTimer4Captsel
enumerator kINPUTMUX_EvtgOut3AToTimer4Captsel
enumerator kINPUTMUX_EvtgOut3BToTimer4Captsel
enumerator kINPUTMUX_LpFlexcomm0Trig0ToTimer4Captsel
enumerator kINPUTMUX_LpFlexcomm0Trig1ToTimer4Captsel
enumerator kINPUTMUX_LpFlexcomm0Trig2ToTimer4Captsel
enumerator kINPUTMUX_LpFlexcomm1Trig0ToTimer4Captsel
enumerator kINPUTMUX_LpFlexcomm1Trig1ToTimer4Captsel
enumerator kINPUTMUX_LpFlexcomm1Trig2ToTimer4Captsel
enumerator kINPUTMUX_LpFlexcomm2Trig0ToTimer4Captsel
enumerator kINPUTMUX_LpFlexcomm2Trig1ToTimer4Captsel
enumerator kINPUTMUX_LpFlexcomm2Trig2ToTimer4Captsel
enumerator kINPUTMUX_LpFlexcomm3Trig0ToTimer4Captsel
enumerator kINPUTMUX_LpFlexcomm3Trig1ToTimer4Captsel
enumerator kINPUTMUX_LpFlexcomm3Trig2ToTimer4Captsel
enumerator kINPUTMUX_LpFlexcomm3Trig3ToTimer4Captsel
enumerator kINPUTMUX_Sai1TxSyncOutToTimer4Captsel
enumerator kINPUTMUX_Sai1RxSyncOutToTimer4Captsel

TIMER0 Trigger.

enumerator kINPUTMUX_CtimerInp0ToTimer0Trigger
enumerator kINPUTMUX_CtimerInp1ToTimer0Trigger
enumerator kINPUTMUX_CtimerInp2ToTimer0Trigger
enumerator kINPUTMUX_CtimerInp3ToTimer0Trigger
enumerator kINPUTMUX_CtimerInp4ToTimer0Trigger
enumerator kINPUTMUX_CtimerInp5ToTimer0Trigger
enumerator kINPUTMUX_CtimerInp6ToTimer0Trigger
enumerator kINPUTMUX_CtimerInp7ToTimer0Trigger
enumerator kINPUTMUX_CtimerInp8ToTimer0Trigger
enumerator kINPUTMUX_CtimerInp9ToTimer0Trigger
enumerator kINPUTMUX_CtimerInp10ToTimer0Trigger
enumerator kINPUTMUX_CtimerInp11ToTimer0Trigger
enumerator kINPUTMUX_CtimerInp12ToTimer0Trigger
enumerator kINPUTMUX_CtimerInp13ToTimer0Trigger
enumerator kINPUTMUX_CtimerInp14ToTimer0Trigger
enumerator kINPUTMUX_CtimerInp15ToTimer0Trigger
enumerator kINPUTMUX_CtimerInp16ToTimer0Trigger
enumerator kINPUTMUX_CtimerInp17ToTimer0Trigger
enumerator kINPUTMUX_CtimerInp18ToTimer0Trigger
enumerator kINPUTMUX_CtimerInp19ToTimer0Trigger
enumerator kINPUTMUX_Usb0StartOfFrameToTimer0Trigger
enumerator kINPUTMUX_Usb1StartOfFrameToTimer0Trigger
enumerator kINPUTMUX_DcdcBurstActiveToTimer0Trigger
enumerator kINPUTMUX_Sai0TxSyncOutToTimer0Trigger
enumerator kINPUTMUX_Sai0RxSyncOutToTimer0Trigger
enumerator kINPUTMUX_Adc0IrqToTimer0Trigger
enumerator kINPUTMUX_Adc1IrqToTimer0Trigger
enumerator kINPUTMUX_Cmp0OutToTimer0Trigger
enumerator kINPUTMUX_Cmp1OutToTimer0Trigger
enumerator kINPUTMUX_Cmp2OutToTimer0Trigger
enumerator kINPUTMUX_Pwm0A0Trig01ToTimer0Trigger
enumerator kINPUTMUX_Pwm0A1Trig01ToTimer0Trigger
enumerator kINPUTMUX_Pwm0A2Trig01ToTimer0Trigger
enumerator kINPUTMUX_Pwm0A3Trig01ToTimer0Trigger
enumerator kINPUTMUX_Pwm1A0Trig01ToTimer0Trigger
enumerator kINPUTMUX_Pwm1A1Trig01ToTimer0Trigger
enumerator kINPUTMUX_Pwm1A2Trig01ToTimer0Trigger
enumerator kINPUTMUX_Pwm1A3Trig01ToTimer0Trigger
enumerator kINPUTMUX_Qdc0CmpPosMatchToTimer0Trigger
enumerator kINPUTMUX_Qdc1CmpPosMatchToTimer0Trigger
enumerator kINPUTMUX_EvtgOut0AToTimer0Trigger
enumerator kINPUTMUX_EvtgOut0BToTimer0Trigger
enumerator kINPUTMUX_EvtgOut1AToTimer0Trigger
enumerator kINPUTMUX_EvtgOut1BToTimer0Trigger
enumerator kINPUTMUX_EvtgOut2AToTimer0Trigger
enumerator kINPUTMUX_EvtgOut2BToTimer0Trigger
enumerator kINPUTMUX_EvtgOut3AToTimer0Trigger
enumerator kINPUTMUX_EvtgOut3BToTimer0Trigger
enumerator kINPUTMUX_LpFlexcomm0Trig0ToTimer0Trigger
enumerator kINPUTMUX_LpFlexcomm0Trig1ToTimer0Trigger
enumerator kINPUTMUX_LpFlexcomm0Trig2ToTimer0Trigger
enumerator kINPUTMUX_LpFlexcomm1Trig0ToTimer0Trigger
enumerator kINPUTMUX_LpFlexcomm1Trig1ToTimer0Trigger
enumerator kINPUTMUX_LpFlexcomm1Trig2ToTimer0Trigger
enumerator kINPUTMUX_LpFlexcomm2Trig0ToTimer0Trigger
enumerator kINPUTMUX_LpFlexcomm2Trig1ToTimer0Trigger
enumerator kINPUTMUX_LpFlexcomm2Trig2ToTimer0Trigger
enumerator kINPUTMUX_LpFlexcomm3Trig0ToTimer0Trigger
enumerator kINPUTMUX_LpFlexcomm3Trig1ToTimer0Trigger
enumerator kINPUTMUX_LpFlexcomm3Trig2ToTimer0Trigger
enumerator kINPUTMUX_LpFlexcomm3Trig3ToTimer0Trigger
enumerator kINPUTMUX_Sai1TxSyncOutToTimer0Trigger
enumerator kINPUTMUX_Sai1RxSyncOutToTimer0Trigger

TIMER1 Trigger.

enumerator kINPUTMUX_CtimerInp0ToTimer1Trigger
enumerator kINPUTMUX_CtimerInp1ToTimer1Trigger
enumerator kINPUTMUX_CtimerInp2ToTimer1Trigger
enumerator kINPUTMUX_CtimerInp3ToTimer1Trigger
enumerator kINPUTMUX_CtimerInp4ToTimer1Trigger
enumerator kINPUTMUX_CtimerInp5ToTimer1Trigger
enumerator kINPUTMUX_CtimerInp6ToTimer1Trigger
enumerator kINPUTMUX_CtimerInp7ToTimer1Trigger
enumerator kINPUTMUX_CtimerInp8ToTimer1Trigger
enumerator kINPUTMUX_CtimerInp9ToTimer1Trigger
enumerator kINPUTMUX_CtimerInp10ToTimer1Trigger
enumerator kINPUTMUX_CtimerInp11ToTimer1Trigger
enumerator kINPUTMUX_CtimerInp12ToTimer1Trigger
enumerator kINPUTMUX_CtimerInp13ToTimer1Trigger
enumerator kINPUTMUX_CtimerInp14ToTimer1Trigger
enumerator kINPUTMUX_CtimerInp15ToTimer1Trigger
enumerator kINPUTMUX_CtimerInp16ToTimer1Trigger
enumerator kINPUTMUX_CtimerInp17ToTimer1Trigger
enumerator kINPUTMUX_CtimerInp18ToTimer1Trigger
enumerator kINPUTMUX_CtimerInp19ToTimer1Trigger
enumerator kINPUTMUX_Usb0StartOfFrameToTimer1Trigger
enumerator kINPUTMUX_Usb1StartOfFrameToTimer1Trigger
enumerator kINPUTMUX_DcdcBurstActiveToTimer1Trigger
enumerator kINPUTMUX_Sai0TxSyncOutToTimer1Trigger
enumerator kINPUTMUX_Sai0RxSyncOutToTimer1Trigger
enumerator kINPUTMUX_Adc0IrqToTimer1Trigger
enumerator kINPUTMUX_Adc1IrqToTimer1Trigger
enumerator kINPUTMUX_Cmp0OutToTimer1Trigger
enumerator kINPUTMUX_Cmp1OutToTimer1Trigger
enumerator kINPUTMUX_Cmp2OutToTimer1Trigger
enumerator kINPUTMUX_Pwm0A0Trig01ToTimer1Trigger
enumerator kINPUTMUX_Pwm0A1Trig01ToTimer1Trigger
enumerator kINPUTMUX_Pwm0A2Trig01ToTimer1Trigger
enumerator kINPUTMUX_Pwm0A3Trig01ToTimer1Trigger
enumerator kINPUTMUX_Pwm1A0Trig01ToTimer1Trigger
enumerator kINPUTMUX_Pwm1A1Trig01ToTimer1Trigger
enumerator kINPUTMUX_Pwm1A2Trig01ToTimer1Trigger
enumerator kINPUTMUX_Pwm1A3Trig01ToTimer1Trigger
enumerator kINPUTMUX_Qdc0CmpPosMatchToTimer1Trigger
enumerator kINPUTMUX_Qdc1CmpPosMatchToTimer1Trigger
enumerator kINPUTMUX_EvtgOut0AToTimer1Trigger
enumerator kINPUTMUX_EvtgOut0BToTimer1Trigger
enumerator kINPUTMUX_EvtgOut1AToTimer1Trigger
enumerator kINPUTMUX_EvtgOut1BToTimer1Trigger
enumerator kINPUTMUX_EvtgOut2AToTimer1Trigger
enumerator kINPUTMUX_EvtgOut2BToTimer1Trigger
enumerator kINPUTMUX_EvtgOut3AToTimer1Trigger
enumerator kINPUTMUX_EvtgOut3BToTimer1Trigger
enumerator kINPUTMUX_LpFlexcomm0Trig0ToTimer1Trigger
enumerator kINPUTMUX_LpFlexcomm0Trig1ToTimer1Trigger
enumerator kINPUTMUX_LpFlexcomm0Trig2ToTimer1Trigger
enumerator kINPUTMUX_LpFlexcomm1Trig0ToTimer1Trigger
enumerator kINPUTMUX_LpFlexcomm1Trig1ToTimer1Trigger
enumerator kINPUTMUX_LpFlexcomm1Trig2ToTimer1Trigger
enumerator kINPUTMUX_LpFlexcomm2Trig0ToTimer1Trigger
enumerator kINPUTMUX_LpFlexcomm2Trig1ToTimer1Trigger
enumerator kINPUTMUX_LpFlexcomm2Trig2ToTimer1Trigger
enumerator kINPUTMUX_LpFlexcomm3Trig0ToTimer1Trigger
enumerator kINPUTMUX_LpFlexcomm3Trig1ToTimer1Trigger
enumerator kINPUTMUX_LpFlexcomm3Trig2ToTimer1Trigger
enumerator kINPUTMUX_LpFlexcomm3Trig3ToTimer1Trigger
enumerator kINPUTMUX_Sai1TxSyncOutToTimer1Trigger
enumerator kINPUTMUX_Sai1RxSyncOutToTimer1Trigger

TIMER2 Trigger.

enumerator kINPUTMUX_CtimerInp0ToTimer2Trigger
enumerator kINPUTMUX_CtimerInp1ToTimer2Trigger
enumerator kINPUTMUX_CtimerInp2ToTimer2Trigger
enumerator kINPUTMUX_CtimerInp3ToTimer2Trigger
enumerator kINPUTMUX_CtimerInp4ToTimer2Trigger
enumerator kINPUTMUX_CtimerInp5ToTimer2Trigger
enumerator kINPUTMUX_CtimerInp6ToTimer2Trigger
enumerator kINPUTMUX_CtimerInp7ToTimer2Trigger
enumerator kINPUTMUX_CtimerInp8ToTimer2Trigger
enumerator kINPUTMUX_CtimerInp9ToTimer2Trigger
enumerator kINPUTMUX_CtimerInp10ToTimer2Trigger
enumerator kINPUTMUX_CtimerInp11ToTimer2Trigger
enumerator kINPUTMUX_CtimerInp12ToTimer2Trigger
enumerator kINPUTMUX_CtimerInp13ToTimer2Trigger
enumerator kINPUTMUX_CtimerInp14ToTimer2Trigger
enumerator kINPUTMUX_CtimerInp15ToTimer2Trigger
enumerator kINPUTMUX_CtimerInp16ToTimer2Trigger
enumerator kINPUTMUX_CtimerInp17ToTimer2Trigger
enumerator kINPUTMUX_CtimerInp18ToTimer2Trigger
enumerator kINPUTMUX_CtimerInp19ToTimer2Trigger
enumerator kINPUTMUX_Usb0StartOfFrameToTimer2Trigger
enumerator kINPUTMUX_Usb1StartOfFrameToTimer2Trigger
enumerator kINPUTMUX_DcdcBurstActiveToTimer2Trigger
enumerator kINPUTMUX_Sai0TxSyncOutToTimer2Trigger
enumerator kINPUTMUX_Sai0RxSyncOutToTimer2Trigger
enumerator kINPUTMUX_Adc0IrqToTimer2Trigger
enumerator kINPUTMUX_Adc1IrqToTimer2Trigger
enumerator kINPUTMUX_Cmp0OutToTimer2Trigger
enumerator kINPUTMUX_Cmp1OutToTimer2Trigger
enumerator kINPUTMUX_Cmp2OutToTimer2Trigger
enumerator kINPUTMUX_Pwm0A0Trig01ToTimer2Trigger
enumerator kINPUTMUX_Pwm0A1Trig01ToTimer2Trigger
enumerator kINPUTMUX_Pwm0A2Trig01ToTimer2Trigger
enumerator kINPUTMUX_Pwm0A3Trig01ToTimer2Trigger
enumerator kINPUTMUX_Pwm1A0Trig01ToTimer2Trigger
enumerator kINPUTMUX_Pwm1A1Trig01ToTimer2Trigger
enumerator kINPUTMUX_Pwm1A2Trig01ToTimer2Trigger
enumerator kINPUTMUX_Pwm1A3Trig01ToTimer2Trigger
enumerator kINPUTMUX_Qdc0CmpPosMatchToTimer2Trigger
enumerator kINPUTMUX_Qdc1CmpPosMatchToTimer2Trigger
enumerator kINPUTMUX_EvtgOut0AToTimer2Trigger
enumerator kINPUTMUX_EvtgOut0BToTimer2Trigger
enumerator kINPUTMUX_EvtgOut1AToTimer2Trigger
enumerator kINPUTMUX_EvtgOut1BToTimer2Trigger
enumerator kINPUTMUX_EvtgOut2AToTimer2Trigger
enumerator kINPUTMUX_EvtgOut2BToTimer2Trigger
enumerator kINPUTMUX_EvtgOut3AToTimer2Trigger
enumerator kINPUTMUX_EvtgOut3BToTimer2Trigger
enumerator kINPUTMUX_LpFlexcomm0Trig0ToTimer2Trigger
enumerator kINPUTMUX_LpFlexcomm0Trig1ToTimer2Trigger
enumerator kINPUTMUX_LpFlexcomm0Trig2ToTimer2Trigger
enumerator kINPUTMUX_LpFlexcomm1Trig0ToTimer2Trigger
enumerator kINPUTMUX_LpFlexcomm1Trig1ToTimer2Trigger
enumerator kINPUTMUX_LpFlexcomm1Trig2ToTimer2Trigger
enumerator kINPUTMUX_LpFlexcomm2Trig0ToTimer2Trigger
enumerator kINPUTMUX_LpFlexcomm2Trig1ToTimer2Trigger
enumerator kINPUTMUX_LpFlexcomm2Trig2ToTimer2Trigger
enumerator kINPUTMUX_LpFlexcomm3Trig0ToTimer2Trigger
enumerator kINPUTMUX_LpFlexcomm3Trig1ToTimer2Trigger
enumerator kINPUTMUX_LpFlexcomm3Trig2ToTimer2Trigger
enumerator kINPUTMUX_LpFlexcomm3Trig3ToTimer2Trigger
enumerator kINPUTMUX_Sai1TxSyncOutToTimer2Trigger
enumerator kINPUTMUX_Sai1RxSyncOutToTimer2Trigger

TIMER3 Trigger.

enumerator kINPUTMUX_CtimerInp0ToTimer3Trigger
enumerator kINPUTMUX_CtimerInp1ToTimer3Trigger
enumerator kINPUTMUX_CtimerInp2ToTimer3Trigger
enumerator kINPUTMUX_CtimerInp3ToTimer3Trigger
enumerator kINPUTMUX_CtimerInp4ToTimer3Trigger
enumerator kINPUTMUX_CtimerInp5ToTimer3Trigger
enumerator kINPUTMUX_CtimerInp6ToTimer3Trigger
enumerator kINPUTMUX_CtimerInp7ToTimer3Trigger
enumerator kINPUTMUX_CtimerInp8ToTimer3Trigger
enumerator kINPUTMUX_CtimerInp9ToTimer3Trigger
enumerator kINPUTMUX_CtimerInp10ToTimer3Trigger
enumerator kINPUTMUX_CtimerInp11ToTimer3Trigger
enumerator kINPUTMUX_CtimerInp12ToTimer3Trigger
enumerator kINPUTMUX_CtimerInp13ToTimer3Trigger
enumerator kINPUTMUX_CtimerInp14ToTimer3Trigger
enumerator kINPUTMUX_CtimerInp15ToTimer3Trigger
enumerator kINPUTMUX_CtimerInp16ToTimer3Trigger
enumerator kINPUTMUX_CtimerInp17ToTimer3Trigger
enumerator kINPUTMUX_CtimerInp18ToTimer3Trigger
enumerator kINPUTMUX_CtimerInp19ToTimer3Trigger
enumerator kINPUTMUX_Usb0StartOfFrameToTimer3Trigger
enumerator kINPUTMUX_Usb1StartOfFrameToTimer3Trigger
enumerator kINPUTMUX_DcdcBurstActiveToTimer3Trigger
enumerator kINPUTMUX_Sai0TxSyncOutToTimer3Trigger
enumerator kINPUTMUX_Sai0RxSyncOutToTimer3Trigger
enumerator kINPUTMUX_Adc0IrqToTimer3Trigger
enumerator kINPUTMUX_Adc1IrqToTimer3Trigger
enumerator kINPUTMUX_Cmp0OutToTimer3Trigger
enumerator kINPUTMUX_Cmp1OutToTimer3Trigger
enumerator kINPUTMUX_Cmp2OutToTimer3Trigger
enumerator kINPUTMUX_Pwm0A0Trig01ToTimer3Trigger
enumerator kINPUTMUX_Pwm0A1Trig01ToTimer3Trigger
enumerator kINPUTMUX_Pwm0A2Trig01ToTimer3Trigger
enumerator kINPUTMUX_Pwm0A3Trig01ToTimer3Trigger
enumerator kINPUTMUX_Pwm1A0Trig01ToTimer3Trigger
enumerator kINPUTMUX_Pwm1A1Trig01ToTimer3Trigger
enumerator kINPUTMUX_Pwm1A2Trig01ToTimer3Trigger
enumerator kINPUTMUX_Pwm1A3Trig01ToTimer3Trigger
enumerator kINPUTMUX_Qdc0CmpPosMatchToTimer3Trigger
enumerator kINPUTMUX_Qdc1CmpPosMatchToTimer3Trigger
enumerator kINPUTMUX_EvtgOut0AToTimer3Trigger
enumerator kINPUTMUX_EvtgOut0BToTimer3Trigger
enumerator kINPUTMUX_EvtgOut1AToTimer3Trigger
enumerator kINPUTMUX_EvtgOut1BToTimer3Trigger
enumerator kINPUTMUX_EvtgOut2AToTimer3Trigger
enumerator kINPUTMUX_EvtgOut2BToTimer3Trigger
enumerator kINPUTMUX_EvtgOut3AToTimer3Trigger
enumerator kINPUTMUX_EvtgOut3BToTimer3Trigger
enumerator kINPUTMUX_LpFlexcomm0Trig0ToTimer3Trigger
enumerator kINPUTMUX_LpFlexcomm0Trig1ToTimer3Trigger
enumerator kINPUTMUX_LpFlexcomm0Trig2ToTimer3Trigger
enumerator kINPUTMUX_LpFlexcomm1Trig0ToTimer3Trigger
enumerator kINPUTMUX_LpFlexcomm1Trig1ToTimer3Trigger
enumerator kINPUTMUX_LpFlexcomm1Trig2ToTimer3Trigger
enumerator kINPUTMUX_LpFlexcomm2Trig0ToTimer3Trigger
enumerator kINPUTMUX_LpFlexcomm2Trig1ToTimer3Trigger
enumerator kINPUTMUX_LpFlexcomm2Trig2ToTimer3Trigger
enumerator kINPUTMUX_LpFlexcomm3Trig0ToTimer3Trigger
enumerator kINPUTMUX_LpFlexcomm3Trig1ToTimer3Trigger
enumerator kINPUTMUX_LpFlexcomm3Trig2ToTimer3Trigger
enumerator kINPUTMUX_LpFlexcomm3Trig3ToTimer3Trigger
enumerator kINPUTMUX_Sai1TxSyncOutToTimer3Trigger
enumerator kINPUTMUX_Sai1RxSyncOutToTimer3Trigger

TIMER4 Trigger.

enumerator kINPUTMUX_CtimerInp0ToTimer4Trigger
enumerator kINPUTMUX_CtimerInp1ToTimer4Trigger
enumerator kINPUTMUX_CtimerInp2ToTimer4Trigger
enumerator kINPUTMUX_CtimerInp3ToTimer4Trigger
enumerator kINPUTMUX_CtimerInp4ToTimer4Trigger
enumerator kINPUTMUX_CtimerInp5ToTimer4Trigger
enumerator kINPUTMUX_CtimerInp6ToTimer4Trigger
enumerator kINPUTMUX_CtimerInp7ToTimer4Trigger
enumerator kINPUTMUX_CtimerInp8ToTimer4Trigger
enumerator kINPUTMUX_CtimerInp9ToTimer4Trigger
enumerator kINPUTMUX_CtimerInp10ToTimer4Trigger
enumerator kINPUTMUX_CtimerInp11ToTimer4Trigger
enumerator kINPUTMUX_CtimerInp12ToTimer4Trigger
enumerator kINPUTMUX_CtimerInp13ToTimer4Trigger
enumerator kINPUTMUX_CtimerInp14ToTimer4Trigger
enumerator kINPUTMUX_CtimerInp15ToTimer4Trigger
enumerator kINPUTMUX_CtimerInp16ToTimer4Trigger
enumerator kINPUTMUX_CtimerInp17ToTimer4Trigger
enumerator kINPUTMUX_CtimerInp18ToTimer4Trigger
enumerator kINPUTMUX_CtimerInp19ToTimer4Trigger
enumerator kINPUTMUX_Usb0StartOfFrameToTimer4Trigger
enumerator kINPUTMUX_Usb1StartOfFrameToTimer4Trigger
enumerator kINPUTMUX_DcdcBurstActiveToTimer4Trigger
enumerator kINPUTMUX_Sai0TxSyncOutToTimer4Trigger
enumerator kINPUTMUX_Sai0RxSyncOutToTimer4Trigger
enumerator kINPUTMUX_Adc0IrqToTimer4Trigger
enumerator kINPUTMUX_Adc1IrqToTimer4Trigger
enumerator kINPUTMUX_Cmp0OutToTimer4Trigger
enumerator kINPUTMUX_Cmp1OutToTimer4Trigger
enumerator kINPUTMUX_Cmp2OutToTimer4Trigger
enumerator kINPUTMUX_Pwm0A0Trig01ToTimer4Trigger
enumerator kINPUTMUX_Pwm0A1Trig01ToTimer4Trigger
enumerator kINPUTMUX_Pwm0A2Trig01ToTimer4Trigger
enumerator kINPUTMUX_Pwm0A3Trig01ToTimer4Trigger
enumerator kINPUTMUX_Pwm1A0Trig01ToTimer4Trigger
enumerator kINPUTMUX_Pwm1A1Trig01ToTimer4Trigger
enumerator kINPUTMUX_Pwm1A2Trig01ToTimer4Trigger
enumerator kINPUTMUX_Pwm1A3Trig01ToTimer4Trigger
enumerator kINPUTMUX_Qdc0CmpPosMatchToTimer4Trigger
enumerator kINPUTMUX_Qdc1CmpPosMatchToTimer4Trigger
enumerator kINPUTMUX_EvtgOut0AToTimer4Trigger
enumerator kINPUTMUX_EvtgOut0BToTimer4Trigger
enumerator kINPUTMUX_EvtgOut1AToTimer4Trigger
enumerator kINPUTMUX_EvtgOut1BToTimer4Trigger
enumerator kINPUTMUX_EvtgOut2AToTimer4Trigger
enumerator kINPUTMUX_EvtgOut2BToTimer4Trigger
enumerator kINPUTMUX_EvtgOut3AToTimer4Trigger
enumerator kINPUTMUX_EvtgOut3BToTimer4Trigger
enumerator kINPUTMUX_LpFlexcomm0Trig0ToTimer4Trigger
enumerator kINPUTMUX_LpFlexcomm0Trig1ToTimer4Trigger
enumerator kINPUTMUX_LpFlexcomm0Trig2ToTimer4Trigger
enumerator kINPUTMUX_LpFlexcomm1Trig0ToTimer4Trigger
enumerator kINPUTMUX_LpFlexcomm1Trig1ToTimer4Trigger
enumerator kINPUTMUX_LpFlexcomm1Trig2ToTimer4Trigger
enumerator kINPUTMUX_LpFlexcomm2Trig0ToTimer4Trigger
enumerator kINPUTMUX_LpFlexcomm2Trig1ToTimer4Trigger
enumerator kINPUTMUX_LpFlexcomm2Trig2ToTimer4Trigger
enumerator kINPUTMUX_LpFlexcomm3Trig0ToTimer4Trigger
enumerator kINPUTMUX_LpFlexcomm3Trig1ToTimer4Trigger
enumerator kINPUTMUX_LpFlexcomm3Trig2ToTimer4Trigger
enumerator kINPUTMUX_LpFlexcomm3Trig3ToTimer4Trigger
enumerator kINPUTMUX_Sai1TxSyncOutToTimer4Trigger
enumerator kINPUTMUX_Sai1RxSyncOutToTimer4Trigger

SMARTDMA arch B inputs.

enumerator kINPUTMUX_FlexioToSmartDma
enumerator kINPUTMUX_GpioPort0Pin0ToSmartDma
enumerator kINPUTMUX_GpioPort0Pin1ToSmartDma
enumerator kINPUTMUX_GpioPort0Pin2ToSmartDma
enumerator kINPUTMUX_GpioPort0Pin3ToSmartDma
enumerator kINPUTMUX_GpioPort0Pin4ToSmartDma
enumerator kINPUTMUX_GpioPort0Pin5ToSmartDma
enumerator kINPUTMUX_GpioPort0Pin6ToSmartDma
enumerator kINPUTMUX_GpioPort0Pin7ToSmartDma
enumerator kINPUTMUX_GpioPort0Pin8ToSmartDma
enumerator kINPUTMUX_GpioPort0Pin9ToSmartDma
enumerator kINPUTMUX_GpioPort0Pin10ToSmartDma
enumerator kINPUTMUX_GpioPort0Pin11ToSmartDma
enumerator kINPUTMUX_GpioPort0Pin12ToSmartDma
enumerator kINPUTMUX_GpioPort0Pin13ToSmartDma
enumerator kINPUTMUX_GpioPort0Pin14ToSmartDma
enumerator kINPUTMUX_GpioPort0Pin15ToSmartDma
enumerator kINPUTMUX_SctOut8ToSmartDma
enumerator kINPUTMUX_SctOut9ToSmartDma
enumerator kINPUTMUX_MrtCh0IrqToSmartDma
enumerator kINPUTMUX_MrtCh1IrqToSmartDma
enumerator kINPUTMUX_Ctimer4M3ToSmartDma
enumerator kINPUTMUX_Ctimer4M2ToSmartDma
enumerator kINPUTMUX_Ctimer3M3ToSmartDma
enumerator kINPUTMUX_Ctimer3M2ToSmartDma
enumerator kINPUTMUX_Ctimer1M3ToSmartDma
enumerator kINPUTMUX_Ctimer1M2ToSmartDma
enumerator kINPUTMUX_UtickIrqToSmartDma
enumerator kINPUTMUX_Wdt0IrqToSmartDma
enumerator kINPUTMUX_Adc0IrqToSmartDma
enumerator kINPUTMUX_Cmp0IrqToSmartDma
enumerator kINPUTMUX_LpFlexcomm7IrqToSmartDma
enumerator kINPUTMUX_LpFlexcomm6IrqToSmartDma
enumerator kINPUTMUX_LpFlexcomm5IrqToSmartDma
enumerator kINPUTMUX_LpFlexcomm4IrqToSmartDma
enumerator kINPUTMUX_LpFlexcomm3IrqToSmartDma
enumerator kINPUTMUX_LpFlexcomm2IrqToSmartDma
enumerator kINPUTMUX_LpFlexcomm1IrqToSmartDma
enumerator kINPUTMUX_LpFlexcomm0IrqToSmartDma
enumerator kINPUTMUX_Dma0IrqToSmartDma
enumerator kINPUTMUX_Dma1IrqToSmartDma
enumerator kINPUTMUX_SysIrqToSmartDma
enumerator kINPUTMUX_RtcComboIrqToSmartDma
enumerator kINPUTMUX_ArmTxevToSmartDma
enumerator kINPUTMUX_GpioIntBmatchToSmartDma
enumerator kINPUTMUX_Cmp0OutToSmartDma
enumerator kINPUTMUX_Usb0StartOfFrameIrqToSmartDma
enumerator kINPUTMUX_Usb1StartOfFrameIrqToSmartDma
enumerator kINPUTMUX_OsEventTimerIrqToSmartDma
enumerator kINPUTMUX_Adc1IrqToSmartDma
enumerator kINPUTMUX_Cmp012IrqToSmartDma
enumerator kINPUTMUX_Dac0IrqToSmartDma
enumerator kINPUTMUX_Dac12IrqToSmartDma
enumerator kINPUTMUX_Pwm0IrqToSmartDma
enumerator kINPUTMUX_Pwm1IrqToSmartDma
enumerator kINPUTMUX_Qdc0IrqToSmartDma
enumerator kINPUTMUX_Qdc1IrqToSmartDma
enumerator kINPUTMUX_EvtgOut0AToSmartDma
enumerator kINPUTMUX_EvtgOut1AToSmartDma
enumerator kINPUTMUX_Gpio1PinEventTrig0ToSmartDma
enumerator kINPUTMUX_Gpio1PinEventTrig1ToSmartDma
enumerator kINPUTMUX_Gpio2PinEventTrig0ToSmartDma
enumerator kINPUTMUX_Gpio2PinEventTrig1ToSmartDma
enumerator kINPUTMUX_Gpio3PinEventTrig0ToSmartDma
enumerator kINPUTMUX_Gpio3PinEventTrig1ToSmartDma

Pin interrupt select.

enumerator kINPUTMUX_GpioPort0Pin0ToPintsel
enumerator kINPUTMUX_GpioPort0Pin1ToPintsel
enumerator kINPUTMUX_GpioPort0Pin2ToPintsel
enumerator kINPUTMUX_GpioPort0Pin3ToPintsel
enumerator kINPUTMUX_GpioPort0Pin4ToPintsel
enumerator kINPUTMUX_GpioPort0Pin5ToPintsel
enumerator kINPUTMUX_GpioPort0Pin6ToPintsel
enumerator kINPUTMUX_GpioPort0Pin7ToPintsel
enumerator kINPUTMUX_GpioPort0Pin8ToPintsel
enumerator kINPUTMUX_GpioPort0Pin9ToPintsel
enumerator kINPUTMUX_GpioPort0Pin10ToPintsel
enumerator kINPUTMUX_GpioPort0Pin11ToPintsel
enumerator kINPUTMUX_GpioPort0Pin12ToPintsel
enumerator kINPUTMUX_GpioPort0Pin13ToPintsel
enumerator kINPUTMUX_GpioPort0Pin14ToPintsel
enumerator kINPUTMUX_GpioPort0Pin15ToPintsel
enumerator kINPUTMUX_GpioPort0Pin16ToPintsel
enumerator kINPUTMUX_GpioPort0Pin17ToPintsel
enumerator kINPUTMUX_GpioPort0Pin18ToPintsel
enumerator kINPUTMUX_GpioPort0Pin19ToPintsel
enumerator kINPUTMUX_GpioPort0Pin20ToPintsel
enumerator kINPUTMUX_GpioPort0Pin21ToPintsel
enumerator kINPUTMUX_GpioPort0Pin22ToPintsel
enumerator kINPUTMUX_GpioPort0Pin23ToPintsel
enumerator kINPUTMUX_GpioPort0Pin24ToPintsel
enumerator kINPUTMUX_GpioPort0Pin25ToPintsel
enumerator kINPUTMUX_GpioPort0Pin26ToPintsel
enumerator kINPUTMUX_GpioPort0Pin27ToPintsel
enumerator kINPUTMUX_GpioPort0Pin28ToPintsel
enumerator kINPUTMUX_GpioPort0Pin29ToPintsel
enumerator kINPUTMUX_GpioPort0Pin30ToPintsel
enumerator kINPUTMUX_GpioPort0Pin31ToPintsel
enumerator kINPUTMUX_GpioPort1Pin0ToPintsel
enumerator kINPUTMUX_GpioPort1Pin1ToPintsel
enumerator kINPUTMUX_GpioPort1Pin2ToPintsel
enumerator kINPUTMUX_GpioPort1Pin3ToPintsel
enumerator kINPUTMUX_GpioPort1Pin4ToPintsel
enumerator kINPUTMUX_GpioPort1Pin5ToPintsel
enumerator kINPUTMUX_GpioPort1Pin6ToPintsel
enumerator kINPUTMUX_GpioPort1Pin7ToPintsel
enumerator kINPUTMUX_GpioPort1Pin8ToPintsel
enumerator kINPUTMUX_GpioPort1Pin9ToPintsel
enumerator kINPUTMUX_GpioPort1Pin10ToPintsel
enumerator kINPUTMUX_GpioPort1Pin11ToPintsel
enumerator kINPUTMUX_GpioPort1Pin12ToPintsel
enumerator kINPUTMUX_GpioPort1Pin13ToPintsel
enumerator kINPUTMUX_GpioPort1Pin14ToPintsel
enumerator kINPUTMUX_GpioPort1Pin15ToPintsel
enumerator kINPUTMUX_GpioPort1Pin16ToPintsel
enumerator kINPUTMUX_GpioPort1Pin17ToPintsel
enumerator kINPUTMUX_GpioPort1Pin18ToPintsel
enumerator kINPUTMUX_GpioPort1Pin19ToPintsel
enumerator kINPUTMUX_GpioPort1Pin20ToPintsel
enumerator kINPUTMUX_GpioPort1Pin21ToPintsel
enumerator kINPUTMUX_GpioPort1Pin22ToPintsel
enumerator kINPUTMUX_GpioPort1Pin23ToPintsel
enumerator kINPUTMUX_GpioPort1Pin30ToPintsel
enumerator kINPUTMUX_GpioPort1Pin31ToPintsel

Selection for frequency measurement reference clock.

enumerator kINPUTMUX_ClkInToFreqmeasRef
enumerator kINPUTMUX_Fro12MToFreqmeasRef
enumerator kINPUTMUX_Fro144MToFreqmeasRef
enumerator kINPUTMUX_Osc32KToFreqmeasRef
enumerator kINPUTMUX_CpuAhbClkToFreqmeasRef
enumerator kINPUTMUX_FreqmeClkIn0ToFreqmeasRef
enumerator kINPUTMUX_FreqmeClkIn1ToFreqmeasRef
enumerator kINPUTMUX_EvtgOut0AToFreqmeasRef
enumerator kINPUTMUX_EvtgOut1AToFreqmeasRef

Selection for frequency measurement target clock.

enumerator kINPUTMUX_ClkInToFreqmeasTar
enumerator kINPUTMUX_Fro12MToFreqmeasTar
enumerator kINPUTMUX_Fro144MToFreqmeasTar
enumerator kINPUTMUX_Osc32KToFreqmeasTar
enumerator kINPUTMUX_CpuAhbClkToFreqmeasTar
enumerator kINPUTMUX_FreqmeClkIn0ToFreqmeasTar
enumerator kINPUTMUX_FreqmeClkIn1ToFreqmeasTar
enumerator kINPUTMUX_EvtgOut0AToFreqmeasTar
enumerator kINPUTMUX_EvtgOut1AToFreqmeasTar

Cmp0 Trigger.

enumerator kINPUTMUX_PinInt0ToCmp0Trigger
enumerator kINPUTMUX_PinInt6ToCmp0Trigger
enumerator kINPUTMUX_SctOut4ToCmp0Trigger
enumerator kINPUTMUX_SctOut5ToCmp0Trigger
enumerator kINPUTMUX_SctOut6ToCmp0Trigger
enumerator kINPUTMUX_Ctimer0M3ToCmp0Trigger
enumerator kINPUTMUX_Ctimer1M3ToCmp0Trigger
enumerator kINPUTMUX_Ctimer2M3ToCmp0Trigger
enumerator kINPUTMUX_Ctimer0M0ToCmp0Trigger
enumerator kINPUTMUX_Ctimer4M0ToCmp0Trigger
enumerator kINPUTMUX_ArmTxevToCmp0Trigger
enumerator kINPUTMUX_GpioIntBmatchToCmp0Trigger
enumerator kINPUTMUX_Adc0Tcomp0ToCmp0Trigger
enumerator kINPUTMUX_Adc1Tcomp0ToCmp0Trigger
enumerator kINPUTMUX_Pwm0A0Trig01ToCmp0Trigger
enumerator kINPUTMUX_Pwm0A1Trig01ToCmp0Trigger
enumerator kINPUTMUX_Pwm0A2Trig01ToCmp0Trigger
enumerator kINPUTMUX_Pwm0A3Trig01ToCmp0Trigger
enumerator kINPUTMUX_Pwm1A0Trig01ToCmp0Trigger
enumerator kINPUTMUX_Pwm1A1Trig01ToCmp0Trigger
enumerator kINPUTMUX_Pwm1A2Trig01ToCmp0Trigger
enumerator kINPUTMUX_Pwm1A3Trig01ToCmp0Trigger
enumerator kINPUTMUX_Qdc0CmpPosMatchToCmp0Trigger
enumerator kINPUTMUX_Qdc1CmpPosMatchToCmp0Trigger
enumerator kINPUTMUX_EvtgOut0AToCmp0Trigger
enumerator kINPUTMUX_EvtgOut0BToCmp0Trigger
enumerator kINPUTMUX_EvtgOut1AToCmp0Trigger
enumerator kINPUTMUX_EvtgOut1BToCmp0Trigger
enumerator kINPUTMUX_EvtgOut2AToCmp0Trigger
enumerator kINPUTMUX_EvtgOut2BToCmp0Trigger
enumerator kINPUTMUX_EvtgOut3AToCmp0Trigger
enumerator kINPUTMUX_EvtgOut3BToCmp0Trigger
enumerator kINPUTMUX_Lptmr0ToCmp0Trigger
enumerator kINPUTMUX_Lptmr1ToCmp0Trigger
enumerator kINPUTMUX_Gpio2PinEventTrig0ToCmp0Trigger
enumerator kINPUTMUX_Gpio2PinEventTrig1ToCmp0Trigger
enumerator kINPUTMUX_Gpio3PinEventTrig0ToCmp0Trigger
enumerator kINPUTMUX_Gpio3PinEventTrig1ToCmp0Trigger

Cmp1 Trigger.

enumerator kINPUTMUX_PinInt0ToCmp1Trigger
enumerator kINPUTMUX_PinInt7ToCmp1Trigger
enumerator kINPUTMUX_SctOut4ToCmp1Trigger
enumerator kINPUTMUX_SctOut5ToCmp1Trigger
enumerator kINPUTMUX_SctOut7ToCmp1Trigger
enumerator kINPUTMUX_Ctimer0M3ToCmp1Trigger
enumerator kINPUTMUX_Ctimer1M3ToCmp1Trigger
enumerator kINPUTMUX_Ctimer2M3ToCmp1Trigger
enumerator kINPUTMUX_Ctimer3M1ToCmp1Trigger
enumerator kINPUTMUX_Ctimer4M1ToCmp1Trigger
enumerator kINPUTMUX_ArmTxevToCmp1Trigger
enumerator kINPUTMUX_GpioIntBmatchToCmp1Trigger
enumerator kINPUTMUX_Adc0Tcomp1ToCmp1Trigger
enumerator kINPUTMUX_Adc1Tcomp1ToCmp1Trigger
enumerator kINPUTMUX_Pwm0A0Trig01ToCmp1Trigger
enumerator kINPUTMUX_Pwm0A1Trig01ToCmp1Trigger
enumerator kINPUTMUX_Pwm0A2Trig01ToCmp1Trigger
enumerator kINPUTMUX_Pwm0A3Trig01ToCmp1Trigger
enumerator kINPUTMUX_Pwm1A0Trig01ToCmp1Trigger
enumerator kINPUTMUX_Pwm1A1Trig01ToCmp1Trigger
enumerator kINPUTMUX_Pwm1A2Trig01ToCmp1Trigger
enumerator kINPUTMUX_Pwm1A3Trig01ToCmp1Trigger
enumerator kINPUTMUX_Qdc0CmpPosMatchToCmp1Trigger
enumerator kINPUTMUX_Qdc1CmpPosMatchToCmp1Trigger
enumerator kINPUTMUX_EvtgOut0AToCmp1Trigger
enumerator kINPUTMUX_EvtgOut0BToCmp1Trigger
enumerator kINPUTMUX_EvtgOut1AToCmp1Trigger
enumerator kINPUTMUX_EvtgOut1BToCmp1Trigger
enumerator kINPUTMUX_EvtgOut2AToCmp1Trigger
enumerator kINPUTMUX_EvtgOut2BToCmp1Trigger
enumerator kINPUTMUX_EvtgOut3AToCmp1Trigger
enumerator kINPUTMUX_EvtgOut3BToCmp1Trigger
enumerator kINPUTMUX_Lptmr0ToCmp1Trigger
enumerator kINPUTMUX_Lptmr1ToCmp1Trigger
enumerator kINPUTMUX_Gpio2PinEventTrig0ToCmp1Trigger
enumerator kINPUTMUX_Gpio2PinEventTrig1ToCmp1Trigger
enumerator kINPUTMUX_Gpio3PinEventTrig0ToCmp1Trigger
enumerator kINPUTMUX_Gpio3PinEventTrig1ToCmp1Trigger

Cmp2 Trigger.

enumerator kINPUTMUX_PinInt0ToCmp2Trigger
enumerator kINPUTMUX_PinInt4ToCmp2Trigger
enumerator kINPUTMUX_SctOut4ToCmp2Trigger
enumerator kINPUTMUX_SctOut5ToCmp2Trigger
enumerator kINPUTMUX_SctOut8ToCmp2Trigger
enumerator kINPUTMUX_Ctimer0M3ToCmp2Trigger
enumerator kINPUTMUX_Ctimer1M3ToCmp2Trigger
enumerator kINPUTMUX_Ctimer2M3ToCmp2Trigger
enumerator kINPUTMUX_Ctimer3M2ToCmp2Trigger
enumerator kINPUTMUX_Ctimer4M2ToCmp2Trigger
enumerator kINPUTMUX_ArmTxevToCmp2Trigger
enumerator kINPUTMUX_GpioIntBmatchToCmp2Trigger
enumerator kINPUTMUX_Adc0Tcomp2ToCmp2Trigger
enumerator kINPUTMUX_Adc1Tcomp2ToCmp2Trigger
enumerator kINPUTMUX_Pwm0A0Trig01ToCmp2Trigger
enumerator kINPUTMUX_Pwm0A1Trig01ToCmp2Trigger
enumerator kINPUTMUX_Pwm0A2Trig01ToCmp2Trigger
enumerator kINPUTMUX_Pwm0A3Trig01ToCmp2Trigger
enumerator kINPUTMUX_Pwm1A0Trig01ToCmp2Trigger
enumerator kINPUTMUX_Pwm1A1Trig01ToCmp2Trigger
enumerator kINPUTMUX_Pwm1A2Trig01ToCmp2Trigger
enumerator kINPUTMUX_Pwm1A3Trig01ToCmp2Trigger
enumerator kINPUTMUX_Qdc0CmpPosMatchToCmp2Trigger
enumerator kINPUTMUX_Qdc1CmpPosMatchToCmp2Trigger
enumerator kINPUTMUX_EvtgOut0AToCmp2Trigger
enumerator kINPUTMUX_EvtgOut0BToCmp2Trigger
enumerator kINPUTMUX_EvtgOut1AToCmp2Trigger
enumerator kINPUTMUX_EvtgOut1BToCmp2Trigger
enumerator kINPUTMUX_EvtgOut2AToCmp2Trigger
enumerator kINPUTMUX_EvtgOut2BToCmp2Trigger
enumerator kINPUTMUX_EvtgOut3AToCmp2Trigger
enumerator kINPUTMUX_EvtgOut3BToCmp2Trigger
enumerator kINPUTMUX_Lptmr0ToCmp2Trigger
enumerator kINPUTMUX_Lptmr1ToCmp2Trigger
enumerator kINPUTMUX_Gpio2PinEventTrig0ToCmp2Trigger
enumerator kINPUTMUX_Gpio2PinEventTrig1ToCmp2Trigger
enumerator kINPUTMUX_Gpio3PinEventTrig0ToCmp2Trigger
enumerator kINPUTMUX_Gpio3PinEventTrig1ToCmp2Trigger

Adc0 Trigger.

enumerator kINPUTMUX_PinInt0ToAdc0Trigger
enumerator kINPUTMUX_PinInt1ToAdc0Trigger
enumerator kINPUTMUX_SctOut4ToAdc0Trigger
enumerator kINPUTMUX_SctOut5ToAdc0Trigger
enumerator kINPUTMUX_SctOut9ToAdc0Trigger
enumerator kINPUTMUX_Ctimer0M3ToAdc0Trigger
enumerator kINPUTMUX_Ctimer1M3ToAdc0Trigger
enumerator kINPUTMUX_Ctimer2M3ToAdc0Trigger
enumerator kINPUTMUX_Ctimer3M3ToAdc0Trigger
enumerator kINPUTMUX_Ctimer4M3ToAdc0Trigger
enumerator kINPUTMUX_DcdcBurstDoneTrigToAdc0Trigger
enumerator kINPUTMUX_ArmTxevToAdc0Trigger
enumerator kINPUTMUX_GpioIntBmatchToAdc0Trigger
enumerator kINPUTMUX_Adc0Tcomp0ToAdc0Trigger
enumerator kINPUTMUX_Adc0Tcomp1ToAdc0Trigger
enumerator kINPUTMUX_Adc0Tcomp2ToAdc0Trigger
enumerator kINPUTMUX_Adc0Tcomp3ToAdc0Trigger
enumerator kINPUTMUX_Adc1Tcomp0ToAdc0Trigger
enumerator kINPUTMUX_Adc1Tcomp1ToAdc0Trigger
enumerator kINPUTMUX_Adc1Tcomp2ToAdc0Trigger
enumerator kINPUTMUX_Adc1Tcomp3ToAdc0Trigger
enumerator kINPUTMUX_Cmp0OutToAdc0Trigger
enumerator kINPUTMUX_Cmp1OutToAdc0Trigger
enumerator kINPUTMUX_Cmp2OutToAdc0Trigger
enumerator kINPUTMUX_Pwm0A0Trig0ToAdc0Trigger
enumerator kINPUTMUX_Pwm0A0Trig1ToAdc0Trigger
enumerator kINPUTMUX_Pwm0A1Trig0ToAdc0Trigger
enumerator kINPUTMUX_Pwm0A1Trig1ToAdc0Trigger
enumerator kINPUTMUX_Pwm0A2Trig0ToAdc0Trigger
enumerator kINPUTMUX_Pwm0A2Trig1ToAdc0Trigger
enumerator kINPUTMUX_Pwm0A3Trig0ToAdc0Trigger
enumerator kINPUTMUX_Pwm0A3Trig1ToAdc0Trigger
enumerator kINPUTMUX_Pwm1A0Trig0ToAdc0Trigger
enumerator kINPUTMUX_Pwm1A0Trig1ToAdc0Trigger
enumerator kINPUTMUX_Pwm1A1Trig0ToAdc0Trigger
enumerator kINPUTMUX_Pwm1A1Trig1ToAdc0Trigger
enumerator kINPUTMUX_Pwm1A2Trig0ToAdc0Trigger
enumerator kINPUTMUX_Pwm1A2Trig1ToAdc0Trigger
enumerator kINPUTMUX_Pwm1A3Trig0ToAdc0Trigger
enumerator kINPUTMUX_Pwm1A3Trig1ToAdc0Trigger
enumerator kINPUTMUX_Qdc0CmpPosMatchToAdc0Trigger
enumerator kINPUTMUX_Qdc1CmpPosMatchToAdc0Trigger
enumerator kINPUTMUX_EvtgOut0AToAdc0Trigger
enumerator kINPUTMUX_EvtgOut0BToAdc0Trigger
enumerator kINPUTMUX_EvtgOut1AToAdc0Trigger
enumerator kINPUTMUX_EvtgOut1BToAdc0Trigger
enumerator kINPUTMUX_EvtgOut2AToAdc0Trigger
enumerator kINPUTMUX_EvtgOut2BToAdc0Trigger
enumerator kINPUTMUX_EvtgOut3AToAdc0Trigger
enumerator kINPUTMUX_EvtgOut3BToAdc0Trigger
enumerator kINPUTMUX_Lptmr0ToAdc0Trigger
enumerator kINPUTMUX_Lptmr1ToAdc0Trigger
enumerator kINPUTMUX_FlexioCh0ToAdc0Trigger
enumerator kINPUTMUX_FlexioCh1ToAdc0Trigger
enumerator kINPUTMUX_FlexioCh2ToAdc0Trigger
enumerator kINPUTMUX_FlexioCh3ToAdc0Trigger
enumerator kINPUTMUX_SincFilterCh0ToAdc0Trigger
enumerator kINPUTMUX_SincFilterCh1ToAdc0Trigger
enumerator kINPUTMUX_SincFilterCh2ToAdc0Trigger
enumerator kINPUTMUX_SincFilterCh3ToAdc0Trigger
enumerator kINPUTMUX_SincFilterCh4ToAdc0Trigger
enumerator kINPUTMUX_Gpio2PinEventTrig0ToAdc0Trigger
enumerator kINPUTMUX_Gpio2PinEventTrig1ToAdc0Trigger
enumerator kINPUTMUX_Gpio3PinEventTrig0ToAdc0Trigger
enumerator kINPUTMUX_Gpio3PinEventTrig1ToAdc0Trigger
enumerator kINPUTMUX_WuuToAdc0Trigger

Adc1 Trigger.

enumerator kINPUTMUX_PinInt0ToAdc1Trigger
enumerator kINPUTMUX_PinInt2ToAdc1Trigger
enumerator kINPUTMUX_SctOut4ToAdc1Trigger
enumerator kINPUTMUX_SctOut5ToAdc1Trigger
enumerator kINPUTMUX_SctOut3ToAdc1Trigger
enumerator kINPUTMUX_Ctimer0M3ToAdc1Trigger
enumerator kINPUTMUX_Ctimer1M3ToAdc1Trigger
enumerator kINPUTMUX_Ctimer2M3ToAdc1Trigger
enumerator kINPUTMUX_Ctimer3M2ToAdc1Trigger
enumerator kINPUTMUX_Ctimer4M1ToAdc1Trigger
enumerator kINPUTMUX_DcdcBurstDoneTrigToAdc1Trigger
enumerator kINPUTMUX_ArmTxevToAdc1Trigger
enumerator kINPUTMUX_GpioIntBmatchToAdc1Trigger
enumerator kINPUTMUX_Adc0Tcomp0ToAdc1Trigger
enumerator kINPUTMUX_Adc0Tcomp1ToAdc1Trigger
enumerator kINPUTMUX_Adc0Tcomp2ToAdc1Trigger
enumerator kINPUTMUX_Adc0Tcomp3ToAdc1Trigger
enumerator kINPUTMUX_Adc1Tcomp0ToAdc1Trigger
enumerator kINPUTMUX_Adc1Tcomp1ToAdc1Trigger
enumerator kINPUTMUX_Adc1Tcomp2ToAdc1Trigger
enumerator kINPUTMUX_Adc1Tcomp3ToAdc1Trigger
enumerator kINPUTMUX_Cmp0OutToAdc1Trigger
enumerator kINPUTMUX_Cmp1OutToAdc1Trigger
enumerator kINPUTMUX_Cmp2OutToAdc1Trigger
enumerator kINPUTMUX_Pwm0A0Trig0ToAdc1Trigger
enumerator kINPUTMUX_Pwm0A0Trig1ToAdc1Trigger
enumerator kINPUTMUX_Pwm0A1Trig0ToAdc1Trigger
enumerator kINPUTMUX_Pwm0A1Trig1ToAdc1Trigger
enumerator kINPUTMUX_Pwm0A2Trig0ToAdc1Trigger
enumerator kINPUTMUX_Pwm0A2Trig1ToAdc1Trigger
enumerator kINPUTMUX_Pwm0A3Trig0ToAdc1Trigger
enumerator kINPUTMUX_Pwm0A3Trig1ToAdc1Trigger
enumerator kINPUTMUX_Pwm1A0Trig0ToAdc1Trigger
enumerator kINPUTMUX_Pwm1A0Trig1ToAdc1Trigger
enumerator kINPUTMUX_Pwm1A1Trig0ToAdc1Trigger
enumerator kINPUTMUX_Pwm1A1Trig1ToAdc1Trigger
enumerator kINPUTMUX_Pwm1A2Trig0ToAdc1Trigger
enumerator kINPUTMUX_Pwm1A2Trig1ToAdc1Trigger
enumerator kINPUTMUX_Pwm1A3Trig0ToAdc1Trigger
enumerator kINPUTMUX_Pwm1A3Trig1ToAdc1Trigger
enumerator kINPUTMUX_Qdc0CmpPosMatchToAdc1Trigger
enumerator kINPUTMUX_Qdc1CmpPosMatchToAdc1Trigger
enumerator kINPUTMUX_EvtgOut0AToAdc1Trigger
enumerator kINPUTMUX_EvtgOut0BToAdc1Trigger
enumerator kINPUTMUX_EvtgOut1AToAdc1Trigger
enumerator kINPUTMUX_EvtgOut1BToAdc1Trigger
enumerator kINPUTMUX_EvtgOut2AToAdc1Trigger
enumerator kINPUTMUX_EvtgOut2BToAdc1Trigger
enumerator kINPUTMUX_EvtgOut3AToAdc1Trigger
enumerator kINPUTMUX_EvtgOut3BToAdc1Trigger
enumerator kINPUTMUX_Lptmr0ToAdc1Trigger
enumerator kINPUTMUX_Lptmr1ToAdc1Trigger
enumerator kINPUTMUX_FlexioCh0ToAdc1Trigger
enumerator kINPUTMUX_FlexioCh1ToAdc1Trigger
enumerator kINPUTMUX_FlexioCh2ToAdc1Trigger
enumerator kINPUTMUX_FlexioCh3ToAdc1Trigger
enumerator kINPUTMUX_SincFilterCh0ToAdc1Trigger
enumerator kINPUTMUX_SincFilterCh1ToAdc1Trigger
enumerator kINPUTMUX_SincFilterCh2ToAdc1Trigger
enumerator kINPUTMUX_SincFilterCh3ToAdc1Trigger
enumerator kINPUTMUX_SincFilterCh4ToAdc1Trigger
enumerator kINPUTMUX_Gpio2PinEventTrig0ToAdc1Trigger
enumerator kINPUTMUX_Gpio2PinEventTrig1ToAdc1Trigger
enumerator kINPUTMUX_Gpio3PinEventTrig0ToAdc1Trigger
enumerator kINPUTMUX_Gpio3PinEventTrig1ToAdc1Trigger
enumerator kINPUTMUX_WuuToAdc1Trigger

Dac0 Trigger.

enumerator kINPUTMUX_PinInt0ToDac0Trigger
enumerator kINPUTMUX_PinInt3ToDac0Trigger
enumerator kINPUTMUX_SctOut4ToDac0Trigger
enumerator kINPUTMUX_SctOut5ToDac0Trigger
enumerator kINPUTMUX_SctOut0ToDac0Trigger
enumerator kINPUTMUX_Ctimer0M3ToDac0Trigger
enumerator kINPUTMUX_Ctimer1M3ToDac0Trigger
enumerator kINPUTMUX_Ctimer2M3ToDac0Trigger
enumerator kINPUTMUX_Ctimer2M0ToDac0Trigger
enumerator kINPUTMUX_Ctimer3M0ToDac0Trigger
enumerator kINPUTMUX_ArmTxevToDac0Trigger
enumerator kINPUTMUX_GpioIntBmatchToDac0Trigger
enumerator kINPUTMUX_Adc0Tcomp0ToDac0Trigger
enumerator kINPUTMUX_Adc1Tcomp0ToDac0Trigger
enumerator kINPUTMUX_Cmp0OutToDac0Trigger
enumerator kINPUTMUX_Cmp1OutToDac0Trigger
enumerator kINPUTMUX_Cmp2OutToDac0Trigger
enumerator kINPUTMUX_EvtgOut0AToDac0Trigger
enumerator kINPUTMUX_EvtgOut0BToDac0Trigger
enumerator kINPUTMUX_EvtgOut1AToDac0Trigger
enumerator kINPUTMUX_EvtgOut1BToDac0Trigger
enumerator kINPUTMUX_EvtgOut2AToDac0Trigger
enumerator kINPUTMUX_EvtgOut2BToDac0Trigger
enumerator kINPUTMUX_EvtgOut3AToDac0Trigger
enumerator kINPUTMUX_EvtgOut3BToDac0Trigger
enumerator kINPUTMUX_Lptmr0ToDac0Trigger
enumerator kINPUTMUX_Lptmr1ToDac0Trigger
enumerator kINPUTMUX_Gpio2PinEventTrig0ToDac0Trigger
enumerator kINPUTMUX_Gpio2PinEventTrig1ToDac0Trigger
enumerator kINPUTMUX_Gpio3PinEventTrig0ToDac0Trigger
enumerator kINPUTMUX_Gpio3PinEventTrig1ToDac0Trigger

Dac1 Trigger.

enumerator kINPUTMUX_PinInt0ToDac1Trigger
enumerator kINPUTMUX_PinInt4ToDac1Trigger
enumerator kINPUTMUX_SctOut4ToDac1Trigger
enumerator kINPUTMUX_SctOut5ToDac1Trigger
enumerator kINPUTMUX_SctOut1ToDac1Trigger
enumerator kINPUTMUX_Ctimer0M3ToDac1Trigger
enumerator kINPUTMUX_Ctimer1M3ToDac1Trigger
enumerator kINPUTMUX_Ctimer2M3ToDac1Trigger
enumerator kINPUTMUX_Ctimer2M1ToDac1Trigger
enumerator kINPUTMUX_Ctimer3M1ToDac1Trigger
enumerator kINPUTMUX_ArmTxevToDac1Trigger
enumerator kINPUTMUX_GpioIntBmatchToDac1Trigger
enumerator kINPUTMUX_Adc0Tcomp1ToDac1Trigger
enumerator kINPUTMUX_Adc1Tcomp1ToDac1Trigger
enumerator kINPUTMUX_Cmp0OutToDac1Trigger
enumerator kINPUTMUX_Cmp1OutToDac1Trigger
enumerator kINPUTMUX_Cmp2OutToDac1Trigger
enumerator kINPUTMUX_EvtgOut0AToDac1Trigger
enumerator kINPUTMUX_EvtgOut0BToDac1Trigger
enumerator kINPUTMUX_EvtgOut1AToDac1Trigger
enumerator kINPUTMUX_EvtgOut1BToDac1Trigger
enumerator kINPUTMUX_EvtgOut2AToDac1Trigger
enumerator kINPUTMUX_EvtgOut2BToDac1Trigger
enumerator kINPUTMUX_EvtgOut3AToDac1Trigger
enumerator kINPUTMUX_EvtgOut3BToDac1Trigger
enumerator kINPUTMUX_Lptmr0ToDac1Trigger
enumerator kINPUTMUX_Lptmr1ToDac1Trigger
enumerator kINPUTMUX_Gpio2PinEventTrig0ToDac1Trigger
enumerator kINPUTMUX_Gpio2PinEventTrig1ToDac1Trigger
enumerator kINPUTMUX_Gpio3PinEventTrig0ToDac1Trigger
enumerator kINPUTMUX_Gpio3PinEventTrig1ToDac1Trigger

Dac2 Trigger.

enumerator kINPUTMUX_PinInt0ToDac2Trigger
enumerator kINPUTMUX_PinInt5ToDac2Trigger
enumerator kINPUTMUX_SctOut4ToDac2Trigger
enumerator kINPUTMUX_SctOut5ToDac2Trigger
enumerator kINPUTMUX_SctOut2ToDac2Trigger
enumerator kINPUTMUX_Ctimer0M3ToDac2Trigger
enumerator kINPUTMUX_Ctimer1M3ToDac2Trigger
enumerator kINPUTMUX_Ctimer2M3ToDac2Trigger
enumerator kINPUTMUX_Ctimer2M2ToDac2Trigger
enumerator kINPUTMUX_Ctimer3M2ToDac2Trigger
enumerator kINPUTMUX_ArmTxevToDac2Trigger
enumerator kINPUTMUX_GpioIntBmatchToDac2Trigger
enumerator kINPUTMUX_Adc0Tcomp2ToDac2Trigger
enumerator kINPUTMUX_Adc1Tcomp2ToDac2Trigger
enumerator kINPUTMUX_Cmp0OutToDac2Trigger
enumerator kINPUTMUX_Cmp1OutToDac2Trigger
enumerator kINPUTMUX_Cmp2OutToDac2Trigger
enumerator kINPUTMUX_EvtgOut0AToDac2Trigger
enumerator kINPUTMUX_EvtgOut0BToDac2Trigger
enumerator kINPUTMUX_EvtgOut1AToDac2Trigger
enumerator kINPUTMUX_EvtgOut1BToDac2Trigger
enumerator kINPUTMUX_EvtgOut2AToDac2Trigger
enumerator kINPUTMUX_EvtgOut2BToDac2Trigger
enumerator kINPUTMUX_EvtgOut3AToDac2Trigger
enumerator kINPUTMUX_EvtgOut3BToDac2Trigger
enumerator kINPUTMUX_Lptmr0ToDac2Trigger
enumerator kINPUTMUX_Lptmr1ToDac2Trigger
enumerator kINPUTMUX_Gpio2PinEventTrig0ToDac2Trigger
enumerator kINPUTMUX_Gpio2PinEventTrig1ToDac2Trigger
enumerator kINPUTMUX_Gpio3PinEventTrig0ToDac2Trigger
enumerator kINPUTMUX_Gpio3PinEventTrig1ToDac2Trigger

QDC0 Trigger Input Connections.

enumerator kINPUTMUX_PinInt0ToQdc0Trigger
enumerator kINPUTMUX_PinInt4ToQdc0Trigger
enumerator kINPUTMUX_SctOut4ToQdc0Trigger
enumerator kINPUTMUX_SctOut5ToQdc0Trigger
enumerator kINPUTMUX_SctOut1ToQdc0Trigger
enumerator kINPUTMUX_Ctimer0M3ToQdc0Trigger
enumerator kINPUTMUX_Ctimer1M3ToQdc0Trigger
enumerator kINPUTMUX_Ctimer2M3ToQdc0Trigger
enumerator kINPUTMUX_Ctimer1M0ToQdc0Trigger
enumerator kINPUTMUX_Ctimer3M0ToQdc0Trigger
enumerator kINPUTMUX_ArmTxevToQdc0Trigger
enumerator kINPUTMUX_GpioIntBmatchToQdc0Trigger
enumerator kINPUTMUX_Adc0Tcomp0ToQdc0Trigger
enumerator kINPUTMUX_Adc0Tcomp1ToQdc0Trigger
enumerator kINPUTMUX_Adc0Tcomp2ToQdc0Trigger
enumerator kINPUTMUX_Adc0Tcomp3ToQdc0Trigger
enumerator kINPUTMUX_Adc1Tcomp0ToQdc0Trigger
enumerator kINPUTMUX_Adc1Tcomp1ToQdc0Trigger
enumerator kINPUTMUX_Adc1Tcomp2ToQdc0Trigger
enumerator kINPUTMUX_Adc1Tcomp3ToQdc0Trigger
enumerator kINPUTMUX_Cmp0OutToQdc0Trigger
enumerator kINPUTMUX_Cmp1OutToQdc0Trigger
enumerator kINPUTMUX_Cmp2OutToQdc0Trigger
enumerator kINPUTMUX_Pwm1A0Trig0ToQdc0Trigger
enumerator kINPUTMUX_Pwm1A0Trig1ToQdc0Trigger
enumerator kINPUTMUX_Pwm1A1Trig0ToQdc0Trigger
enumerator kINPUTMUX_Pwm1A1Trig1ToQdc0Trigger
enumerator kINPUTMUX_Pwm1A2Trig0ToQdc0Trigger
enumerator kINPUTMUX_Pwm1A2Trig1ToQdc0Trigger
enumerator kINPUTMUX_Pwm1A3Trig0ToQdc0Trigger
enumerator kINPUTMUX_Pwm1A3Trig1ToQdc0Trigger
enumerator kINPUTMUX_Qdc0CmpPosMatchToQdc0Trigger
enumerator kINPUTMUX_Qdc1CmpPosMatchToQdc0Trigger
enumerator kINPUTMUX_EvtgOut0AToQdc0Trigger
enumerator kINPUTMUX_EvtgOut0BToQdc0Trigger
enumerator kINPUTMUX_EvtgOut1AToQdc0Trigger
enumerator kINPUTMUX_EvtgOut1BToQdc0Trigger
enumerator kINPUTMUX_EvtgOut2AToQdc0Trigger
enumerator kINPUTMUX_EvtgOut2BToQdc0Trigger
enumerator kINPUTMUX_EvtgOut3AToQdc0Trigger
enumerator kINPUTMUX_EvtgOut3BToQdc0Trigger
enumerator kINPUTMUX_TrigIn0ToQdc0Trigger
enumerator kINPUTMUX_TrigIn1ToQdc0Trigger
enumerator kINPUTMUX_TrigIn2ToQdc0Trigger
enumerator kINPUTMUX_TrigIn3ToQdc0Trigger
enumerator kINPUTMUX_TrigIn4ToQdc0Trigger
enumerator kINPUTMUX_TrigIn5ToQdc0Trigger
enumerator kINPUTMUX_TrigIn6ToQdc0Trigger
enumerator kINPUTMUX_TrigIn7ToQdc0Trigger
enumerator kINPUTMUX_TrigIn8ToQdc0Trigger
enumerator kINPUTMUX_TrigIn9ToQdc0Trigger

QDC0 Home Input Connections.

enumerator kINPUTMUX_PinInt0ToQdc0Home
enumerator kINPUTMUX_PinInt4ToQdc0Home
enumerator kINPUTMUX_SctOut4ToQdc0Home
enumerator kINPUTMUX_SctOut5ToQdc0Home
enumerator kINPUTMUX_SctOut1ToQdc0Home
enumerator kINPUTMUX_Ctimer0M3ToQdc0Home
enumerator kINPUTMUX_Ctimer1M3ToQdc0Home
enumerator kINPUTMUX_Ctimer2M3ToQdc0Home
enumerator kINPUTMUX_Ctimer1M0ToQdc0Home
enumerator kINPUTMUX_Ctimer3M0ToQdc0Home
enumerator kINPUTMUX_ArmTxevToQdc0Home
enumerator kINPUTMUX_GpioIntBmatchToQdc0Home
enumerator kINPUTMUX_Adc0Tcomp0ToQdc0Home
enumerator kINPUTMUX_Adc0Tcomp1ToQdc0Home
enumerator kINPUTMUX_Adc0Tcomp2ToQdc0Home
enumerator kINPUTMUX_Adc0Tcomp3ToQdc0Home
enumerator kINPUTMUX_Adc1Tcomp0ToQdc0Home
enumerator kINPUTMUX_Adc1Tcomp1ToQdc0Home
enumerator kINPUTMUX_Adc1Tcomp2ToQdc0Home
enumerator kINPUTMUX_Adc1Tcomp3ToQdc0Home
enumerator kINPUTMUX_Cmp0OutToQdc0Home
enumerator kINPUTMUX_Cmp1OutToQdc0Home
enumerator kINPUTMUX_Cmp2OutToQdc0Home
enumerator kINPUTMUX_Pwm1A0Trig0ToQdc0Home
enumerator kINPUTMUX_Pwm1A0Trig1ToQdc0Home
enumerator kINPUTMUX_Pwm1A1Trig0ToQdc0Home
enumerator kINPUTMUX_Pwm1A1Trig1ToQdc0Home
enumerator kINPUTMUX_Pwm1A2Trig0ToQdc0Home
enumerator kINPUTMUX_Pwm1A2Trig1ToQdc0Home
enumerator kINPUTMUX_Pwm1A3Trig0ToQdc0Home
enumerator kINPUTMUX_Pwm1A3Trig1ToQdc0Home
enumerator kINPUTMUX_Qdc0CmpPosMatchToQdc0Home
enumerator kINPUTMUX_Qdc1CmpPosMatchToQdc0Home
enumerator kINPUTMUX_EvtgOut0AToQdc0Home
enumerator kINPUTMUX_EvtgOut0BToQdc0Home
enumerator kINPUTMUX_EvtgOut1AToQdc0Home
enumerator kINPUTMUX_EvtgOut1BToQdc0Home
enumerator kINPUTMUX_EvtgOut2AToQdc0Home
enumerator kINPUTMUX_EvtgOut2BToQdc0Home
enumerator kINPUTMUX_EvtgOut3AToQdc0Home
enumerator kINPUTMUX_EvtgOut3BToQdc0Home
enumerator kINPUTMUX_TrigIn0ToQdc0Home
enumerator kINPUTMUX_TrigIn1ToQdc0Home
enumerator kINPUTMUX_TrigIn2ToQdc0Home
enumerator kINPUTMUX_TrigIn3ToQdc0Home
enumerator kINPUTMUX_TrigIn4ToQdc0Home
enumerator kINPUTMUX_TrigIn5ToQdc0Home
enumerator kINPUTMUX_TrigIn6ToQdc0Home
enumerator kINPUTMUX_TrigIn7ToQdc0Home
enumerator kINPUTMUX_TrigIn8ToQdc0Home
enumerator kINPUTMUX_TrigIn9ToQdc0Home

QDC0 Index Input Connections.

enumerator kINPUTMUX_PinInt0ToQdc0Index
enumerator kINPUTMUX_PinInt4ToQdc0Index
enumerator kINPUTMUX_SctOut4ToQdc0Index
enumerator kINPUTMUX_SctOut5ToQdc0Index
enumerator kINPUTMUX_SctOut1ToQdc0Index
enumerator kINPUTMUX_Ctimer0M3ToQdc0Index
enumerator kINPUTMUX_Ctimer1M3ToQdc0Index
enumerator kINPUTMUX_Ctimer2M3ToQdc0Index
enumerator kINPUTMUX_Ctimer1M0ToQdc0Index
enumerator kINPUTMUX_Ctimer3M0ToQdc0Index
enumerator kINPUTMUX_ArmTxevToQdc0Index
enumerator kINPUTMUX_GpioIntBmatchToQdc0Index
enumerator kINPUTMUX_Adc0Tcomp0ToQdc0Index
enumerator kINPUTMUX_Adc0Tcomp1ToQdc0Index
enumerator kINPUTMUX_Adc0Tcomp2ToQdc0Index
enumerator kINPUTMUX_Adc0Tcomp3ToQdc0Index
enumerator kINPUTMUX_Adc1Tcomp0ToQdc0Index
enumerator kINPUTMUX_Adc1Tcomp1ToQdc0Index
enumerator kINPUTMUX_Adc1Tcomp2ToQdc0Index
enumerator kINPUTMUX_Adc1Tcomp3ToQdc0Index
enumerator kINPUTMUX_Cmp0OutToQdc0Index
enumerator kINPUTMUX_Cmp1OutToQdc0Index
enumerator kINPUTMUX_Cmp2OutToQdc0Index
enumerator kINPUTMUX_Pwm1A0Trig0ToQdc0Index
enumerator kINPUTMUX_Pwm1A0Trig1ToQdc0Index
enumerator kINPUTMUX_Pwm1A1Trig0ToQdc0Index
enumerator kINPUTMUX_Pwm1A1Trig1ToQdc0Index
enumerator kINPUTMUX_Pwm1A2Trig0ToQdc0Index
enumerator kINPUTMUX_Pwm1A2Trig1ToQdc0Index
enumerator kINPUTMUX_Pwm1A3Trig0ToQdc0Index
enumerator kINPUTMUX_Pwm1A3Trig1ToQdc0Index
enumerator kINPUTMUX_Qdc0CmpPosMatchToQdc0Index
enumerator kINPUTMUX_Qdc1CmpPosMatchToQdc0Index
enumerator kINPUTMUX_EvtgOut0AToQdc0Index
enumerator kINPUTMUX_EvtgOut0BToQdc0Index
enumerator kINPUTMUX_EvtgOut1AToQdc0Index
enumerator kINPUTMUX_EvtgOut1BToQdc0Index
enumerator kINPUTMUX_EvtgOut2AToQdc0Index
enumerator kINPUTMUX_EvtgOut2BToQdc0Index
enumerator kINPUTMUX_EvtgOut3AToQdc0Index
enumerator kINPUTMUX_EvtgOut3BToQdc0Index
enumerator kINPUTMUX_TrigIn0ToQdc0Index
enumerator kINPUTMUX_TrigIn1ToQdc0Index
enumerator kINPUTMUX_TrigIn2ToQdc0Index
enumerator kINPUTMUX_TrigIn3ToQdc0Index
enumerator kINPUTMUX_TrigIn4ToQdc0Index
enumerator kINPUTMUX_TrigIn5ToQdc0Index
enumerator kINPUTMUX_TrigIn6ToQdc0Index
enumerator kINPUTMUX_TrigIn7ToQdc0Index
enumerator kINPUTMUX_TrigIn8ToQdc0Index
enumerator kINPUTMUX_TrigIn9ToQdc0Index

QDC0 Phaseb Input Connections.

enumerator kINPUTMUX_PinInt0ToQdc0Phaseb
enumerator kINPUTMUX_PinInt4ToQdc0Phaseb
enumerator kINPUTMUX_SctOut4ToQdc0Phaseb
enumerator kINPUTMUX_SctOut5ToQdc0Phaseb
enumerator kINPUTMUX_SctOut1ToQdc0Phaseb
enumerator kINPUTMUX_Ctimer0M3ToQdc0Phaseb
enumerator kINPUTMUX_Ctimer1M3ToQdc0Phaseb
enumerator kINPUTMUX_Ctimer2M3ToQdc0Phaseb
enumerator kINPUTMUX_Ctimer1M0ToQdc0Phaseb
enumerator kINPUTMUX_Ctimer3M0ToQdc0Phaseb
enumerator kINPUTMUX_ArmTxevToQdc0Phaseb
enumerator kINPUTMUX_GpioIntBmatchToQdc0Phaseb
enumerator kINPUTMUX_Adc0Tcomp0ToQdc0Phaseb
enumerator kINPUTMUX_Adc0Tcomp1ToQdc0Phaseb
enumerator kINPUTMUX_Adc0Tcomp2ToQdc0Phaseb
enumerator kINPUTMUX_Adc0Tcomp3ToQdc0Phaseb
enumerator kINPUTMUX_Adc1Tcomp0ToQdc0Phaseb
enumerator kINPUTMUX_Adc1Tcomp1ToQdc0Phaseb
enumerator kINPUTMUX_Adc1Tcomp2ToQdc0Phaseb
enumerator kINPUTMUX_Adc1Tcomp3ToQdc0Phaseb
enumerator kINPUTMUX_Cmp0OutToQdc0Phaseb
enumerator kINPUTMUX_Cmp1OutToQdc0Phaseb
enumerator kINPUTMUX_Cmp2OutToQdc0Phaseb
enumerator kINPUTMUX_Pwm1A0Trig0ToQdc0Phaseb
enumerator kINPUTMUX_Pwm1A0Trig1ToQdc0Phaseb
enumerator kINPUTMUX_Pwm1A1Trig0ToQdc0Phaseb
enumerator kINPUTMUX_Pwm1A1Trig1ToQdc0Phaseb
enumerator kINPUTMUX_Pwm1A2Trig0ToQdc0Phaseb
enumerator kINPUTMUX_Pwm1A2Trig1ToQdc0Phaseb
enumerator kINPUTMUX_Pwm1A3Trig0ToQdc0Phaseb
enumerator kINPUTMUX_Pwm1A3Trig1ToQdc0Phaseb
enumerator kINPUTMUX_Qdc0CmpPosMatchToQdc0Phaseb
enumerator kINPUTMUX_Qdc1CmpPosMatchToQdc0Phaseb
enumerator kINPUTMUX_EvtgOut0AToQdc0Phaseb
enumerator kINPUTMUX_EvtgOut0BToQdc0Phaseb
enumerator kINPUTMUX_EvtgOut1AToQdc0Phaseb
enumerator kINPUTMUX_EvtgOut1BToQdc0Phaseb
enumerator kINPUTMUX_EvtgOut2AToQdc0Phaseb
enumerator kINPUTMUX_EvtgOut2BToQdc0Phaseb
enumerator kINPUTMUX_EvtgOut3AToQdc0Phaseb
enumerator kINPUTMUX_EvtgOut3BToQdc0Phaseb
enumerator kINPUTMUX_TrigIn0ToQdc0Phaseb
enumerator kINPUTMUX_TrigIn1ToQdc0Phaseb
enumerator kINPUTMUX_TrigIn2ToQdc0Phaseb
enumerator kINPUTMUX_TrigIn3ToQdc0Phaseb
enumerator kINPUTMUX_TrigIn4ToQdc0Phaseb
enumerator kINPUTMUX_TrigIn5ToQdc0Phaseb
enumerator kINPUTMUX_TrigIn6ToQdc0Phaseb
enumerator kINPUTMUX_TrigIn7ToQdc0Phaseb
enumerator kINPUTMUX_TrigIn8ToQdc0Phaseb
enumerator kINPUTMUX_TrigIn9ToQdc0Phaseb

QDC0 Phasea Input Connections.

enumerator kINPUTMUX_PinInt0ToQdc0Phasea
enumerator kINPUTMUX_PinInt4ToQdc0Phasea
enumerator kINPUTMUX_SctOut4ToQdc0Phasea
enumerator kINPUTMUX_SctOut5ToQdc0Phasea
enumerator kINPUTMUX_SctOut1ToQdc0Phasea
enumerator kINPUTMUX_Ctimer0M3ToQdc0Phasea
enumerator kINPUTMUX_Ctimer1M3ToQdc0Phasea
enumerator kINPUTMUX_Ctimer2M3ToQdc0Phasea
enumerator kINPUTMUX_Ctimer1M0ToQdc0Phasea
enumerator kINPUTMUX_Ctimer3M0ToQdc0Phasea
enumerator kINPUTMUX_ArmTxevToQdc0Phasea
enumerator kINPUTMUX_GpioIntBmatchToQdc0Phasea
enumerator kINPUTMUX_Adc0Tcomp0ToQdc0Phasea
enumerator kINPUTMUX_Adc0Tcomp1ToQdc0Phasea
enumerator kINPUTMUX_Adc0Tcomp2ToQdc0Phasea
enumerator kINPUTMUX_Adc0Tcomp3ToQdc0Phasea
enumerator kINPUTMUX_Adc1Tcomp0ToQdc0Phasea
enumerator kINPUTMUX_Adc1Tcomp1ToQdc0Phasea
enumerator kINPUTMUX_Adc1Tcomp2ToQdc0Phasea
enumerator kINPUTMUX_Adc1Tcomp3ToQdc0Phasea
enumerator kINPUTMUX_Cmp0OutToQdc0Phasea
enumerator kINPUTMUX_Cmp1OutToQdc0Phasea
enumerator kINPUTMUX_Cmp2OutToQdc0Phasea
enumerator kINPUTMUX_Pwm1A0Trig0ToQdc0Phasea
enumerator kINPUTMUX_Pwm1A0Trig1ToQdc0Phasea
enumerator kINPUTMUX_Pwm1A1Trig0ToQdc0Phasea
enumerator kINPUTMUX_Pwm1A1Trig1ToQdc0Phasea
enumerator kINPUTMUX_Pwm1A2Trig0ToQdc0Phasea
enumerator kINPUTMUX_Pwm1A2Trig1ToQdc0Phasea
enumerator kINPUTMUX_Pwm1A3Trig0ToQdc0Phasea
enumerator kINPUTMUX_Pwm1A3Trig1ToQdc0Phasea
enumerator kINPUTMUX_Qdc0CmpPosMatchToQdc0Phasea
enumerator kINPUTMUX_Qdc1CmpPosMatchToQdc0Phasea
enumerator kINPUTMUX_EvtgOut0AToQdc0Phasea
enumerator kINPUTMUX_EvtgOut0BToQdc0Phasea
enumerator kINPUTMUX_EvtgOut1AToQdc0Phasea
enumerator kINPUTMUX_EvtgOut1BToQdc0Phasea
enumerator kINPUTMUX_EvtgOut2AToQdc0Phasea
enumerator kINPUTMUX_EvtgOut2BToQdc0Phasea
enumerator kINPUTMUX_EvtgOut3AToQdc0Phasea
enumerator kINPUTMUX_EvtgOut3BToQdc0Phasea
enumerator kINPUTMUX_TrigIn0ToQdc0Phasea
enumerator kINPUTMUX_TrigIn1ToQdc0Phasea
enumerator kINPUTMUX_TrigIn2ToQdc0Phasea
enumerator kINPUTMUX_TrigIn3ToQdc0Phasea
enumerator kINPUTMUX_TrigIn4ToQdc0Phasea
enumerator kINPUTMUX_TrigIn5ToQdc0Phasea
enumerator kINPUTMUX_TrigIn6ToQdc0Phasea
enumerator kINPUTMUX_TrigIn7ToQdc0Phasea
enumerator kINPUTMUX_TrigIn8ToQdc0Phasea
enumerator kINPUTMUX_TrigIn9ToQdc0Phasea

QDC1 Trigger Input Connections.

enumerator kINPUTMUX_PinInt0ToQdc1Trigger
enumerator kINPUTMUX_PinInt4ToQdc1Trigger
enumerator kINPUTMUX_SctOut4ToQdc1Trigger
enumerator kINPUTMUX_SctOut5ToQdc1Trigger
enumerator kINPUTMUX_SctOut1ToQdc1Trigger
enumerator kINPUTMUX_Ctimer0M3ToQdc1Trigger
enumerator kINPUTMUX_Ctimer1M3ToQdc1Trigger
enumerator kINPUTMUX_Ctimer2M3ToQdc1Trigger
enumerator kINPUTMUX_Ctimer1M0ToQdc1Trigger
enumerator kINPUTMUX_Ctimer3M0ToQdc1Trigger
enumerator kINPUTMUX_ArmTxevToQdc1Trigger
enumerator kINPUTMUX_GpioIntBmatchToQdc1Trigger
enumerator kINPUTMUX_Adc0Tcomp0ToQdc1Trigger
enumerator kINPUTMUX_Adc0Tcomp1ToQdc1Trigger
enumerator kINPUTMUX_Adc0Tcomp2ToQdc1Trigger
enumerator kINPUTMUX_Adc0Tcomp3ToQdc1Trigger
enumerator kINPUTMUX_Adc1Tcomp0ToQdc1Trigger
enumerator kINPUTMUX_Adc1Tcomp1ToQdc1Trigger
enumerator kINPUTMUX_Adc1Tcomp2ToQdc1Trigger
enumerator kINPUTMUX_Adc1Tcomp3ToQdc1Trigger
enumerator kINPUTMUX_Cmp0OutToQdc1Trigger
enumerator kINPUTMUX_Cmp1OutToQdc1Trigger
enumerator kINPUTMUX_Cmp2OutToQdc1Trigger
enumerator kINPUTMUX_Pwm1A0Trig0ToQdc1Trigger
enumerator kINPUTMUX_Pwm1A0Trig1ToQdc1Trigger
enumerator kINPUTMUX_Pwm1A1Trig0ToQdc1Trigger
enumerator kINPUTMUX_Pwm1A1Trig1ToQdc1Trigger
enumerator kINPUTMUX_Pwm1A2Trig0ToQdc1Trigger
enumerator kINPUTMUX_Pwm1A2Trig1ToQdc1Trigger
enumerator kINPUTMUX_Pwm1A3Trig0ToQdc1Trigger
enumerator kINPUTMUX_Pwm1A3Trig1ToQdc1Trigger
enumerator kINPUTMUX_Qdc0CmpPosMatchToQdc1Trigger
enumerator kINPUTMUX_Qdc1CmpPosMatchToQdc1Trigger
enumerator kINPUTMUX_EvtgOut0AToQdc1Trigger
enumerator kINPUTMUX_EvtgOut0BToQdc1Trigger
enumerator kINPUTMUX_EvtgOut1AToQdc1Trigger
enumerator kINPUTMUX_EvtgOut1BToQdc1Trigger
enumerator kINPUTMUX_EvtgOut2AToQdc1Trigger
enumerator kINPUTMUX_EvtgOut2BToQdc1Trigger
enumerator kINPUTMUX_EvtgOut3AToQdc1Trigger
enumerator kINPUTMUX_EvtgOut3BToQdc1Trigger
enumerator kINPUTMUX_TrigIn0ToQdc1Trigger
enumerator kINPUTMUX_TrigIn1ToQdc1Trigger
enumerator kINPUTMUX_TrigIn2ToQdc1Trigger
enumerator kINPUTMUX_TrigIn3ToQdc1Trigger
enumerator kINPUTMUX_TrigIn4ToQdc1Trigger
enumerator kINPUTMUX_TrigIn5ToQdc1Trigger
enumerator kINPUTMUX_TrigIn6ToQdc1Trigger
enumerator kINPUTMUX_TrigIn7ToQdc1Trigger
enumerator kINPUTMUX_TrigIn8ToQdc1Trigger
enumerator kINPUTMUX_TrigIn9ToQdc1Trigger

QDC1 Home Input Connections.

enumerator kINPUTMUX_PinInt0ToQdc1Home
enumerator kINPUTMUX_PinInt4ToQdc1Home
enumerator kINPUTMUX_SctOut4ToQdc1Home
enumerator kINPUTMUX_SctOut5ToQdc1Home
enumerator kINPUTMUX_SctOut1ToQdc1Home
enumerator kINPUTMUX_Ctimer0M3ToQdc1Home
enumerator kINPUTMUX_Ctimer1M3ToQdc1Home
enumerator kINPUTMUX_Ctimer2M3ToQdc1Home
enumerator kINPUTMUX_Ctimer1M0ToQdc1Home
enumerator kINPUTMUX_Ctimer3M0ToQdc1Home
enumerator kINPUTMUX_ArmTxevToQdc1Home
enumerator kINPUTMUX_GpioIntBmatchToQdc1Home
enumerator kINPUTMUX_Adc0Tcomp0ToQdc1Home
enumerator kINPUTMUX_Adc0Tcomp1ToQdc1Home
enumerator kINPUTMUX_Adc0Tcomp2ToQdc1Home
enumerator kINPUTMUX_Adc0Tcomp3ToQdc1Home
enumerator kINPUTMUX_Adc1Tcomp0ToQdc1Home
enumerator kINPUTMUX_Adc1Tcomp1ToQdc1Home
enumerator kINPUTMUX_Adc1Tcomp2ToQdc1Home
enumerator kINPUTMUX_Adc1Tcomp3ToQdc1Home
enumerator kINPUTMUX_Cmp0OutToQdc1Home
enumerator kINPUTMUX_Cmp1OutToQdc1Home
enumerator kINPUTMUX_Cmp2OutToQdc1Home
enumerator kINPUTMUX_Pwm1A0Trig0ToQdc1Home
enumerator kINPUTMUX_Pwm1A0Trig1ToQdc1Home
enumerator kINPUTMUX_Pwm1A1Trig0ToQdc1Home
enumerator kINPUTMUX_Pwm1A1Trig1ToQdc1Home
enumerator kINPUTMUX_Pwm1A2Trig0ToQdc1Home
enumerator kINPUTMUX_Pwm1A2Trig1ToQdc1Home
enumerator kINPUTMUX_Pwm1A3Trig0ToQdc1Home
enumerator kINPUTMUX_Pwm1A3Trig1ToQdc1Home
enumerator kINPUTMUX_Qdc0CmpPosMatchToQdc1Home
enumerator kINPUTMUX_Qdc1CmpPosMatchToQdc1Home
enumerator kINPUTMUX_EvtgOut0AToQdc1Home
enumerator kINPUTMUX_EvtgOut0BToQdc1Home
enumerator kINPUTMUX_EvtgOut1AToQdc1Home
enumerator kINPUTMUX_EvtgOut1BToQdc1Home
enumerator kINPUTMUX_EvtgOut2AToQdc1Home
enumerator kINPUTMUX_EvtgOut2BToQdc1Home
enumerator kINPUTMUX_EvtgOut3AToQdc1Home
enumerator kINPUTMUX_EvtgOut3BToQdc1Home
enumerator kINPUTMUX_TrigIn0ToQdc1Home
enumerator kINPUTMUX_TrigIn1ToQdc1Home
enumerator kINPUTMUX_TrigIn2ToQdc1Home
enumerator kINPUTMUX_TrigIn3ToQdc1Home
enumerator kINPUTMUX_TrigIn4ToQdc1Home
enumerator kINPUTMUX_TrigIn5ToQdc1Home
enumerator kINPUTMUX_TrigIn6ToQdc1Home
enumerator kINPUTMUX_TrigIn7ToQdc1Home
enumerator kINPUTMUX_TrigIn8ToQdc1Home
enumerator kINPUTMUX_TrigIn9ToQdc1Home

QDC1 Index Input Connections.

enumerator kINPUTMUX_PinInt0ToQdc1Index
enumerator kINPUTMUX_PinInt4ToQdc1Index
enumerator kINPUTMUX_SctOut4ToQdc1Index
enumerator kINPUTMUX_SctOut5ToQdc1Index
enumerator kINPUTMUX_SctOut1ToQdc1Index
enumerator kINPUTMUX_Ctimer0M3ToQdc1Index
enumerator kINPUTMUX_Ctimer1M3ToQdc1Index
enumerator kINPUTMUX_Ctimer2M3ToQdc1Index
enumerator kINPUTMUX_Ctimer1M0ToQdc1Index
enumerator kINPUTMUX_Ctimer3M0ToQdc1Index
enumerator kINPUTMUX_ArmTxevToQdc1Index
enumerator kINPUTMUX_GpioIntBmatchToQdc1Index
enumerator kINPUTMUX_Adc0Tcomp0ToQdc1Index
enumerator kINPUTMUX_Adc0Tcomp1ToQdc1Index
enumerator kINPUTMUX_Adc0Tcomp2ToQdc1Index
enumerator kINPUTMUX_Adc0Tcomp3ToQdc1Index
enumerator kINPUTMUX_Adc1Tcomp0ToQdc1Index
enumerator kINPUTMUX_Adc1Tcomp1ToQdc1Index
enumerator kINPUTMUX_Adc1Tcomp2ToQdc1Index
enumerator kINPUTMUX_Adc1Tcomp3ToQdc1Index
enumerator kINPUTMUX_Cmp0OutToQdc1Index
enumerator kINPUTMUX_Cmp1OutToQdc1Index
enumerator kINPUTMUX_Cmp2OutToQdc1Index
enumerator kINPUTMUX_Pwm1A0Trig0ToQdc1Index
enumerator kINPUTMUX_Pwm1A0Trig1ToQdc1Index
enumerator kINPUTMUX_Pwm1A1Trig0ToQdc1Index
enumerator kINPUTMUX_Pwm1A1Trig1ToQdc1Index
enumerator kINPUTMUX_Pwm1A2Trig0ToQdc1Index
enumerator kINPUTMUX_Pwm1A2Trig1ToQdc1Index
enumerator kINPUTMUX_Pwm1A3Trig0ToQdc1Index
enumerator kINPUTMUX_Pwm1A3Trig1ToQdc1Index
enumerator kINPUTMUX_Qdc0CmpPosMatchToQdc1Index
enumerator kINPUTMUX_Qdc1CmpPosMatchToQdc1Index
enumerator kINPUTMUX_EvtgOut0AToQdc1Index
enumerator kINPUTMUX_EvtgOut0BToQdc1Index
enumerator kINPUTMUX_EvtgOut1AToQdc1Index
enumerator kINPUTMUX_EvtgOut1BToQdc1Index
enumerator kINPUTMUX_EvtgOut2AToQdc1Index
enumerator kINPUTMUX_EvtgOut2BToQdc1Index
enumerator kINPUTMUX_EvtgOut3AToQdc1Index
enumerator kINPUTMUX_EvtgOut3BToQdc1Index
enumerator kINPUTMUX_TrigIn0ToQdc1Index
enumerator kINPUTMUX_TrigIn1ToQdc1Index
enumerator kINPUTMUX_TrigIn2ToQdc1Index
enumerator kINPUTMUX_TrigIn3ToQdc1Index
enumerator kINPUTMUX_TrigIn4ToQdc1Index
enumerator kINPUTMUX_TrigIn5ToQdc1Index
enumerator kINPUTMUX_TrigIn6ToQdc1Index
enumerator kINPUTMUX_TrigIn7ToQdc1Index
enumerator kINPUTMUX_TrigIn8ToQdc1Index
enumerator kINPUTMUX_TrigIn9ToQdc1Index

QDC1 Phaseb Input Connections.

enumerator kINPUTMUX_PinInt0ToQdc1Phaseb
enumerator kINPUTMUX_PinInt4ToQdc1Phaseb
enumerator kINPUTMUX_SctOut4ToQdc1Phaseb
enumerator kINPUTMUX_SctOut5ToQdc1Phaseb
enumerator kINPUTMUX_SctOut1ToQdc1Phaseb
enumerator kINPUTMUX_Ctimer0M3ToQdc1Phaseb
enumerator kINPUTMUX_Ctimer1M3ToQdc1Phaseb
enumerator kINPUTMUX_Ctimer2M3ToQdc1Phaseb
enumerator kINPUTMUX_Ctimer1M0ToQdc1Phaseb
enumerator kINPUTMUX_Ctimer3M0ToQdc1Phaseb
enumerator kINPUTMUX_ArmTxevToQdc1Phaseb
enumerator kINPUTMUX_GpioIntBmatchToQdc1Phaseb
enumerator kINPUTMUX_Adc0Tcomp0ToQdc1Phaseb
enumerator kINPUTMUX_Adc0Tcomp1ToQdc1Phaseb
enumerator kINPUTMUX_Adc0Tcomp2ToQdc1Phaseb
enumerator kINPUTMUX_Adc0Tcomp3ToQdc1Phaseb
enumerator kINPUTMUX_Adc1Tcomp0ToQdc1Phaseb
enumerator kINPUTMUX_Adc1Tcomp1ToQdc1Phaseb
enumerator kINPUTMUX_Adc1Tcomp2ToQdc1Phaseb
enumerator kINPUTMUX_Adc1Tcomp3ToQdc1Phaseb
enumerator kINPUTMUX_Cmp0OutToQdc1Phaseb
enumerator kINPUTMUX_Cmp1OutToQdc1Phaseb
enumerator kINPUTMUX_Cmp2OutToQdc1Phaseb
enumerator kINPUTMUX_Pwm1A0Trig0ToQdc1Phaseb
enumerator kINPUTMUX_Pwm1A0Trig1ToQdc1Phaseb
enumerator kINPUTMUX_Pwm1A1Trig0ToQdc1Phaseb
enumerator kINPUTMUX_Pwm1A1Trig1ToQdc1Phaseb
enumerator kINPUTMUX_Pwm1A2Trig0ToQdc1Phaseb
enumerator kINPUTMUX_Pwm1A2Trig1ToQdc1Phaseb
enumerator kINPUTMUX_Pwm1A3Trig0ToQdc1Phaseb
enumerator kINPUTMUX_Pwm1A3Trig1ToQdc1Phaseb
enumerator kINPUTMUX_Qdc0CmpPosMatchToQdc1Phaseb
enumerator kINPUTMUX_Qdc1CmpPosMatchToQdc1Phaseb
enumerator kINPUTMUX_EvtgOut0AToQdc1Phaseb
enumerator kINPUTMUX_EvtgOut0BToQdc1Phaseb
enumerator kINPUTMUX_EvtgOut1AToQdc1Phaseb
enumerator kINPUTMUX_EvtgOut1BToQdc1Phaseb
enumerator kINPUTMUX_EvtgOut2AToQdc1Phaseb
enumerator kINPUTMUX_EvtgOut2BToQdc1Phaseb
enumerator kINPUTMUX_EvtgOut3AToQdc1Phaseb
enumerator kINPUTMUX_EvtgOut3BToQdc1Phaseb
enumerator kINPUTMUX_TrigIn0ToQdc1Phaseb
enumerator kINPUTMUX_TrigIn1ToQdc1Phaseb
enumerator kINPUTMUX_TrigIn2ToQdc1Phaseb
enumerator kINPUTMUX_TrigIn3ToQdc1Phaseb
enumerator kINPUTMUX_TrigIn4ToQdc1Phaseb
enumerator kINPUTMUX_TrigIn5ToQdc1Phaseb
enumerator kINPUTMUX_TrigIn6ToQdc1Phaseb
enumerator kINPUTMUX_TrigIn7ToQdc1Phaseb
enumerator kINPUTMUX_TrigIn8ToQdc1Phaseb
enumerator kINPUTMUX_TrigIn9ToQdc1Phaseb

QDC1 Phasea Input Connections.

enumerator kINPUTMUX_PinInt0ToQdc1Phasea
enumerator kINPUTMUX_PinInt4ToQdc1Phasea
enumerator kINPUTMUX_SctOut4ToQdc1Phasea
enumerator kINPUTMUX_SctOut5ToQdc1Phasea
enumerator kINPUTMUX_SctOut1ToQdc1Phasea
enumerator kINPUTMUX_Ctimer0M3ToQdc1Phasea
enumerator kINPUTMUX_Ctimer1M3ToQdc1Phasea
enumerator kINPUTMUX_Ctimer2M3ToQdc1Phasea
enumerator kINPUTMUX_Ctimer1M0ToQdc1Phasea
enumerator kINPUTMUX_Ctimer3M0ToQdc1Phasea
enumerator kINPUTMUX_ArmTxevToQdc1Phasea
enumerator kINPUTMUX_GpioIntBmatchToQdc1Phasea
enumerator kINPUTMUX_Adc0Tcomp0ToQdc1Phasea
enumerator kINPUTMUX_Adc0Tcomp1ToQdc1Phasea
enumerator kINPUTMUX_Adc0Tcomp2ToQdc1Phasea
enumerator kINPUTMUX_Adc0Tcomp3ToQdc1Phasea
enumerator kINPUTMUX_Adc1Tcomp0ToQdc1Phasea
enumerator kINPUTMUX_Adc1Tcomp1ToQdc1Phasea
enumerator kINPUTMUX_Adc1Tcomp2ToQdc1Phasea
enumerator kINPUTMUX_Adc1Tcomp3ToQdc1Phasea
enumerator kINPUTMUX_Cmp0OutToQdc1Phasea
enumerator kINPUTMUX_Cmp1OutToQdc1Phasea
enumerator kINPUTMUX_Cmp2OutToQdc1Phasea
enumerator kINPUTMUX_Pwm1A0Trig0ToQdc1Phasea
enumerator kINPUTMUX_Pwm1A0Trig1ToQdc1Phasea
enumerator kINPUTMUX_Pwm1A1Trig0ToQdc1Phasea
enumerator kINPUTMUX_Pwm1A1Trig1ToQdc1Phasea
enumerator kINPUTMUX_Pwm1A2Trig0ToQdc1Phasea
enumerator kINPUTMUX_Pwm1A2Trig1ToQdc1Phasea
enumerator kINPUTMUX_Pwm1A3Trig0ToQdc1Phasea
enumerator kINPUTMUX_Pwm1A3Trig1ToQdc1Phasea
enumerator kINPUTMUX_Qdc0CmpPosMatchToQdc1Phasea
enumerator kINPUTMUX_Qdc1CmpPosMatchToQdc1Phasea
enumerator kINPUTMUX_EvtgOut0AToQdc1Phasea
enumerator kINPUTMUX_EvtgOut0BToQdc1Phasea
enumerator kINPUTMUX_EvtgOut1AToQdc1Phasea
enumerator kINPUTMUX_EvtgOut1BToQdc1Phasea
enumerator kINPUTMUX_EvtgOut2AToQdc1Phasea
enumerator kINPUTMUX_EvtgOut2BToQdc1Phasea
enumerator kINPUTMUX_EvtgOut3AToQdc1Phasea
enumerator kINPUTMUX_EvtgOut3BToQdc1Phasea
enumerator kINPUTMUX_TrigIn0ToQdc1Phasea
enumerator kINPUTMUX_TrigIn1ToQdc1Phasea
enumerator kINPUTMUX_TrigIn2ToQdc1Phasea
enumerator kINPUTMUX_TrigIn3ToQdc1Phasea
enumerator kINPUTMUX_TrigIn4ToQdc1Phasea
enumerator kINPUTMUX_TrigIn5ToQdc1Phasea
enumerator kINPUTMUX_TrigIn6ToQdc1Phasea
enumerator kINPUTMUX_TrigIn7ToQdc1Phasea
enumerator kINPUTMUX_TrigIn8ToQdc1Phasea
enumerator kINPUTMUX_TrigIn9ToQdc1Phasea

FlexPWM0_SM0_EXTSYNC input trigger connections.

enumerator kINPUTMUX_PinInt0ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_PinInt5ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_SctOut4ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_SctOut5ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_SctOut2ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_Ctimer0M3ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_Ctimer1M3ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_Ctimer2M3ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_Ctimer2M0ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_Ctimer4M0ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_ArmTxevToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_GpioIntBmatchToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_Adc0Tcomp0ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_Adc0Tcomp1ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_Adc0Tcomp2ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_Adc0Tcomp3ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_Adc1Tcomp0ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_Adc1Tcomp1ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_Adc1Tcomp2ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_Adc1Tcomp3ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_Cmp0OutToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_Cmp1OutToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_Cmp2OutToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_Pwm1A0Trig0ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_Pwm1A0Trig1ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_Pwm1A1Trig0ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_Pwm1A1Trig1ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_Pwm1A2Trig0ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_Pwm1A2Trig1ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_Pwm1A3Trig0ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_Pwm1A3Trig1ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_Qdc0CmpPosMatchToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_Qdc1CmpPosMatchToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_EvtgOut0AToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_EvtgOut0BToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_EvtgOut1AToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_EvtgOut1BToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_EvtgOut2AToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_EvtgOut2BToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_EvtgOut3AToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_EvtgOut3BToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_TrigIn0ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_TrigIn1ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_TrigIn2ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_TrigIn3ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_TrigIn4ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_TrigIn5ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_TrigIn6ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_TrigIn7ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_TrigIn8ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_TrigIn9ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_SincFilterCh0ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_SincFilterCh1ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_SincFilterCh2ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_SincFilterCh3ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_SincFilterCh4ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_Gpio2PinEventTrig0ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_Gpio2PinEventTrig1ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_Gpio3PinEventTrig0ToFlexPwm0Sm0ExtSync
enumerator kINPUTMUX_Gpio3PinEventTrig1ToFlexPwm0Sm0ExtSync

FlexPWM0_SM1_EXTSYNC input trigger connections.

enumerator kINPUTMUX_PinInt0ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_PinInt5ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_SctOut4ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_SctOut5ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_SctOut2ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_Ctimer0M3ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_Ctimer1M3ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_Ctimer2M3ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_Ctimer2M0ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_Ctimer4M0ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_ArmTxevToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_GpioIntBmatchToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_Adc0Tcomp0ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_Adc0Tcomp1ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_Adc0Tcomp2ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_Adc0Tcomp3ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_Adc1Tcomp0ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_Adc1Tcomp1ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_Adc1Tcomp2ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_Adc1Tcomp3ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_Cmp0OutToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_Cmp1OutToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_Cmp2OutToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_Pwm1A0Trig0ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_Pwm1A0Trig1ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_Pwm1A1Trig0ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_Pwm1A1Trig1ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_Pwm1A2Trig0ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_Pwm1A2Trig1ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_Pwm1A3Trig0ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_Pwm1A3Trig1ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_Qdc0CmpPosMatchToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_Qdc1CmpPosMatchToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_EvtgOut0AToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_EvtgOut0BToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_EvtgOut1AToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_EvtgOut1BToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_EvtgOut2AToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_EvtgOut2BToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_EvtgOut3AToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_EvtgOut3BToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_TrigIn0ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_TrigIn1ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_TrigIn2ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_TrigIn3ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_TrigIn4ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_TrigIn5ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_TrigIn6ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_TrigIn7ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_TrigIn8ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_TrigIn9ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_SincFilterCh0ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_SincFilterCh1ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_SincFilterCh2ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_SincFilterCh3ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_SincFilterCh4ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_Gpio2PinEventTrig0ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_Gpio2PinEventTrig1ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_Gpio3PinEventTrig0ToFlexPwm0Sm1ExtSync
enumerator kINPUTMUX_Gpio3PinEventTrig1ToFlexPwm0Sm1ExtSync

FlexPWM0_SM2_EXTSYNC2 input trigger connections.

enumerator kINPUTMUX_PinInt0ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_PinInt5ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_SctOut4ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_SctOut5ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_SctOut2ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_Ctimer0M3ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_Ctimer1M3ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_Ctimer2M3ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_Ctimer2M0ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_Ctimer4M0ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_ArmTxevToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_GpioIntBmatchToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_Adc0Tcomp0ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_Adc0Tcomp1ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_Adc0Tcomp2ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_Adc0Tcomp3ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_Adc1Tcomp0ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_Adc1Tcomp1ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_Adc1Tcomp2ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_Adc1Tcomp3ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_Cmp0OutToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_Cmp1OutToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_Cmp2OutToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_Pwm1A0Trig0ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_Pwm1A0Trig1ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_Pwm1A1Trig0ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_Pwm1A1Trig1ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_Pwm1A2Trig0ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_Pwm1A2Trig1ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_Pwm1A3Trig0ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_Pwm1A3Trig1ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_Qdc0CmpPosMatchToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_Qdc1CmpPosMatchToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_EvtgOut0AToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_EvtgOut0BToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_EvtgOut1AToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_EvtgOut1BToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_EvtgOut2AToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_EvtgOut2BToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_EvtgOut3AToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_EvtgOut3BToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_TrigIn0ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_TrigIn1ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_TrigIn2ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_TrigIn3ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_TrigIn4ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_TrigIn5ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_TrigIn6ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_TrigIn7ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_TrigIn8ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_TrigIn9ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_SincFilterCh0ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_SincFilterCh1ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_SincFilterCh2ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_SincFilterCh3ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_SincFilterCh4ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_Gpio2PinEventTrig0ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_Gpio2PinEventTrig1ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_Gpio3PinEventTrig0ToFlexPwm0Sm2ExtSync
enumerator kINPUTMUX_Gpio3PinEventTrig1ToFlexPwm0Sm2ExtSync

FlexPWM0_SM3_EXTSYNC input trigger connections.

enumerator kINPUTMUX_PinInt0ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_PinInt5ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_SctOut4ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_SctOut5ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_SctOut2ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_Ctimer0M3ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_Ctimer1M3ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_Ctimer2M3ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_Ctimer2M0ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_Ctimer4M0ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_ArmTxevToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_GpioIntBmatchToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_Adc0Tcomp0ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_Adc0Tcomp1ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_Adc0Tcomp2ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_Adc0Tcomp3ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_Adc1Tcomp0ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_Adc1Tcomp1ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_Adc1Tcomp2ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_Adc1Tcomp3ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_Cmp0OutToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_Cmp1OutToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_Cmp2OutToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_Pwm1A0Trig0ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_Pwm1A0Trig1ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_Pwm1A1Trig0ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_Pwm1A1Trig1ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_Pwm1A2Trig0ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_Pwm1A2Trig1ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_Pwm1A3Trig0ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_Pwm1A3Trig1ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_Qdc0CmpPosMatchToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_Qdc1CmpPosMatchToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_EvtgOut0AToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_EvtgOut0BToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_EvtgOut1AToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_EvtgOut1BToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_EvtgOut2AToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_EvtgOut2BToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_EvtgOut3AToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_EvtgOut3BToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_TrigIn0ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_TrigIn1ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_TrigIn2ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_TrigIn3ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_TrigIn4ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_TrigIn5ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_TrigIn6ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_TrigIn7ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_TrigIn8ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_TrigIn9ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_SincFilterCh0ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_SincFilterCh1ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_SincFilterCh2ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_SincFilterCh3ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_SincFilterCh4ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_Gpio2PinEventTrig0ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_Gpio2PinEventTrig1ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_Gpio3PinEventTrig0ToFlexPwm0Sm3ExtSync
enumerator kINPUTMUX_Gpio3PinEventTrig1ToFlexPwm0Sm3ExtSync

FlexPWM0_SM0_EXTA input trigger connections.

enumerator kINPUTMUX_PinInt0ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_PinInt5ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_SctOut4ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_SctOut5ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_SctOut2ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_Ctimer0M3ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_Ctimer1M3ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_Ctimer2M3ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_Ctimer2M0ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_Ctimer4M0ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_ArmTxevToFlexPwm0Sm0Exta
enumerator kINPUTMUX_GpioIntBmatchToFlexPwm0Sm0Exta
enumerator kINPUTMUX_Adc0Tcomp0ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_Adc0Tcomp1ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_Adc0Tcomp2ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_Adc0Tcomp3ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_Adc1Tcomp0ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_Adc1Tcomp1ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_Adc1Tcomp2ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_Adc1Tcomp3ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_Cmp0OutToFlexPwm0Sm0Exta
enumerator kINPUTMUX_Cmp1OutToFlexPwm0Sm0Exta
enumerator kINPUTMUX_Cmp2OutToFlexPwm0Sm0Exta
enumerator kINPUTMUX_Pwm1A0Trig0ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_Pwm1A0Trig1ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_Pwm1A1Trig0ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_Pwm1A1Trig1ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_Pwm1A2Trig0ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_Pwm1A2Trig1ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_Pwm1A3Trig0ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_Pwm1A3Trig1ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_Qdc0CmpPosMatchToFlexPwm0Sm0Exta
enumerator kINPUTMUX_Qdc1CmpPosMatchToFlexPwm0Sm0Exta
enumerator kINPUTMUX_EvtgOut0AToFlexPwm0Sm0Exta
enumerator kINPUTMUX_EvtgOut0BToFlexPwm0Sm0Exta
enumerator kINPUTMUX_EvtgOut1AToFlexPwm0Sm0Exta
enumerator kINPUTMUX_EvtgOut1BToFlexPwm0Sm0Exta
enumerator kINPUTMUX_EvtgOut2AToFlexPwm0Sm0Exta
enumerator kINPUTMUX_EvtgOut2BToFlexPwm0Sm0Exta
enumerator kINPUTMUX_EvtgOut3AToFlexPwm0Sm0Exta
enumerator kINPUTMUX_EvtgOut3BToFlexPwm0Sm0Exta
enumerator kINPUTMUX_TrigIn0ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_TrigIn1ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_TrigIn2ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_TrigIn3ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_TrigIn4ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_TrigIn5ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_TrigIn6ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_TrigIn7ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_TrigIn8ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_TrigIn9ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_SincFilterCh0ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_SincFilterCh1ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_SincFilterCh2ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_SincFilterCh3ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_SincFilterCh4ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_Gpio2PinEventTrig0ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_Gpio2PinEventTrig1ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_Gpio3PinEventTrig0ToFlexPwm0Sm0Exta
enumerator kINPUTMUX_Gpio3PinEventTrig1ToFlexPwm0Sm0Exta

FlexPWM0_SM1_EXTA input trigger connections.

enumerator kINPUTMUX_PinInt0ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_PinInt5ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_SctOut4ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_SctOut5ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_SctOut2ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_Ctimer0M3ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_Ctimer1M3ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_Ctimer2M3ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_Ctimer2M0ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_Ctimer4M0ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_ArmTxevToFlexPwm0Sm1Exta
enumerator kINPUTMUX_GpioIntBmatchToFlexPwm0Sm1Exta
enumerator kINPUTMUX_Adc0Tcomp0ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_Adc0Tcomp1ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_Adc0Tcomp2ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_Adc0Tcomp3ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_Adc1Tcomp0ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_Adc1Tcomp1ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_Adc1Tcomp2ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_Adc1Tcomp3ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_Cmp0OutToFlexPwm0Sm1Exta
enumerator kINPUTMUX_Cmp1OutToFlexPwm0Sm1Exta
enumerator kINPUTMUX_Cmp2OutToFlexPwm0Sm1Exta
enumerator kINPUTMUX_Pwm1A0Trig0ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_Pwm1A0Trig1ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_Pwm1A1Trig0ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_Pwm1A1Trig1ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_Pwm1A2Trig0ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_Pwm1A2Trig1ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_Pwm1A3Trig0ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_Pwm1A3Trig1ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_Qdc0CmpPosMatchToFlexPwm0Sm1Exta
enumerator kINPUTMUX_Qdc1CmpPosMatchToFlexPwm0Sm1Exta
enumerator kINPUTMUX_EvtgOut0AToFlexPwm0Sm1Exta
enumerator kINPUTMUX_EvtgOut0BToFlexPwm0Sm1Exta
enumerator kINPUTMUX_EvtgOut1AToFlexPwm0Sm1Exta
enumerator kINPUTMUX_EvtgOut1BToFlexPwm0Sm1Exta
enumerator kINPUTMUX_EvtgOut2AToFlexPwm0Sm1Exta
enumerator kINPUTMUX_EvtgOut2BToFlexPwm0Sm1Exta
enumerator kINPUTMUX_EvtgOut3AToFlexPwm0Sm1Exta
enumerator kINPUTMUX_EvtgOut3BToFlexPwm0Sm1Exta
enumerator kINPUTMUX_TrigIn0ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_TrigIn1ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_TrigIn2ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_TrigIn3ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_TrigIn4ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_TrigIn5ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_TrigIn6ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_TrigIn7ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_TrigIn8ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_TrigIn9ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_SincFilterCh0ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_SincFilterCh1ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_SincFilterCh2ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_SincFilterCh3ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_SincFilterCh4ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_Gpio2PinEventTrig0ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_Gpio2PinEventTrig1ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_Gpio3PinEventTrig0ToFlexPwm0Sm1Exta
enumerator kINPUTMUX_Gpio3PinEventTrig1ToFlexPwm0Sm1Exta

FlexPWM0_SM2_EXTA input trigger connections.

enumerator kINPUTMUX_PinInt0ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_PinInt5ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_SctOut4ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_SctOut5ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_SctOut2ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_Ctimer0M3ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_Ctimer1M3ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_Ctimer2M3ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_Ctimer2M0ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_Ctimer4M0ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_ArmTxevToFlexPwm0Sm2Exta
enumerator kINPUTMUX_GpioIntBmatchToFlexPwm0Sm2Exta
enumerator kINPUTMUX_Adc0Tcomp0ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_Adc0Tcomp1ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_Adc0Tcomp2ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_Adc0Tcomp3ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_Adc1Tcomp0ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_Adc1Tcomp1ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_Adc1Tcomp2ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_Adc1Tcomp3ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_Cmp0OutToFlexPwm0Sm2Exta
enumerator kINPUTMUX_Cmp1OutToFlexPwm0Sm2Exta
enumerator kINPUTMUX_Cmp2OutToFlexPwm0Sm2Exta
enumerator kINPUTMUX_Pwm1A0Trig0ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_Pwm1A0Trig1ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_Pwm1A1Trig0ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_Pwm1A1Trig1ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_Pwm1A2Trig0ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_Pwm1A2Trig1ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_Pwm1A3Trig0ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_Pwm1A3Trig1ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_Qdc0CmpPosMatchToFlexPwm0Sm2Exta
enumerator kINPUTMUX_Qdc1CmpPosMatchToFlexPwm0Sm2Exta
enumerator kINPUTMUX_EvtgOut0AToFlexPwm0Sm2Exta
enumerator kINPUTMUX_EvtgOut0BToFlexPwm0Sm2Exta
enumerator kINPUTMUX_EvtgOut1AToFlexPwm0Sm2Exta
enumerator kINPUTMUX_EvtgOut1BToFlexPwm0Sm2Exta
enumerator kINPUTMUX_EvtgOut2AToFlexPwm0Sm2Exta
enumerator kINPUTMUX_EvtgOut2BToFlexPwm0Sm2Exta
enumerator kINPUTMUX_EvtgOut3AToFlexPwm0Sm2Exta
enumerator kINPUTMUX_EvtgOut3BToFlexPwm0Sm2Exta
enumerator kINPUTMUX_TrigIn0ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_TrigIn1ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_TrigIn2ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_TrigIn3ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_TrigIn4ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_TrigIn5ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_TrigIn6ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_TrigIn7ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_TrigIn8ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_TrigIn9ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_SincFilterCh0ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_SincFilterCh1ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_SincFilterCh2ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_SincFilterCh3ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_SincFilterCh4ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_Gpio2PinEventTrig0ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_Gpio2PinEventTrig1ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_Gpio3PinEventTrig0ToFlexPwm0Sm2Exta
enumerator kINPUTMUX_Gpio3PinEventTrig1ToFlexPwm0Sm2Exta

FlexPWM0_SM3_EXTA input trigger connections.

enumerator kINPUTMUX_PinInt0ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_PinInt5ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_SctOut4ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_SctOut5ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_SctOut2ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_Ctimer0M3ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_Ctimer1M3ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_Ctimer2M3ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_Ctimer2M0ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_Ctimer4M0ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_ArmTxevToFlexPwm0Sm3Exta
enumerator kINPUTMUX_GpioIntBmatchToFlexPwm0Sm3Exta
enumerator kINPUTMUX_Adc0Tcomp0ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_Adc0Tcomp1ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_Adc0Tcomp2ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_Adc0Tcomp3ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_Adc1Tcomp0ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_Adc1Tcomp1ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_Adc1Tcomp2ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_Adc1Tcomp3ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_Cmp0OutToFlexPwm0Sm3Exta
enumerator kINPUTMUX_Cmp1OutToFlexPwm0Sm3Exta
enumerator kINPUTMUX_Cmp2OutToFlexPwm0Sm3Exta
enumerator kINPUTMUX_Pwm1A0Trig0ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_Pwm1A0Trig1ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_Pwm1A1Trig0ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_Pwm1A1Trig1ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_Pwm1A2Trig0ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_Pwm1A2Trig1ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_Pwm1A3Trig0ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_Pwm1A3Trig1ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_Qdc0CmpPosMatchToFlexPwm0Sm3Exta
enumerator kINPUTMUX_Qdc1CmpPosMatchToFlexPwm0Sm3Exta
enumerator kINPUTMUX_EvtgOut0AToFlexPwm0Sm3Exta
enumerator kINPUTMUX_EvtgOut0BToFlexPwm0Sm3Exta
enumerator kINPUTMUX_EvtgOut1AToFlexPwm0Sm3Exta
enumerator kINPUTMUX_EvtgOut1BToFlexPwm0Sm3Exta
enumerator kINPUTMUX_EvtgOut2AToFlexPwm0Sm3Exta
enumerator kINPUTMUX_EvtgOut2BToFlexPwm0Sm3Exta
enumerator kINPUTMUX_EvtgOut3AToFlexPwm0Sm3Exta
enumerator kINPUTMUX_EvtgOut3BToFlexPwm0Sm3Exta
enumerator kINPUTMUX_TrigIn0ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_TrigIn1ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_TrigIn2ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_TrigIn3ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_TrigIn4ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_TrigIn5ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_TrigIn6ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_TrigIn7ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_TrigIn8ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_TrigIn9ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_SincFilterCh0ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_SincFilterCh1ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_SincFilterCh2ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_SincFilterCh3ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_SincFilterCh4ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_Gpio2PinEventTrig0ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_Gpio2PinEventTrig1ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_Gpio3PinEventTrig0ToFlexPwm0Sm3Exta
enumerator kINPUTMUX_Gpio3PinEventTrig1ToFlexPwm0Sm3Exta

FlexPWM0_EXTFORCE input trigger connections.

enumerator kINPUTMUX_PinInt0ToFlexPwm0ExtForce
enumerator kINPUTMUX_PinInt5ToFlexPwm0ExtForce
enumerator kINPUTMUX_SctOut4ToFlexPwm0ExtForce
enumerator kINPUTMUX_SctOut5ToFlexPwm0ExtForce
enumerator kINPUTMUX_SctOut2ToFlexPwm0ExtForce
enumerator kINPUTMUX_Ctimer0M3ToFlexPwm0ExtForce
enumerator kINPUTMUX_Ctimer1M3ToFlexPwm0ExtForce
enumerator kINPUTMUX_Ctimer2M3ToFlexPwm0ExtForce
enumerator kINPUTMUX_Ctimer2M0ToFlexPwm0ExtForce
enumerator kINPUTMUX_Ctimer4M0ToFlexPwm0ExtForce
enumerator kINPUTMUX_ArmTxevToFlexPwm0ExtForce
enumerator kINPUTMUX_GpioIntBmatchToFlexPwm0ExtForce
enumerator kINPUTMUX_Adc0Tcomp0ToFlexPwm0ExtForce
enumerator kINPUTMUX_Adc0Tcomp1ToFlexPwm0ExtForce
enumerator kINPUTMUX_Adc0Tcomp2ToFlexPwm0ExtForce
enumerator kINPUTMUX_Adc0Tcomp3ToFlexPwm0ExtForce
enumerator kINPUTMUX_Adc1Tcomp0ToFlexPwm0ExtForce
enumerator kINPUTMUX_Adc1Tcomp1ToFlexPwm0ExtForce
enumerator kINPUTMUX_Adc1Tcomp2ToFlexPwm0ExtForce
enumerator kINPUTMUX_Adc1Tcomp3ToFlexPwm0ExtForce
enumerator kINPUTMUX_Cmp0OutToFlexPwm0ExtForce
enumerator kINPUTMUX_Cmp1OutToFlexPwm0ExtForce
enumerator kINPUTMUX_Cmp2OutToFlexPwm0ExtForce
enumerator kINPUTMUX_Pwm1A0Trig0ToFlexPwm0ExtForce
enumerator kINPUTMUX_Pwm1A0Trig1ToFlexPwm0ExtForce
enumerator kINPUTMUX_Pwm1A1Trig0ToFlexPwm0ExtForce
enumerator kINPUTMUX_Pwm1A1Trig1ToFlexPwm0ExtForce
enumerator kINPUTMUX_Pwm1A2Trig0ToFlexPwm0ExtForce
enumerator kINPUTMUX_Pwm1A2Trig1ToFlexPwm0ExtForce
enumerator kINPUTMUX_Pwm1A3Trig0ToFlexPwm0ExtForce
enumerator kINPUTMUX_Pwm1A3Trig1ToFlexPwm0ExtForce
enumerator kINPUTMUX_Qdc0CmpPosMatchToFlexPwm0ExtForce
enumerator kINPUTMUX_Qdc1CmpPosMatchToFlexPwm0ExtForce
enumerator kINPUTMUX_EvtgOut0AToFlexPwm0ExtForce
enumerator kINPUTMUX_EvtgOut0BToFlexPwm0ExtForce
enumerator kINPUTMUX_EvtgOut1AToFlexPwm0ExtForce
enumerator kINPUTMUX_EvtgOut1BToFlexPwm0ExtForce
enumerator kINPUTMUX_EvtgOut2AToFlexPwm0ExtForce
enumerator kINPUTMUX_EvtgOut2BToFlexPwm0ExtForce
enumerator kINPUTMUX_EvtgOut3AToFlexPwm0ExtForce
enumerator kINPUTMUX_EvtgOut3BToFlexPwm0ExtForce
enumerator kINPUTMUX_TrigIn0ToFlexPwm0ExtForce
enumerator kINPUTMUX_TrigIn1ToFlexPwm0ExtForce
enumerator kINPUTMUX_TrigIn2ToFlexPwm0ExtForce
enumerator kINPUTMUX_TrigIn3ToFlexPwm0ExtForce
enumerator kINPUTMUX_TrigIn4ToFlexPwm0ExtForce
enumerator kINPUTMUX_TrigIn5ToFlexPwm0ExtForce
enumerator kINPUTMUX_TrigIn6ToFlexPwm0ExtForce
enumerator kINPUTMUX_TrigIn7ToFlexPwm0ExtForce
enumerator kINPUTMUX_TrigIn8ToFlexPwm0ExtForce
enumerator kINPUTMUX_TrigIn9ToFlexPwm0ExtForce
enumerator kINPUTMUX_SincFilterCh0ToFlexPwm0ExtForce
enumerator kINPUTMUX_SincFilterCh1ToFlexPwm0ExtForce
enumerator kINPUTMUX_SincFilterCh2ToFlexPwm0ExtForce
enumerator kINPUTMUX_SincFilterCh3ToFlexPwm0ExtForce
enumerator kINPUTMUX_SincFilterCh4ToFlexPwm0ExtForce
enumerator kINPUTMUX_Gpio2PinEventTrig0ToFlexPwm0ExtForce
enumerator kINPUTMUX_Gpio2PinEventTrig1ToFlexPwm0ExtForce
enumerator kINPUTMUX_Gpio3PinEventTrig0ToFlexPwm0ExtForce
enumerator kINPUTMUX_Gpio3PinEventTrig1ToFlexPwm0ExtForce

FlexPWM0_FAULT0 input trigger connections.

enumerator kINPUTMUX_PinInt0ToFlexPwm0Fault0
enumerator kINPUTMUX_PinInt5ToFlexPwm0Fault0
enumerator kINPUTMUX_SctOut4ToFlexPwm0Fault0
enumerator kINPUTMUX_SctOut5ToFlexPwm0Fault0
enumerator kINPUTMUX_SctOut2ToFlexPwm0Fault0
enumerator kINPUTMUX_Ctimer0M3ToFlexPwm0Fault0
enumerator kINPUTMUX_Ctimer1M3ToFlexPwm0Fault0
enumerator kINPUTMUX_Ctimer2M3ToFlexPwm0Fault0
enumerator kINPUTMUX_Ctimer2M0ToFlexPwm0Fault0
enumerator kINPUTMUX_Ctimer4M0ToFlexPwm0Fault0
enumerator kINPUTMUX_ArmTxevToFlexPwm0Fault0
enumerator kINPUTMUX_GpioIntBmatchToFlexPwm0Fault0
enumerator kINPUTMUX_Adc0Tcomp0ToFlexPwm0Fault0
enumerator kINPUTMUX_Adc0Tcomp1ToFlexPwm0Fault0
enumerator kINPUTMUX_Adc0Tcomp2ToFlexPwm0Fault0
enumerator kINPUTMUX_Adc0Tcomp3ToFlexPwm0Fault0
enumerator kINPUTMUX_Adc1Tcomp0ToFlexPwm0Fault0
enumerator kINPUTMUX_Adc1Tcomp1ToFlexPwm0Fault0
enumerator kINPUTMUX_Adc1Tcomp2ToFlexPwm0Fault0
enumerator kINPUTMUX_Adc1Tcomp3ToFlexPwm0Fault0
enumerator kINPUTMUX_Cmp0OutToFlexPwm0Fault0
enumerator kINPUTMUX_Cmp1OutToFlexPwm0Fault0
enumerator kINPUTMUX_Cmp2OutToFlexPwm0Fault0
enumerator kINPUTMUX_Pwm1A0Trig0ToFlexPwm0Fault0
enumerator kINPUTMUX_Pwm1A0Trig1ToFlexPwm0Fault0
enumerator kINPUTMUX_Pwm1A1Trig0ToFlexPwm0Fault0
enumerator kINPUTMUX_Pwm1A1Trig1ToFlexPwm0Fault0
enumerator kINPUTMUX_Pwm1A2Trig0ToFlexPwm0Fault0
enumerator kINPUTMUX_Pwm1A2Trig1ToFlexPwm0Fault0
enumerator kINPUTMUX_Pwm1A3Trig0ToFlexPwm0Fault0
enumerator kINPUTMUX_Pwm1A3Trig1ToFlexPwm0Fault0
enumerator kINPUTMUX_Qdc0CmpPosMatchToFlexPwm0Fault0
enumerator kINPUTMUX_Qdc1CmpPosMatchToFlexPwm0Fault0
enumerator kINPUTMUX_EvtgOut0AToFlexPwm0Fault0
enumerator kINPUTMUX_EvtgOut0BToFlexPwm0Fault0
enumerator kINPUTMUX_EvtgOut1AToFlexPwm0Fault0
enumerator kINPUTMUX_EvtgOut1BToFlexPwm0Fault0
enumerator kINPUTMUX_EvtgOut2AToFlexPwm0Fault0
enumerator kINPUTMUX_EvtgOut2BToFlexPwm0Fault0
enumerator kINPUTMUX_EvtgOut3AToFlexPwm0Fault0
enumerator kINPUTMUX_EvtgOut3BToFlexPwm0Fault0
enumerator kINPUTMUX_TrigIn0ToFlexPwm0Fault0
enumerator kINPUTMUX_TrigIn1ToFlexPwm0Fault0
enumerator kINPUTMUX_TrigIn2ToFlexPwm0Fault0
enumerator kINPUTMUX_TrigIn3ToFlexPwm0Fault0
enumerator kINPUTMUX_TrigIn4ToFlexPwm0Fault0
enumerator kINPUTMUX_TrigIn5ToFlexPwm0Fault0
enumerator kINPUTMUX_TrigIn6ToFlexPwm0Fault0
enumerator kINPUTMUX_TrigIn7ToFlexPwm0Fault0
enumerator kINPUTMUX_TrigIn8ToFlexPwm0Fault0
enumerator kINPUTMUX_TrigIn9ToFlexPwm0Fault0
enumerator kINPUTMUX_SincFilterCh0ToFlexPwm0Fault0
enumerator kINPUTMUX_SincFilterCh1ToFlexPwm0Fault0
enumerator kINPUTMUX_SincFilterCh2ToFlexPwm0Fault0
enumerator kINPUTMUX_SincFilterCh3ToFlexPwm0Fault0
enumerator kINPUTMUX_SincFilterCh4ToFlexPwm0Fault0
enumerator kINPUTMUX_Gpio2PinEventTrig0ToFlexPwm0Fault0
enumerator kINPUTMUX_Gpio2PinEventTrig1ToFlexPwm0Fault0
enumerator kINPUTMUX_Gpio3PinEventTrig0ToFlexPwm0Fault0
enumerator kINPUTMUX_Gpio3PinEventTrig1ToFlexPwm0Fault0

FlexPWM0_FAULT1 input trigger connections.

enumerator kINPUTMUX_PinInt0ToFlexPwm0Fault1
enumerator kINPUTMUX_PinInt5ToFlexPwm0Fault1
enumerator kINPUTMUX_SctOut4ToFlexPwm0Fault1
enumerator kINPUTMUX_SctOut5ToFlexPwm0Fault1
enumerator kINPUTMUX_SctOut2ToFlexPwm0Fault1
enumerator kINPUTMUX_Ctimer0M3ToFlexPwm0Fault1
enumerator kINPUTMUX_Ctimer1M3ToFlexPwm0Fault1
enumerator kINPUTMUX_Ctimer2M3ToFlexPwm0Fault1
enumerator kINPUTMUX_Ctimer2M0ToFlexPwm0Fault1
enumerator kINPUTMUX_Ctimer4M0ToFlexPwm0Fault1
enumerator kINPUTMUX_ArmTxevToFlexPwm0Fault1
enumerator kINPUTMUX_GpioIntBmatchToFlexPwm0Fault1
enumerator kINPUTMUX_Adc0Tcomp0ToFlexPwm0Fault1
enumerator kINPUTMUX_Adc0Tcomp1ToFlexPwm0Fault1
enumerator kINPUTMUX_Adc0Tcomp2ToFlexPwm0Fault1
enumerator kINPUTMUX_Adc0Tcomp3ToFlexPwm0Fault1
enumerator kINPUTMUX_Adc1Tcomp0ToFlexPwm0Fault1
enumerator kINPUTMUX_Adc1Tcomp1ToFlexPwm0Fault1
enumerator kINPUTMUX_Adc1Tcomp2ToFlexPwm0Fault1
enumerator kINPUTMUX_Adc1Tcomp3ToFlexPwm0Fault1
enumerator kINPUTMUX_Cmp0OutToFlexPwm0Fault1
enumerator kINPUTMUX_Cmp1OutToFlexPwm0Fault1
enumerator kINPUTMUX_Cmp2OutToFlexPwm0Fault1
enumerator kINPUTMUX_Pwm1A0Trig0ToFlexPwm0Fault1
enumerator kINPUTMUX_Pwm1A0Trig1ToFlexPwm0Fault1
enumerator kINPUTMUX_Pwm1A1Trig0ToFlexPwm0Fault1
enumerator kINPUTMUX_Pwm1A1Trig1ToFlexPwm0Fault1
enumerator kINPUTMUX_Pwm1A2Trig0ToFlexPwm0Fault1
enumerator kINPUTMUX_Pwm1A2Trig1ToFlexPwm0Fault1
enumerator kINPUTMUX_Pwm1A3Trig0ToFlexPwm0Fault1
enumerator kINPUTMUX_Pwm1A3Trig1ToFlexPwm0Fault1
enumerator kINPUTMUX_Qdc0CmpPosMatchToFlexPwm0Fault1
enumerator kINPUTMUX_Qdc1CmpPosMatchToFlexPwm0Fault1
enumerator kINPUTMUX_EvtgOut0AToFlexPwm0Fault1
enumerator kINPUTMUX_EvtgOut0BToFlexPwm0Fault1
enumerator kINPUTMUX_EvtgOut1AToFlexPwm0Fault1
enumerator kINPUTMUX_EvtgOut1BToFlexPwm0Fault1
enumerator kINPUTMUX_EvtgOut2AToFlexPwm0Fault1
enumerator kINPUTMUX_EvtgOut2BToFlexPwm0Fault1
enumerator kINPUTMUX_EvtgOut3AToFlexPwm0Fault1
enumerator kINPUTMUX_EvtgOut3BToFlexPwm0Fault1
enumerator kINPUTMUX_TrigIn0ToFlexPwm0Fault1
enumerator kINPUTMUX_TrigIn1ToFlexPwm0Fault1
enumerator kINPUTMUX_TrigIn2ToFlexPwm0Fault1
enumerator kINPUTMUX_TrigIn3ToFlexPwm0Fault1
enumerator kINPUTMUX_TrigIn4ToFlexPwm0Fault1
enumerator kINPUTMUX_TrigIn5ToFlexPwm0Fault1
enumerator kINPUTMUX_TrigIn6ToFlexPwm0Fault1
enumerator kINPUTMUX_TrigIn7ToFlexPwm0Fault1
enumerator kINPUTMUX_TrigIn8ToFlexPwm0Fault1
enumerator kINPUTMUX_TrigIn9ToFlexPwm0Fault1
enumerator kINPUTMUX_SincFilterCh0ToFlexPwm0Fault1
enumerator kINPUTMUX_SincFilterCh1ToFlexPwm0Fault1
enumerator kINPUTMUX_SincFilterCh2ToFlexPwm0Fault1
enumerator kINPUTMUX_SincFilterCh3ToFlexPwm0Fault1
enumerator kINPUTMUX_SincFilterCh4ToFlexPwm0Fault1
enumerator kINPUTMUX_Gpio2PinEventTrig0ToFlexPwm0Fault1
enumerator kINPUTMUX_Gpio2PinEventTrig1ToFlexPwm0Fault1
enumerator kINPUTMUX_Gpio3PinEventTrig0ToFlexPwm0Fault1
enumerator kINPUTMUX_Gpio3PinEventTrig1ToFlexPwm0Fault1

FlexPWM0_FAULT2 input trigger connections.

enumerator kINPUTMUX_PinInt0ToFlexPwm0Fault2
enumerator kINPUTMUX_PinInt5ToFlexPwm0Fault2
enumerator kINPUTMUX_SctOut4ToFlexPwm0Fault2
enumerator kINPUTMUX_SctOut5ToFlexPwm0Fault2
enumerator kINPUTMUX_SctOut2ToFlexPwm0Fault2
enumerator kINPUTMUX_Ctimer0M3ToFlexPwm0Fault2
enumerator kINPUTMUX_Ctimer1M3ToFlexPwm0Fault2
enumerator kINPUTMUX_Ctimer2M3ToFlexPwm0Fault2
enumerator kINPUTMUX_Ctimer2M0ToFlexPwm0Fault2
enumerator kINPUTMUX_Ctimer4M0ToFlexPwm0Fault2
enumerator kINPUTMUX_ArmTxevToFlexPwm0Fault2
enumerator kINPUTMUX_GpioIntBmatchToFlexPwm0Fault2
enumerator kINPUTMUX_Adc0Tcomp0ToFlexPwm0Fault2
enumerator kINPUTMUX_Adc0Tcomp1ToFlexPwm0Fault2
enumerator kINPUTMUX_Adc0Tcomp2ToFlexPwm0Fault2
enumerator kINPUTMUX_Adc0Tcomp3ToFlexPwm0Fault2
enumerator kINPUTMUX_Adc1Tcomp0ToFlexPwm0Fault2
enumerator kINPUTMUX_Adc1Tcomp1ToFlexPwm0Fault2
enumerator kINPUTMUX_Adc1Tcomp2ToFlexPwm0Fault2
enumerator kINPUTMUX_Adc1Tcomp3ToFlexPwm0Fault2
enumerator kINPUTMUX_Cmp0OutToFlexPwm0Fault2
enumerator kINPUTMUX_Cmp1OutToFlexPwm0Fault2
enumerator kINPUTMUX_Cmp2OutToFlexPwm0Fault2
enumerator kINPUTMUX_Pwm1A0Trig0ToFlexPwm0Fault2
enumerator kINPUTMUX_Pwm1A0Trig1ToFlexPwm0Fault2
enumerator kINPUTMUX_Pwm1A1Trig0ToFlexPwm0Fault2
enumerator kINPUTMUX_Pwm1A1Trig1ToFlexPwm0Fault2
enumerator kINPUTMUX_Pwm1A2Trig0ToFlexPwm0Fault2
enumerator kINPUTMUX_Pwm1A2Trig1ToFlexPwm0Fault2
enumerator kINPUTMUX_Pwm1A3Trig0ToFlexPwm0Fault2
enumerator kINPUTMUX_Pwm1A3Trig1ToFlexPwm0Fault2
enumerator kINPUTMUX_Qdc0CmpPosMatchToFlexPwm0Fault2
enumerator kINPUTMUX_Qdc1CmpPosMatchToFlexPwm0Fault2
enumerator kINPUTMUX_EvtgOut0AToFlexPwm0Fault2
enumerator kINPUTMUX_EvtgOut0BToFlexPwm0Fault2
enumerator kINPUTMUX_EvtgOut1AToFlexPwm0Fault2
enumerator kINPUTMUX_EvtgOut1BToFlexPwm0Fault2
enumerator kINPUTMUX_EvtgOut2AToFlexPwm0Fault2
enumerator kINPUTMUX_EvtgOut2BToFlexPwm0Fault2
enumerator kINPUTMUX_EvtgOut3AToFlexPwm0Fault2
enumerator kINPUTMUX_EvtgOut3BToFlexPwm0Fault2
enumerator kINPUTMUX_TrigIn0ToFlexPwm0Fault2
enumerator kINPUTMUX_TrigIn1ToFlexPwm0Fault2
enumerator kINPUTMUX_TrigIn2ToFlexPwm0Fault2
enumerator kINPUTMUX_TrigIn3ToFlexPwm0Fault2
enumerator kINPUTMUX_TrigIn4ToFlexPwm0Fault2
enumerator kINPUTMUX_TrigIn5ToFlexPwm0Fault2
enumerator kINPUTMUX_TrigIn6ToFlexPwm0Fault2
enumerator kINPUTMUX_TrigIn7ToFlexPwm0Fault2
enumerator kINPUTMUX_TrigIn8ToFlexPwm0Fault2
enumerator kINPUTMUX_TrigIn9ToFlexPwm0Fault2
enumerator kINPUTMUX_SincFilterCh0ToFlexPwm0Fault2
enumerator kINPUTMUX_SincFilterCh1ToFlexPwm0Fault2
enumerator kINPUTMUX_SincFilterCh2ToFlexPwm0Fault2
enumerator kINPUTMUX_SincFilterCh3ToFlexPwm0Fault2
enumerator kINPUTMUX_SincFilterCh4ToFlexPwm0Fault2
enumerator kINPUTMUX_Gpio2PinEventTrig0ToFlexPwm0Fault2
enumerator kINPUTMUX_Gpio2PinEventTrig1ToFlexPwm0Fault2
enumerator kINPUTMUX_Gpio3PinEventTrig0ToFlexPwm0Fault2
enumerator kINPUTMUX_Gpio3PinEventTrig1ToFlexPwm0Fault2

FlexPWM0_FAULT3 input trigger connections.

enumerator kINPUTMUX_PinInt0ToFlexPwm0Fault3
enumerator kINPUTMUX_PinInt5ToFlexPwm0Fault3
enumerator kINPUTMUX_SctOut4ToFlexPwm0Fault3
enumerator kINPUTMUX_SctOut5ToFlexPwm0Fault3
enumerator kINPUTMUX_SctOut2ToFlexPwm0Fault3
enumerator kINPUTMUX_Ctimer0M3ToFlexPwm0Fault3
enumerator kINPUTMUX_Ctimer1M3ToFlexPwm0Fault3
enumerator kINPUTMUX_Ctimer2M3ToFlexPwm0Fault3
enumerator kINPUTMUX_Ctimer2M0ToFlexPwm0Fault3
enumerator kINPUTMUX_Ctimer4M0ToFlexPwm0Fault3
enumerator kINPUTMUX_ArmTxevToFlexPwm0Fault3
enumerator kINPUTMUX_GpioIntBmatchToFlexPwm0Fault3
enumerator kINPUTMUX_Adc0Tcomp0ToFlexPwm0Fault3
enumerator kINPUTMUX_Adc0Tcomp1ToFlexPwm0Fault3
enumerator kINPUTMUX_Adc0Tcomp2ToFlexPwm0Fault3
enumerator kINPUTMUX_Adc0Tcomp3ToFlexPwm0Fault3
enumerator kINPUTMUX_Adc1Tcomp0ToFlexPwm0Fault3
enumerator kINPUTMUX_Adc1Tcomp1ToFlexPwm0Fault3
enumerator kINPUTMUX_Adc1Tcomp2ToFlexPwm0Fault3
enumerator kINPUTMUX_Adc1Tcomp3ToFlexPwm0Fault3
enumerator kINPUTMUX_Cmp0OutToFlexPwm0Fault3
enumerator kINPUTMUX_Cmp1OutToFlexPwm0Fault3
enumerator kINPUTMUX_Cmp2OutToFlexPwm0Fault3
enumerator kINPUTMUX_Pwm1A0Trig0ToFlexPwm0Fault3
enumerator kINPUTMUX_Pwm1A0Trig1ToFlexPwm0Fault3
enumerator kINPUTMUX_Pwm1A1Trig0ToFlexPwm0Fault3
enumerator kINPUTMUX_Pwm1A1Trig1ToFlexPwm0Fault3
enumerator kINPUTMUX_Pwm1A2Trig0ToFlexPwm0Fault3
enumerator kINPUTMUX_Pwm1A2Trig1ToFlexPwm0Fault3
enumerator kINPUTMUX_Pwm1A3Trig0ToFlexPwm0Fault3
enumerator kINPUTMUX_Pwm1A3Trig1ToFlexPwm0Fault3
enumerator kINPUTMUX_Qdc0CmpPosMatchToFlexPwm0Fault3
enumerator kINPUTMUX_Qdc1CmpPosMatchToFlexPwm0Fault3
enumerator kINPUTMUX_EvtgOut0AToFlexPwm0Fault3
enumerator kINPUTMUX_EvtgOut0BToFlexPwm0Fault3
enumerator kINPUTMUX_EvtgOut1AToFlexPwm0Fault3
enumerator kINPUTMUX_EvtgOut1BToFlexPwm0Fault3
enumerator kINPUTMUX_EvtgOut2AToFlexPwm0Fault3
enumerator kINPUTMUX_EvtgOut2BToFlexPwm0Fault3
enumerator kINPUTMUX_EvtgOut3AToFlexPwm0Fault3
enumerator kINPUTMUX_EvtgOut3BToFlexPwm0Fault3
enumerator kINPUTMUX_TrigIn0ToFlexPwm0Fault3
enumerator kINPUTMUX_TrigIn1ToFlexPwm0Fault3
enumerator kINPUTMUX_TrigIn2ToFlexPwm0Fault3
enumerator kINPUTMUX_TrigIn3ToFlexPwm0Fault3
enumerator kINPUTMUX_TrigIn4ToFlexPwm0Fault3
enumerator kINPUTMUX_TrigIn5ToFlexPwm0Fault3
enumerator kINPUTMUX_TrigIn6ToFlexPwm0Fault3
enumerator kINPUTMUX_TrigIn7ToFlexPwm0Fault3
enumerator kINPUTMUX_TrigIn8ToFlexPwm0Fault3
enumerator kINPUTMUX_TrigIn9ToFlexPwm0Fault3
enumerator kINPUTMUX_SincFilterCh0ToFlexPwm0Fault3
enumerator kINPUTMUX_SincFilterCh1ToFlexPwm0Fault3
enumerator kINPUTMUX_SincFilterCh2ToFlexPwm0Fault3
enumerator kINPUTMUX_SincFilterCh3ToFlexPwm0Fault3
enumerator kINPUTMUX_SincFilterCh4ToFlexPwm0Fault3
enumerator kINPUTMUX_Gpio2PinEventTrig0ToFlexPwm0Fault3
enumerator kINPUTMUX_Gpio2PinEventTrig1ToFlexPwm0Fault3
enumerator kINPUTMUX_Gpio3PinEventTrig0ToFlexPwm0Fault3
enumerator kINPUTMUX_Gpio3PinEventTrig1ToFlexPwm0Fault3

FlexPWM1_SM0_EXTSYNC input trigger connections.

enumerator kINPUTMUX_PinInt0ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_PinInt2ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_SctOut4ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_SctOut5ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_SctOut3ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_Ctimer0M3ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_Ctimer1M3ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_Ctimer2M3ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_Ctimer2M1ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_Ctimer4M1ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_ArmTxevToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_GpioIntBmatchToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_Adc0Tcomp0ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_Adc0Tcomp1ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_Adc0Tcomp2ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_Adc0Tcomp3ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_Adc1Tcomp0ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_Adc1Tcomp1ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_Adc1Tcomp2ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_Adc1Tcomp3ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_Cmp0OutToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_Cmp1OutToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_Cmp2OutToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_Pwm0A0Trig0ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_Pwm0A0Trig1ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_Pwm0A1Trig0ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_Pwm0A1Trig1ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_Pwm0A2Trig0ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_Pwm0A2Trig1ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_Pwm0A3Trig0ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_Pwm0A3Trig1ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_Qdc0CmpPosMatchToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_Qdc1CmpPosMatchToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_EvtgOut0AToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_EvtgOut0BToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_EvtgOut1AToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_EvtgOut1BToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_EvtgOut2AToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_EvtgOut2BToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_EvtgOut3AToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_EvtgOut3BToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_TrigIn0ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_TrigIn1ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_TrigIn2ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_TrigIn3ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_TrigIn4ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_TrigIn5ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_TrigIn6ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_TrigIn7ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_TrigIn8ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_TrigIn9ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_SincFilterCh0ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_SincFilterCh1ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_SincFilterCh2ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_SincFilterCh3ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_SincFilterCh4ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_Gpio2PinEventTrig0ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_Gpio2PinEventTrig1ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_Gpio3PinEventTrig0ToFlexPwm1Sm0ExtSync
enumerator kINPUTMUX_Gpio3PinEventTrig1ToFlexPwm1Sm0ExtSync

FlexPWM1_SM1_EXTSYNC input trigger connections.

enumerator kINPUTMUX_PinInt0ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_PinInt2ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_SctOut4ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_SctOut5ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_SctOut3ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_Ctimer0M3ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_Ctimer1M3ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_Ctimer2M3ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_Ctimer2M1ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_Ctimer4M1ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_ArmTxevToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_GpioIntBmatchToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_Adc0Tcomp0ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_Adc0Tcomp1ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_Adc0Tcomp2ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_Adc0Tcomp3ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_Adc1Tcomp0ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_Adc1Tcomp1ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_Adc1Tcomp2ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_Adc1Tcomp3ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_Cmp0OutToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_Cmp1OutToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_Cmp2OutToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_Pwm0A0Trig0ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_Pwm0A0Trig1ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_Pwm0A1Trig0ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_Pwm0A1Trig1ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_Pwm0A2Trig0ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_Pwm0A2Trig1ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_Pwm0A3Trig0ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_Pwm0A3Trig1ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_Qdc0CmpPosMatchToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_Qdc1CmpPosMatchToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_EvtgOut0AToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_EvtgOut0BToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_EvtgOut1AToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_EvtgOut1BToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_EvtgOut2AToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_EvtgOut2BToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_EvtgOut3AToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_EvtgOut3BToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_TrigIn0ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_TrigIn1ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_TrigIn2ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_TrigIn3ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_TrigIn4ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_TrigIn5ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_TrigIn6ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_TrigIn7ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_TrigIn8ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_TrigIn9ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_SincFilterCh0ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_SincFilterCh1ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_SincFilterCh2ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_SincFilterCh3ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_SincFilterCh4ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_Gpio2PinEventTrig0ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_Gpio2PinEventTrig1ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_Gpio3PinEventTrig0ToFlexPwm1Sm1ExtSync
enumerator kINPUTMUX_Gpio3PinEventTrig1ToFlexPwm1Sm1ExtSync

FlexPWM1_SM2_EXTSYNC2 input trigger connections.

enumerator kINPUTMUX_PinInt0ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_PinInt2ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_SctOut4ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_SctOut5ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_SctOut3ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_Ctimer0M3ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_Ctimer1M3ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_Ctimer2M3ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_Ctimer2M1ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_Ctimer4M1ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_ArmTxevToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_GpioIntBmatchToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_Adc0Tcomp0ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_Adc0Tcomp1ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_Adc0Tcomp2ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_Adc0Tcomp3ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_Adc1Tcomp0ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_Adc1Tcomp1ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_Adc1Tcomp2ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_Adc1Tcomp3ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_Cmp0OutToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_Cmp1OutToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_Cmp2OutToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_Pwm0A0Trig0ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_Pwm0A0Trig1ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_Pwm0A1Trig0ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_Pwm0A1Trig1ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_Pwm0A2Trig0ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_Pwm0A2Trig1ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_Pwm0A3Trig0ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_Pwm0A3Trig1ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_Qdc0CmpPosMatchToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_Qdc1CmpPosMatchToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_EvtgOut0AToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_EvtgOut0BToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_EvtgOut1AToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_EvtgOut1BToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_EvtgOut2AToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_EvtgOut2BToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_EvtgOut3AToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_EvtgOut3BToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_TrigIn0ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_TrigIn1ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_TrigIn2ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_TrigIn3ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_TrigIn4ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_TrigIn5ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_TrigIn6ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_TrigIn7ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_TrigIn8ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_TrigIn9ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_SincFilterCh0ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_SincFilterCh1ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_SincFilterCh2ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_SincFilterCh3ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_SincFilterCh4ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_Gpio2PinEventTrig0ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_Gpio2PinEventTrig1ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_Gpio3PinEventTrig0ToFlexPwm1Sm2ExtSync
enumerator kINPUTMUX_Gpio3PinEventTrig1ToFlexPwm1Sm2ExtSync

FlexPWM1_SM3_EXTSYNC input trigger connections.

enumerator kINPUTMUX_PinInt0ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_PinInt2ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_SctOut4ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_SctOut5ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_SctOut3ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_Ctimer0M3ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_Ctimer1M3ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_Ctimer2M3ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_Ctimer2M1ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_Ctimer4M1ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_ArmTxevToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_GpioIntBmatchToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_Adc0Tcomp0ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_Adc0Tcomp1ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_Adc0Tcomp2ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_Adc0Tcomp3ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_Adc1Tcomp0ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_Adc1Tcomp1ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_Adc1Tcomp2ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_Adc1Tcomp3ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_Cmp0OutToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_Cmp1OutToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_Cmp2OutToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_Pwm0A0Trig0ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_Pwm0A0Trig1ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_Pwm0A1Trig0ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_Pwm0A1Trig1ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_Pwm0A2Trig0ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_Pwm0A2Trig1ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_Pwm0A3Trig0ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_Pwm0A3Trig1ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_Qdc0CmpPosMatchToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_Qdc1CmpPosMatchToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_EvtgOut0AToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_EvtgOut0BToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_EvtgOut1AToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_EvtgOut1BToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_EvtgOut2AToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_EvtgOut2BToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_EvtgOut3AToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_EvtgOut3BToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_TrigIn0ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_TrigIn1ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_TrigIn2ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_TrigIn3ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_TrigIn4ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_TrigIn5ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_TrigIn6ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_TrigIn7ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_TrigIn8ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_TrigIn9ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_SincFilterCh0ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_SincFilterCh1ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_SincFilterCh2ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_SincFilterCh3ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_SincFilterCh4ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_Gpio2PinEventTrig0ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_Gpio2PinEventTrig1ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_Gpio3PinEventTrig0ToFlexPwm1Sm3ExtSync
enumerator kINPUTMUX_Gpio3PinEventTrig1ToFlexPwm1Sm3ExtSync

FlexPWM1_SM0_EXTA input trigger connections.

enumerator kINPUTMUX_PinInt0ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_PinInt2ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_SctOut4ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_SctOut5ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_SctOut3ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_Ctimer0M3ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_Ctimer1M3ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_Ctimer2M3ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_Ctimer2M1ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_Ctimer4M1ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_ArmTxevToFlexPwm1Sm0Exta
enumerator kINPUTMUX_GpioIntBmatchToFlexPwm1Sm0Exta
enumerator kINPUTMUX_Adc0Tcomp0ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_Adc0Tcomp1ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_Adc0Tcomp2ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_Adc0Tcomp3ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_Adc1Tcomp0ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_Adc1Tcomp1ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_Adc1Tcomp2ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_Adc1Tcomp3ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_Cmp0OutToFlexPwm1Sm0Exta
enumerator kINPUTMUX_Cmp1OutToFlexPwm1Sm0Exta
enumerator kINPUTMUX_Cmp2OutToFlexPwm1Sm0Exta
enumerator kINPUTMUX_Pwm0A0Trig0ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_Pwm0A0Trig1ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_Pwm0A1Trig0ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_Pwm0A1Trig1ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_Pwm0A2Trig0ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_Pwm0A2Trig1ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_Pwm0A3Trig0ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_Pwm0A3Trig1ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_Qdc0CmpPosMatchToFlexPwm1Sm0Exta
enumerator kINPUTMUX_Qdc1CmpPosMatchToFlexPwm1Sm0Exta
enumerator kINPUTMUX_EvtgOut0AToFlexPwm1Sm0Exta
enumerator kINPUTMUX_EvtgOut0BToFlexPwm1Sm0Exta
enumerator kINPUTMUX_EvtgOut1AToFlexPwm1Sm0Exta
enumerator kINPUTMUX_EvtgOut1BToFlexPwm1Sm0Exta
enumerator kINPUTMUX_EvtgOut2AToFlexPwm1Sm0Exta
enumerator kINPUTMUX_EvtgOut2BToFlexPwm1Sm0Exta
enumerator kINPUTMUX_EvtgOut3AToFlexPwm1Sm0Exta
enumerator kINPUTMUX_EvtgOut3BToFlexPwm1Sm0Exta
enumerator kINPUTMUX_TrigIn0ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_TrigIn1ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_TrigIn2ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_TrigIn3ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_TrigIn4ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_TrigIn5ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_TrigIn6ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_TrigIn7ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_TrigIn8ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_TrigIn9ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_SincFilterCh0ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_SincFilterCh1ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_SincFilterCh2ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_SincFilterCh3ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_SincFilterCh4ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_Gpio2PinEventTrig0ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_Gpio2PinEventTrig1ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_Gpio3PinEventTrig0ToFlexPwm1Sm0Exta
enumerator kINPUTMUX_Gpio3PinEventTrig1ToFlexPwm1Sm0Exta

FlexPWM1_SM1_EXTA input trigger connections.

enumerator kINPUTMUX_PinInt0ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_PinInt2ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_SctOut4ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_SctOut5ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_SctOut3ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_Ctimer0M3ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_Ctimer1M3ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_Ctimer2M3ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_Ctimer2M1ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_Ctimer4M1ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_ArmTxevToFlexPwm1Sm1Exta
enumerator kINPUTMUX_GpioIntBmatchToFlexPwm1Sm1Exta
enumerator kINPUTMUX_Adc0Tcomp0ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_Adc0Tcomp1ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_Adc0Tcomp2ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_Adc0Tcomp3ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_Adc1Tcomp0ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_Adc1Tcomp1ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_Adc1Tcomp2ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_Adc1Tcomp3ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_Cmp0OutToFlexPwm1Sm1Exta
enumerator kINPUTMUX_Cmp1OutToFlexPwm1Sm1Exta
enumerator kINPUTMUX_Cmp2OutToFlexPwm1Sm1Exta
enumerator kINPUTMUX_Pwm0A0Trig0ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_Pwm0A0Trig1ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_Pwm0A1Trig0ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_Pwm0A1Trig1ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_Pwm0A2Trig0ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_Pwm0A2Trig1ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_Pwm0A3Trig0ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_Pwm0A3Trig1ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_Qdc0CmpPosMatchToFlexPwm1Sm1Exta
enumerator kINPUTMUX_Qdc1CmpPosMatchToFlexPwm1Sm1Exta
enumerator kINPUTMUX_EvtgOut0AToFlexPwm1Sm1Exta
enumerator kINPUTMUX_EvtgOut0BToFlexPwm1Sm1Exta
enumerator kINPUTMUX_EvtgOut1AToFlexPwm1Sm1Exta
enumerator kINPUTMUX_EvtgOut1BToFlexPwm1Sm1Exta
enumerator kINPUTMUX_EvtgOut2AToFlexPwm1Sm1Exta
enumerator kINPUTMUX_EvtgOut2BToFlexPwm1Sm1Exta
enumerator kINPUTMUX_EvtgOut3AToFlexPwm1Sm1Exta
enumerator kINPUTMUX_EvtgOut3BToFlexPwm1Sm1Exta
enumerator kINPUTMUX_TrigIn0ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_TrigIn1ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_TrigIn2ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_TrigIn3ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_TrigIn4ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_TrigIn5ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_TrigIn6ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_TrigIn7ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_TrigIn8ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_TrigIn9ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_SincFilterCh0ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_SincFilterCh1ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_SincFilterCh2ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_SincFilterCh3ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_SincFilterCh4ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_Gpio2PinEventTrig0ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_Gpio2PinEventTrig1ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_Gpio3PinEventTrig0ToFlexPwm1Sm1Exta
enumerator kINPUTMUX_Gpio3PinEventTrig1ToFlexPwm1Sm1Exta

FlexPWM1_SM2_EXTA input trigger connections.

enumerator kINPUTMUX_PinInt0ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_PinInt2ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_SctOut4ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_SctOut5ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_SctOut3ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_Ctimer0M3ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_Ctimer1M3ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_Ctimer2M3ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_Ctimer2M1ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_Ctimer4M1ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_ArmTxevToFlexPwm1Sm2Exta
enumerator kINPUTMUX_GpioIntBmatchToFlexPwm1Sm2Exta
enumerator kINPUTMUX_Adc0Tcomp0ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_Adc0Tcomp1ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_Adc0Tcomp2ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_Adc0Tcomp3ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_Adc1Tcomp0ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_Adc1Tcomp1ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_Adc1Tcomp2ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_Adc1Tcomp3ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_Cmp0OutToFlexPwm1Sm2Exta
enumerator kINPUTMUX_Cmp1OutToFlexPwm1Sm2Exta
enumerator kINPUTMUX_Cmp2OutToFlexPwm1Sm2Exta
enumerator kINPUTMUX_Pwm0A0Trig0ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_Pwm0A0Trig1ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_Pwm0A1Trig0ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_Pwm0A1Trig1ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_Pwm0A2Trig0ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_Pwm0A2Trig1ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_Pwm0A3Trig0ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_Pwm0A3Trig1ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_Qdc0CmpPosMatchToFlexPwm1Sm2Exta
enumerator kINPUTMUX_Qdc1CmpPosMatchToFlexPwm1Sm2Exta
enumerator kINPUTMUX_EvtgOut0AToFlexPwm1Sm2Exta
enumerator kINPUTMUX_EvtgOut0BToFlexPwm1Sm2Exta
enumerator kINPUTMUX_EvtgOut1AToFlexPwm1Sm2Exta
enumerator kINPUTMUX_EvtgOut1BToFlexPwm1Sm2Exta
enumerator kINPUTMUX_EvtgOut2AToFlexPwm1Sm2Exta
enumerator kINPUTMUX_EvtgOut2BToFlexPwm1Sm2Exta
enumerator kINPUTMUX_EvtgOut3AToFlexPwm1Sm2Exta
enumerator kINPUTMUX_EvtgOut3BToFlexPwm1Sm2Exta
enumerator kINPUTMUX_TrigIn0ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_TrigIn1ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_TrigIn2ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_TrigIn3ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_TrigIn4ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_TrigIn5ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_TrigIn6ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_TrigIn7ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_TrigIn8ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_TrigIn9ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_SincFilterCh0ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_SincFilterCh1ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_SincFilterCh2ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_SincFilterCh3ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_SincFilterCh4ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_Gpio2PinEventTrig0ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_Gpio2PinEventTrig1ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_Gpio3PinEventTrig0ToFlexPwm1Sm2Exta
enumerator kINPUTMUX_Gpio3PinEventTrig1ToFlexPwm1Sm2Exta

FlexPWM1_SM3_EXTA input trigger connections.

enumerator kINPUTMUX_PinInt0ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_PinInt2ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_SctOut4ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_SctOut5ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_SctOut3ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_Ctimer0M3ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_Ctimer1M3ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_Ctimer2M3ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_Ctimer2M1ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_Ctimer4M1ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_ArmTxevToFlexPwm1Sm3Exta
enumerator kINPUTMUX_GpioIntBmatchToFlexPwm1Sm3Exta
enumerator kINPUTMUX_Adc0Tcomp0ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_Adc0Tcomp1ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_Adc0Tcomp2ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_Adc0Tcomp3ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_Adc1Tcomp0ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_Adc1Tcomp1ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_Adc1Tcomp2ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_Adc1Tcomp3ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_Cmp0OutToFlexPwm1Sm3Exta
enumerator kINPUTMUX_Cmp1OutToFlexPwm1Sm3Exta
enumerator kINPUTMUX_Cmp2OutToFlexPwm1Sm3Exta
enumerator kINPUTMUX_Pwm0A0Trig0ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_Pwm0A0Trig1ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_Pwm0A1Trig0ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_Pwm0A1Trig1ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_Pwm0A2Trig0ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_Pwm0A2Trig1ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_Pwm0A3Trig0ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_Pwm0A3Trig1ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_Qdc0CmpPosMatchToFlexPwm1Sm3Exta
enumerator kINPUTMUX_Qdc1CmpPosMatchToFlexPwm1Sm3Exta
enumerator kINPUTMUX_EvtgOut0AToFlexPwm1Sm3Exta
enumerator kINPUTMUX_EvtgOut0BToFlexPwm1Sm3Exta
enumerator kINPUTMUX_EvtgOut1AToFlexPwm1Sm3Exta
enumerator kINPUTMUX_EvtgOut1BToFlexPwm1Sm3Exta
enumerator kINPUTMUX_EvtgOut2AToFlexPwm1Sm3Exta
enumerator kINPUTMUX_EvtgOut2BToFlexPwm1Sm3Exta
enumerator kINPUTMUX_EvtgOut3AToFlexPwm1Sm3Exta
enumerator kINPUTMUX_EvtgOut3BToFlexPwm1Sm3Exta
enumerator kINPUTMUX_TrigIn0ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_TrigIn1ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_TrigIn2ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_TrigIn3ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_TrigIn4ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_TrigIn5ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_TrigIn6ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_TrigIn7ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_TrigIn8ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_TrigIn9ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_SincFilterCh0ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_SincFilterCh1ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_SincFilterCh2ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_SincFilterCh3ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_SincFilterCh4ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_Gpio2PinEventTrig0ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_Gpio2PinEventTrig1ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_Gpio3PinEventTrig0ToFlexPwm1Sm3Exta
enumerator kINPUTMUX_Gpio3PinEventTrig1ToFlexPwm1Sm3Exta

FlexPWM1_EXTFORCE input trigger connections.

enumerator kINPUTMUX_PinInt0ToFlexPwm1ExtForce
enumerator kINPUTMUX_PinInt2ToFlexPwm1ExtForce
enumerator kINPUTMUX_SctOut4ToFlexPwm1ExtForce
enumerator kINPUTMUX_SctOut5ToFlexPwm1ExtForce
enumerator kINPUTMUX_SctOut3ToFlexPwm1ExtForce
enumerator kINPUTMUX_Ctimer0M3ToFlexPwm1ExtForce
enumerator kINPUTMUX_Ctimer1M3ToFlexPwm1ExtForce
enumerator kINPUTMUX_Ctimer2M3ToFlexPwm1ExtForce
enumerator kINPUTMUX_Ctimer2M1ToFlexPwm1ExtForce
enumerator kINPUTMUX_Ctimer4M1ToFlexPwm1ExtForce
enumerator kINPUTMUX_ArmTxevToFlexPwm1ExtForce
enumerator kINPUTMUX_GpioIntBmatchToFlexPwm1ExtForce
enumerator kINPUTMUX_Adc0Tcomp0ToFlexPwm1ExtForce
enumerator kINPUTMUX_Adc0Tcomp1ToFlexPwm1ExtForce
enumerator kINPUTMUX_Adc0Tcomp2ToFlexPwm1ExtForce
enumerator kINPUTMUX_Adc0Tcomp3ToFlexPwm1ExtForce
enumerator kINPUTMUX_Adc1Tcomp0ToFlexPwm1ExtForce
enumerator kINPUTMUX_Adc1Tcomp1ToFlexPwm1ExtForce
enumerator kINPUTMUX_Adc1Tcomp2ToFlexPwm1ExtForce
enumerator kINPUTMUX_Adc1Tcomp3ToFlexPwm1ExtForce
enumerator kINPUTMUX_Cmp0OutToFlexPwm1ExtForce
enumerator kINPUTMUX_Cmp1OutToFlexPwm1ExtForce
enumerator kINPUTMUX_Cmp2OutToFlexPwm1ExtForce
enumerator kINPUTMUX_Pwm0A0Trig0ToFlexPwm1ExtForce
enumerator kINPUTMUX_Pwm0A0Trig1ToFlexPwm1ExtForce
enumerator kINPUTMUX_Pwm0A1Trig0ToFlexPwm1ExtForce
enumerator kINPUTMUX_Pwm0A1Trig1ToFlexPwm1ExtForce
enumerator kINPUTMUX_Pwm0A2Trig0ToFlexPwm1ExtForce
enumerator kINPUTMUX_Pwm0A2Trig1ToFlexPwm1ExtForce
enumerator kINPUTMUX_Pwm0A3Trig0ToFlexPwm1ExtForce
enumerator kINPUTMUX_Pwm0A3Trig1ToFlexPwm1ExtForce
enumerator kINPUTMUX_Qdc0CmpPosMatchToFlexPwm1ExtForce
enumerator kINPUTMUX_Qdc1CmpPosMatchToFlexPwm1ExtForce
enumerator kINPUTMUX_EvtgOut0AToFlexPwm1ExtForce
enumerator kINPUTMUX_EvtgOut0BToFlexPwm1ExtForce
enumerator kINPUTMUX_EvtgOut1AToFlexPwm1ExtForce
enumerator kINPUTMUX_EvtgOut1BToFlexPwm1ExtForce
enumerator kINPUTMUX_EvtgOut2AToFlexPwm1ExtForce
enumerator kINPUTMUX_EvtgOut2BToFlexPwm1ExtForce
enumerator kINPUTMUX_EvtgOut3AToFlexPwm1ExtForce
enumerator kINPUTMUX_EvtgOut3BToFlexPwm1ExtForce
enumerator kINPUTMUX_TrigIn0ToFlexPwm1ExtForce
enumerator kINPUTMUX_TrigIn1ToFlexPwm1ExtForce
enumerator kINPUTMUX_TrigIn2ToFlexPwm1ExtForce
enumerator kINPUTMUX_TrigIn3ToFlexPwm1ExtForce
enumerator kINPUTMUX_TrigIn4ToFlexPwm1ExtForce
enumerator kINPUTMUX_TrigIn5ToFlexPwm1ExtForce
enumerator kINPUTMUX_TrigIn6ToFlexPwm1ExtForce
enumerator kINPUTMUX_TrigIn7ToFlexPwm1ExtForce
enumerator kINPUTMUX_TrigIn8ToFlexPwm1ExtForce
enumerator kINPUTMUX_TrigIn9ToFlexPwm1ExtForce
enumerator kINPUTMUX_SincFilterCh0ToFlexPwm1ExtForce
enumerator kINPUTMUX_SincFilterCh1ToFlexPwm1ExtForce
enumerator kINPUTMUX_SincFilterCh2ToFlexPwm1ExtForce
enumerator kINPUTMUX_SincFilterCh3ToFlexPwm1ExtForce
enumerator kINPUTMUX_SincFilterCh4ToFlexPwm1ExtForce
enumerator kINPUTMUX_Gpio2PinEventTrig0ToFlexPwm1ExtForce
enumerator kINPUTMUX_Gpio2PinEventTrig1ToFlexPwm1ExtForce
enumerator kINPUTMUX_Gpio3PinEventTrig0ToFlexPwm1ExtForce
enumerator kINPUTMUX_Gpio3PinEventTrig1ToFlexPwm1ExtForce

FlexPWM1_FAULT0 input trigger connections.

enumerator kINPUTMUX_PinInt0ToFlexPwm1Fault0
enumerator kINPUTMUX_PinInt2ToFlexPwm1Fault0
enumerator kINPUTMUX_SctOut4ToFlexPwm1Fault0
enumerator kINPUTMUX_SctOut5ToFlexPwm1Fault0
enumerator kINPUTMUX_SctOut3ToFlexPwm1Fault0
enumerator kINPUTMUX_Ctimer0M3ToFlexPwm1Fault0
enumerator kINPUTMUX_Ctimer1M3ToFlexPwm1Fault0
enumerator kINPUTMUX_Ctimer2M3ToFlexPwm1Fault0
enumerator kINPUTMUX_Ctimer2M1ToFlexPwm1Fault0
enumerator kINPUTMUX_Ctimer4M1ToFlexPwm1Fault0
enumerator kINPUTMUX_ArmTxevToFlexPwm1Fault0
enumerator kINPUTMUX_GpioIntBmatchToFlexPwm1Fault0
enumerator kINPUTMUX_Adc0Tcomp0ToFlexPwm1Fault0
enumerator kINPUTMUX_Adc0Tcomp1ToFlexPwm1Fault0
enumerator kINPUTMUX_Adc0Tcomp2ToFlexPwm1Fault0
enumerator kINPUTMUX_Adc0Tcomp3ToFlexPwm1Fault0
enumerator kINPUTMUX_Adc1Tcomp0ToFlexPwm1Fault0
enumerator kINPUTMUX_Adc1Tcomp1ToFlexPwm1Fault0
enumerator kINPUTMUX_Adc1Tcomp2ToFlexPwm1Fault0
enumerator kINPUTMUX_Adc1Tcomp3ToFlexPwm1Fault0
enumerator kINPUTMUX_Cmp0OutToFlexPwm1Fault0
enumerator kINPUTMUX_Cmp1OutToFlexPwm1Fault0
enumerator kINPUTMUX_Cmp2OutToFlexPwm1Fault0
enumerator kINPUTMUX_Pwm0A0Trig0ToFlexPwm1Fault0
enumerator kINPUTMUX_Pwm0A0Trig1ToFlexPwm1Fault0
enumerator kINPUTMUX_Pwm0A1Trig0ToFlexPwm1Fault0
enumerator kINPUTMUX_Pwm0A1Trig1ToFlexPwm1Fault0
enumerator kINPUTMUX_Pwm0A2Trig0ToFlexPwm1Fault0
enumerator kINPUTMUX_Pwm0A2Trig1ToFlexPwm1Fault0
enumerator kINPUTMUX_Pwm0A3Trig0ToFlexPwm1Fault0
enumerator kINPUTMUX_Pwm0A3Trig1ToFlexPwm1Fault0
enumerator kINPUTMUX_Qdc0CmpPosMatchToFlexPwm1Fault0
enumerator kINPUTMUX_Qdc1CmpPosMatchToFlexPwm1Fault0
enumerator kINPUTMUX_EvtgOut0AToFlexPwm1Fault0
enumerator kINPUTMUX_EvtgOut0BToFlexPwm1Fault0
enumerator kINPUTMUX_EvtgOut1AToFlexPwm1Fault0
enumerator kINPUTMUX_EvtgOut1BToFlexPwm1Fault0
enumerator kINPUTMUX_EvtgOut2AToFlexPwm1Fault0
enumerator kINPUTMUX_EvtgOut2BToFlexPwm1Fault0
enumerator kINPUTMUX_EvtgOut3AToFlexPwm1Fault0
enumerator kINPUTMUX_EvtgOut3BToFlexPwm1Fault0
enumerator kINPUTMUX_TrigIn0ToFlexPwm1Fault0
enumerator kINPUTMUX_TrigIn1ToFlexPwm1Fault0
enumerator kINPUTMUX_TrigIn2ToFlexPwm1Fault0
enumerator kINPUTMUX_TrigIn3ToFlexPwm1Fault0
enumerator kINPUTMUX_TrigIn4ToFlexPwm1Fault0
enumerator kINPUTMUX_TrigIn5ToFlexPwm1Fault0
enumerator kINPUTMUX_TrigIn6ToFlexPwm1Fault0
enumerator kINPUTMUX_TrigIn7ToFlexPwm1Fault0
enumerator kINPUTMUX_TrigIn8ToFlexPwm1Fault0
enumerator kINPUTMUX_TrigIn9ToFlexPwm1Fault0
enumerator kINPUTMUX_SincFilterCh0ToFlexPwm1Fault0
enumerator kINPUTMUX_SincFilterCh1ToFlexPwm1Fault0
enumerator kINPUTMUX_SincFilterCh2ToFlexPwm1Fault0
enumerator kINPUTMUX_SincFilterCh3ToFlexPwm1Fault0
enumerator kINPUTMUX_SincFilterCh4ToFlexPwm1Fault0
enumerator kINPUTMUX_Gpio2PinEventTrig0ToFlexPwm1Fault0
enumerator kINPUTMUX_Gpio2PinEventTrig1ToFlexPwm1Fault0
enumerator kINPUTMUX_Gpio3PinEventTrig0ToFlexPwm1Fault0
enumerator kINPUTMUX_Gpio3PinEventTrig1ToFlexPwm1Fault0

FlexPWM1_FAULT1 input trigger connections.

enumerator kINPUTMUX_PinInt0ToFlexPwm1Fault1
enumerator kINPUTMUX_PinInt2ToFlexPwm1Fault1
enumerator kINPUTMUX_SctOut4ToFlexPwm1Fault1
enumerator kINPUTMUX_SctOut5ToFlexPwm1Fault1
enumerator kINPUTMUX_SctOut3ToFlexPwm1Fault1
enumerator kINPUTMUX_Ctimer0M3ToFlexPwm1Fault1
enumerator kINPUTMUX_Ctimer1M3ToFlexPwm1Fault1
enumerator kINPUTMUX_Ctimer2M3ToFlexPwm1Fault1
enumerator kINPUTMUX_Ctimer2M1ToFlexPwm1Fault1
enumerator kINPUTMUX_Ctimer4M1ToFlexPwm1Fault1
enumerator kINPUTMUX_ArmTxevToFlexPwm1Fault1
enumerator kINPUTMUX_GpioIntBmatchToFlexPwm1Fault1
enumerator kINPUTMUX_Adc0Tcomp0ToFlexPwm1Fault1
enumerator kINPUTMUX_Adc0Tcomp1ToFlexPwm1Fault1
enumerator kINPUTMUX_Adc0Tcomp2ToFlexPwm1Fault1
enumerator kINPUTMUX_Adc0Tcomp3ToFlexPwm1Fault1
enumerator kINPUTMUX_Adc1Tcomp0ToFlexPwm1Fault1
enumerator kINPUTMUX_Adc1Tcomp1ToFlexPwm1Fault1
enumerator kINPUTMUX_Adc1Tcomp2ToFlexPwm1Fault1
enumerator kINPUTMUX_Adc1Tcomp3ToFlexPwm1Fault1
enumerator kINPUTMUX_Cmp0OutToFlexPwm1Fault1
enumerator kINPUTMUX_Cmp1OutToFlexPwm1Fault1
enumerator kINPUTMUX_Cmp2OutToFlexPwm1Fault1
enumerator kINPUTMUX_Pwm0A0Trig0ToFlexPwm1Fault1
enumerator kINPUTMUX_Pwm0A0Trig1ToFlexPwm1Fault1
enumerator kINPUTMUX_Pwm0A1Trig0ToFlexPwm1Fault1
enumerator kINPUTMUX_Pwm0A1Trig1ToFlexPwm1Fault1
enumerator kINPUTMUX_Pwm0A2Trig0ToFlexPwm1Fault1
enumerator kINPUTMUX_Pwm0A2Trig1ToFlexPwm1Fault1
enumerator kINPUTMUX_Pwm0A3Trig0ToFlexPwm1Fault1
enumerator kINPUTMUX_Pwm0A3Trig1ToFlexPwm1Fault1
enumerator kINPUTMUX_Qdc0CmpPosMatchToFlexPwm1Fault1
enumerator kINPUTMUX_Qdc1CmpPosMatchToFlexPwm1Fault1
enumerator kINPUTMUX_EvtgOut0AToFlexPwm1Fault1
enumerator kINPUTMUX_EvtgOut0BToFlexPwm1Fault1
enumerator kINPUTMUX_EvtgOut1AToFlexPwm1Fault1
enumerator kINPUTMUX_EvtgOut1BToFlexPwm1Fault1
enumerator kINPUTMUX_EvtgOut2AToFlexPwm1Fault1
enumerator kINPUTMUX_EvtgOut2BToFlexPwm1Fault1
enumerator kINPUTMUX_EvtgOut3AToFlexPwm1Fault1
enumerator kINPUTMUX_EvtgOut3BToFlexPwm1Fault1
enumerator kINPUTMUX_TrigIn0ToFlexPwm1Fault1
enumerator kINPUTMUX_TrigIn1ToFlexPwm1Fault1
enumerator kINPUTMUX_TrigIn2ToFlexPwm1Fault1
enumerator kINPUTMUX_TrigIn3ToFlexPwm1Fault1
enumerator kINPUTMUX_TrigIn4ToFlexPwm1Fault1
enumerator kINPUTMUX_TrigIn5ToFlexPwm1Fault1
enumerator kINPUTMUX_TrigIn6ToFlexPwm1Fault1
enumerator kINPUTMUX_TrigIn7ToFlexPwm1Fault1
enumerator kINPUTMUX_TrigIn8ToFlexPwm1Fault1
enumerator kINPUTMUX_TrigIn9ToFlexPwm1Fault1
enumerator kINPUTMUX_SincFilterCh0ToFlexPwm1Fault1
enumerator kINPUTMUX_SincFilterCh1ToFlexPwm1Fault1
enumerator kINPUTMUX_SincFilterCh2ToFlexPwm1Fault1
enumerator kINPUTMUX_SincFilterCh3ToFlexPwm1Fault1
enumerator kINPUTMUX_SincFilterCh4ToFlexPwm1Fault1
enumerator kINPUTMUX_Gpio2PinEventTrig0ToFlexPwm1Fault1
enumerator kINPUTMUX_Gpio2PinEventTrig1ToFlexPwm1Fault1
enumerator kINPUTMUX_Gpio3PinEventTrig0ToFlexPwm1Fault1
enumerator kINPUTMUX_Gpio3PinEventTrig1ToFlexPwm1Fault1

FlexPWM1_FAULT2 input trigger connections.

enumerator kINPUTMUX_PinInt0ToFlexPwm1Fault2
enumerator kINPUTMUX_PinInt2ToFlexPwm1Fault2
enumerator kINPUTMUX_SctOut4ToFlexPwm1Fault2
enumerator kINPUTMUX_SctOut5ToFlexPwm1Fault2
enumerator kINPUTMUX_SctOut3ToFlexPwm1Fault2
enumerator kINPUTMUX_Ctimer0M3ToFlexPwm1Fault2
enumerator kINPUTMUX_Ctimer1M3ToFlexPwm1Fault2
enumerator kINPUTMUX_Ctimer2M3ToFlexPwm1Fault2
enumerator kINPUTMUX_Ctimer2M1ToFlexPwm1Fault2
enumerator kINPUTMUX_Ctimer4M1ToFlexPwm1Fault2
enumerator kINPUTMUX_ArmTxevToFlexPwm1Fault2
enumerator kINPUTMUX_GpioIntBmatchToFlexPwm1Fault2
enumerator kINPUTMUX_Adc0Tcomp0ToFlexPwm1Fault2
enumerator kINPUTMUX_Adc0Tcomp1ToFlexPwm1Fault2
enumerator kINPUTMUX_Adc0Tcomp2ToFlexPwm1Fault2
enumerator kINPUTMUX_Adc0Tcomp3ToFlexPwm1Fault2
enumerator kINPUTMUX_Adc1Tcomp0ToFlexPwm1Fault2
enumerator kINPUTMUX_Adc1Tcomp1ToFlexPwm1Fault2
enumerator kINPUTMUX_Adc1Tcomp2ToFlexPwm1Fault2
enumerator kINPUTMUX_Adc1Tcomp3ToFlexPwm1Fault2
enumerator kINPUTMUX_Cmp0OutToFlexPwm1Fault2
enumerator kINPUTMUX_Cmp1OutToFlexPwm1Fault2
enumerator kINPUTMUX_Cmp2OutToFlexPwm1Fault2
enumerator kINPUTMUX_Pwm0A0Trig0ToFlexPwm1Fault2
enumerator kINPUTMUX_Pwm0A0Trig1ToFlexPwm1Fault2
enumerator kINPUTMUX_Pwm0A1Trig0ToFlexPwm1Fault2
enumerator kINPUTMUX_Pwm0A1Trig1ToFlexPwm1Fault2
enumerator kINPUTMUX_Pwm0A2Trig0ToFlexPwm1Fault2
enumerator kINPUTMUX_Pwm0A2Trig1ToFlexPwm1Fault2
enumerator kINPUTMUX_Pwm0A3Trig0ToFlexPwm1Fault2
enumerator kINPUTMUX_Pwm0A3Trig1ToFlexPwm1Fault2
enumerator kINPUTMUX_Qdc0CmpPosMatchToFlexPwm1Fault2
enumerator kINPUTMUX_Qdc1CmpPosMatchToFlexPwm1Fault2
enumerator kINPUTMUX_EvtgOut0AToFlexPwm1Fault2
enumerator kINPUTMUX_EvtgOut0BToFlexPwm1Fault2
enumerator kINPUTMUX_EvtgOut1AToFlexPwm1Fault2
enumerator kINPUTMUX_EvtgOut1BToFlexPwm1Fault2
enumerator kINPUTMUX_EvtgOut2AToFlexPwm1Fault2
enumerator kINPUTMUX_EvtgOut2BToFlexPwm1Fault2
enumerator kINPUTMUX_EvtgOut3AToFlexPwm1Fault2
enumerator kINPUTMUX_EvtgOut3BToFlexPwm1Fault2
enumerator kINPUTMUX_TrigIn0ToFlexPwm1Fault2
enumerator kINPUTMUX_TrigIn1ToFlexPwm1Fault2
enumerator kINPUTMUX_TrigIn2ToFlexPwm1Fault2
enumerator kINPUTMUX_TrigIn3ToFlexPwm1Fault2
enumerator kINPUTMUX_TrigIn4ToFlexPwm1Fault2
enumerator kINPUTMUX_TrigIn5ToFlexPwm1Fault2
enumerator kINPUTMUX_TrigIn6ToFlexPwm1Fault2
enumerator kINPUTMUX_TrigIn7ToFlexPwm1Fault2
enumerator kINPUTMUX_TrigIn8ToFlexPwm1Fault2
enumerator kINPUTMUX_TrigIn9ToFlexPwm1Fault2
enumerator kINPUTMUX_SincFilterCh0ToFlexPwm1Fault2
enumerator kINPUTMUX_SincFilterCh1ToFlexPwm1Fault2
enumerator kINPUTMUX_SincFilterCh2ToFlexPwm1Fault2
enumerator kINPUTMUX_SincFilterCh3ToFlexPwm1Fault2
enumerator kINPUTMUX_SincFilterCh4ToFlexPwm1Fault2
enumerator kINPUTMUX_Gpio2PinEventTrig0ToFlexPwm1Fault2
enumerator kINPUTMUX_Gpio2PinEventTrig1ToFlexPwm1Fault2
enumerator kINPUTMUX_Gpio3PinEventTrig0ToFlexPwm1Fault2
enumerator kINPUTMUX_Gpio3PinEventTrig1ToFlexPwm1Fault2

FlexPWM1_FAULT3 input trigger connections.

enumerator kINPUTMUX_PinInt0ToFlexPwm1Fault3
enumerator kINPUTMUX_PinInt2ToFlexPwm1Fault3
enumerator kINPUTMUX_SctOut4ToFlexPwm1Fault3
enumerator kINPUTMUX_SctOut5ToFlexPwm1Fault3
enumerator kINPUTMUX_SctOut3ToFlexPwm1Fault3
enumerator kINPUTMUX_Ctimer0M3ToFlexPwm1Fault3
enumerator kINPUTMUX_Ctimer1M3ToFlexPwm1Fault3
enumerator kINPUTMUX_Ctimer2M3ToFlexPwm1Fault3
enumerator kINPUTMUX_Ctimer2M1ToFlexPwm1Fault3
enumerator kINPUTMUX_Ctimer4M1ToFlexPwm1Fault3
enumerator kINPUTMUX_ArmTxevToFlexPwm1Fault3
enumerator kINPUTMUX_GpioIntBmatchToFlexPwm1Fault3
enumerator kINPUTMUX_Adc0Tcomp0ToFlexPwm1Fault3
enumerator kINPUTMUX_Adc0Tcomp1ToFlexPwm1Fault3
enumerator kINPUTMUX_Adc0Tcomp2ToFlexPwm1Fault3
enumerator kINPUTMUX_Adc0Tcomp3ToFlexPwm1Fault3
enumerator kINPUTMUX_Adc1Tcomp0ToFlexPwm1Fault3
enumerator kINPUTMUX_Adc1Tcomp1ToFlexPwm1Fault3
enumerator kINPUTMUX_Adc1Tcomp2ToFlexPwm1Fault3
enumerator kINPUTMUX_Adc1Tcomp3ToFlexPwm1Fault3
enumerator kINPUTMUX_Cmp0OutToFlexPwm1Fault3
enumerator kINPUTMUX_Cmp1OutToFlexPwm1Fault3
enumerator kINPUTMUX_Cmp2OutToFlexPwm1Fault3
enumerator kINPUTMUX_Pwm0A0Trig0ToFlexPwm1Fault3
enumerator kINPUTMUX_Pwm0A0Trig1ToFlexPwm1Fault3
enumerator kINPUTMUX_Pwm0A1Trig0ToFlexPwm1Fault3
enumerator kINPUTMUX_Pwm0A1Trig1ToFlexPwm1Fault3
enumerator kINPUTMUX_Pwm0A2Trig0ToFlexPwm1Fault3
enumerator kINPUTMUX_Pwm0A2Trig1ToFlexPwm1Fault3
enumerator kINPUTMUX_Pwm0A3Trig0ToFlexPwm1Fault3
enumerator kINPUTMUX_Pwm0A3Trig1ToFlexPwm1Fault3
enumerator kINPUTMUX_Qdc0CmpPosMatchToFlexPwm1Fault3
enumerator kINPUTMUX_Qdc1CmpPosMatchToFlexPwm1Fault3
enumerator kINPUTMUX_EvtgOut0AToFlexPwm1Fault3
enumerator kINPUTMUX_EvtgOut0BToFlexPwm1Fault3
enumerator kINPUTMUX_EvtgOut1AToFlexPwm1Fault3
enumerator kINPUTMUX_EvtgOut1BToFlexPwm1Fault3
enumerator kINPUTMUX_EvtgOut2AToFlexPwm1Fault3
enumerator kINPUTMUX_EvtgOut2BToFlexPwm1Fault3
enumerator kINPUTMUX_EvtgOut3AToFlexPwm1Fault3
enumerator kINPUTMUX_EvtgOut3BToFlexPwm1Fault3
enumerator kINPUTMUX_TrigIn0ToFlexPwm1Fault3
enumerator kINPUTMUX_TrigIn1ToFlexPwm1Fault3
enumerator kINPUTMUX_TrigIn2ToFlexPwm1Fault3
enumerator kINPUTMUX_TrigIn3ToFlexPwm1Fault3
enumerator kINPUTMUX_TrigIn4ToFlexPwm1Fault3
enumerator kINPUTMUX_TrigIn5ToFlexPwm1Fault3
enumerator kINPUTMUX_TrigIn6ToFlexPwm1Fault3
enumerator kINPUTMUX_TrigIn7ToFlexPwm1Fault3
enumerator kINPUTMUX_TrigIn8ToFlexPwm1Fault3
enumerator kINPUTMUX_TrigIn9ToFlexPwm1Fault3
enumerator kINPUTMUX_SincFilterCh0ToFlexPwm1Fault3
enumerator kINPUTMUX_SincFilterCh1ToFlexPwm1Fault3
enumerator kINPUTMUX_SincFilterCh2ToFlexPwm1Fault3
enumerator kINPUTMUX_SincFilterCh3ToFlexPwm1Fault3
enumerator kINPUTMUX_SincFilterCh4ToFlexPwm1Fault3
enumerator kINPUTMUX_Gpio2PinEventTrig0ToFlexPwm1Fault3
enumerator kINPUTMUX_Gpio2PinEventTrig1ToFlexPwm1Fault3
enumerator kINPUTMUX_Gpio3PinEventTrig0ToFlexPwm1Fault3
enumerator kINPUTMUX_Gpio3PinEventTrig1ToFlexPwm1Fault3

PWM0 external clock trigger.

enumerator kINPUTMUX_Fro16KToPwm0ExtClk
enumerator kINPUTMUX_Osc32KToPwm0ExtClk
enumerator kINPUTMUX_EvtgOut0AToPwm0ExtClk
enumerator kINPUTMUX_EvtgOut1AToPwm0ExtClk
enumerator kINPUTMUX_ExttrigIn0ToPwm0ExtClk
enumerator kINPUTMUX_ExttrigIn1ToPwm0ExtClk

PWM1 external clock trigger.

enumerator kINPUTMUX_Fro16KToPwm1ExtClk
enumerator kINPUTMUX_Osc32KToPwm1ExtClk
enumerator kINPUTMUX_EvtgOut0AToPwm1ExtClk
enumerator kINPUTMUX_EvtgOut1AToPwm1ExtClk
enumerator kINPUTMUX_ExttrigIn0ToPwm1ExtClk
enumerator kINPUTMUX_ExttrigIn1ToPwm1ExtClk

EVTG trigger input connections.

enumerator kINPUTMUX_PinInt0ToEvtgTrigger
enumerator kINPUTMUX_PinInt1ToEvtgTrigger
enumerator kINPUTMUX_SctOut0ToEvtgTrigger
enumerator kINPUTMUX_SctOut1ToEvtgTrigger
enumerator kINPUTMUX_SctOut2ToEvtgTrigger
enumerator kINPUTMUX_SctOut3ToEvtgTrigger
enumerator kINPUTMUX_Ctimer0M3ToEvtgTrigger
enumerator kINPUTMUX_Ctimer1M3ToEvtgTrigger
enumerator kINPUTMUX_Ctimer2M3ToEvtgTrigger
enumerator kINPUTMUX_Ctimer2M2ToEvtgTrigger
enumerator kINPUTMUX_Ctimer3M2ToEvtgTrigger
enumerator kINPUTMUX_Ctimer4M2ToEvtgTrigger
enumerator kINPUTMUX_GpioIntBmatchToEvtgTrigger
enumerator kINPUTMUX_Adc0IrqToEvtgTrigger
enumerator kINPUTMUX_Adc1IrqToEvtgTrigger
enumerator kINPUTMUX_Adc0Tcomp0ToEvtgTrigger
enumerator kINPUTMUX_Adc0Tcomp1ToEvtgTrigger
enumerator kINPUTMUX_Adc0Tcomp2ToEvtgTrigger
enumerator kINPUTMUX_Adc0Tcomp3ToEvtgTrigger
enumerator kINPUTMUX_Adc1Tcomp0ToEvtgTrigger
enumerator kINPUTMUX_Adc1Tcomp1ToEvtgTrigger
enumerator kINPUTMUX_Adc1Tcomp2ToEvtgTrigger
enumerator kINPUTMUX_Adc1Tcomp3ToEvtgTrigger
enumerator kINPUTMUX_Cmp0OutToEvtgTrigger
enumerator kINPUTMUX_Cmp1OutToEvtgTrigger
enumerator kINPUTMUX_Cmp2OutToEvtgTrigger
enumerator kINPUTMUX_Pwm0A0Trig0ToEvtgTrigger
enumerator kINPUTMUX_Pwm0A0Trig1ToEvtgTrigger
enumerator kINPUTMUX_Pwm0A1Trig0ToEvtgTrigger
enumerator kINPUTMUX_Pwm0A1Trig1ToEvtgTrigger
enumerator kINPUTMUX_Pwm0A2Trig0ToEvtgTrigger
enumerator kINPUTMUX_Pwm0A2Trig1ToEvtgTrigger
enumerator kINPUTMUX_Pwm0A3Trig0ToEvtgTrigger
enumerator kINPUTMUX_Pwm0A3Trig1ToEvtgTrigger
enumerator kINPUTMUX_Pwm1A0Trig0ToEvtgTrigger
enumerator kINPUTMUX_Pwm1A0Trig1ToEvtgTrigger
enumerator kINPUTMUX_Pwm1A1Trig0ToEvtgTrigger
enumerator kINPUTMUX_Pwm1A1Trig1ToEvtgTrigger
enumerator kINPUTMUX_Pwm1A2Trig0ToEvtgTrigger
enumerator kINPUTMUX_Pwm1A2Trig1ToEvtgTrigger
enumerator kINPUTMUX_Pwm1A3Trig0ToEvtgTrigger
enumerator kINPUTMUX_Pwm1A3Trig1ToEvtgTrigger
enumerator kINPUTMUX_Qdc0CmpPosMatchToEvtgTrigger
enumerator kINPUTMUX_Qdc1CmpPosMatchToEvtgTrigger
enumerator kINPUTMUX_TrigIn0ToEvtgTrigger
enumerator kINPUTMUX_TrigIn1ToEvtgTrigger
enumerator kINPUTMUX_TrigIn2ToEvtgTrigger
enumerator kINPUTMUX_TrigIn3ToEvtgTrigger
enumerator kINPUTMUX_Lptmr0ToEvtgTrigger
enumerator kINPUTMUX_Lptmr1ToEvtgTrigger
enumerator kINPUTMUX_SincFilterCh0ToEvtgTrigger
enumerator kINPUTMUX_SincFilterCh1ToEvtgTrigger
enumerator kINPUTMUX_SincFilterCh2ToEvtgTrigger
enumerator kINPUTMUX_SincFilterCh3ToEvtgTrigger
enumerator kINPUTMUX_SincFilterCh4ToEvtgTrigger

USB-FS trigger input connections.

enumerator kINPUTMUX_Lpflexcomm0Trig3ToUsbfsTrigger
enumerator kINPUTMUX_Lpflexcomm1Trig3ToUsbfsTrigger
enumerator kINPUTMUX_Lpflexcomm2Trig3ToUsbfsTrigger
enumerator kINPUTMUX_Lpflexcomm3Trig3ToUsbfsTrigger
enumerator kINPUTMUX_Lpflexcomm4Trig3ToUsbfsTrigger
enumerator kINPUTMUX_Lpflexcomm5Trig3ToUsbfsTrigger
enumerator kINPUTMUX_Lpflexcomm6Trig3ToUsbfsTrigger
enumerator kINPUTMUX_Lpflexcomm7Trig3ToUsbfsTrigger
enumerator kINPUTMUX_Lpflexcomm8Trig3ToUsbfsTrigger
enumerator kINPUTMUX_Lpflexcomm9Trig3ToUsbfsTrigger

TSI trigger input connections.

enumerator kINPUTMUX_Lptmr0ToTsiTrigger
enumerator kINPUTMUX_Lptmr1ToTsiTrigger

EXT trigger connections.

enumerator kINPUTMUX_PinInt0ToExtTrigger
enumerator kINPUTMUX_PinInt1ToExtTrigger
enumerator kINPUTMUX_Adc0IrqToExtTrigger
enumerator kINPUTMUX_Adc1IrqToExtTrigger
enumerator kINPUTMUX_Adc0Tcomp0ToExtTrigger
enumerator kINPUTMUX_Adc1Tcomp0ToExtTrigger
enumerator kINPUTMUX_Pwm0A0Trig01ToExtTrigger
enumerator kINPUTMUX_Pwm0A1Trig01ToExtTrigger
enumerator kINPUTMUX_Pwm0A2Trig01ToExtTrigger
enumerator kINPUTMUX_Pwm0A3Trig01ToExtTrigger
enumerator kINPUTMUX_Pwm1A0Trig01ToExtTrigger
enumerator kINPUTMUX_Pwm1A1Trig01ToExtTrigger
enumerator kINPUTMUX_Pwm1A2Trig01ToExtTrigger
enumerator kINPUTMUX_Pwm1A3Trig01ToExtTrigger
enumerator kINPUTMUX_Qdc0CmpPosMatchToExtTrigger
enumerator kINPUTMUX_Qdc1CmpPosMatchToExtTrigger
enumerator kINPUTMUX_EvtgOut0AToExtTrigger
enumerator kINPUTMUX_EvtgOut0BToExtTrigger
enumerator kINPUTMUX_EvtgOut1AToExtTrigger
enumerator kINPUTMUX_EvtgOut1BToExtTrigger
enumerator kINPUTMUX_EvtgOut2AToExtTrigger
enumerator kINPUTMUX_EvtgOut2BToExtTrigger
enumerator kINPUTMUX_EvtgOut3AToExtTrigger
enumerator kINPUTMUX_EvtgOut3BToExtTrigger
enumerator kINPUTMUX_Lptmr0ToExtTrigger
enumerator kINPUTMUX_Lptmr1ToExtTrigger
enumerator kINPUTMUX_SctOut0ToExtTrigger
enumerator kINPUTMUX_SctOut1ToExtTrigger
enumerator kINPUTMUX_SctOut2ToExtTrigger
enumerator kINPUTMUX_SctOut3ToExtTrigger
enumerator kINPUTMUX_SctOut4ToExtTrigger
enumerator kINPUTMUX_SctOut5ToExtTrigger
enumerator kINPUTMUX_Lpflexcomm0Trig3ToExtTrigger
enumerator kINPUTMUX_Lpflexcomm1Trig3ToExtTrigger
enumerator kINPUTMUX_Lpflexcomm2Trig3ToExtTrigger
enumerator kINPUTMUX_Lpflexcomm3Trig3ToExtTrigger
enumerator kINPUTMUX_Lpflexcomm4Trig3ToExtTrigger
enumerator kINPUTMUX_Lpflexcomm5Trig3ToExtTrigger
enumerator kINPUTMUX_Lpflexcomm6Trig3ToExtTrigger
enumerator kINPUTMUX_Lpflexcomm7Trig3ToExtTrigger
enumerator kINPUTMUX_Lpflexcomm8Trig3ToExtTrigger
enumerator kINPUTMUX_Lpflexcomm9Trig3ToExtTrigger
enumerator kINPUTMUX_Cmp0OutToExtTrigger
enumerator kINPUTMUX_Cmp1OutToExtTrigger
enumerator kINPUTMUX_Cmp2OutToExtTrigger
enumerator kINPUTMUX_EnetPpsOut0ToExtTrigger

SINC Filter channel trigger input connections.

enumerator kINPUTMUX_PinInt0ToSincFilterChTrigger
enumerator kINPUTMUX_PinInt1ToSincFilterChTrigger
enumerator kINPUTMUX_SctOut4ToSincFilterChTrigger
enumerator kINPUTMUX_SctOut5ToSincFilterChTrigger
enumerator kINPUTMUX_SctOut9ToSincFilterChTrigger
enumerator kINPUTMUX_Ctimer0M3ToSincFilterChTrigger
enumerator kINPUTMUX_Ctimer1M3ToSincFilterChTrigger
enumerator kINPUTMUX_Ctimer2M3ToSincFilterChTrigger
enumerator kINPUTMUX_Ctimer3M3ToSincFilterChTrigger
enumerator kINPUTMUX_Ctimer4M3ToSincFilterChTrigger
enumerator kINPUTMUX_ArmTxevToSincFilterChTrigger
enumerator kINPUTMUX_GpioIntBmatchToSincFilterChTrigger
enumerator kINPUTMUX_Adc0Tcomp0ToSincFilterChTrigger
enumerator kINPUTMUX_Adc0Tcomp1ToSincFilterChTrigger
enumerator kINPUTMUX_Adc0Tcomp2ToSincFilterChTrigger
enumerator kINPUTMUX_Adc0Tcomp3ToSincFilterChTrigger
enumerator kINPUTMUX_Adc1Tcomp0ToSincFilterChTrigger
enumerator kINPUTMUX_Adc1Tcomp1ToSincFilterChTrigger
enumerator kINPUTMUX_Adc1Tcomp2ToSincFilterChTrigger
enumerator kINPUTMUX_Adc1Tcomp3ToSincFilterChTrigger
enumerator kINPUTMUX_Cmp0OutToSincFilterChTrigger
enumerator kINPUTMUX_Cmp1OutToSincFilterChTrigger
enumerator kINPUTMUX_Cmp2OutToSincFilterChTrigger
enumerator kINPUTMUX_Pwm0A0Trig0ToSincFilterChTrigger
enumerator kINPUTMUX_Pwm0A0Trig1ToSincFilterChTrigger
enumerator kINPUTMUX_Pwm0A1Trig0ToSincFilterChTrigger
enumerator kINPUTMUX_Pwm0A1Trig1ToSincFilterChTrigger
enumerator kINPUTMUX_Pwm0A2Trig0ToSincFilterChTrigger
enumerator kINPUTMUX_Pwm0A2Trig1ToSincFilterChTrigger
enumerator kINPUTMUX_Pwm0A3Trig0ToSincFilterChTrigger
enumerator kINPUTMUX_Pwm0A3Trig1ToSincFilterChTrigger
enumerator kINPUTMUX_Pwm1A0Trig0ToSincFilterChTrigger
enumerator kINPUTMUX_Pwm1A0Trig1ToSincFilterChTrigger
enumerator kINPUTMUX_Pwm1A1Trig0ToSincFilterChTrigger
enumerator kINPUTMUX_Pwm1A1Trig1ToSincFilterChTrigger
enumerator kINPUTMUX_Pwm1A2Trig0ToSincFilterChTrigger
enumerator kINPUTMUX_Pwm1A2Trig1ToSincFilterChTrigger
enumerator kINPUTMUX_Pwm1A3Trig0ToSincFilterChTrigger
enumerator kINPUTMUX_Pwm1A3Trig1ToSincFilterChTrigger
enumerator kINPUTMUX_Qdc0CmpPosMatchToSincFilterChTrigger
enumerator kINPUTMUX_Qdc1CmpPosMatchToSincFilterChTrigger
enumerator kINPUTMUX_EvtgOut0AToSincFilterChTrigger
enumerator kINPUTMUX_EvtgOut0BToSincFilterChTrigger
enumerator kINPUTMUX_EvtgOut1AToSincFilterChTrigger
enumerator kINPUTMUX_EvtgOut1BToSincFilterChTrigger
enumerator kINPUTMUX_EvtgOut2AToSincFilterChTrigger
enumerator kINPUTMUX_EvtgOut2BToSincFilterChTrigger
enumerator kINPUTMUX_EvtgOut3AToSincFilterChTrigger
enumerator kINPUTMUX_EvtgOut3BToSincFilterChTrigger
enumerator kINPUTMUX_Lptmr0ToSincFilterChTrigger
enumerator kINPUTMUX_Lptmr1ToSincFilterChTrigger
enumerator kINPUTMUX_FlexioCh0ToSincFilterChTrigger
enumerator kINPUTMUX_FlexioCh1ToSincFilterChTrigger
enumerator kINPUTMUX_FlexioCh2ToSincFilterChTrigger
enumerator kINPUTMUX_FlexioCh3ToSincFilterChTrigger
enumerator kINPUTMUX_WuuToSincFilterChTrigger

OPAMP0 trigger input connections.

enumerator kINPUTMUX_PinInt0ToOpamp0Trigger
enumerator kINPUTMUX_PinInt1ToOpamp0Trigger
enumerator kINPUTMUX_PinInt2ToOpamp0Trigger
enumerator kINPUTMUX_PinInt3ToOpamp0Trigger
enumerator kINPUTMUX_SctOut4ToOpamp0Trigger
enumerator kINPUTMUX_SctOut5ToOpamp0Trigger
enumerator kINPUTMUX_SctOut6ToOpamp0Trigger
enumerator kINPUTMUX_SctOut7ToOpamp0Trigger
enumerator kINPUTMUX_SctOut8ToOpamp0Trigger
enumerator kINPUTMUX_Ctimer0M3ToOpamp0Trigger
enumerator kINPUTMUX_Ctimer1M3ToOpamp0Trigger
enumerator kINPUTMUX_Ctimer2M3ToOpamp0Trigger
enumerator kINPUTMUX_Ctimer3M3ToOpamp0Trigger
enumerator kINPUTMUX_Ctimer4M3ToOpamp0Trigger
enumerator kINPUTMUX_GpioIntBmatchToOpamp0Trigger
enumerator kINPUTMUX_Adc0Tcomp0ToOpamp0Trigger
enumerator kINPUTMUX_Adc0Tcomp1ToOpamp0Trigger
enumerator kINPUTMUX_Adc0Tcomp2ToOpamp0Trigger
enumerator kINPUTMUX_Adc0Tcomp3ToOpamp0Trigger
enumerator kINPUTMUX_Adc1Tcomp0ToOpamp0Trigger
enumerator kINPUTMUX_Adc1Tcomp1ToOpamp0Trigger
enumerator kINPUTMUX_Adc1Tcomp2ToOpamp0Trigger
enumerator kINPUTMUX_Adc1Tcomp3ToOpamp0Trigger
enumerator kINPUTMUX_Pwm0A0Trig0ToOpamp0Trigger
enumerator kINPUTMUX_Pwm0A0Trig1ToOpamp0Trigger
enumerator kINPUTMUX_Pwm0A1Trig0ToOpamp0Trigger
enumerator kINPUTMUX_Pwm0A1Trig1ToOpamp0Trigger
enumerator kINPUTMUX_Pwm0A2Trig0ToOpamp0Trigger
enumerator kINPUTMUX_Pwm0A2Trig1ToOpamp0Trigger
enumerator kINPUTMUX_Pwm0A3Trig0ToOpamp0Trigger
enumerator kINPUTMUX_Pwm0A3Trig1ToOpamp0Trigger
enumerator kINPUTMUX_Pwm1A0Trig0ToOpamp0Trigger
enumerator kINPUTMUX_Pwm1A0Trig1ToOpamp0Trigger
enumerator kINPUTMUX_Pwm1A1Trig0ToOpamp0Trigger
enumerator kINPUTMUX_Pwm1A1Trig1ToOpamp0Trigger
enumerator kINPUTMUX_Pwm1A2Trig0ToOpamp0Trigger
enumerator kINPUTMUX_Pwm1A2Trig1ToOpamp0Trigger
enumerator kINPUTMUX_Pwm1A3Trig0ToOpamp0Trigger
enumerator kINPUTMUX_Pwm1A3Trig1ToOpamp0Trigger
enumerator kINPUTMUX_EvtgOut0AToOpamp0Trigger
enumerator kINPUTMUX_EvtgOut0BToOpamp0Trigger
enumerator kINPUTMUX_EvtgOut1AToOpamp0Trigger
enumerator kINPUTMUX_EvtgOut1BToOpamp0Trigger
enumerator kINPUTMUX_EvtgOut2AToOpamp0Trigger
enumerator kINPUTMUX_EvtgOut2BToOpamp0Trigger
enumerator kINPUTMUX_EvtgOut3AToOpamp0Trigger
enumerator kINPUTMUX_EvtgOut3BToOpamp0Trigger
enumerator kINPUTMUX_TrigIn0ToOpamp0Trigger
enumerator kINPUTMUX_TrigIn1ToOpamp0Trigger
enumerator kINPUTMUX_TrigIn2ToOpamp0Trigger
enumerator kINPUTMUX_TrigIn3ToOpamp0Trigger
enumerator kINPUTMUX_FlexioCh4ToOpamp0Trigger
enumerator kINPUTMUX_FlexioCh5ToOpamp0Trigger
enumerator kINPUTMUX_FlexioCh6ToOpamp0Trigger
enumerator kINPUTMUX_FlexioCh7ToOpamp0Trigger

OPAMP1 trigger input connections.

enumerator kINPUTMUX_PinInt0ToOpamp1Trigger
enumerator kINPUTMUX_PinInt1ToOpamp1Trigger
enumerator kINPUTMUX_PinInt2ToOpamp1Trigger
enumerator kINPUTMUX_PinInt3ToOpamp1Trigger
enumerator kINPUTMUX_SctOut4ToOpamp1Trigger
enumerator kINPUTMUX_SctOut5ToOpamp1Trigger
enumerator kINPUTMUX_SctOut6ToOpamp1Trigger
enumerator kINPUTMUX_SctOut7ToOpamp1Trigger
enumerator kINPUTMUX_SctOut8ToOpamp1Trigger
enumerator kINPUTMUX_Ctimer0M3ToOpamp1Trigger
enumerator kINPUTMUX_Ctimer1M3ToOpamp1Trigger
enumerator kINPUTMUX_Ctimer2M3ToOpamp1Trigger
enumerator kINPUTMUX_Ctimer3M3ToOpamp1Trigger
enumerator kINPUTMUX_Ctimer4M3ToOpamp1Trigger
enumerator kINPUTMUX_GpioIntBmatchToOpamp1Trigger
enumerator kINPUTMUX_Adc0Tcomp0ToOpamp1Trigger
enumerator kINPUTMUX_Adc0Tcomp1ToOpamp1Trigger
enumerator kINPUTMUX_Adc0Tcomp2ToOpamp1Trigger
enumerator kINPUTMUX_Adc0Tcomp3ToOpamp1Trigger
enumerator kINPUTMUX_Adc1Tcomp0ToOpamp1Trigger
enumerator kINPUTMUX_Adc1Tcomp1ToOpamp1Trigger
enumerator kINPUTMUX_Adc1Tcomp2ToOpamp1Trigger
enumerator kINPUTMUX_Adc1Tcomp3ToOpamp1Trigger
enumerator kINPUTMUX_Pwm0A0Trig0ToOpamp1Trigger
enumerator kINPUTMUX_Pwm0A0Trig1ToOpamp1Trigger
enumerator kINPUTMUX_Pwm0A1Trig0ToOpamp1Trigger
enumerator kINPUTMUX_Pwm0A1Trig1ToOpamp1Trigger
enumerator kINPUTMUX_Pwm0A2Trig0ToOpamp1Trigger
enumerator kINPUTMUX_Pwm0A2Trig1ToOpamp1Trigger
enumerator kINPUTMUX_Pwm0A3Trig0ToOpamp1Trigger
enumerator kINPUTMUX_Pwm0A3Trig1ToOpamp1Trigger
enumerator kINPUTMUX_Pwm1A0Trig0ToOpamp1Trigger
enumerator kINPUTMUX_Pwm1A0Trig1ToOpamp1Trigger
enumerator kINPUTMUX_Pwm1A1Trig0ToOpamp1Trigger
enumerator kINPUTMUX_Pwm1A1Trig1ToOpamp1Trigger
enumerator kINPUTMUX_Pwm1A2Trig0ToOpamp1Trigger
enumerator kINPUTMUX_Pwm1A2Trig1ToOpamp1Trigger
enumerator kINPUTMUX_Pwm1A3Trig0ToOpamp1Trigger
enumerator kINPUTMUX_Pwm1A3Trig1ToOpamp1Trigger
enumerator kINPUTMUX_EvtgOut0AToOpamp1Trigger
enumerator kINPUTMUX_EvtgOut0BToOpamp1Trigger
enumerator kINPUTMUX_EvtgOut1AToOpamp1Trigger
enumerator kINPUTMUX_EvtgOut1BToOpamp1Trigger
enumerator kINPUTMUX_EvtgOut2AToOpamp1Trigger
enumerator kINPUTMUX_EvtgOut2BToOpamp1Trigger
enumerator kINPUTMUX_EvtgOut3AToOpamp1Trigger
enumerator kINPUTMUX_EvtgOut3BToOpamp1Trigger
enumerator kINPUTMUX_TrigIn0ToOpamp1Trigger
enumerator kINPUTMUX_TrigIn1ToOpamp1Trigger
enumerator kINPUTMUX_TrigIn2ToOpamp1Trigger
enumerator kINPUTMUX_TrigIn3ToOpamp1Trigger
enumerator kINPUTMUX_FlexioCh4ToOpamp1Trigger
enumerator kINPUTMUX_FlexioCh5ToOpamp1Trigger
enumerator kINPUTMUX_FlexioCh6ToOpamp1Trigger
enumerator kINPUTMUX_FlexioCh7ToOpamp1Trigger

OPAMP2 trigger input connections.

enumerator kINPUTMUX_PinInt0ToOpamp2Trigger
enumerator kINPUTMUX_PinInt1ToOpamp2Trigger
enumerator kINPUTMUX_PinInt2ToOpamp2Trigger
enumerator kINPUTMUX_PinInt3ToOpamp2Trigger
enumerator kINPUTMUX_SctOut4ToOpamp2Trigger
enumerator kINPUTMUX_SctOut5ToOpamp2Trigger
enumerator kINPUTMUX_SctOut6ToOpamp2Trigger
enumerator kINPUTMUX_SctOut7ToOpamp2Trigger
enumerator kINPUTMUX_SctOut8ToOpamp2Trigger
enumerator kINPUTMUX_Ctimer0M3ToOpamp2Trigger
enumerator kINPUTMUX_Ctimer1M3ToOpamp2Trigger
enumerator kINPUTMUX_Ctimer2M3ToOpamp2Trigger
enumerator kINPUTMUX_Ctimer3M3ToOpamp2Trigger
enumerator kINPUTMUX_Ctimer4M3ToOpamp2Trigger
enumerator kINPUTMUX_GpioIntBmatchToOpamp2Trigger
enumerator kINPUTMUX_Adc0Tcomp0ToOpamp2Trigger
enumerator kINPUTMUX_Adc0Tcomp1ToOpamp2Trigger
enumerator kINPUTMUX_Adc0Tcomp2ToOpamp2Trigger
enumerator kINPUTMUX_Adc0Tcomp3ToOpamp2Trigger
enumerator kINPUTMUX_Adc1Tcomp0ToOpamp2Trigger
enumerator kINPUTMUX_Adc1Tcomp1ToOpamp2Trigger
enumerator kINPUTMUX_Adc1Tcomp2ToOpamp2Trigger
enumerator kINPUTMUX_Adc1Tcomp3ToOpamp2Trigger
enumerator kINPUTMUX_Pwm0A0Trig0ToOpamp2Trigger
enumerator kINPUTMUX_Pwm0A0Trig1ToOpamp2Trigger
enumerator kINPUTMUX_Pwm0A1Trig0ToOpamp2Trigger
enumerator kINPUTMUX_Pwm0A1Trig1ToOpamp2Trigger
enumerator kINPUTMUX_Pwm0A2Trig0ToOpamp2Trigger
enumerator kINPUTMUX_Pwm0A2Trig1ToOpamp2Trigger
enumerator kINPUTMUX_Pwm0A3Trig0ToOpamp2Trigger
enumerator kINPUTMUX_Pwm0A3Trig1ToOpamp2Trigger
enumerator kINPUTMUX_Pwm1A0Trig0ToOpamp2Trigger
enumerator kINPUTMUX_Pwm1A0Trig1ToOpamp2Trigger
enumerator kINPUTMUX_Pwm1A1Trig0ToOpamp2Trigger
enumerator kINPUTMUX_Pwm1A1Trig1ToOpamp2Trigger
enumerator kINPUTMUX_Pwm1A2Trig0ToOpamp2Trigger
enumerator kINPUTMUX_Pwm1A2Trig1ToOpamp2Trigger
enumerator kINPUTMUX_Pwm1A3Trig0ToOpamp2Trigger
enumerator kINPUTMUX_Pwm1A3Trig1ToOpamp2Trigger
enumerator kINPUTMUX_EvtgOut0AToOpamp2Trigger
enumerator kINPUTMUX_EvtgOut0BToOpamp2Trigger
enumerator kINPUTMUX_EvtgOut1AToOpamp2Trigger
enumerator kINPUTMUX_EvtgOut1BToOpamp2Trigger
enumerator kINPUTMUX_EvtgOut2AToOpamp2Trigger
enumerator kINPUTMUX_EvtgOut2BToOpamp2Trigger
enumerator kINPUTMUX_EvtgOut3AToOpamp2Trigger
enumerator kINPUTMUX_EvtgOut3BToOpamp2Trigger
enumerator kINPUTMUX_TrigIn0ToOpamp2Trigger
enumerator kINPUTMUX_TrigIn1ToOpamp2Trigger
enumerator kINPUTMUX_TrigIn2ToOpamp2Trigger
enumerator kINPUTMUX_TrigIn3ToOpamp2Trigger
enumerator kINPUTMUX_FlexioCh4ToOpamp2Trigger
enumerator kINPUTMUX_FlexioCh5ToOpamp2Trigger
enumerator kINPUTMUX_FlexioCh6ToOpamp2Trigger
enumerator kINPUTMUX_FlexioCh7ToOpamp2Trigger

FLEXCOMM0 trigger input connections.

enumerator kINPUTMUX_PinInt4ToFlexcomm0Trigger
enumerator kINPUTMUX_PinInt5ToFlexcomm0Trigger
enumerator kINPUTMUX_PinInt6ToFlexcomm0Trigger
enumerator kINPUTMUX_SctOut5ToFlexcomm0Trigger
enumerator kINPUTMUX_SctOut6ToFlexcomm0Trigger
enumerator kINPUTMUX_SctOut7ToFlexcomm0Trigger
enumerator kINPUTMUX_Ctimer0M1ToFlexcomm0Trigger
enumerator kINPUTMUX_Ctimer1M1ToFlexcomm0Trigger
enumerator kINPUTMUX_Ctimer2M0ToFlexcomm0Trigger
enumerator kINPUTMUX_Ctimer3M0ToFlexcomm0Trigger
enumerator kINPUTMUX_Ctimer4M0ToFlexcomm0Trigger
enumerator kINPUTMUX_Lptmr0ToFlexcomm0Trigger
enumerator kINPUTMUX_Lptmr1ToFlexcomm0Trigger
enumerator kINPUTMUX_ArmTxevToFlexcomm0Trigger
enumerator kINPUTMUX_GpioIntBmatchToFlexcomm0Trigger
enumerator kINPUTMUX_Cmp0OutToFlexcomm0Trigger
enumerator kINPUTMUX_Cmp1OutToFlexcomm0Trigger
enumerator kINPUTMUX_Cmp2OutToFlexcomm0Trigger
enumerator kINPUTMUX_EvtgOut0AToFlexcomm0Trigger
enumerator kINPUTMUX_EvtgOut0BToFlexcomm0Trigger
enumerator kINPUTMUX_EvtgOut1AToFlexcomm0Trigger
enumerator kINPUTMUX_EvtgOut1BToFlexcomm0Trigger
enumerator kINPUTMUX_EvtgOut2AToFlexcomm0Trigger
enumerator kINPUTMUX_EvtgOut2BToFlexcomm0Trigger
enumerator kINPUTMUX_EvtgOut3AToFlexcomm0Trigger
enumerator kINPUTMUX_EvtgOut3BToFlexcomm0Trigger
enumerator kINPUTMUX_TrigIn0ToFlexcomm0Trigger
enumerator kINPUTMUX_TrigIn1ToFlexcomm0Trigger
enumerator kINPUTMUX_TrigIn2ToFlexcomm0Trigger
enumerator kINPUTMUX_TrigIn3ToFlexcomm0Trigger
enumerator kINPUTMUX_TrigIn4ToFlexcomm0Trigger
enumerator kINPUTMUX_TrigIn10ToFlexcomm0Trigger
enumerator kINPUTMUX_TrigIn11ToFlexcomm0Trigger
enumerator kINPUTMUX_FlexioCh4ToFlexcomm0Trigger
enumerator kINPUTMUX_FlexioCh5ToFlexcomm0Trigger
enumerator kINPUTMUX_FlexioCh6ToFlexcomm0Trigger
enumerator kINPUTMUX_FlexioCh7ToFlexcomm0Trigger
enumerator kINPUTMUX_Usb0IppIndUartRxdUsbmuxToFlexcomm0Trigger
enumerator kINPUTMUX_Gpio2PinEventTrig0ToFlexcomm0Trigger
enumerator kINPUTMUX_Gpio2PinEventTrig1ToFlexcomm0Trigger
enumerator kINPUTMUX_Gpio3PinEventTrig0ToFlexcomm0Trigger
enumerator kINPUTMUX_Gpio3PinEventTrig1ToFlexcomm0Trigger
enumerator kINPUTMUX_WuuToFlexcomm0Trigger

FLEXCOMM1 trigger input connections.

enumerator kINPUTMUX_PinInt4ToFlexcomm1Trigger
enumerator kINPUTMUX_PinInt5ToFlexcomm1Trigger
enumerator kINPUTMUX_PinInt6ToFlexcomm1Trigger
enumerator kINPUTMUX_SctOut5ToFlexcomm1Trigger
enumerator kINPUTMUX_SctOut6ToFlexcomm1Trigger
enumerator kINPUTMUX_SctOut7ToFlexcomm1Trigger
enumerator kINPUTMUX_Ctimer0M1ToFlexcomm1Trigger
enumerator kINPUTMUX_Ctimer1M1ToFlexcomm1Trigger
enumerator kINPUTMUX_Ctimer2M0ToFlexcomm1Trigger
enumerator kINPUTMUX_Ctimer3M0ToFlexcomm1Trigger
enumerator kINPUTMUX_Ctimer4M0ToFlexcomm1Trigger
enumerator kINPUTMUX_Lptmr0ToFlexcomm1Trigger
enumerator kINPUTMUX_Lptmr1ToFlexcomm1Trigger
enumerator kINPUTMUX_ArmTxevToFlexcomm1Trigger
enumerator kINPUTMUX_GpioIntBmatchToFlexcomm1Trigger
enumerator kINPUTMUX_Cmp0OutToFlexcomm1Trigger
enumerator kINPUTMUX_Cmp1OutToFlexcomm1Trigger
enumerator kINPUTMUX_Cmp2OutToFlexcomm1Trigger
enumerator kINPUTMUX_EvtgOut0AToFlexcomm1Trigger
enumerator kINPUTMUX_EvtgOut0BToFlexcomm1Trigger
enumerator kINPUTMUX_EvtgOut1AToFlexcomm1Trigger
enumerator kINPUTMUX_EvtgOut1BToFlexcomm1Trigger
enumerator kINPUTMUX_EvtgOut2AToFlexcomm1Trigger
enumerator kINPUTMUX_EvtgOut2BToFlexcomm1Trigger
enumerator kINPUTMUX_EvtgOut3AToFlexcomm1Trigger
enumerator kINPUTMUX_EvtgOut3BToFlexcomm1Trigger
enumerator kINPUTMUX_TrigIn0ToFlexcomm1Trigger
enumerator kINPUTMUX_TrigIn1ToFlexcomm1Trigger
enumerator kINPUTMUX_TrigIn2ToFlexcomm1Trigger
enumerator kINPUTMUX_TrigIn3ToFlexcomm1Trigger
enumerator kINPUTMUX_TrigIn4ToFlexcomm1Trigger
enumerator kINPUTMUX_TrigIn10ToFlexcomm1Trigger
enumerator kINPUTMUX_TrigIn11ToFlexcomm1Trigger
enumerator kINPUTMUX_FlexioCh4ToFlexcomm1Trigger
enumerator kINPUTMUX_FlexioCh5ToFlexcomm1Trigger
enumerator kINPUTMUX_FlexioCh6ToFlexcomm1Trigger
enumerator kINPUTMUX_FlexioCh7ToFlexcomm1Trigger
enumerator kINPUTMUX_Usb0IppIndUartRxdUsbmuxToFlexcomm1Trigger
enumerator kINPUTMUX_Gpio2PinEventTrig0ToFlexcomm1Trigger
enumerator kINPUTMUX_Gpio2PinEventTrig1ToFlexcomm1Trigger
enumerator kINPUTMUX_Gpio3PinEventTrig0ToFlexcomm1Trigger
enumerator kINPUTMUX_Gpio3PinEventTrig1ToFlexcomm1Trigger
enumerator kINPUTMUX_WuuToFlexcomm1Trigger

FLEXCOMM2 trigger input connections.

enumerator kINPUTMUX_PinInt4ToFlexcomm2Trigger
enumerator kINPUTMUX_PinInt6ToFlexcomm2Trigger
enumerator kINPUTMUX_PinInt7ToFlexcomm2Trigger
enumerator kINPUTMUX_SctOut5ToFlexcomm2Trigger
enumerator kINPUTMUX_SctOut8ToFlexcomm2Trigger
enumerator kINPUTMUX_SctOut9ToFlexcomm2Trigger
enumerator kINPUTMUX_Ctimer0M1ToFlexcomm2Trigger
enumerator kINPUTMUX_Ctimer1M1ToFlexcomm2Trigger
enumerator kINPUTMUX_Ctimer2M1ToFlexcomm2Trigger
enumerator kINPUTMUX_Ctimer3M1ToFlexcomm2Trigger
enumerator kINPUTMUX_Ctimer4M1ToFlexcomm2Trigger
enumerator kINPUTMUX_Lptmr0ToFlexcomm2Trigger
enumerator kINPUTMUX_Lptmr1ToFlexcomm2Trigger
enumerator kINPUTMUX_ArmTxevToFlexcomm2Trigger
enumerator kINPUTMUX_GpioIntBmatchToFlexcomm2Trigger
enumerator kINPUTMUX_Cmp0OutToFlexcomm2Trigger
enumerator kINPUTMUX_Cmp1OutToFlexcomm2Trigger
enumerator kINPUTMUX_Cmp2OutToFlexcomm2Trigger
enumerator kINPUTMUX_EvtgOut0AToFlexcomm2Trigger
enumerator kINPUTMUX_EvtgOut0BToFlexcomm2Trigger
enumerator kINPUTMUX_EvtgOut1AToFlexcomm2Trigger
enumerator kINPUTMUX_EvtgOut1BToFlexcomm2Trigger
enumerator kINPUTMUX_EvtgOut2AToFlexcomm2Trigger
enumerator kINPUTMUX_EvtgOut2BToFlexcomm2Trigger
enumerator kINPUTMUX_EvtgOut3AToFlexcomm2Trigger
enumerator kINPUTMUX_EvtgOut3BToFlexcomm2Trigger
enumerator kINPUTMUX_TrigIn0ToFlexcomm2Trigger
enumerator kINPUTMUX_TrigIn1ToFlexcomm2Trigger
enumerator kINPUTMUX_TrigIn2ToFlexcomm2Trigger
enumerator kINPUTMUX_TrigIn3ToFlexcomm2Trigger
enumerator kINPUTMUX_TrigIn4ToFlexcomm2Trigger
enumerator kINPUTMUX_TrigIn10ToFlexcomm2Trigger
enumerator kINPUTMUX_TrigIn11ToFlexcomm2Trigger
enumerator kINPUTMUX_FlexioCh4ToFlexcomm2Trigger
enumerator kINPUTMUX_FlexioCh5ToFlexcomm2Trigger
enumerator kINPUTMUX_FlexioCh6ToFlexcomm2Trigger
enumerator kINPUTMUX_FlexioCh7ToFlexcomm2Trigger
enumerator kINPUTMUX_Usb0IppIndUartRxdUsbmuxToFlexcomm2Trigger
enumerator kINPUTMUX_Gpio2PinEventTrig0ToFlexcomm2Trigger
enumerator kINPUTMUX_Gpio2PinEventTrig1ToFlexcomm2Trigger
enumerator kINPUTMUX_Gpio3PinEventTrig0ToFlexcomm2Trigger
enumerator kINPUTMUX_Gpio3PinEventTrig1ToFlexcomm2Trigger
enumerator kINPUTMUX_WuuToFlexcomm2Trigger

FLEXCOMM3 trigger input connections.

enumerator kINPUTMUX_PinInt4ToFlexcomm3Trigger
enumerator kINPUTMUX_PinInt5ToFlexcomm3Trigger
enumerator kINPUTMUX_PinInt7ToFlexcomm3Trigger
enumerator kINPUTMUX_SctOut5ToFlexcomm3Trigger
enumerator kINPUTMUX_SctOut8ToFlexcomm3Trigger
enumerator kINPUTMUX_SctOut9ToFlexcomm3Trigger
enumerator kINPUTMUX_Ctimer0M1ToFlexcomm3Trigger
enumerator kINPUTMUX_Ctimer1M1ToFlexcomm3Trigger
enumerator kINPUTMUX_Ctimer2M1ToFlexcomm3Trigger
enumerator kINPUTMUX_Ctimer3M1ToFlexcomm3Trigger
enumerator kINPUTMUX_Ctimer4M1ToFlexcomm3Trigger
enumerator kINPUTMUX_Lptmr0ToFlexcomm3Trigger
enumerator kINPUTMUX_Lptmr1ToFlexcomm3Trigger
enumerator kINPUTMUX_ArmTxevToFlexcomm3Trigger
enumerator kINPUTMUX_GpioIntBmatchToFlexcomm3Trigger
enumerator kINPUTMUX_Cmp0OutToFlexcomm3Trigger
enumerator kINPUTMUX_Cmp1OutToFlexcomm3Trigger
enumerator kINPUTMUX_Cmp2OutToFlexcomm3Trigger
enumerator kINPUTMUX_EvtgOut0AToFlexcomm3Trigger
enumerator kINPUTMUX_EvtgOut0BToFlexcomm3Trigger
enumerator kINPUTMUX_EvtgOut1AToFlexcomm3Trigger
enumerator kINPUTMUX_EvtgOut1BToFlexcomm3Trigger
enumerator kINPUTMUX_EvtgOut2AToFlexcomm3Trigger
enumerator kINPUTMUX_EvtgOut2BToFlexcomm3Trigger
enumerator kINPUTMUX_EvtgOut3AToFlexcomm3Trigger
enumerator kINPUTMUX_EvtgOut3BToFlexcomm3Trigger
enumerator kINPUTMUX_TrigIn0ToFlexcomm3Trigger
enumerator kINPUTMUX_TrigIn1ToFlexcomm3Trigger
enumerator kINPUTMUX_TrigIn2ToFlexcomm3Trigger
enumerator kINPUTMUX_TrigIn3ToFlexcomm3Trigger
enumerator kINPUTMUX_TrigIn4ToFlexcomm3Trigger
enumerator kINPUTMUX_TrigIn10ToFlexcomm3Trigger
enumerator kINPUTMUX_TrigIn11ToFlexcomm3Trigger
enumerator kINPUTMUX_FlexioCh4ToFlexcomm3Trigger
enumerator kINPUTMUX_FlexioCh5ToFlexcomm3Trigger
enumerator kINPUTMUX_FlexioCh6ToFlexcomm3Trigger
enumerator kINPUTMUX_FlexioCh7ToFlexcomm3Trigger
enumerator kINPUTMUX_Usb0IppIndUartRxdUsbmuxToFlexcomm3Trigger
enumerator kINPUTMUX_Gpio2PinEventTrig0ToFlexcomm3Trigger
enumerator kINPUTMUX_Gpio2PinEventTrig1ToFlexcomm3Trigger
enumerator kINPUTMUX_Gpio3PinEventTrig0ToFlexcomm3Trigger
enumerator kINPUTMUX_Gpio3PinEventTrig1ToFlexcomm3Trigger
enumerator kINPUTMUX_WuuToFlexcomm3Trigger

FLEXCOMM4 trigger input connections.

enumerator kINPUTMUX_PinInt4ToFlexcomm4Trigger
enumerator kINPUTMUX_PinInt5ToFlexcomm4Trigger
enumerator kINPUTMUX_PinInt7ToFlexcomm4Trigger
enumerator kINPUTMUX_SctOut0ToFlexcomm4Trigger
enumerator kINPUTMUX_SctOut1ToFlexcomm4Trigger
enumerator kINPUTMUX_SctOut2ToFlexcomm4Trigger
enumerator kINPUTMUX_Ctimer0M1ToFlexcomm4Trigger
enumerator kINPUTMUX_Ctimer1M1ToFlexcomm4Trigger
enumerator kINPUTMUX_Ctimer2M2ToFlexcomm4Trigger
enumerator kINPUTMUX_Ctimer3M2ToFlexcomm4Trigger
enumerator kINPUTMUX_Ctimer4M2ToFlexcomm4Trigger
enumerator kINPUTMUX_Lptmr0ToFlexcomm4Trigger
enumerator kINPUTMUX_Lptmr1ToFlexcomm4Trigger
enumerator kINPUTMUX_ArmTxevToFlexcomm4Trigger
enumerator kINPUTMUX_GpioIntBmatchToFlexcomm4Trigger
enumerator kINPUTMUX_Cmp0OutToFlexcomm4Trigger
enumerator kINPUTMUX_Cmp1OutToFlexcomm4Trigger
enumerator kINPUTMUX_Cmp2OutToFlexcomm4Trigger
enumerator kINPUTMUX_EvtgOut0AToFlexcomm4Trigger
enumerator kINPUTMUX_EvtgOut0BToFlexcomm4Trigger
enumerator kINPUTMUX_EvtgOut1AToFlexcomm4Trigger
enumerator kINPUTMUX_EvtgOut1BToFlexcomm4Trigger
enumerator kINPUTMUX_EvtgOut2AToFlexcomm4Trigger
enumerator kINPUTMUX_EvtgOut2BToFlexcomm4Trigger
enumerator kINPUTMUX_EvtgOut3AToFlexcomm4Trigger
enumerator kINPUTMUX_EvtgOut3BToFlexcomm4Trigger
enumerator kINPUTMUX_TrigIn0ToFlexcomm4Trigger
enumerator kINPUTMUX_TrigIn1ToFlexcomm4Trigger
enumerator kINPUTMUX_TrigIn2ToFlexcomm4Trigger
enumerator kINPUTMUX_TrigIn3ToFlexcomm4Trigger
enumerator kINPUTMUX_TrigIn4ToFlexcomm4Trigger
enumerator kINPUTMUX_TrigIn10ToFlexcomm4Trigger
enumerator kINPUTMUX_TrigIn11ToFlexcomm4Trigger
enumerator kINPUTMUX_FlexioCh4ToFlexcomm4Trigger
enumerator kINPUTMUX_FlexioCh5ToFlexcomm4Trigger
enumerator kINPUTMUX_FlexioCh6ToFlexcomm4Trigger
enumerator kINPUTMUX_FlexioCh7ToFlexcomm4Trigger
enumerator kINPUTMUX_Usb0IppIndUartRxdUsbmuxToFlexcomm4Trigger
enumerator kINPUTMUX_Gpio2PinEventTrig0ToFlexcomm4Trigger
enumerator kINPUTMUX_Gpio2PinEventTrig1ToFlexcomm4Trigger
enumerator kINPUTMUX_Gpio3PinEventTrig0ToFlexcomm4Trigger
enumerator kINPUTMUX_Gpio3PinEventTrig1ToFlexcomm4Trigger
enumerator kINPUTMUX_WuuToFlexcomm4Trigger

FLEXCOMM5 trigger input connections.

enumerator kINPUTMUX_PinInt4ToFlexcomm5Trigger
enumerator kINPUTMUX_PinInt5ToFlexcomm5Trigger
enumerator kINPUTMUX_PinInt7ToFlexcomm5Trigger
enumerator kINPUTMUX_SctOut0ToFlexcomm5Trigger
enumerator kINPUTMUX_SctOut1ToFlexcomm5Trigger
enumerator kINPUTMUX_SctOut2ToFlexcomm5Trigger
enumerator kINPUTMUX_Ctimer0M1ToFlexcomm5Trigger
enumerator kINPUTMUX_Ctimer1M1ToFlexcomm5Trigger
enumerator kINPUTMUX_Ctimer2M2ToFlexcomm5Trigger
enumerator kINPUTMUX_Ctimer3M2ToFlexcomm5Trigger
enumerator kINPUTMUX_Ctimer4M2ToFlexcomm5Trigger
enumerator kINPUTMUX_Lptmr0ToFlexcomm5Trigger
enumerator kINPUTMUX_Lptmr1ToFlexcomm5Trigger
enumerator kINPUTMUX_ArmTxevToFlexcomm5Trigger
enumerator kINPUTMUX_GpioIntBmatchToFlexcomm5Trigger
enumerator kINPUTMUX_Cmp0OutToFlexcomm5Trigger
enumerator kINPUTMUX_Cmp1OutToFlexcomm5Trigger
enumerator kINPUTMUX_Cmp2OutToFlexcomm5Trigger
enumerator kINPUTMUX_EvtgOut0AToFlexcomm5Trigger
enumerator kINPUTMUX_EvtgOut0BToFlexcomm5Trigger
enumerator kINPUTMUX_EvtgOut1AToFlexcomm5Trigger
enumerator kINPUTMUX_EvtgOut1BToFlexcomm5Trigger
enumerator kINPUTMUX_EvtgOut2AToFlexcomm5Trigger
enumerator kINPUTMUX_EvtgOut2BToFlexcomm5Trigger
enumerator kINPUTMUX_EvtgOut3AToFlexcomm5Trigger
enumerator kINPUTMUX_EvtgOut3BToFlexcomm5Trigger
enumerator kINPUTMUX_TrigIn0ToFlexcomm5Trigger
enumerator kINPUTMUX_TrigIn1ToFlexcomm5Trigger
enumerator kINPUTMUX_TrigIn2ToFlexcomm5Trigger
enumerator kINPUTMUX_TrigIn3ToFlexcomm5Trigger
enumerator kINPUTMUX_TrigIn4ToFlexcomm5Trigger
enumerator kINPUTMUX_TrigIn10ToFlexcomm5Trigger
enumerator kINPUTMUX_TrigIn11ToFlexcomm5Trigger
enumerator kINPUTMUX_FlexioCh4ToFlexcomm5Trigger
enumerator kINPUTMUX_FlexioCh5ToFlexcomm5Trigger
enumerator kINPUTMUX_FlexioCh6ToFlexcomm5Trigger
enumerator kINPUTMUX_FlexioCh7ToFlexcomm5Trigger
enumerator kINPUTMUX_Usb0IppIndUartRxdUsbmuxToFlexcomm5Trigger
enumerator kINPUTMUX_Gpio2PinEventTrig0ToFlexcomm5Trigger
enumerator kINPUTMUX_Gpio2PinEventTrig1ToFlexcomm5Trigger
enumerator kINPUTMUX_Gpio3PinEventTrig0ToFlexcomm5Trigger
enumerator kINPUTMUX_Gpio3PinEventTrig1ToFlexcomm5Trigger
enumerator kINPUTMUX_WuuToFlexcomm5Trigger

FLEXCOMM6 trigger input connections.

enumerator kINPUTMUX_PinInt4ToFlexcomm6Trigger
enumerator kINPUTMUX_PinInt5ToFlexcomm6Trigger
enumerator kINPUTMUX_PinInt7ToFlexcomm6Trigger
enumerator kINPUTMUX_SctOut0ToFlexcomm6Trigger
enumerator kINPUTMUX_SctOut3ToFlexcomm6Trigger
enumerator kINPUTMUX_SctOut4ToFlexcomm6Trigger
enumerator kINPUTMUX_Ctimer0M1ToFlexcomm6Trigger
enumerator kINPUTMUX_Ctimer1M1ToFlexcomm6Trigger
enumerator kINPUTMUX_Ctimer2M3ToFlexcomm6Trigger
enumerator kINPUTMUX_Ctimer3M3ToFlexcomm6Trigger
enumerator kINPUTMUX_Ctimer4M3ToFlexcomm6Trigger
enumerator kINPUTMUX_Lptmr0ToFlexcomm6Trigger
enumerator kINPUTMUX_Lptmr1ToFlexcomm6Trigger
enumerator kINPUTMUX_ArmTxevToFlexcomm6Trigger
enumerator kINPUTMUX_GpioIntBmatchToFlexcomm6Trigger
enumerator kINPUTMUX_Cmp0OutToFlexcomm6Trigger
enumerator kINPUTMUX_Cmp1OutToFlexcomm6Trigger
enumerator kINPUTMUX_Cmp2OutToFlexcomm6Trigger
enumerator kINPUTMUX_EvtgOut0AToFlexcomm6Trigger
enumerator kINPUTMUX_EvtgOut0BToFlexcomm6Trigger
enumerator kINPUTMUX_EvtgOut1AToFlexcomm6Trigger
enumerator kINPUTMUX_EvtgOut1BToFlexcomm6Trigger
enumerator kINPUTMUX_EvtgOut2AToFlexcomm6Trigger
enumerator kINPUTMUX_EvtgOut2BToFlexcomm6Trigger
enumerator kINPUTMUX_EvtgOut3AToFlexcomm6Trigger
enumerator kINPUTMUX_EvtgOut3BToFlexcomm6Trigger
enumerator kINPUTMUX_TrigIn0ToFlexcomm6Trigger
enumerator kINPUTMUX_TrigIn1ToFlexcomm6Trigger
enumerator kINPUTMUX_TrigIn2ToFlexcomm6Trigger
enumerator kINPUTMUX_TrigIn3ToFlexcomm6Trigger
enumerator kINPUTMUX_TrigIn4ToFlexcomm6Trigger
enumerator kINPUTMUX_TrigIn10ToFlexcomm6Trigger
enumerator kINPUTMUX_TrigIn11ToFlexcomm6Trigger
enumerator kINPUTMUX_FlexioCh4ToFlexcomm6Trigger
enumerator kINPUTMUX_FlexioCh5ToFlexcomm6Trigger
enumerator kINPUTMUX_FlexioCh6ToFlexcomm6Trigger
enumerator kINPUTMUX_FlexioCh7ToFlexcomm6Trigger
enumerator kINPUTMUX_Usb0IppIndUartRxdUsbmuxToFlexcomm6Trigger
enumerator kINPUTMUX_Gpio2PinEventTrig0ToFlexcomm6Trigger
enumerator kINPUTMUX_Gpio2PinEventTrig1ToFlexcomm6Trigger
enumerator kINPUTMUX_Gpio3PinEventTrig0ToFlexcomm6Trigger
enumerator kINPUTMUX_Gpio3PinEventTrig1ToFlexcomm6Trigger
enumerator kINPUTMUX_WuuToFlexcomm6Trigger

FLEXCOMM7 trigger input connections.

enumerator kINPUTMUX_PinInt4ToFlexcomm7Trigger
enumerator kINPUTMUX_PinInt5ToFlexcomm7Trigger
enumerator kINPUTMUX_PinInt7ToFlexcomm7Trigger
enumerator kINPUTMUX_SctOut0ToFlexcomm7Trigger
enumerator kINPUTMUX_SctOut3ToFlexcomm7Trigger
enumerator kINPUTMUX_SctOut4ToFlexcomm7Trigger
enumerator kINPUTMUX_Ctimer0M1ToFlexcomm7Trigger
enumerator kINPUTMUX_Ctimer1M1ToFlexcomm7Trigger
enumerator kINPUTMUX_Ctimer2M3ToFlexcomm7Trigger
enumerator kINPUTMUX_Ctimer3M3ToFlexcomm7Trigger
enumerator kINPUTMUX_Ctimer4M3ToFlexcomm7Trigger
enumerator kINPUTMUX_Lptmr0ToFlexcomm7Trigger
enumerator kINPUTMUX_Lptmr1ToFlexcomm7Trigger
enumerator kINPUTMUX_ArmTxevToFlexcomm7Trigger
enumerator kINPUTMUX_GpioIntBmatchToFlexcomm7Trigger
enumerator kINPUTMUX_Cmp0OutToFlexcomm7Trigger
enumerator kINPUTMUX_Cmp1OutToFlexcomm7Trigger
enumerator kINPUTMUX_Cmp2OutToFlexcomm7Trigger
enumerator kINPUTMUX_EvtgOut0AToFlexcomm7Trigger
enumerator kINPUTMUX_EvtgOut0BToFlexcomm7Trigger
enumerator kINPUTMUX_EvtgOut1AToFlexcomm7Trigger
enumerator kINPUTMUX_EvtgOut1BToFlexcomm7Trigger
enumerator kINPUTMUX_EvtgOut2AToFlexcomm7Trigger
enumerator kINPUTMUX_EvtgOut2BToFlexcomm7Trigger
enumerator kINPUTMUX_EvtgOut3AToFlexcomm7Trigger
enumerator kINPUTMUX_EvtgOut3BToFlexcomm7Trigger
enumerator kINPUTMUX_TrigIn0ToFlexcomm7Trigger
enumerator kINPUTMUX_TrigIn1ToFlexcomm7Trigger
enumerator kINPUTMUX_TrigIn2ToFlexcomm7Trigger
enumerator kINPUTMUX_TrigIn3ToFlexcomm7Trigger
enumerator kINPUTMUX_TrigIn4ToFlexcomm7Trigger
enumerator kINPUTMUX_TrigIn10ToFlexcomm7Trigger
enumerator kINPUTMUX_TrigIn11ToFlexcomm7Trigger
enumerator kINPUTMUX_FlexioCh4ToFlexcomm7Trigger
enumerator kINPUTMUX_FlexioCh5ToFlexcomm7Trigger
enumerator kINPUTMUX_FlexioCh6ToFlexcomm7Trigger
enumerator kINPUTMUX_FlexioCh7ToFlexcomm7Trigger
enumerator kINPUTMUX_Usb0IppIndUartRxdUsbmuxToFlexcomm7Trigger
enumerator kINPUTMUX_Gpio2PinEventTrig0ToFlexcomm7Trigger
enumerator kINPUTMUX_Gpio2PinEventTrig1ToFlexcomm7Trigger
enumerator kINPUTMUX_Gpio3PinEventTrig0ToFlexcomm7Trigger
enumerator kINPUTMUX_Gpio3PinEventTrig1ToFlexcomm7Trigger
enumerator kINPUTMUX_WuuToFlexcomm7Trigger

FLEXCOMM8 trigger input connections.

enumerator kINPUTMUX_PinInt4ToFlexcomm8Trigger
enumerator kINPUTMUX_PinInt5ToFlexcomm8Trigger
enumerator kINPUTMUX_PinInt7ToFlexcomm8Trigger
enumerator kINPUTMUX_SctOut0ToFlexcomm8Trigger
enumerator kINPUTMUX_SctOut3ToFlexcomm8Trigger
enumerator kINPUTMUX_SctOut4ToFlexcomm8Trigger
enumerator kINPUTMUX_Ctimer0M1ToFlexcomm8Trigger
enumerator kINPUTMUX_Ctimer1M1ToFlexcomm8Trigger
enumerator kINPUTMUX_Ctimer2M3ToFlexcomm8Trigger
enumerator kINPUTMUX_Ctimer3M3ToFlexcomm8Trigger
enumerator kINPUTMUX_Ctimer4M3ToFlexcomm8Trigger
enumerator kINPUTMUX_Lptmr0ToFlexcomm8Trigger
enumerator kINPUTMUX_Lptmr1ToFlexcomm8Trigger
enumerator kINPUTMUX_ArmTxevToFlexcomm8Trigger
enumerator kINPUTMUX_GpioIntBmatchToFlexcomm8Trigger
enumerator kINPUTMUX_Cmp0OutToFlexcomm8Trigger
enumerator kINPUTMUX_Cmp1OutToFlexcomm8Trigger
enumerator kINPUTMUX_Cmp2OutToFlexcomm8Trigger
enumerator kINPUTMUX_EvtgOut0AToFlexcomm8Trigger
enumerator kINPUTMUX_EvtgOut0BToFlexcomm8Trigger
enumerator kINPUTMUX_EvtgOut1AToFlexcomm8Trigger
enumerator kINPUTMUX_EvtgOut1BToFlexcomm8Trigger
enumerator kINPUTMUX_EvtgOut2AToFlexcomm8Trigger
enumerator kINPUTMUX_EvtgOut2BToFlexcomm8Trigger
enumerator kINPUTMUX_EvtgOut3AToFlexcomm8Trigger
enumerator kINPUTMUX_EvtgOut3BToFlexcomm8Trigger
enumerator kINPUTMUX_TrigIn0ToFlexcomm8Trigger
enumerator kINPUTMUX_TrigIn1ToFlexcomm8Trigger
enumerator kINPUTMUX_TrigIn2ToFlexcomm8Trigger
enumerator kINPUTMUX_TrigIn3ToFlexcomm8Trigger
enumerator kINPUTMUX_TrigIn4ToFlexcomm8Trigger
enumerator kINPUTMUX_TrigIn10ToFlexcomm8Trigger
enumerator kINPUTMUX_TrigIn11ToFlexcomm8Trigger
enumerator kINPUTMUX_FlexioCh4ToFlexcomm8Trigger
enumerator kINPUTMUX_FlexioCh5ToFlexcomm8Trigger
enumerator kINPUTMUX_FlexioCh6ToFlexcomm8Trigger
enumerator kINPUTMUX_FlexioCh7ToFlexcomm8Trigger
enumerator kINPUTMUX_Usb0IppIndUartRxdUsbmuxToFlexcomm8Trigger
enumerator kINPUTMUX_Gpio2PinEventTrig0ToFlexcomm8Trigger
enumerator kINPUTMUX_Gpio2PinEventTrig1ToFlexcomm8Trigger
enumerator kINPUTMUX_Gpio3PinEventTrig0ToFlexcomm8Trigger
enumerator kINPUTMUX_Gpio3PinEventTrig1ToFlexcomm8Trigger
enumerator kINPUTMUX_WuuToFlexcomm8Trigger

FLEXCOMM9 trigger input connections.

enumerator kINPUTMUX_PinInt4ToFlexcomm9Trigger
enumerator kINPUTMUX_PinInt5ToFlexcomm9Trigger
enumerator kINPUTMUX_PinInt7ToFlexcomm9Trigger
enumerator kINPUTMUX_SctOut0ToFlexcomm9Trigger
enumerator kINPUTMUX_SctOut3ToFlexcomm9Trigger
enumerator kINPUTMUX_SctOut4ToFlexcomm9Trigger
enumerator kINPUTMUX_Ctimer0M1ToFlexcomm9Trigger
enumerator kINPUTMUX_Ctimer1M1ToFlexcomm9Trigger
enumerator kINPUTMUX_Ctimer2M0ToFlexcomm9Trigger
enumerator kINPUTMUX_Ctimer3M0ToFlexcomm9Trigger
enumerator kINPUTMUX_Ctimer4M0ToFlexcomm9Trigger
enumerator kINPUTMUX_Lptmr0ToFlexcomm9Trigger
enumerator kINPUTMUX_Lptmr1ToFlexcomm9Trigger
enumerator kINPUTMUX_ArmTxevToFlexcomm9Trigger
enumerator kINPUTMUX_GpioIntBmatchToFlexcomm9Trigger
enumerator kINPUTMUX_Cmp0OutToFlexcomm9Trigger
enumerator kINPUTMUX_Cmp1OutToFlexcomm9Trigger
enumerator kINPUTMUX_Cmp2OutToFlexcomm9Trigger
enumerator kINPUTMUX_EvtgOut0AToFlexcomm9Trigger
enumerator kINPUTMUX_EvtgOut0BToFlexcomm9Trigger
enumerator kINPUTMUX_EvtgOut1AToFlexcomm9Trigger
enumerator kINPUTMUX_EvtgOut1BToFlexcomm9Trigger
enumerator kINPUTMUX_EvtgOut2AToFlexcomm9Trigger
enumerator kINPUTMUX_EvtgOut2BToFlexcomm9Trigger
enumerator kINPUTMUX_EvtgOut3AToFlexcomm9Trigger
enumerator kINPUTMUX_EvtgOut3BToFlexcomm9Trigger
enumerator kINPUTMUX_TrigIn0ToFlexcomm9Trigger
enumerator kINPUTMUX_TrigIn1ToFlexcomm9Trigger
enumerator kINPUTMUX_TrigIn2ToFlexcomm9Trigger
enumerator kINPUTMUX_TrigIn3ToFlexcomm9Trigger
enumerator kINPUTMUX_TrigIn4ToFlexcomm9Trigger
enumerator kINPUTMUX_TrigIn10ToFlexcomm9Trigger
enumerator kINPUTMUX_TrigIn11ToFlexcomm9Trigger
enumerator kINPUTMUX_FlexioCh4ToFlexcomm9Trigger
enumerator kINPUTMUX_FlexioCh5ToFlexcomm9Trigger
enumerator kINPUTMUX_FlexioCh6ToFlexcomm9Trigger
enumerator kINPUTMUX_FlexioCh7ToFlexcomm9Trigger
enumerator kINPUTMUX_Usb0IppIndUartRxdUsbmuxToFlexcomm9Trigger
enumerator kINPUTMUX_Gpio2PinEventTrig0ToFlexcomm9Trigger
enumerator kINPUTMUX_Gpio2PinEventTrig1ToFlexcomm9Trigger
enumerator kINPUTMUX_Gpio3PinEventTrig0ToFlexcomm9Trigger
enumerator kINPUTMUX_Gpio3PinEventTrig1ToFlexcomm9Trigger
enumerator kINPUTMUX_WuuToFlexcomm9Trigger

FlexIO trigger input connections.

enumerator kINPUTMUX_PinInt4ToFlexioTrigger
enumerator kINPUTMUX_PinInt5ToFlexioTrigger
enumerator kINPUTMUX_PinInt6ToFlexioTrigger
enumerator kINPUTMUX_PinInt7ToFlexioTrigger
enumerator kINPUTMUX_SctOut5ToFlexioTrigger
enumerator kINPUTMUX_SctOut6ToFlexioTrigger
enumerator kINPUTMUX_SctOut7ToFlexioTrigger
enumerator kINPUTMUX_SctOut8ToFlexioTrigger
enumerator kINPUTMUX_SctOut9ToFlexioTrigger
enumerator kINPUTMUX_Ctimer0M1ToFlexioTrigger
enumerator kINPUTMUX_Ctimer1M1ToFlexioTrigger
enumerator kINPUTMUX_Ctimer2M1ToFlexioTrigger
enumerator kINPUTMUX_Ctimer3M1ToFlexioTrigger
enumerator kINPUTMUX_Ctimer4M1ToFlexioTrigger
enumerator kINPUTMUX_Lptmr0ToFlexioTrigger
enumerator kINPUTMUX_Lptmr1ToFlexioTrigger
enumerator kINPUTMUX_ArmTxevToFlexioTrigger
enumerator kINPUTMUX_GpioIntBmatchToFlexioTrigger
enumerator kINPUTMUX_Adc0Tcomp0ToFlexioTrigger
enumerator kINPUTMUX_Adc0Tcomp1ToFlexioTrigger
enumerator kINPUTMUX_Adc0Tcomp2ToFlexioTrigger
enumerator kINPUTMUX_Adc0Tcomp3ToFlexioTrigger
enumerator kINPUTMUX_Adc1Tcomp0ToFlexioTrigger
enumerator kINPUTMUX_Adc1Tcomp1ToFlexioTrigger
enumerator kINPUTMUX_Adc1Tcomp2ToFlexioTrigger
enumerator kINPUTMUX_Adc1Tcomp3ToFlexioTrigger
enumerator kINPUTMUX_Cmp0OutToFlexioTrigger
enumerator kINPUTMUX_Cmp1OutToFlexioTrigger
enumerator kINPUTMUX_Cmp2OutToFlexioTrigger
enumerator kINPUTMUX_Pwm0A0Trig0ToFlexioTrigger
enumerator kINPUTMUX_Pwm0A0Trig1ToFlexioTrigger
enumerator kINPUTMUX_Pwm0A1Trig0ToFlexioTrigger
enumerator kINPUTMUX_Pwm0A1Trig1ToFlexioTrigger
enumerator kINPUTMUX_Pwm0A2Trig0ToFlexioTrigger
enumerator kINPUTMUX_Pwm0A2Trig1ToFlexioTrigger
enumerator kINPUTMUX_Pwm0A3Trig0ToFlexioTrigger
enumerator kINPUTMUX_Pwm0A3Trig1ToFlexioTrigger
enumerator kINPUTMUX_Pwm1A0Trig0ToFlexioTrigger
enumerator kINPUTMUX_Pwm1A0Trig1ToFlexioTrigger
enumerator kINPUTMUX_Pwm1A1Trig0ToFlexioTrigger
enumerator kINPUTMUX_Pwm1A1Trig1ToFlexioTrigger
enumerator kINPUTMUX_Pwm1A2Trig0ToFlexioTrigger
enumerator kINPUTMUX_Pwm1A2Trig1ToFlexioTrigger
enumerator kINPUTMUX_Pwm1A3Trig0ToFlexioTrigger
enumerator kINPUTMUX_Pwm1A3Trig1ToFlexioTrigger
enumerator kINPUTMUX_EvtgOut0AToFlexioTrigger
enumerator kINPUTMUX_EvtgOut0BToFlexioTrigger
enumerator kINPUTMUX_EvtgOut1AToFlexioTrigger
enumerator kINPUTMUX_EvtgOut1BToFlexioTrigger
enumerator kINPUTMUX_EvtgOut2AToFlexioTrigger
enumerator kINPUTMUX_EvtgOut2BToFlexioTrigger
enumerator kINPUTMUX_EvtgOut3AToFlexioTrigger
enumerator kINPUTMUX_EvtgOut3BToFlexioTrigger
enumerator kINPUTMUX_TrigIn0ToFlexioTrigger
enumerator kINPUTMUX_TrigIn1ToFlexioTrigger
enumerator kINPUTMUX_TrigIn2ToFlexioTrigger
enumerator kINPUTMUX_TrigIn3ToFlexioTrigger
enumerator kINPUTMUX_TrigIn4ToFlexioTrigger
enumerator kINPUTMUX_SincFilterCh0ToFlexioTrigger
enumerator kINPUTMUX_SincFilterCh1ToFlexioTrigger
enumerator kINPUTMUX_SincFilterCh2ToFlexioTrigger
enumerator kINPUTMUX_SincFilterCh3ToFlexioTrigger
enumerator kINPUTMUX_SincFilterCh4ToFlexioTrigger
enumerator kINPUTMUX_Lpflexcomm0Trig0ToFlexioTrigger
enumerator kINPUTMUX_Lpflexcomm0Trig1ToFlexioTrigger
enumerator kINPUTMUX_Lpflexcomm0Trig2ToFlexioTrigger
enumerator kINPUTMUX_Lpflexcomm1Trig0ToFlexioTrigger
enumerator kINPUTMUX_Lpflexcomm1Trig1ToFlexioTrigger
enumerator kINPUTMUX_Lpflexcomm1Trig2ToFlexioTrigger
enumerator kINPUTMUX_Lpflexcomm2Trig0ToFlexioTrigger
enumerator kINPUTMUX_Lpflexcomm2Trig1ToFlexioTrigger
enumerator kINPUTMUX_Lpflexcomm2Trig2ToFlexioTrigger
enumerator kINPUTMUX_Lpflexcomm3Trig0ToFlexioTrigger
enumerator kINPUTMUX_Lpflexcomm3Trig1ToFlexioTrigger
enumerator kINPUTMUX_Lpflexcomm3Trig2ToFlexioTrigger
enumerator kINPUTMUX_Lpflexcomm3Trig3ToFlexioTrigger
enumerator kINPUTMUX_WuuToFlexioTrigger
enum _inputmux_signal_t

INPUTMUX signal enable/disable type.

Values:

enumerator kINPUTMUX_FlexSpi0RxToDma0Ch1Ena

DMA0 REQ ENABLE0 signal.

enumerator kINPUTMUX_FlexSpi0TxToDma0Ch2Ena
enumerator kINPUTMUX_PinInt0ToDma0Ch3Ena
enumerator kINPUTMUX_PinInt1ToDma0Ch4Ena
enumerator kINPUTMUX_PinInt2ToDma0Ch5Ena
enumerator kINPUTMUX_PinInt3ToDma0Ch6Ena
enumerator kINPUTMUX_Ctimer0M0ToDma0Ch7Ena
enumerator kINPUTMUX_Ctimer0M1ToDma0Ch8Ena
enumerator kINPUTMUX_Ctimer1M0ToDma0Ch9Ena
enumerator kINPUTMUX_Ctimer1M1ToDma0Ch10Ena
enumerator kINPUTMUX_Ctimer2M0ToDma0Ch11Ena
enumerator kINPUTMUX_Ctimer2M1ToDma0Ch12Ena
enumerator kINPUTMUX_Ctimer3M0ToDma0Ch13Ena
enumerator kINPUTMUX_Ctimer3M1ToDma0Ch14Ena
enumerator kINPUTMUX_Ctimer4M0ToDma0Ch15Ena
enumerator kINPUTMUX_Ctimer4M1ToDma0Ch16Ena
enumerator kINPUTMUX_Wuu0ToDma0Ch17Ena
enumerator kINPUTMUX_Micfil0FifoRequestToDma0Ch18Ena
enumerator kINPUTMUX_Sct0Dma0ToDma0Ch19Ena
enumerator kINPUTMUX_Sct0Dma1ToDma0Ch20Ena
enumerator kINPUTMUX_Adc0FifoARequestToDma0Ch21Ena
enumerator kINPUTMUX_Adc0FifoBRequestToDma0Ch22Ena
enumerator kINPUTMUX_Adc1FifoARequestToDma0Ch23Ena
enumerator kINPUTMUX_Adc1FifoBRequestoDma0Ch24Ena
enumerator kINPUTMUX_Dac0FifoRequestToDma0Ch25Ena
enumerator kINPUTMUX_Dac1FifoRequestToDma0Ch26Ena
enumerator kINPUTMUX_HpDac0FifoRequestToDma0Ch27Ena
enumerator kINPUTMUX_HsCmp0DmaRequestToDma0Ch28Ena
enumerator kINPUTMUX_HsCmp1DmaRequestToDma0Ch29Ena
enumerator kINPUTMUX_HsCmp2DmaRequestToDma0Ch30Ena
enumerator kINPUTMUX_Evtg0Out0AToDma0Ch31Ena

DMA0 REQ ENABLE1 signal.

enumerator kINPUTMUX_Evtg0Out0BToDma0Ch32Ena
enumerator kINPUTMUX_Evtg0Out1AToDma0Ch33Ena
enumerator kINPUTMUX_Evtg0Out1BToDma0Ch34Ena
enumerator kINPUTMUX_Evtg0Out2AToDma0Ch35Ena
enumerator kINPUTMUX_Evtg0Out2BToDma0Ch36Ena
enumerator kINPUTMUX_Evtg0Out3AToDma0Ch37Ena
enumerator kINPUTMUX_Evtg0Out3BToDma0Ch38Ena
enumerator kINPUTMUX_FlexPwm0ReqCapt0ToDma0Ch39Ena
enumerator kINPUTMUX_FlexPwm0ReqCapt1ToDma0Ch40Ena
enumerator kINPUTMUX_FlexPwm0ReqCapt2ToDma0Ch41Ena
enumerator kINPUTMUX_FlexPwm0ReqCapt3ToDma0Ch42Ena
enumerator kINPUTMUX_FlexPwm0ReqVal0ToDma0Ch43Ena
enumerator kINPUTMUX_FlexPwm0ReqVal1ToDma0Ch44Ena
enumerator kINPUTMUX_FlexPwm0ReqVal2ToDma0Ch45Ena
enumerator kINPUTMUX_FlexPwm0ReqVal3ToDma0Ch46Ena
enumerator kINPUTMUX_FlexPwm1ReqCapt0ToDma0Ch47Ena
enumerator kINPUTMUX_FlexPwm1ReqCapt1ToDma0Ch48Ena
enumerator kINPUTMUX_FlexPwm1ReqCapt2ToDma0Ch49Ena
enumerator kINPUTMUX_FlexPwm1ReqCapt3ToDma0Ch50Ena
enumerator kINPUTMUX_FlexPwm1ReqVal0ToDma0Ch51Ena
enumerator kINPUTMUX_FlexPwm1ReqVal1ToDma0Ch52Ena
enumerator kINPUTMUX_FlexPwm1ReqVal2ToDma0Ch53Ena
enumerator kINPUTMUX_FlexPwm1ReqVal3ToDma0Ch54Ena
enumerator kINPUTMUX_Itrc0TmprOut0ToDma0Ch55Ena
enumerator kINPUTMUX_Itrc0TmprOut1ToDma0Ch56Ena
enumerator kINPUTMUX_Lptmr0ToDma0Ch57Ena
enumerator kINPUTMUX_Lptmr1ToDma0Ch58Ena
enumerator kINPUTMUX_FlexCan0DmaRequestToDma0Ch59Ena
enumerator kINPUTMUX_FlexCan1DmaRequestToDma0Ch60Ena
enumerator kINPUTMUX_FlexIO0ShiftRegister0RequestToDma0Ch61Ena
enumerator kINPUTMUX_FlexIO0ShiftRegister1RequestToDma0Ch62Ena
enumerator kINPUTMUX_FlexIO0ShiftRegister2RequestToDma0Ch63Ena

DMA0 REQ ENABLE2 signal.

enumerator kINPUTMUX_FlexIO0ShiftRegister3RequestToDma0Ch64Ena
enumerator kINPUTMUX_FlexIO0ShiftRegister4RequestToDma0Ch65Ena
enumerator kINPUTMUX_FlexIO0ShiftRegister5RequestToDma0Ch66Ena
enumerator kINPUTMUX_FlexIO0ShiftRegister6RequestToDma0Ch67Ena
enumerator kINPUTMUX_FlexIO0ShiftRegister7RequestToDma0Ch68Ena
enumerator kINPUTMUX_LpFlexcomm0RxToDma0Ch69Ena
enumerator kINPUTMUX_LpFlexcomm0TxToDma0Ch70Ena
enumerator kINPUTMUX_LpFlexcomm1RxToDma0Ch71Ena
enumerator kINPUTMUX_LpFlexcomm1TxToDma0Ch72Ena
enumerator kINPUTMUX_LpFlexcomm2RxToDma0Ch73Ena
enumerator kINPUTMUX_LpFlexcomm2TxToDma0Ch74Ena
enumerator kINPUTMUX_LpFlexcomm3RxToDma0Ch75Ena
enumerator kINPUTMUX_LpFlexcomm3TxToDma0Ch76Ena
enumerator kINPUTMUX_LpFlexcomm4RxToDma0Ch77Ena
enumerator kINPUTMUX_LpFlexcomm4TxToDma0Ch78Ena
enumerator kINPUTMUX_LpFlexcomm5RxToDma0Ch79Ena
enumerator kINPUTMUX_LpFlexcomm5TxToDma0Ch80Ena
enumerator kINPUTMUX_LpFlexcomm6RxToDma0Ch81Ena
enumerator kINPUTMUX_LpFlexcomm6TxToDma0Ch82Ena
enumerator kINPUTMUX_LpFlexcomm7RxToDma0Ch83Ena
enumerator kINPUTMUX_LpFlexcomm7TxToDma0Ch84Ena
enumerator kINPUTMUX_LpFlexcomm8RxToDma0Ch85Ena
enumerator kINPUTMUX_LpFlexcomm8TxToDma0Ch86Ena
enumerator kINPUTMUX_LpFlexcomm9RxToDma0Ch87Ena
enumerator kINPUTMUX_LpFlexcomm9TxToDma0Ch88Ena
enumerator kINPUTMUX_ESpi0Ch0ToDma0Ch89Ena
enumerator kINPUTMUX_ESpi0Ch1ToDma0Ch90Ena
enumerator kINPUTMUX_EmvSim0RxToDma0Ch91Ena
enumerator kINPUTMUX_EmvSim0TxToDma0Ch92Ena
enumerator kINPUTMUX_EmvSim1RxToDma0Ch93Ena
enumerator kINPUTMUX_EmvSim1TxToDma0Ch94Ena
enumerator kINPUTMUX_I3c0RxToDma0Ch95Ena

DMA0 REQ ENABLE3 signal.

enumerator kINPUTMUX_I3c0TxToDma0Ch96Ena
enumerator kINPUTMUX_I3c1RxToDma0Ch97Ena
enumerator kINPUTMUX_I3c1TxToDma0Ch98Ena
enumerator kINPUTMUX_Sai0RxToDma0Ch99Ena
enumerator kINPUTMUX_Sai0TxToDma0Ch100Ena
enumerator kINPUTMUX_Sai1RxToDma0Ch101Ena
enumerator kINPUTMUX_Sai1TxToDma0Ch102Ena
enumerator kINPUTMUX_Sinc0IpdReqSincAlt0ToDma0Ch103Ena
enumerator kINPUTMUX_Sinc0IpdReqSincAlt1ToDma0Ch104Ena
enumerator kINPUTMUX_Sinc0IpdReqSincAlt2ToDma0Ch105Ena
enumerator kINPUTMUX_Sinc0IpdReqSincAlt3ToDma0Ch106Ena
enumerator kINPUTMUX_Sinc0IpdReqSincAlt4ToDma0Ch107Ena
enumerator kINPUTMUX_Gpio0PinEventRequest0ToDma0Ch108Ena
enumerator kINPUTMUX_Gpio0PinEventRequest1ToDma0Ch109Ena
enumerator kINPUTMUX_Gpio1PinEventRequest0ToDma0Ch110Ena
enumerator kINPUTMUX_Gpio1PinEventRequest1ToDma0Ch111Ena
enumerator kINPUTMUX_Gpio2PinEventRequest0ToDma0Ch112Ena
enumerator kINPUTMUX_Gpio2PinEventRequest1ToDma0Ch113Ena
enumerator kINPUTMUX_Gpio3PinEventRequest0ToDma0Ch114Ena
enumerator kINPUTMUX_Gpio3PinEventRequest1ToDma0Ch115Ena
enumerator kINPUTMUX_Gpio4PinEventRequest0ToDma0Ch116Ena
enumerator kINPUTMUX_Gpio4PinEventRequest1ToDma0Ch117Ena
enumerator kINPUTMUX_Gpio5PinEventRequest0ToDma0Ch118Ena
enumerator kINPUTMUX_Gpio5PinEventRequest1ToDma0Ch119Ena
enumerator kINPUTMUX_Tsi0EndOfScanToDma0Ch120Ena
enumerator kINPUTMUX_Tsi0OutOfRangeToDma0Ch121Ena

DMA1 REQ ENABLE0 signal.

enumerator kINPUTMUX_FlexSpi0RxToDma1Ch1Ena
enumerator kINPUTMUX_FlexSpi0TxToDma1Ch2Ena
enumerator kINPUTMUX_PinInt0ToDma1Ch3Ena
enumerator kINPUTMUX_PinInt1ToDma1Ch4Ena
enumerator kINPUTMUX_PinInt2ToDma1Ch5Ena
enumerator kINPUTMUX_PinInt3ToDma1Ch6Ena
enumerator kINPUTMUX_Ctimer0M0ToDma1Ch7Ena
enumerator kINPUTMUX_Ctimer0M1ToDma1Ch8Ena
enumerator kINPUTMUX_Ctimer1M0ToDma1Ch9Ena
enumerator kINPUTMUX_Ctimer1M1ToDma1Ch10Ena
enumerator kINPUTMUX_Ctimer2M0ToDma1Ch11Ena
enumerator kINPUTMUX_Ctimer2M1ToDma1Ch12Ena
enumerator kINPUTMUX_Ctimer3M0ToDma1Ch13Ena
enumerator kINPUTMUX_Ctimer3M1ToDma1Ch14Ena
enumerator kINPUTMUX_Ctimer4M0ToDma1Ch15Ena
enumerator kINPUTMUX_Ctimer4M1ToDma1Ch16Ena
enumerator kINPUTMUX_Wuu0ToDma1Ch17Ena
enumerator kINPUTMUX_Micfil0FifoRequestToDma1Ch18Ena
enumerator kINPUTMUX_Sct0Dma0ToDma1Ch19Ena
enumerator kINPUTMUX_Sct0Dma1ToDma1Ch20Ena
enumerator kINPUTMUX_Adc0FifoARequestToDma1Ch21Ena
enumerator kINPUTMUX_Adc0FifoBRequestToDma1Ch22Ena
enumerator kINPUTMUX_Adc1FifoARequestToDma1Ch23Ena
enumerator kINPUTMUX_Adc1FifoBRequestToDma1Ch24Ena
enumerator kINPUTMUX_Dac0FifoRequestToDma1Ch25Ena
enumerator kINPUTMUX_Dac1FifoRequestToDma1Ch26Ena
enumerator kINPUTMUX_HpDac0FifoRequestToDma1Ch27Ena
enumerator kINPUTMUX_HsCmp0DmaRequestToDma1Ch28Ena
enumerator kINPUTMUX_HsCmp1DmaRequestToDma1Ch29Ena
enumerator kINPUTMUX_HsCmp2DmaRequestToDma1Ch30Ena
enumerator kINPUTMUX_Evtg0Out0AToDma1Ch31Ena

DMA1 REQ ENABLE1 signal.

enumerator kINPUTMUX_Evtg0Out0BToDma1Ch32Ena
enumerator kINPUTMUX_Evtg0Out1AToDma1Ch33Ena
enumerator kINPUTMUX_Evtg0Out1BToDma1Ch34Ena
enumerator kINPUTMUX_Evtg0Out2AToDma1Ch35Ena
enumerator kINPUTMUX_Evtg0Out2BToDma1Ch36Ena
enumerator kINPUTMUX_Evtg0Out3AToDma1Ch37Ena
enumerator kINPUTMUX_Evtg0Out3BToDma1Ch38Ena
enumerator kINPUTMUX_FlexPwm0ReqCapt0ToDma1Ch39Ena
enumerator kINPUTMUX_FlexPwm0ReqCapt1ToDma1Ch40Ena
enumerator kINPUTMUX_FlexPwm0ReqCapt2ToDma1Ch41Ena
enumerator kINPUTMUX_FlexPwm0ReqCapt3ToDma1Ch42Ena
enumerator kINPUTMUX_FlexPwm0ReqVal0ToDma1Ch43Ena
enumerator kINPUTMUX_FlexPwm0ReqVal1ToDma1Ch44Ena
enumerator kINPUTMUX_FlexPwm0ReqVal2ToDma1Ch45Ena
enumerator kINPUTMUX_FlexPwm0ReqVal3ToDma1Ch46Ena
enumerator kINPUTMUX_FlexPwm1ReqCapt0ToDma1Ch47Ena
enumerator kINPUTMUX_FlexPwm1ReqCapt1ToDma1Ch48Ena
enumerator kINPUTMUX_FlexPwm1ReqCapt2ToDma1Ch49Ena
enumerator kINPUTMUX_FlexPwm1ReqCapt3ToDma1Ch50Ena
enumerator kINPUTMUX_FlexPwm1ReqVal0ToDma1Ch51Ena
enumerator kINPUTMUX_FlexPwm1ReqVal1ToDma1Ch52Ena
enumerator kINPUTMUX_FlexPwm1ReqVal2ToDma1Ch53Ena
enumerator kINPUTMUX_FlexPwm1ReqVal3ToDma1Ch54Ena
enumerator kINPUTMUX_Itrc0TmprOut0ToDma1Ch55Ena
enumerator kINPUTMUX_Itrc0TmprOut1ToDma1Ch56Ena
enumerator kINPUTMUX_Lptmr0ToDma1Ch57Ena
enumerator kINPUTMUX_Lptmr1ToDma1Ch58Ena
enumerator kINPUTMUX_FlexCan0DmaRequestToDma1Ch59Ena
enumerator kINPUTMUX_FlexCan1DmaRequestToDma1Ch60Ena
enumerator kINPUTMUX_FlexIO0ShiftRegister0RequestToDma1Ch61Ena
enumerator kINPUTMUX_FlexIO0ShiftRegister1RequestToDma1Ch62Ena
enumerator kINPUTMUX_FlexIO0ShiftRegister2RequestToDma1Ch63Ena

DMA1 REQ ENABLE2 signal.

enumerator kINPUTMUX_FlexIO0ShiftRegister3RequestToDma1Ch64Ena
enumerator kINPUTMUX_FlexIO0ShiftRegister4RequestToDma1Ch65Ena
enumerator kINPUTMUX_FlexIO0ShiftRegister5RequestToDma1Ch66Ena
enumerator kINPUTMUX_FlexIO0ShiftRegister6RequestToDma1Ch67Ena
enumerator kINPUTMUX_FlexIO0ShiftRegister7RequestToDma1Ch68Ena
enumerator kINPUTMUX_LpFlexcomm0RxToDma1Ch69Ena
enumerator kINPUTMUX_LpFlexcomm0TxToDma1Ch70Ena
enumerator kINPUTMUX_LpFlexcomm1RxToDma1Ch71Ena
enumerator kINPUTMUX_LpFlexcomm1TxToDma1Ch72Ena
enumerator kINPUTMUX_LpFlexcomm2RxToDma1Ch73Ena
enumerator kINPUTMUX_LpFlexcomm2TxToDma1Ch74Ena
enumerator kINPUTMUX_LpFlexcomm3RxToDma1Ch75Ena
enumerator kINPUTMUX_LpFlexcomm3TxToDma1Ch76Ena
enumerator kINPUTMUX_LpFlexcomm4RxToDma1Ch77Ena
enumerator kINPUTMUX_LpFlexcomm4TxToDma1Ch78Ena
enumerator kINPUTMUX_LpFlexcomm5RxToDma1Ch79Ena
enumerator kINPUTMUX_LpFlexcomm5TxToDma1Ch80Ena
enumerator kINPUTMUX_LpFlexcomm6RxToDma1Ch81Ena
enumerator kINPUTMUX_LpFlexcomm6TxToDma1Ch82Ena
enumerator kINPUTMUX_LpFlexcomm7RxToDma1Ch83Ena
enumerator kINPUTMUX_LpFlexcomm7TxToDma1Ch84Ena
enumerator kINPUTMUX_LpFlexcomm8RxToDma1Ch85Ena
enumerator kINPUTMUX_LpFlexcomm8TxToDma1Ch86Ena
enumerator kINPUTMUX_LpFlexcomm9RxToDma1Ch87Ena
enumerator kINPUTMUX_LpFlexcomm9TxToDma1Ch88Ena
enumerator kINPUTMUX_ESpi0Ch0ToDma1Ch89Ena
enumerator kINPUTMUX_ESpi0Ch1ToDma1Ch90Ena
enumerator kINPUTMUX_EmvSim0RxToDma1Ch91Ena
enumerator kINPUTMUX_EmvSim0TxToDma1Ch92Ena
enumerator kINPUTMUX_EmvSim1RxToDma1Ch93Ena
enumerator kINPUTMUX_EmvSim1TxToDma1Ch94Ena
enumerator kINPUTMUX_I3c0RxToDma1Ch95Ena

DMA1 REQ ENABLE3 signal.

enumerator kINPUTMUX_I3c0TxToDma1Ch96Ena
enumerator kINPUTMUX_I3c1RxToDma1Ch97Ena
enumerator kINPUTMUX_I3c1TxToDma1Ch98Ena
enumerator kINPUTMUX_Sai0RxToDma1Ch99Ena
enumerator kINPUTMUX_Sai0TxToDma1Ch100Ena
enumerator kINPUTMUX_Sai1RxToDma1Ch101Ena
enumerator kINPUTMUX_Sai1TxToDma1Ch102Ena
enumerator kINPUTMUX_Sinc0IpdReqSincAlt0ToDma1Ch103Ena
enumerator kINPUTMUX_Sinc0IpdReqSincAlt1ToDma1Ch104Ena
enumerator kINPUTMUX_Sinc0IpdReqSincAlt2ToDma1Ch105Ena
enumerator kINPUTMUX_Sinc0IpdReqSincAlt3ToDma1Ch106Ena
enumerator kINPUTMUX_Sinc0IpdReqSincAlt4ToDma1Ch107Ena
enumerator kINPUTMUX_Gpio0PinEventRequest0ToDma1Ch108Ena
enumerator kINPUTMUX_Gpio0PinEventRequest1ToDma1Ch109Ena
enumerator kINPUTMUX_Gpio1PinEventRequest0ToDma1Ch110Ena
enumerator kINPUTMUX_Gpio1PinEventRequest1ToDma1Ch111Ena
enumerator kINPUTMUX_Gpio2PinEventRequest0ToDma1Ch112Ena
enumerator kINPUTMUX_Gpio2PinEventRequest1ToDma1Ch113Ena
enumerator kINPUTMUX_Gpio3PinEventRequest0ToDma1Ch114Ena
enumerator kINPUTMUX_Gpio3PinEventRequest1ToDma1Ch115Ena
enumerator kINPUTMUX_Gpio4PinEventRequest0ToDma1Ch116Ena
enumerator kINPUTMUX_Gpio4PinEventRequest1ToDma1Ch117Ena
enumerator kINPUTMUX_Gpio5PinEventRequest0ToDma1Ch118Ena
enumerator kINPUTMUX_Gpio5PinEventRequest1ToDma1Ch119Ena
enumerator kINPUTMUX_Tsi0EndOfScanToDma1Ch120Ena
enumerator kINPUTMUX_Tsi0OutOfRangeToDma1Ch121Ena
typedef enum _inputmux_connection_t inputmux_connection_t

INPUTMUX connections type.

typedef enum _inputmux_signal_t inputmux_signal_t

INPUTMUX signal enable/disable type.

SCT0_INMUX0

Periphinmux IDs.

TIMER0CAPTSEL0
TIMER0TRIGIN
TIMER1CAPTSEL0
TIMER1TRIGIN
TIMER2CAPTSEL0
TIMER2TRIGIN
SMARTDMAARCHB_INMUX0
PINTSEL0
FREQMEAS_REF_REG
FREQMEAS_TAR_REG
TIMER3CAPTSEL0
TIMER3TRIGIN
TIMER4CAPTSEL0
TIMER4TRIGIN
CMP0_TRIG_REG
ADC0_TRIG0
ADC1_TRIG0
DAC0_TRIG_REG
DAC1_TRIG_REG
DAC2_TRIG_REG
QDC0_TRIG_REG
QDC0_HOME_REG
QDC0_INDEX_REG
QDC0_PHASEB_REG
QDC0_PHASEA_REG
QDC1_TRIG_REG
QDC1_HOME_REG
QDC1_INDEX_REG
QDC1_PHASEB_REG
QDC1_PHASEA_REG
FlexPWM0_SM0_EXTSYNC_REG
FlexPWM0_SM1_EXTSYNC_REG
FlexPWM0_SM2_EXTSYNC_REG
FlexPWM0_SM3_EXTSYNC_REG
FlexPWM0_SM0_EXTA_REG
FlexPWM0_SM1_EXTA_REG
FlexPWM0_SM2_EXTA_REG
FlexPWM0_SM3_EXTA_REG
FlexPWM0_EXTFORCE_REG
FlexPWM0_FAULT0_REG
FlexPWM0_FAULT1_REG
FlexPWM0_FAULT2_REG
FlexPWM0_FAULT3_REG
FlexPWM1_SM0_EXTSYNC_REG
FlexPWM1_SM1_EXTSYNC_REG
FlexPWM1_SM2_EXTSYNC_REG
FlexPWM1_SM3_EXTSYNC_REG
FlexPWM1_SM0_EXTA_REG
FlexPWM1_SM1_EXTA_REG
FlexPWM1_SM2_EXTA_REG
FlexPWM1_SM3_EXTA_REG
FlexPWM1_EXTFORCE_REG
FlexPWM1_FAULT0_REG
FlexPWM1_FAULT1_REG
FlexPWM1_FAULT2_REG
FlexPWM1_FAULT3_REG
PWM0_EXT_CLK_REG
PWM1_EXT_CLK_REG
EVTG_TRIG0_REG
USBFS_TRIG_REG
TSI_TRIG_REG
EXT_TRIG0_REG
CMP1_TRIG_REG
CMP2_TRIG_REG
SINC_FILTER_CH0_REG
OPAMP0_TRIG_REG
OPAMP1_TRIG_REG
OPAMP2_TRIG_REG
FLEXCOMM0_TRIG_REG
FLEXCOMM1_TRIG_REG
FLEXCOMM2_TRIG_REG
FLEXCOMM3_TRIG_REG
FLEXCOMM4_TRIG_REG
FLEXCOMM5_TRIG_REG
FLEXCOMM6_TRIG_REG
FLEXCOMM7_TRIG_REG
FLEXCOMM8_TRIG_REG
FLEXCOMM9_TRIG_REG
FLEXIO_TRIG0_REG
DMA0_REQ_ENABLE0_REG
DMA0_REQ_ENABLE1_REG
DMA0_REQ_ENABLE2_REG
DMA0_REQ_ENABLE3_REG
DMA1_REQ_ENABLE0_REG
DMA1_REQ_ENABLE1_REG
DMA1_REQ_ENABLE2_REG
DMA1_REQ_ENABLE3_REG
ENA_SHIFT
PMUX_SHIFT
FSL_INPUTMUX_DRIVER_VERSION

Group interrupt driver version for SDK.

void INPUTMUX_Init(void *base)

Initialize INPUTMUX peripheral.

This function enables the INPUTMUX clock.

Parameters:
  • base – Base address of the INPUTMUX peripheral.

Return values:

None.

void INPUTMUX_AttachSignal(void *base, uint16_t index, inputmux_connection_t connection)

Attaches a signal.

This function attaches multiplexed signals from INPUTMUX to target signals. For example, to attach GPIO PORT0 Pin 5 to PINT peripheral, do the following:

INPUTMUX_AttachSignal(INPUTMUX, 2, kINPUTMUX_GpioPort0Pin5ToPintsel);
In this example, INTMUX has 8 registers for PINT, PINT_SEL0~PINT_SEL7. With parameter index specified as 2, this function configures register PINT_SEL2.

Parameters:
  • base – Base address of the INPUTMUX peripheral.

  • index – The serial number of destination register in the group of INPUTMUX registers with same name.

  • connection – Applies signal from source signals collection to target signal.

Return values:

None.

void INPUTMUX_EnableSignal(void *base, inputmux_signal_t signal, bool enable)

Enable/disable a signal.

This function gates the INPUTPMUX clock.

Parameters:
  • base – Base address of the INPUTMUX peripheral.

  • signal – Enable signal register id and bit offset.

  • enable – Selects enable or disable.

Return values:

None.

void INPUTMUX_Deinit(void *base)

Deinitialize INPUTMUX peripheral.

This function disables the INPUTMUX clock.

Parameters:
  • base – Base address of the INPUTMUX peripheral.

Return values:

None.

INTM: Interrupt Monitor Driver

FSL_INTM_DRIVER_VERSION

INTM driver version.

enum _intm_monitor

Interrupt monitors.

Values:

enumerator kINTM_Monitor1
enumerator kINTM_Monitor2
enumerator kINTM_Monitor3
enumerator kINTM_Monitor4
typedef enum _intm_monitor intm_monitor_t

Interrupt monitors.

typedef struct _intm_monitor_config intm_monitor_config_t

INTM interrupt source configuration structure.

typedef struct _intm_config intm_config_t

INTM configuration structure.

void INTM_GetDefaultConfig(intm_config_t *config)

Fill in the INTM config struct with the default settings.

The default values are:

config[0].irqnumber = NotAvail_IRQn;
config[0].maxtimer = 1000U;
config[1].irqnumber = NotAvail_IRQn;
config[1].maxtimer = 1000U;
config[2].irqnumber = NotAvail_IRQn;
config[2].maxtimer = 1000U;
config[3].irqnumber = NotAvail_IRQn;
config[3].maxtimer = 1000U;
config->enable = false;

Parameters:
  • config – Pointer to user’s INTM config structure.

void INTM_Init(INTM_Type *base, const intm_config_t *config)

Ungates the INTM clock and configures the peripheral for basic operation.

Note

This API should be called at the beginning of the application using the INTM driver.

Parameters:
  • base – INTM peripheral base address

  • config – Pointer to user’s INTM config structure.

void INTM_Deinit(INTM_Type *base)

Disables the INTM module.

Parameters:
  • base – INTM peripheral base address

static inline void INTM_EnableCycleCount(INTM_Type *base, bool enable)

Enable the cycle count timer mode.

Monitor mode enables the cycle count timer on a monitored interrupt request for comparison to the latency register.

Parameters:
  • base – INTM peripheral base address.

  • enable – Enable the cycle count or not.

static inline void INTM_AckIrq(INTM_Type *base, IRQn_Type irq)

Interrupt Acknowledge.

Call this function in ISR to acknowledge interrupt.

Parameters:
  • base – INTM peripheral base address.

  • irq – Handle interrupt number.

static inline void INTM_SetInterruptRequestNumber(INTM_Type *base, intm_monitor_t intms, IRQn_Type irq)

Interrupt Request Select.

This function is used to set the interrupt request number to monitor or check.

Parameters:
  • base – INTM peripheral base address.

  • intms – Programmable interrupt monitors.

  • irq – Interrupt request number to monitor.

Returns:

Select the interrupt request number to monitor.

static inline void INTM_SetMaxTime(INTM_Type *base, intm_monitor_t intms, uint32_t count)

Set the maximum count time.

This function is to set the maximum time from interrupt generation to confirmation.

Parameters:
  • base – INTM peripheral base address.

  • intms – Programmable interrupt monitors.

  • count – Timer maximum count.

static inline void INTM_ClearTimeCount(INTM_Type *base, intm_monitor_t intms)

Clear the timer period in units of count.

This function is used to clear the INTM_TIMERa register.

Parameters:
  • base – INTM peripheral base address.

  • intms – Programmable interrupt monitors.

static inline uint32_t INTM_GetTimeCount(INTM_Type *base, intm_monitor_t intms)

Gets the timer period in units of count.

This function is used to get the number of INTM clock cycles from interrupt request to confirmation interrupt processing. If this number exceeds the set maximum time, will be an error signal.

Parameters:
  • base – INTM peripheral base address.

  • intms – Programmable interrupt monitors.

static inline bool INTM_GetStatusFlags(INTM_Type *base, intm_monitor_t intms)

Interrupt monitor status.

This function indicates whether the INTM_TIMERa value has exceeded the INTM_LATENCYa value. If any interrupt source in INTM_TIMERa exceeds the programmed delay value, the monitor state can be cleared by calling the INTM_ClearTimeCount() API to clear the corresponding INTM_TIMERa register.

Parameters:
  • base – INTM peripheral base address.

  • intms – Programmable interrupt monitors.

Returns:

Whether INTM_TIMER value has exceeded INTM_LATENCY value. false:INTM_TIMER value has not exceeded the INTM_LATENCY value; true:INTM_TIMER value has exceeded the INTM_LATENCY value.

struct _intm_monitor_config
#include <fsl_intm.h>

INTM interrupt source configuration structure.

Public Members

uint32_t maxtimer

Set the maximum timer

IRQn_Type irqnumber

Select the interrupt request number to monitor.

struct _intm_config
#include <fsl_intm.h>

INTM configuration structure.

Public Members

bool enable

Interrupt source monitor config. enables the cycle count timer on a monitored interrupt request for comparison to the latency register.

Inline Prince Encryption Decryption

FSL_IPED_DRIVER_VERSION

IPED driver version. Version 2.2.0.

Current version: 2.2.0

Change log:

  • Version 2.2.0

    • Renamed CSS to ELS

  • Version 2.1.1

    • Fix build error due to renamed symbols

  • Version 2.1.0

    • Add IPED_Config() (including CMPA write) and IPED_Reconfig() features.

  • Version 2.0.0

    • Initial version

enum _iped_status

Values:

enumerator kStatus_IPED_RegionIsLocked
enum _iped_lock

Values:

enumerator kIPED_RegionUnlock
enumerator kIPED_RegionLock
enum _iped_cmpa

Values:

enumerator kIPED_SkipCMPA
enumerator kIPED_WriteCMPA
typedef uint32_t iped_region_t
typedef uint32_t iped_prince_rounds_t
typedef enum _iped_lock iped_lock_t
typedef enum _iped_cmpa iped_cmpa_t
typedef struct _flexspi_iped_region_option flexspi_iped_prot_region_option_t
typedef struct _flexspi_iped_region_arg flexspi_iped_region_arg_t
static inline void IPED_EncryptEnable(FLEXSPI_Type *base)

Enable data encryption.

This function enables IPED on-the-fly data encryption.

Parameters:
  • base – IPED peripheral address.

static inline void IPED_EncryptDisable(FLEXSPI_Type *base)

Disable data encryption.

This function disables IPED on-the-fly data encryption.

Parameters:
  • base – IPED peripheral address.

static inline void IPED_SetLock(FLEXSPI_Type *base, iped_region_t region)

Locks access for specified region registers or data mask register.

This function sets lock on specified region.

Parameters:
  • base – IPED peripheral address.

  • region – number to lock

status_t IPED_SetRegionAddressRange(FLEXSPI_Type *base, iped_region_t region, uint32_t start_address, uint32_t end_address)

Sets IPED region address range.

This function configures IPED region address range.

Parameters:
  • base – IPED peripheral address.

  • region – Selection of the IPED region to be configured.

  • start_address – Start address for region.

  • end_address – End address for region.

status_t IPED_GetRegionAddressRange(FLEXSPI_Type *base, iped_region_t region, uint32_t *start_address, uint32_t *end_address)

Gets IPED region base address.

This function reads current start and end address settings for selected region.

Parameters:
  • base – IPED peripheral address.

  • region – Selection of the IPED region to be configured.

  • start_address – Start address for region.

  • end_address – End address for region.

status_t IPED_SetRegionIV(FLEXSPI_Type *base, iped_region_t region, const uint8_t iv[8])

Sets the IPED region IV.

This function sets specified AES IV for the given region.

Parameters:
  • base – IPED peripheral address.

  • region – Selection of the IPED region to be configured.

  • iv – 64-bit AES IV in little-endian byte order.

static inline void IPED_SetPrinceRounds(FLEXSPI_Type *base, iped_prince_rounds_t rounds)

Sets the IPED region IV.

This function sets specified AES IV for the given region.

Parameters:
  • base – IPED peripheral address.

  • rounds – Number of PRINCE rounds used during encryption/decryption

status_t IPED_Configure(api_core_context_t *coreCtx, flexspi_iped_region_arg_t *config, iped_lock_t lock, iped_cmpa_t writeCmpa)

Configures IPED setting.

This function does the initial IPED configuration via ROM IAP API call. IPED_SR_x configuration for each region configuration is stored into FFR (CMPA). IPED IV erase counters (MCTR_INT_IV_CTRx) in CFPA are updated accordingly.

Note: This function is expected to be called once in the device lifetime, typically during the initial device provisioning (especially if programming the CMPA pages in PFR flash is enabled).

Parameters:
  • coreCtx – The pointer to the ROM API driver context structure.

  • config – The pointer to the IPED driver configuration structure.

  • lock – Locks the IPED configuration, if CMPA write enabled, also sets the IPEDx_START bits[1:0] 01 - Enabled, 10,11 - Enabled & locked

  • writeCmpa – If selected, IPED configuration will be programmed in PFR flash using ROM API. Note: This can not be reverted!!

Return values:
  • kStatus_Success

  • kStatus_CommandUnsupported

  • kStatus_InvalidArgument

  • kStatus_FLASH_ModifyProtectedAreaDisallowed

  • kStatusMemoryRangeInvalid

  • kStatus_Fail

  • kStatus_OutOfRange

  • #kStatus_SPI_BaudrateNotSupport

status_t IPED_Reconfigure(api_core_context_t *coreCtx, flexspi_iped_region_arg_t *config)

Configures IPED setting.

This function is used to re-configure IPED IP based on configuration stored in FFR. This function also needs to be called after wake up from power-down mode to regenerate IV encryption key in ELS key store whose presence is necessary for correct IPED operation during erase and write operations to encrypted regions of internal flash memory (dependency for correct operation of MEM_Erase() and MEM_Write() after wake up from power-down mode).

Parameters:
  • coreCtx – The pointer to the ROM API driver context structure.

  • config – The pointer to the IPED driver configuration structure. If NULL CMPA cinfiguration is read and used. Note: when providing config structure, you have to call Reconfigure for each IPED region individually starting with Region 0. Region 0 must be enabled as a base region.

Return values:
  • kStatus_Success

  • kStatus_Fail

kIPED_Region0

IPED region 0

kIPED_Region1

IPED region 1

kIPED_Region2

IPED region 2

kIPED_Region3

IPED region 3

kIPED_PrinceRounds12
kIPED_PrinceRounds22
IPED_TAG

IPED fixed tag in flexspi_iped_region_arg_t structure.

IPED_TAG_SHIFT
IPED_REGION_COUNT

IPED region count.

IPED_RW_ENABLE_VAL
IPED_RW_DISABLE_VAL
NXP_DIE_EXT_MEM_ENC_SK

Define for ELS key store indexes.

NXP_DIE_MEM_IV_ENC_SK
CFPA_VER_OFFSET

CFPA version and IV indexes (see Protected Flash Region table)

CFPA_IPED_IV_OFFSET
CFPA_SCRATCH_VER

CFPA scrach version and IV addresses (see Protected Flash Region table)

CFPA_SCRATCH_IV
IPED_START_ADDR_LOCK_EN_MASK

CMPA start address, end address, lock and enable bit-field masks (see Protected Flash Region table)

IPED_START_ADDR_MASK
IPED_END_ADDR_MASK
SYSCON_ELS_KDF_MASK

KDF mask and key properties for NXP_DIE_MEM_IV_ENC_SK (see SYSCON documentation)

CMPA_IPED_START_OFFSET

CMPA Start address index (see Protected Flash Region table)

IPED_ADDRESS_MASK

CMPA Start address mask (see Protected Flash Region table)

IPED_ENABLE_MASK

CMPA Start address enable/lock mask bits (see Protected Flash Region table)

CMPA_PAGE_SIZE

CMPA page size (see Protected Flash Region table)

struct _flexspi_iped_region_option
#include <fsl_iped.h>
struct _flexspi_iped_region_arg
#include <fsl_iped.h>
struct IPED_CMPA_page
#include <fsl_iped.h>

IPED - CMPA page layout.

Public Members

uint8_t RESERVED_0[144]

Reserved 0, offset: 0x00

__IO uint32_t IPED0_START

IPED0_START, offset: 0x90

__IO uint32_t IPED0_END

IPED0_END, offset: 0x94

__IO uint32_t IPED1_START

IPED1_START, offset: 0x98

__IO uint32_t IPED1_END

IPED1_END, offset: 0x9C

__IO uint32_t IPED2_START

IPED2_START, offset: 0xA0

__IO uint32_t IPED2_END

IPED2_END, offset: 0xA4

__IO uint32_t IPED3_START

IPED3_START, offset: 0xA8

__IO uint32_t IPED3_END

IPED3_END, offset: 0xAC

uint8_t RESERVED_1[336]

Reserved 1, offset: 0xB0

IRTC: IRTC Driver

status_t IRTC_Init(RTC_Type *base, const irtc_config_t *config)

Ungates the IRTC clock and configures the peripheral for basic operation.

This function initiates a soft-reset of the IRTC module, this has not effect on DST, calendaring, standby time and tamper detect registers.

Note

This API should be called at the beginning of the application using the IRTC driver.

Parameters:
  • base – IRTC peripheral base address

  • config – Pointer to user’s IRTC config structure.

Returns:

kStatus_Success If the driver is initialized successfully.

Returns:

kStatus_Fail if we cannot disable register write protection

Returns:

kStatus_InvalidArgument If the input parameters are wrong.

status_t IRTC_Deinit(RTC_Type *base)

Gate the IRTC clock.

Parameters:
  • base – IRTC peripheral base address

Returns:

kStatus_Success If the driver is initialized successfully.

Returns:

kStatus_InvalidArgument If the input parameters are wrong.

void IRTC_GetDefaultConfig(irtc_config_t *config)

Fill in the IRTC config struct with the default settings.

The default values are:

config->wakeupSelect = true;
config->timerStdMask = false;
config->alrmMatch = kRTC_MatchSecMinHr;

Parameters:
  • config – Pointer to user’s IRTC config structure.

status_t IRTC_SetDatetime(RTC_Type *base, const irtc_datetime_t *datetime)

Sets the IRTC date and time according to the given time structure.

The IRTC counter is started after the time is set.

Parameters:
  • base – IRTC peripheral base address

  • datetime – Pointer to structure where the date and time details to set are stored

Returns:

kStatus_Success: success in setting the time and starting the IRTC kStatus_InvalidArgument: failure. An error occurs because the datetime format is incorrect.

void IRTC_GetDatetime(RTC_Type *base, irtc_datetime_t *datetime)

Gets the IRTC time and stores it in the given time structure.

Parameters:
  • base – IRTC peripheral base address

  • datetime – Pointer to structure where the date and time details are stored.

status_t IRTC_SetAlarm(RTC_Type *base, const irtc_datetime_t *alarmTime)

Sets the IRTC alarm time.

Note

weekDay field of alarmTime is not used during alarm match and should be set to 0

Parameters:
  • base – RTC peripheral base address

  • alarmTime – Pointer to structure where the alarm time is stored.

Returns:

kStatus_Success: success in setting the alarm kStatus_InvalidArgument: error in setting the alarm. Error occurs because the alarm datetime format is incorrect.

void IRTC_GetAlarm(RTC_Type *base, irtc_datetime_t *datetime)

Returns the IRTC alarm time.

Parameters:
  • base – RTC peripheral base address

  • datetime – Pointer to structure where the alarm date and time details are stored.

static inline void IRTC_EnableInterrupts(RTC_Type *base, uint32_t mask)

Enables the selected IRTC interrupts.

Parameters:
  • base – IRTC peripheral base address

  • mask – The interrupts to enable. This is a logical OR of members of the enumeration irtc_interrupt_enable_t

static inline void IRTC_DisableInterrupts(RTC_Type *base, uint32_t mask)

Disables the selected IRTC interrupts.

Parameters:
  • base – IRTC peripheral base address

  • mask – The interrupts to enable. This is a logical OR of members of the enumeration irtc_interrupt_enable_t

static inline uint32_t IRTC_GetEnabledInterrupts(RTC_Type *base)

Gets the enabled IRTC interrupts.

Parameters:
  • base – IRTC peripheral base address

Returns:

The enabled interrupts. This is the logical OR of members of the enumeration irtc_interrupt_enable_t

static inline uint32_t IRTC_GetStatusFlags(RTC_Type *base)

Gets the IRTC status flags.

Parameters:
  • base – IRTC peripheral base address

Returns:

The status flags. This is the logical OR of members of the enumeration irtc_status_flags_t

static inline void IRTC_ClearStatusFlags(RTC_Type *base, uint32_t mask)

Clears the IRTC status flags.

Parameters:
  • base – IRTC peripheral base address

  • mask – The status flags to clear. This is a logical OR of members of the enumeration irtc_status_flags_t

void IRTC_SetDaylightTime(RTC_Type *base, const irtc_daylight_time_t *datetime)

Sets the IRTC daylight savings start and stop date and time.

It also enables the daylight saving bit in the IRTC control register

Parameters:
  • base – IRTC peripheral base address

  • datetime – Pointer to a structure where the date and time details are stored.

void IRTC_GetDaylightTime(RTC_Type *base, irtc_daylight_time_t *datetime)

Gets the IRTC daylight savings time and stores it in the given time structure.

Parameters:
  • base – IRTC peripheral base address

  • datetime – Pointer to a structure where the date and time details are stored.

void IRTC_SetCoarseCompensation(RTC_Type *base, uint8_t compensationValue, uint8_t compensationInterval)

Enables the coarse compensation and sets the value in the IRTC compensation register.

Parameters:
  • base – IRTC peripheral base address

  • compensationValue – Compensation value is a 2’s complement value.

  • compensationInterval – Compensation interval.

void IRTC_SetFineCompensation(RTC_Type *base, uint8_t integralValue, uint8_t fractionValue, bool accumulateFractional)

Enables the fine compensation and sets the value in the IRTC compensation register.

Parameters:
  • base – The IRTC peripheral base address

  • integralValue – Compensation integral value; twos complement value of the integer part

  • fractionValue – Compensation fraction value expressed as number of clock cycles of a fixed 4.194304Mhz clock that have to be added.

  • accumulateFractional – Flag indicating if we want to add to previous fractional part; true: Add to previously accumulated fractional part, false: Start afresh and overwrite current value

static inline void IRTC_EnableSubsecondCounter(RTC_Type *base, bool enable)

Enable the RTC wake-up timer.

1HZ clock out selected via call to API IRTC_ConfigClockOut in order for the subsecond counter to synchronize with the RTC_SECONDS counter.

Parameters:
  • base – RTC peripheral base address

  • enable – Use/Un-use the sub-second counter.

    • true: Use RTC wake-up timer at the same time.

    • false: Un-use RTC wake-up timer, RTC only use the normal seconds timer by default.

static inline uint32_t IRTC_GetSubsecondCount(RTC_Type *base)

Read the actual RTC sub-second COUNT value.

Parameters:
  • base – RTC peripheral base address

Returns:

The actual RTC sub-second COUNT value.

static inline void IRTC_SetWakeupCount(RTC_Type *base, bool enable1kHzClk, uint32_t wakeupValue)

Set countdown value to the RTC wake timer counter register.

Parameters:
  • base – RTC peripheral base address

  • enable1kHzClk – Enable 1kHz clock source for the wake timer, else use the 32kHz clock.

  • wakeupValue – The value to be loaded into the WAKE register in wake timer counter.

static inline uint32_t IRTC_GetWakeupCount(RTC_Type *base)

Read the actual value from the WAKE register value in RTC wake timer.

Parameters:
  • base – RTC peripheral base address

Returns:

The actual value of the WAKE register value in wake timer counter.

FSL_IRTC_DRIVER_VERSION
enum _irtc_clock_select

IRTC clock select.

Values:

enumerator kIRTC_Clk16K

16.384 kHz clock is selected.

enumerator kIRTC_Clk32K

32.768 kHz clock is selected.

enum _irtc_interrupt_enable

List of IRTC interrupts.

Values:

enumerator kIRTC_AlarmInterruptEnable

Alarm Interrupt Enable

enumerator kIRTC_DayInterruptEnable

Days Interrupt Enable

enumerator kIRTC_HourInterruptEnable

Hours Interrupt Enable

enumerator kIRTC_MinInterruptEnable

Minutes Interrupt Enable

enumerator kIRTC_1hzInterruptEnable

1 Hz interval Interrupt Enable

enumerator kIRTC_2hzInterruptEnable

2 Hz interval Interrupt Enable

enumerator kIRTC_4hzInterruptEnable

4 Hz interval Interrupt Enable

enumerator kIRTC_8hzInterruptEnable

8 Hz interval Interrupt Enable

enumerator kIRTC_16hzInterruptEnable

16 Hz interval Interrupt Enable

enumerator kIRTC_32hzInterruptEnable

32 Hz interval Interrupt Enable

enumerator kIRTC_64hzInterruptEnable

64 Hz interval Interrupt Enable

enumerator kIRTC_128hzInterruptEnable

128 Hz interval Interrupt Enable

enumerator kIRTC_256hzInterruptEnable

256 Hz interval Interrupt Enable

enumerator kIRTC_512hzInterruptEnable

512 Hz interval Interrupt Enable

enumerator kIRTC_WakeTimerInterruptEnable

Wake timer Interrupt Enable

enumerator kIRTC_TamperQueueFullInterruptEnable

Tamper queue full Interrupt Enable

enum _irtc_status_flags

List of IRTC flags.

Values:

enumerator kIRTC_AlarmFlag

Alarm Status flag

enumerator kIRTC_DayFlag

Days Status flag

enumerator kIRTC_HourFlag

Hour Status flag

enumerator kIRTC_MinFlag

Minutes Status flag

enumerator kIRTC_1hzFlag

1 Hz interval status flag

enumerator kIRTC_2hzFlag

2 Hz interval status flag

enumerator kIRTC_4hzFlag

4 Hz interval status flag

enumerator kIRTC_8hzFlag

8 Hz interval status flag

enumerator kIRTC_16hzFlag

16 Hz interval status flag

enumerator kIRTC_32hzFlag

32 Hz interval status flag

enumerator kIRTC_64hzFlag

64 Hz interval status flag

enumerator kIRTC_128hzFlag

128 Hz interval status flag

enumerator kIRTC_256hzFlag

256 Hz interval status flag

enumerator kIRTC_512hzFlag

512 Hz interval status flag

enumerator kIRTC_InvalidFlag

Indicates if time/date counters are invalid

enumerator kIRTC_WriteProtFlag

Write protect enable status flag

enumerator kIRTC_CmpIntFlag

Compensation interval status flag

enumerator kIRTC_CmpDoneFlag

Compensation done flag

enumerator kIRTC_BusErrFlag

Bus error flag

enumerator kIRTC_WakeTimerFlag

Wake timer status flag

enum _irtc_alarm_match

IRTC alarm match options.

Values:

enumerator kRTC_MatchSecMinHr

Only match second, minute and hour

enumerator kRTC_MatchSecMinHrDay

Only match second, minute, hour and day

enumerator kRTC_MatchSecMinHrDayMnth

Only match second, minute, hour, day and month

enumerator kRTC_MatchSecMinHrDayMnthYr

Only match second, minute, hour, day, month and year

enum _irtc_clockout_sel

IRTC clockout select.

Values:

enumerator kIRTC_ClkoutNo

No clock out

enumerator kIRTC_ClkoutFine1Hz

clock out fine 1Hz

enumerator kIRTC_Clkout32kHz

clock out 32.768kHz

enumerator kIRTC_ClkoutCoarse1Hz

clock out coarse 1Hz

typedef enum _irtc_clock_select irtc_clock_select_t

IRTC clock select.

typedef enum _irtc_interrupt_enable irtc_interrupt_enable_t

List of IRTC interrupts.

typedef enum _irtc_status_flags irtc_status_flags_t

List of IRTC flags.

typedef enum _irtc_alarm_match irtc_alarm_match_t

IRTC alarm match options.

typedef enum _irtc_clockout_sel irtc_clockout_sel_t

IRTC clockout select.

typedef struct _irtc_datetime irtc_datetime_t

Structure is used to hold the date and time.

typedef struct _irtc_daylight_time irtc_daylight_time_t

Structure is used to hold the daylight saving time.

typedef struct _irtc_config irtc_config_t

RTC config structure.

This structure holds the configuration settings for the RTC peripheral. To initialize this structure to reasonable defaults, call the IRTC_GetDefaultConfig() function and pass a pointer to your config structure instance.

The config struct can be made const so it resides in flash

status_t IRTC_SetWriteProtection(RTC_Type *base, bool lock)

Locks or unlocks IRTC registers for write access.

Note

When the registers are unlocked, they remain in unlocked state for 2 seconds, after which they are locked automatically. After power-on-reset, the registers come out unlocked and they are locked automatically 15 seconds after power on.

Parameters:
  • base – IRTC peripheral base address

  • lock – true: Lock IRTC registers; false: Unlock IRTC registers.

Returns:

kStatus_Success: if lock or unlock operation is successful kStatus_Fail: if lock or unlock operation fails even after multiple retry attempts

static inline void IRTC_Reset(RTC_Type *base)

Performs a software reset on the IRTC module.

Clears contents of alarm, interrupt (status and enable except tamper interrupt enable bit) registers, STATUS[CMP_DONE] and STATUS[BUS_ERR]. This has no effect on DST, calendaring, standby time and tamper detect registers.

Parameters:
  • base – IRTC peripheral base address

void IRTC_ConfigClockOut(RTC_Type *base, irtc_clockout_sel_t clkOut)

Select which clock to output from RTC.

Select which clock to output from RTC for other modules to use inside SoC, for example, RTC subsystem needs RTC to output 1HZ clock for sub-second counter.

Parameters:
  • base – IRTC peripheral base address

  • clkOut – select clock to use for output,

void IRTC_ConfigClockSelect(RTC_Type *base, irtc_clock_select_t clkSelect)

Select which clock is used by RTC.

Select which clock is used by RTC to output to the peripheral and divided to generate a 512 Hz clock and a 1 Hz clock.

Parameters:
  • base – IRTC peripheral base address

  • clkSelect – select clock used by RTC

static inline void IRTC_EnableClockOutputToPeripheral(RTC_Type *base, bool enable)

Determines whether the selected clock is output to other peripherals.

Determines whether the selected clock is output to other peripherals.

Parameters:
  • base – IRTC peripheral base address

  • enable – determine whether the selected clock is output to other peripherals

IRTC_STATUS_W1C_BITS
struct _irtc_datetime
#include <fsl_irtc.h>

Structure is used to hold the date and time.

Public Members

uint16_t year

Range from 1984 to 2239.

uint8_t month

Range from 1 to 12.

uint8_t day

Range from 1 to 31 (depending on month).

uint8_t weekDay

Range from 0(Sunday) to 6(Saturday).

uint8_t hour

Range from 0 to 23.

uint8_t minute

Range from 0 to 59.

uint8_t second

Range from 0 to 59.

struct _irtc_daylight_time
#include <fsl_irtc.h>

Structure is used to hold the daylight saving time.

Public Members

uint8_t startMonth

Range from 1 to 12

uint8_t endMonth

Range from 1 to 12

uint8_t startDay

Range from 1 to 31 (depending on month)

uint8_t endDay

Range from 1 to 31 (depending on month)

uint8_t startHour

Range from 0 to 23

uint8_t endHour

Range from 0 to 23

struct _irtc_config
#include <fsl_irtc.h>

RTC config structure.

This structure holds the configuration settings for the RTC peripheral. To initialize this structure to reasonable defaults, call the IRTC_GetDefaultConfig() function and pass a pointer to your config structure instance.

The config struct can be made const so it resides in flash

Public Members

irtc_alarm_match_t alrmMatch

Pick one option from enumeration :: irtc_alarm_match_t

irtc_clock_select_t clockSelect

Pick one option from enumeration :: irtc_clock_select_t

bool disableClockOutput

true: The selected clock is not output to other peripherals; false: The selected clock is output to other peripherals

ITRC

status_t ITRC_SetActionToEvent(ITRC_Type *base, itrc_out_signals_t out, itrc_input_signals_t in, itrc_lock_t lock, itrc_enable_t enable)

Set ITRC Action to Event.

This function sets input Event signal to corresponding output Action response signal.

Parameters:
  • base – ITRC peripheral base address

  • out – ITRC OUT signal action

  • in – ITRC IN signal event

  • lock – if set locks INx_SEL configuration. This can be cleared only by PMC Core reset.

  • enable – if set input Event will be selected for output Action, otherwise disable (if not already locked).

Returns:

kStatus_Success if success, kStatus_InvalidArgument otherwise

void ITRC_SetSWEvent0(ITRC_Type *base)

Trigger ITRC SW Event 0.

This funciton set SW_EVENT0 register with value !=0 which triggers ITRC SW Event 0.

Parameters:
  • base – ITRC peripheral base address

void ITRC_SetSWEvent1(ITRC_Type *base)

Trigger ITRC SW Event 1.

This funciton set SW_EVENT1 register with value !=0 which triggers ITRC SW Event 1.

Parameters:
  • base – ITRC peripheral base address

uint32_t ITRC_GetStatus(ITRC_Type *base)

Get ITRC Status.

This function returns ITRC register status.

Parameters:
  • base – ITRC peripheral base address

Returns:

Value of ITRC STATUS register

status_t ITRC_ClearStatus(ITRC_Type *base, uint32_t word)

Clear ITRC status.

This function clears corresponding ITRC event or action in STATUS register.

Parameters:
  • base – ITRC peripheral base address

  • word – 32bit word represent corresponding event/action in STATUS register to be cleared (see ITRC_STATUS_INx/OUTx_STATUS)

Returns:

kStatus_Success if success, kStatus_InvalidArgument otherwise

status_t ITRC_ClearAllStatus(ITRC_Type *base)

Clear All ITRC status.

This function clears all event and action status.

Parameters:
  • base – ITRC peripheral base address

Returns:

kStatus_Success if success

status_t ITRC_Init(ITRC_Type *base)

Initialize ITRC.

This function initializes ITRC by enabling IRQ.

Parameters:
  • base – ITRC peripheral base address

  • conf – ITRC configuration structure

Returns:

Status of the init operation

void ITRC_Deinit(ITRC_Type *base)

Deinitialize ITRC.

This function deinitializes ITRC by disabling IRQ.

Parameters:
  • base – ITRC peripheral base address

FSL_ITRC_DRIVER_VERSION

Defines ITRC driver version 2.4.0.

Change log:

  • Version 2.4.0

    • Rework the input signal definition for better flexibility

  • Version 2.3.0

    • Update names of kITRC_SwEvent1/2 to kITRC_SwEvent0/1 to align with RM

  • Version 2.2.0

    • Update driver to new version and input events

  • Version 2.1.0

    • Make SYSCON glitch platform dependent

  • Version 2.0.0

    • initial version

enum _itrc_input_signals

Values:

enum _itrc_lock

Values:

enumerator kITRC_Unlock
enumerator kITRC_Lock
enum _itrc_enable

Values:

enumerator kITRC_Enable
enumerator kITRC_Disable
enum _itrc_out_signals

Values:

enumerator kITRC_Irq
enumerator kITRC_ElsReset
enumerator kITRC_PufZeroize
enumerator kITRC_RamZeroize
enumerator kITRC_ChipReset
enumerator kITRC_TamperOut
enumerator kITRC_TamperOut1
typedef enum _itrc_input_signals itrc_input_signals_t
typedef enum _itrc_lock itrc_lock_t
typedef enum _itrc_enable itrc_enable_t
typedef enum _itrc_out_signals itrc_out_signals_t
void ITRC0_DriverIRQHandler(void)
ITRC_STATUS_IN2_STATUS_MASK
ITRC_STATUS_IN3_STATUS_MASK
ITRC_STATUS_IN9_STATUS_MASK
ITRC_STATUS1_IN17_STATUS_MASK
ITRC_STATUS1_IN19_STATUS_MASK
ITRC_STATUS1_IN24_21_STATUS_MASK
ITRC_STATUS1_IN32_25_STATUS_MASK
ITRC_STATUS1_IN46_STATUS_MASK
IN_0_15_EVENTS_MASK
OUT_ACTIONS_MASK
ITRC_OUT_COUNT
ITRC

Intrusion and Tamper Response Controller

Common Driver

FSL_COMMON_DRIVER_VERSION

common driver version.

DEBUG_CONSOLE_DEVICE_TYPE_NONE

No debug console.

DEBUG_CONSOLE_DEVICE_TYPE_UART

Debug console based on UART.

DEBUG_CONSOLE_DEVICE_TYPE_LPUART

Debug console based on LPUART.

DEBUG_CONSOLE_DEVICE_TYPE_LPSCI

Debug console based on LPSCI.

DEBUG_CONSOLE_DEVICE_TYPE_USBCDC

Debug console based on USBCDC.

DEBUG_CONSOLE_DEVICE_TYPE_FLEXCOMM

Debug console based on FLEXCOMM.

DEBUG_CONSOLE_DEVICE_TYPE_IUART

Debug console based on i.MX UART.

DEBUG_CONSOLE_DEVICE_TYPE_VUSART

Debug console based on LPC_VUSART.

DEBUG_CONSOLE_DEVICE_TYPE_MINI_USART

Debug console based on LPC_USART.

DEBUG_CONSOLE_DEVICE_TYPE_SWO

Debug console based on SWO.

DEBUG_CONSOLE_DEVICE_TYPE_QSCI

Debug console based on QSCI.

MIN(a, b)

Computes the minimum of a and b.

MAX(a, b)

Computes the maximum of a and b.

UINT16_MAX

Max value of uint16_t type.

UINT32_MAX

Max value of uint32_t type.

SDK_ATOMIC_LOCAL_ADD(addr, val)

Add value val from the variable at address address.

SDK_ATOMIC_LOCAL_SUB(addr, val)

Subtract value val to the variable at address address.

SDK_ATOMIC_LOCAL_SET(addr, bits)

Set the bits specifiled by bits to the variable at address address.

SDK_ATOMIC_LOCAL_CLEAR(addr, bits)

Clear the bits specifiled by bits to the variable at address address.

SDK_ATOMIC_LOCAL_TOGGLE(addr, bits)

Toggle the bits specifiled by bits to the variable at address address.

SDK_ATOMIC_LOCAL_CLEAR_AND_SET(addr, clearBits, setBits)

For the variable at address address, clear the bits specifiled by clearBits and set the bits specifiled by setBits.

SDK_ATOMIC_LOCAL_COMPARE_AND_SET(addr, expected, newValue)

For the variable at address address, check whether the value equal to expected. If value same as expected then update newValue to address and return true , else return false .

SDK_ATOMIC_LOCAL_TEST_AND_SET(addr, newValue)

For the variable at address address, set as newValue value and return old value.

USEC_TO_COUNT(us, clockFreqInHz)

Macro to convert a microsecond period to raw count value

COUNT_TO_USEC(count, clockFreqInHz)

Macro to convert a raw count value to microsecond

MSEC_TO_COUNT(ms, clockFreqInHz)

Macro to convert a millisecond period to raw count value

COUNT_TO_MSEC(count, clockFreqInHz)

Macro to convert a raw count value to millisecond

SDK_ISR_EXIT_BARRIER
SDK_ALIGN(var, alignbytes)

Macro to define a variable with alignbytes alignment

SDK_SIZEALIGN(var, alignbytes)

Macro to define a variable with L1 d-cache line size alignment

Macro to define a variable with L2 cache line size alignment

Macro to change a value to a given size aligned value

AT_NONCACHEABLE_SECTION(var)

Define a variable var, and place it in non-cacheable section.

AT_NONCACHEABLE_SECTION_ALIGN(var, alignbytes)

Define a variable var, and place it in non-cacheable section, the start address of the variable is aligned to alignbytes.

AT_NONCACHEABLE_SECTION_INIT(var)

Define a variable var with initial value, and place it in non-cacheable section.

AT_NONCACHEABLE_SECTION_ALIGN_INIT(var, alignbytes)

Define a variable var with initial value, and place it in non-cacheable section, the start address of the variable is aligned to alignbytes.

AT_CACHE_LINE_SECTION(var)

Define a variable var, which is cache line size aligned and be placed in CacheLineData section.

AT_CACHE_LINE_SECTION_INIT(var)

Define a variable var with initial value, which is cache line size aligned and be placed in CacheLineData.init section.

AT_QUICKACCESS_SECTION_CODE(func)

Place function in a section which can be accessed quickly by core.

AT_QUICKACCESS_SECTION_DATA(var)

Place data in a section which can be accessed quickly by core.

AT_QUICKACCESS_SECTION_DATA_ALIGN(var, alignbytes)

Place data in a section which can be accessed quickly by core, and the variable address is set to align with alignbytes.

RAMFUNCTION_SECTION_CODE(func)

Place function in ram.

enum _status_groups

Status group numbers.

Values:

enumerator kStatusGroup_Generic

Group number for generic status codes.

enumerator kStatusGroup_FLASH

Group number for FLASH status codes.

enumerator kStatusGroup_LPSPI

Group number for LPSPI status codes.

enumerator kStatusGroup_FLEXIO_SPI

Group number for FLEXIO SPI status codes.

enumerator kStatusGroup_DSPI

Group number for DSPI status codes.

enumerator kStatusGroup_FLEXIO_UART

Group number for FLEXIO UART status codes.

enumerator kStatusGroup_FLEXIO_I2C

Group number for FLEXIO I2C status codes.

enumerator kStatusGroup_LPI2C

Group number for LPI2C status codes.

enumerator kStatusGroup_UART

Group number for UART status codes.

enumerator kStatusGroup_I2C

Group number for UART status codes.

enumerator kStatusGroup_LPSCI

Group number for LPSCI status codes.

enumerator kStatusGroup_LPUART

Group number for LPUART status codes.

enumerator kStatusGroup_SPI

Group number for SPI status code.

enumerator kStatusGroup_XRDC

Group number for XRDC status code.

enumerator kStatusGroup_SEMA42

Group number for SEMA42 status code.

enumerator kStatusGroup_SDHC

Group number for SDHC status code

enumerator kStatusGroup_SDMMC

Group number for SDMMC status code

enumerator kStatusGroup_SAI

Group number for SAI status code

enumerator kStatusGroup_MCG

Group number for MCG status codes.

enumerator kStatusGroup_SCG

Group number for SCG status codes.

enumerator kStatusGroup_SDSPI

Group number for SDSPI status codes.

enumerator kStatusGroup_FLEXIO_I2S

Group number for FLEXIO I2S status codes

enumerator kStatusGroup_FLEXIO_MCULCD

Group number for FLEXIO LCD status codes

enumerator kStatusGroup_FLASHIAP

Group number for FLASHIAP status codes

enumerator kStatusGroup_FLEXCOMM_I2C

Group number for FLEXCOMM I2C status codes

enumerator kStatusGroup_I2S

Group number for I2S status codes

enumerator kStatusGroup_IUART

Group number for IUART status codes

enumerator kStatusGroup_CSI

Group number for CSI status codes

enumerator kStatusGroup_MIPI_DSI

Group number for MIPI DSI status codes

enumerator kStatusGroup_SDRAMC

Group number for SDRAMC status codes.

enumerator kStatusGroup_POWER

Group number for POWER status codes.

enumerator kStatusGroup_ENET

Group number for ENET status codes.

enumerator kStatusGroup_PHY

Group number for PHY status codes.

enumerator kStatusGroup_TRGMUX

Group number for TRGMUX status codes.

enumerator kStatusGroup_SMARTCARD

Group number for SMARTCARD status codes.

enumerator kStatusGroup_LMEM

Group number for LMEM status codes.

enumerator kStatusGroup_QSPI

Group number for QSPI status codes.

enumerator kStatusGroup_DMA

Group number for DMA status codes.

enumerator kStatusGroup_EDMA

Group number for EDMA status codes.

enumerator kStatusGroup_DMAMGR

Group number for DMAMGR status codes.

enumerator kStatusGroup_FLEXCAN

Group number for FlexCAN status codes.

enumerator kStatusGroup_LTC

Group number for LTC status codes.

enumerator kStatusGroup_FLEXIO_CAMERA

Group number for FLEXIO CAMERA status codes.

enumerator kStatusGroup_LPC_SPI

Group number for LPC_SPI status codes.

enumerator kStatusGroup_LPC_USART

Group number for LPC_USART status codes.

enumerator kStatusGroup_DMIC

Group number for DMIC status codes.

enumerator kStatusGroup_SDIF

Group number for SDIF status codes.

enumerator kStatusGroup_SPIFI

Group number for SPIFI status codes.

enumerator kStatusGroup_OTP

Group number for OTP status codes.

enumerator kStatusGroup_MCAN

Group number for MCAN status codes.

enumerator kStatusGroup_CAAM

Group number for CAAM status codes.

enumerator kStatusGroup_ECSPI

Group number for ECSPI status codes.

enumerator kStatusGroup_USDHC

Group number for USDHC status codes.

enumerator kStatusGroup_LPC_I2C

Group number for LPC_I2C status codes.

enumerator kStatusGroup_DCP

Group number for DCP status codes.

enumerator kStatusGroup_MSCAN

Group number for MSCAN status codes.

enumerator kStatusGroup_ESAI

Group number for ESAI status codes.

enumerator kStatusGroup_FLEXSPI

Group number for FLEXSPI status codes.

enumerator kStatusGroup_MMDC

Group number for MMDC status codes.

enumerator kStatusGroup_PDM

Group number for MIC status codes.

enumerator kStatusGroup_SDMA

Group number for SDMA status codes.

enumerator kStatusGroup_ICS

Group number for ICS status codes.

enumerator kStatusGroup_SPDIF

Group number for SPDIF status codes.

enumerator kStatusGroup_LPC_MINISPI

Group number for LPC_MINISPI status codes.

enumerator kStatusGroup_HASHCRYPT

Group number for Hashcrypt status codes

enumerator kStatusGroup_LPC_SPI_SSP

Group number for LPC_SPI_SSP status codes.

enumerator kStatusGroup_I3C

Group number for I3C status codes

enumerator kStatusGroup_LPC_I2C_1

Group number for LPC_I2C_1 status codes.

enumerator kStatusGroup_NOTIFIER

Group number for NOTIFIER status codes.

enumerator kStatusGroup_DebugConsole

Group number for debug console status codes.

enumerator kStatusGroup_SEMC

Group number for SEMC status codes.

enumerator kStatusGroup_ApplicationRangeStart

Starting number for application groups.

enumerator kStatusGroup_IAP

Group number for IAP status codes

enumerator kStatusGroup_SFA

Group number for SFA status codes

enumerator kStatusGroup_SPC

Group number for SPC status codes.

enumerator kStatusGroup_PUF

Group number for PUF status codes.

enumerator kStatusGroup_TOUCH_PANEL

Group number for touch panel status codes

enumerator kStatusGroup_VBAT

Group number for VBAT status codes

enumerator kStatusGroup_XSPI

Group number for XSPI status codes

enumerator kStatusGroup_PNGDEC

Group number for PNGDEC status codes

enumerator kStatusGroup_JPEGDEC

Group number for JPEGDEC status codes

enumerator kStatusGroup_AUDMIX

Group number for AUDMIX status codes

enumerator kStatusGroup_HAL_GPIO

Group number for HAL GPIO status codes.

enumerator kStatusGroup_HAL_UART

Group number for HAL UART status codes.

enumerator kStatusGroup_HAL_TIMER

Group number for HAL TIMER status codes.

enumerator kStatusGroup_HAL_SPI

Group number for HAL SPI status codes.

enumerator kStatusGroup_HAL_I2C

Group number for HAL I2C status codes.

enumerator kStatusGroup_HAL_FLASH

Group number for HAL FLASH status codes.

enumerator kStatusGroup_HAL_PWM

Group number for HAL PWM status codes.

enumerator kStatusGroup_HAL_RNG

Group number for HAL RNG status codes.

enumerator kStatusGroup_HAL_I2S

Group number for HAL I2S status codes.

enumerator kStatusGroup_HAL_ADC_SENSOR

Group number for HAL ADC SENSOR status codes.

enumerator kStatusGroup_TIMERMANAGER

Group number for TiMER MANAGER status codes.

enumerator kStatusGroup_SERIALMANAGER

Group number for SERIAL MANAGER status codes.

enumerator kStatusGroup_LED

Group number for LED status codes.

enumerator kStatusGroup_BUTTON

Group number for BUTTON status codes.

enumerator kStatusGroup_EXTERN_EEPROM

Group number for EXTERN EEPROM status codes.

enumerator kStatusGroup_SHELL

Group number for SHELL status codes.

enumerator kStatusGroup_MEM_MANAGER

Group number for MEM MANAGER status codes.

enumerator kStatusGroup_LIST

Group number for List status codes.

enumerator kStatusGroup_OSA

Group number for OSA status codes.

enumerator kStatusGroup_COMMON_TASK

Group number for Common task status codes.

enumerator kStatusGroup_MSG

Group number for messaging status codes.

enumerator kStatusGroup_SDK_OCOTP

Group number for OCOTP status codes.

enumerator kStatusGroup_SDK_FLEXSPINOR

Group number for FLEXSPINOR status codes.

enumerator kStatusGroup_CODEC

Group number for codec status codes.

enumerator kStatusGroup_ASRC

Group number for codec status ASRC.

enumerator kStatusGroup_OTFAD

Group number for codec status codes.

enumerator kStatusGroup_SDIOSLV

Group number for SDIOSLV status codes.

enumerator kStatusGroup_MECC

Group number for MECC status codes.

enumerator kStatusGroup_ENET_QOS

Group number for ENET_QOS status codes.

enumerator kStatusGroup_LOG

Group number for LOG status codes.

enumerator kStatusGroup_I3CBUS

Group number for I3CBUS status codes.

enumerator kStatusGroup_QSCI

Group number for QSCI status codes.

enumerator kStatusGroup_ELEMU

Group number for ELEMU status codes.

enumerator kStatusGroup_QUEUEDSPI

Group number for QSPI status codes.

enumerator kStatusGroup_POWER_MANAGER

Group number for POWER_MANAGER status codes.

enumerator kStatusGroup_IPED

Group number for IPED status codes.

enumerator kStatusGroup_ELS_PKC

Group number for ELS PKC status codes.

enumerator kStatusGroup_CSS_PKC

Group number for CSS PKC status codes.

enumerator kStatusGroup_HOSTIF

Group number for HOSTIF status codes.

enumerator kStatusGroup_CLIF

Group number for CLIF status codes.

enumerator kStatusGroup_BMA

Group number for BMA status codes.

enumerator kStatusGroup_NETC

Group number for NETC status codes.

enumerator kStatusGroup_ELE

Group number for ELE status codes.

enumerator kStatusGroup_GLIKEY

Group number for GLIKEY status codes.

enumerator kStatusGroup_AON_POWER

Group number for AON_POWER status codes.

enumerator kStatusGroup_AON_COMMON

Group number for AON_COMMON status codes.

enumerator kStatusGroup_ENDAT3

Group number for ENDAT3 status codes.

enumerator kStatusGroup_HIPERFACE

Group number for HIPERFACE status codes.

enumerator kStatusGroup_NPX

Group number for NPX status codes.

enumerator kStatusGroup_ELA_CSEC

Group number for ELA_CSEC status codes.

enumerator kStatusGroup_FLEXIO_T_FORMAT

Group number for T-format status codes.

enumerator kStatusGroup_FLEXIO_A_FORMAT

Group number for A-format status codes.

Generic status return codes.

Values:

enumerator kStatus_Success

Generic status for Success.

enumerator kStatus_Fail

Generic status for Fail.

enumerator kStatus_ReadOnly

Generic status for read only failure.

enumerator kStatus_OutOfRange

Generic status for out of range access.

enumerator kStatus_InvalidArgument

Generic status for invalid argument check.

enumerator kStatus_Timeout

Generic status for timeout.

enumerator kStatus_NoTransferInProgress

Generic status for no transfer in progress.

enumerator kStatus_Busy

Generic status for module is busy.

enumerator kStatus_NoData

Generic status for no data is found for the operation.

typedef int32_t status_t

Type used for all status and error return values.

void *SDK_Malloc(size_t size, size_t alignbytes)

Allocate memory with given alignment and aligned size.

This is provided to support the dynamically allocated memory used in cache-able region.

Parameters:
  • size – The length required to malloc.

  • alignbytes – The alignment size.

Return values:

The – allocated memory.

void SDK_Free(void *ptr)

Free memory.

Parameters:
  • ptr – The memory to be release.

void SDK_DelayAtLeastUs(uint32_t delayTime_us, uint32_t coreClock_Hz)

Delay at least for some time. Please note that, this API uses while loop for delay, different run-time environments make the time not precise, if precise delay count was needed, please implement a new delay function with hardware timer.

Parameters:
  • delayTime_us – Delay time in unit of microsecond.

  • coreClock_Hz – Core clock frequency with Hz.

static inline status_t EnableIRQ(IRQn_Type interrupt)

Enable specific interrupt.

Enable LEVEL1 interrupt. For some devices, there might be multiple interrupt levels. For example, there are NVIC and intmux. Here the interrupts connected to NVIC are the LEVEL1 interrupts, because they are routed to the core directly. The interrupts connected to intmux are the LEVEL2 interrupts, they are routed to NVIC first then routed to core.

This function only enables the LEVEL1 interrupts. The number of LEVEL1 interrupts is indicated by the feature macro FSL_FEATURE_NUMBER_OF_LEVEL1_INT_VECTORS.

Parameters:
  • interrupt – The IRQ number.

Return values:
  • kStatus_Success – Interrupt enabled successfully

  • kStatus_Fail – Failed to enable the interrupt

static inline status_t DisableIRQ(IRQn_Type interrupt)

Disable specific interrupt.

Disable LEVEL1 interrupt. For some devices, there might be multiple interrupt levels. For example, there are NVIC and intmux. Here the interrupts connected to NVIC are the LEVEL1 interrupts, because they are routed to the core directly. The interrupts connected to intmux are the LEVEL2 interrupts, they are routed to NVIC first then routed to core.

This function only disables the LEVEL1 interrupts. The number of LEVEL1 interrupts is indicated by the feature macro FSL_FEATURE_NUMBER_OF_LEVEL1_INT_VECTORS.

Parameters:
  • interrupt – The IRQ number.

Return values:
  • kStatus_Success – Interrupt disabled successfully

  • kStatus_Fail – Failed to disable the interrupt

static inline status_t EnableIRQWithPriority(IRQn_Type interrupt, uint8_t priNum)

Enable the IRQ, and also set the interrupt priority.

Only handle LEVEL1 interrupt. For some devices, there might be multiple interrupt levels. For example, there are NVIC and intmux. Here the interrupts connected to NVIC are the LEVEL1 interrupts, because they are routed to the core directly. The interrupts connected to intmux are the LEVEL2 interrupts, they are routed to NVIC first then routed to core.

This function only handles the LEVEL1 interrupts. The number of LEVEL1 interrupts is indicated by the feature macro FSL_FEATURE_NUMBER_OF_LEVEL1_INT_VECTORS.

Parameters:
  • interrupt – The IRQ to Enable.

  • priNum – Priority number set to interrupt controller register.

Return values:
  • kStatus_Success – Interrupt priority set successfully

  • kStatus_Fail – Failed to set the interrupt priority.

static inline status_t IRQ_SetPriority(IRQn_Type interrupt, uint8_t priNum)

Set the IRQ priority.

Only handle LEVEL1 interrupt. For some devices, there might be multiple interrupt levels. For example, there are NVIC and intmux. Here the interrupts connected to NVIC are the LEVEL1 interrupts, because they are routed to the core directly. The interrupts connected to intmux are the LEVEL2 interrupts, they are routed to NVIC first then routed to core.

This function only handles the LEVEL1 interrupts. The number of LEVEL1 interrupts is indicated by the feature macro FSL_FEATURE_NUMBER_OF_LEVEL1_INT_VECTORS.

Parameters:
  • interrupt – The IRQ to set.

  • priNum – Priority number set to interrupt controller register.

Return values:
  • kStatus_Success – Interrupt priority set successfully

  • kStatus_Fail – Failed to set the interrupt priority.

static inline status_t IRQ_ClearPendingIRQ(IRQn_Type interrupt)

Clear the pending IRQ flag.

Only handle LEVEL1 interrupt. For some devices, there might be multiple interrupt levels. For example, there are NVIC and intmux. Here the interrupts connected to NVIC are the LEVEL1 interrupts, because they are routed to the core directly. The interrupts connected to intmux are the LEVEL2 interrupts, they are routed to NVIC first then routed to core.

This function only handles the LEVEL1 interrupts. The number of LEVEL1 interrupts is indicated by the feature macro FSL_FEATURE_NUMBER_OF_LEVEL1_INT_VECTORS.

Parameters:
  • interrupt – The flag which IRQ to clear.

Return values:
  • kStatus_Success – Interrupt priority set successfully

  • kStatus_Fail – Failed to set the interrupt priority.

static inline uint32_t DisableGlobalIRQ(void)

Disable the global IRQ.

Disable the global interrupt and return the current primask register. User is required to provided the primask register for the EnableGlobalIRQ().

Returns:

Current primask value.

static inline void EnableGlobalIRQ(uint32_t primask)

Enable the global IRQ.

Set the primask register with the provided primask value but not just enable the primask. The idea is for the convenience of integration of RTOS. some RTOS get its own management mechanism of primask. User is required to use the EnableGlobalIRQ() and DisableGlobalIRQ() in pair.

Parameters:
  • primask – value of primask register to be restored. The primask value is supposed to be provided by the DisableGlobalIRQ().

static inline bool _SDK_AtomicLocalCompareAndSet(uint32_t *addr, uint32_t expected, uint32_t newValue)
static inline uint32_t _SDK_AtomicTestAndSet(uint32_t *addr, uint32_t newValue)
FSL_DRIVER_TRANSFER_DOUBLE_WEAK_IRQ

Macro to use the default weak IRQ handler in drivers.

MAKE_STATUS(group, code)

Construct a status code value from a group and code number.

MAKE_VERSION(major, minor, bugfix)

Construct the version number for drivers.

The driver version is a 32-bit number, for both 32-bit platforms(such as Cortex M) and 16-bit platforms(such as DSC).

| Unused    || Major Version || Minor Version ||  Bug Fix    |
31        25  24           17  16            9  8            0
ARRAY_SIZE(x)

Computes the number of elements in an array.

UINT64_H(X)

Macro to get upper 32 bits of a 64-bit value

UINT64_L(X)

Macro to get lower 32 bits of a 64-bit value

SUPPRESS_FALL_THROUGH_WARNING()

For switch case code block, if case section ends without “break;” statement, there wil be fallthrough warning with compiler flag -Wextra or -Wimplicit-fallthrough=n when using armgcc. To suppress this warning, “SUPPRESS_FALL_THROUGH_WARNING();” need to be added at the end of each case section which misses “break;”statement.

MSDK_REG_SECURE_ADDR(x)

Convert the register address to the one used in secure mode.

MSDK_REG_NONSECURE_ADDR(x)

Convert the register address to the one used in non-secure mode.

MSDK_HAS_DWT_CYCCNT

The chip supports DWT CYCCNT or not.

MSDK_INVALID_IRQ_HANDLER

Invalid IRQ handler address.

LPADC: 12-bit SAR Analog-to-Digital Converter Driver

enum _lpadc_status_flags

Define hardware flags of the module.

Values:

enumerator kLPADC_ResultFIFO0OverflowFlag

Indicates that more data has been written to the Result FIFO 0 than it can hold.

enumerator kLPADC_ResultFIFO0ReadyFlag

Indicates when the number of valid datawords in the result FIFO 0 is greater than the setting watermark level.

enumerator kLPADC_TriggerExceptionFlag

Indicates that a trigger exception event has occurred.

enumerator kLPADC_TriggerCompletionFlag

Indicates that a trigger completion event has occurred.

enumerator kLPADC_CalibrationReadyFlag

Indicates that the calibration process is done.

enumerator kLPADC_ActiveFlag

Indicates that the ADC is in active state.

enumerator kLPADC_ResultFIFOOverflowFlag

To compilitable with old version, do not recommend using this, please use kLPADC_ResultFIFO0OverflowFlag as instead.

enumerator kLPADC_ResultFIFOReadyFlag

To compilitable with old version, do not recommend using this, please use kLPADC_ResultFIFO0ReadyFlag as instead.

enum _lpadc_interrupt_enable

Define interrupt switchers of the module.

Note: LPADC of different chips supports different number of trigger sources, please check the Reference Manual for details.

Values:

enumerator kLPADC_ResultFIFO0OverflowInterruptEnable

Configures ADC to generate overflow interrupt requests when FOF0 flag is asserted.

enumerator kLPADC_FIFO0WatermarkInterruptEnable

Configures ADC to generate watermark interrupt requests when RDY0 flag is asserted.

enumerator kLPADC_ResultFIFOOverflowInterruptEnable

To compilitable with old version, do not recommend using this, please use kLPADC_ResultFIFO0OverflowInterruptEnable as instead.

enumerator kLPADC_FIFOWatermarkInterruptEnable

To compilitable with old version, do not recommend using this, please use kLPADC_FIFO0WatermarkInterruptEnable as instead.

enumerator kLPADC_TriggerExceptionInterruptEnable

Configures ADC to generate trigger exception interrupt.

enumerator kLPADC_Trigger0CompletionInterruptEnable

Configures ADC to generate interrupt when trigger 0 completion.

enumerator kLPADC_Trigger1CompletionInterruptEnable

Configures ADC to generate interrupt when trigger 1 completion.

enumerator kLPADC_Trigger2CompletionInterruptEnable

Configures ADC to generate interrupt when trigger 2 completion.

enumerator kLPADC_Trigger3CompletionInterruptEnable

Configures ADC to generate interrupt when trigger 3 completion.

enumerator kLPADC_Trigger4CompletionInterruptEnable

Configures ADC to generate interrupt when trigger 4 completion.

enumerator kLPADC_Trigger5CompletionInterruptEnable

Configures ADC to generate interrupt when trigger 5 completion.

enumerator kLPADC_Trigger6CompletionInterruptEnable

Configures ADC to generate interrupt when trigger 6 completion.

enumerator kLPADC_Trigger7CompletionInterruptEnable

Configures ADC to generate interrupt when trigger 7 completion.

enumerator kLPADC_Trigger8CompletionInterruptEnable

Configures ADC to generate interrupt when trigger 8 completion.

enumerator kLPADC_Trigger9CompletionInterruptEnable

Configures ADC to generate interrupt when trigger 9 completion.

enumerator kLPADC_Trigger10CompletionInterruptEnable

Configures ADC to generate interrupt when trigger 10 completion.

enumerator kLPADC_Trigger11CompletionInterruptEnable

Configures ADC to generate interrupt when trigger 11 completion.

enumerator kLPADC_Trigger12CompletionInterruptEnable

Configures ADC to generate interrupt when trigger 12 completion.

enumerator kLPADC_Trigger13CompletionInterruptEnable

Configures ADC to generate interrupt when trigger 13 completion.

enumerator kLPADC_Trigger14CompletionInterruptEnable

Configures ADC to generate interrupt when trigger 14 completion.

enumerator kLPADC_Trigger15CompletionInterruptEnable

Configures ADC to generate interrupt when trigger 15 completion.

enum _lpadc_trigger_status_flags

The enumerator of lpadc trigger status flags, including interrupted flags and completed flags.

Note: LPADC of different chips supports different number of trigger sources, please check the Reference Manual for details.

Values:

enumerator kLPADC_Trigger0InterruptedFlag

Trigger 0 is interrupted by a high priority exception.

enumerator kLPADC_Trigger1InterruptedFlag

Trigger 1 is interrupted by a high priority exception.

enumerator kLPADC_Trigger2InterruptedFlag

Trigger 2 is interrupted by a high priority exception.

enumerator kLPADC_Trigger3InterruptedFlag

Trigger 3 is interrupted by a high priority exception.

enumerator kLPADC_Trigger4InterruptedFlag

Trigger 4 is interrupted by a high priority exception.

enumerator kLPADC_Trigger5InterruptedFlag

Trigger 5 is interrupted by a high priority exception.

enumerator kLPADC_Trigger6InterruptedFlag

Trigger 6 is interrupted by a high priority exception.

enumerator kLPADC_Trigger7InterruptedFlag

Trigger 7 is interrupted by a high priority exception.

enumerator kLPADC_Trigger8InterruptedFlag

Trigger 8 is interrupted by a high priority exception.

enumerator kLPADC_Trigger9InterruptedFlag

Trigger 9 is interrupted by a high priority exception.

enumerator kLPADC_Trigger10InterruptedFlag

Trigger 10 is interrupted by a high priority exception.

enumerator kLPADC_Trigger11InterruptedFlag

Trigger 11 is interrupted by a high priority exception.

enumerator kLPADC_Trigger12InterruptedFlag

Trigger 12 is interrupted by a high priority exception.

enumerator kLPADC_Trigger13InterruptedFlag

Trigger 13 is interrupted by a high priority exception.

enumerator kLPADC_Trigger14InterruptedFlag

Trigger 14 is interrupted by a high priority exception.

enumerator kLPADC_Trigger15InterruptedFlag

Trigger 15 is interrupted by a high priority exception.

enumerator kLPADC_Trigger0CompletedFlag

Trigger 0 is completed and trigger 0 has enabled completion interrupts.

enumerator kLPADC_Trigger1CompletedFlag

Trigger 1 is completed and trigger 1 has enabled completion interrupts.

enumerator kLPADC_Trigger2CompletedFlag

Trigger 2 is completed and trigger 2 has enabled completion interrupts.

enumerator kLPADC_Trigger3CompletedFlag

Trigger 3 is completed and trigger 3 has enabled completion interrupts.

enumerator kLPADC_Trigger4CompletedFlag

Trigger 4 is completed and trigger 4 has enabled completion interrupts.

enumerator kLPADC_Trigger5CompletedFlag

Trigger 5 is completed and trigger 5 has enabled completion interrupts.

enumerator kLPADC_Trigger6CompletedFlag

Trigger 6 is completed and trigger 6 has enabled completion interrupts.

enumerator kLPADC_Trigger7CompletedFlag

Trigger 7 is completed and trigger 7 has enabled completion interrupts.

enumerator kLPADC_Trigger8CompletedFlag

Trigger 8 is completed and trigger 8 has enabled completion interrupts.

enumerator kLPADC_Trigger9CompletedFlag

Trigger 9 is completed and trigger 9 has enabled completion interrupts.

enumerator kLPADC_Trigger10CompletedFlag

Trigger 10 is completed and trigger 10 has enabled completion interrupts.

enumerator kLPADC_Trigger11CompletedFlag

Trigger 11 is completed and trigger 11 has enabled completion interrupts.

enumerator kLPADC_Trigger12CompletedFlag

Trigger 12 is completed and trigger 12 has enabled completion interrupts.

enumerator kLPADC_Trigger13CompletedFlag

Trigger 13 is completed and trigger 13 has enabled completion interrupts.

enumerator kLPADC_Trigger14CompletedFlag

Trigger 14 is completed and trigger 14 has enabled completion interrupts.

enumerator kLPADC_Trigger15CompletedFlag

Trigger 15 is completed and trigger 15 has enabled completion interrupts.

enum _lpadc_sample_scale_mode

Define enumeration of sample scale mode.

The sample scale mode is used to reduce the selected ADC analog channel input voltage level by a factor. The maximum possible voltage on the ADC channel input should be considered when selecting a scale mode to ensure that the reducing factor always results voltage level at or below the VREFH reference. This reducing capability allows conversion of analog inputs higher than VREFH. A-side and B-side channel inputs are both scaled using the scale mode.

Values:

enumerator kLPADC_SamplePartScale

Use divided input voltage signal. (For scale select,please refer to the reference manual).

enumerator kLPADC_SampleFullScale

Full scale (Factor of 1).

enum _lpadc_sample_channel_mode

Define enumeration of channel sample mode.

The channel sample mode configures the channel with single-end/differential/dual-single-end, side A/B.

Values:

enumerator kLPADC_SampleChannelSingleEndSideA

Single-end mode, only A-side channel is converted.

enumerator kLPADC_SampleChannelSingleEndSideB

Single-end mode, only B-side channel is converted.

enumerator kLPADC_SampleChannelDiffBothSideAB

Differential mode, the ADC result is (CHnA-CHnB).

enumerator kLPADC_SampleChannelDiffBothSideBA

Differential mode, the ADC result is (CHnB-CHnA).

enumerator kLPADC_SampleChannelDiffBothSide

Differential mode, the ADC result is (CHnA-CHnB).

enumerator kLPADC_SampleChannelDualSingleEndBothSide

Dual-Single-Ended Mode. Both A side and B side channels are converted independently.

enum _lpadc_hardware_average_mode

Define enumeration of hardware average selection.

It Selects how many ADC conversions are averaged to create the ADC result. An internal storage buffer is used to capture temporary results while the averaging iterations are executed.

Note

Some enumerator values are not available on some devices, mainly depends on the size of AVGS field in CMDH register.

Values:

enumerator kLPADC_HardwareAverageCount1

Single conversion.

enumerator kLPADC_HardwareAverageCount2

2 conversions averaged.

enumerator kLPADC_HardwareAverageCount4

4 conversions averaged.

enumerator kLPADC_HardwareAverageCount8

8 conversions averaged.

enumerator kLPADC_HardwareAverageCount16

16 conversions averaged.

enumerator kLPADC_HardwareAverageCount32

32 conversions averaged.

enumerator kLPADC_HardwareAverageCount64

64 conversions averaged.

enumerator kLPADC_HardwareAverageCount128

128 conversions averaged.

enum _lpadc_sample_time_mode

Define enumeration of sample time selection.

The shortest sample time maximizes conversion speed for lower impedance inputs. Extending sample time allows higher impedance inputs to be accurately sampled. Longer sample times can also be used to lower overall power consumption when command looping and sequencing is configured and high conversion rates are not required.

Values:

enumerator kLPADC_SampleTimeADCK3

3 ADCK cycles total sample time.

enumerator kLPADC_SampleTimeADCK5

5 ADCK cycles total sample time.

enumerator kLPADC_SampleTimeADCK7

7 ADCK cycles total sample time.

enumerator kLPADC_SampleTimeADCK11

11 ADCK cycles total sample time.

enumerator kLPADC_SampleTimeADCK19

19 ADCK cycles total sample time.

enumerator kLPADC_SampleTimeADCK35

35 ADCK cycles total sample time.

enumerator kLPADC_SampleTimeADCK67

69 ADCK cycles total sample time.

enumerator kLPADC_SampleTimeADCK131

131 ADCK cycles total sample time.

enum _lpadc_hardware_compare_mode

Define enumeration of hardware compare mode.

After an ADC channel input is sampled and converted and any averaging iterations are performed, this mode setting guides operation of the automatic compare function to optionally only store when the compare operation is true. When compare is enabled, the conversion result is compared to the compare values.

Values:

enumerator kLPADC_HardwareCompareDisabled

Compare disabled.

enumerator kLPADC_HardwareCompareStoreOnTrue

Compare enabled. Store on true.

enumerator kLPADC_HardwareCompareRepeatUntilTrue

Compare enabled. Repeat channel acquisition until true.

enum _lpadc_conversion_resolution_mode

Define enumeration of conversion resolution mode.

Configure the resolution bit in specific conversion type. For detailed resolution accuracy, see to lpadc_sample_channel_mode_t

Values:

enumerator kLPADC_ConversionResolutionStandard

Standard resolution. Single-ended 12-bit conversion, Differential 13-bit conversion with 2’s complement output.

enumerator kLPADC_ConversionResolutionHigh

High resolution. Single-ended 16-bit conversion; Differential 16-bit conversion with 2’s complement output.

enum _lpadc_conversion_average_mode

Define enumeration of conversion averages mode.

Configure the converion average number for auto-calibration.

Note

Some enumerator values are not available on some devices, mainly depends on the size of CAL_AVGS field in CTRL register.

Values:

enumerator kLPADC_ConversionAverage1

Single conversion.

enumerator kLPADC_ConversionAverage2

2 conversions averaged.

enumerator kLPADC_ConversionAverage4

4 conversions averaged.

enumerator kLPADC_ConversionAverage8

8 conversions averaged.

enumerator kLPADC_ConversionAverage16

16 conversions averaged.

enumerator kLPADC_ConversionAverage32

32 conversions averaged.

enumerator kLPADC_ConversionAverage64

64 conversions averaged.

enumerator kLPADC_ConversionAverage128

128 conversions averaged.

enumerator kLPADC_ConversionAverageMax
enum _lpadc_reference_voltage_mode

Define enumeration of reference voltage source.

For detail information, need to check the SoC’s specification.

Values:

enumerator kLPADC_ReferenceVoltageAlt1

Option 1 setting.

enumerator kLPADC_ReferenceVoltageAlt2

Option 2 setting.

enumerator kLPADC_ReferenceVoltageAlt3

Option 3 setting.

enum _lpadc_power_level_mode

Define enumeration of power configuration.

Configures the ADC for power and performance. In the highest power setting the highest conversion rates will be possible. Refer to the device data sheet for power and performance capabilities for each setting.

Values:

enumerator kLPADC_PowerLevelAlt1

Lowest power setting.

enumerator kLPADC_PowerLevelAlt2

Next lowest power setting.

enumerator kLPADC_PowerLevelAlt3

enumerator kLPADC_PowerLevelAlt4

Highest power setting.

enum _lpadc_offset_calibration_mode

Define enumeration of offset calibration mode.

Values:

enumerator kLPADC_OffsetCalibration12bitMode

12 bit offset calibration mode.

enumerator kLPADC_OffsetCalibration16bitMode

16 bit offset calibration mode.

enum _lpadc_trigger_priority_policy

Define enumeration of trigger priority policy.

This selection controls how higher priority triggers are handled.

Note

kLPADC_TriggerPriorityPreemptSubsequently is not available on some devices, mainly depends on the size of TPRICTRL field in CFG register.

Values:

enumerator kLPADC_ConvPreemptImmediatelyNotAutoResumed

If a higher priority trigger is detected during command processing, the current conversion is aborted and the new command specified by the trigger is started, when higher priority conversion finishes, the preempted conversion is not automatically resumed or restarted.

enumerator kLPADC_ConvPreemptSoftlyNotAutoResumed

If a higher priority trigger is received during command processing, the current conversion is completed (including averaging iterations and compare function if enabled) and stored to the result FIFO before the higher priority trigger/command is initiated, when higher priority conversion finishes, the preempted conversion is not resumed or restarted.

enumerator kLPADC_ConvPreemptImmediatelyAutoRestarted

If a higher priority trigger is detected during command processing, the current conversion is aborted and the new command specified by the trigger is started, when higher priority conversion finishes, the preempted conversion will automatically be restarted.

enumerator kLPADC_ConvPreemptSoftlyAutoRestarted

If a higher priority trigger is received during command processing, the current conversion is completed (including averaging iterations and compare function if enabled) and stored to the result FIFO before the higher priority trigger/command is initiated, when higher priority conversion finishes, the preempted conversion will automatically be restarted.

enumerator kLPADC_ConvPreemptImmediatelyAutoResumed

If a higher priority trigger is detected during command processing, the current conversion is aborted and the new command specified by the trigger is started, when higher priority conversion finishes, the preempted conversion will automatically be resumed.

enumerator kLPADC_ConvPreemptSoftlyAutoResumed

If a higher priority trigger is received during command processing, the current conversion is completed (including averaging iterations and compare function if enabled) and stored to the result FIFO before the higher priority trigger/command is initiated, when higher priority conversion finishes, the preempted conversion will be automatically be resumed.

enumerator kLPADC_TriggerPriorityPreemptImmediately

Legacy support is not recommended as it only ensures compatibility with older versions.

enumerator kLPADC_TriggerPriorityPreemptSoftly

Legacy support is not recommended as it only ensures compatibility with older versions.

enumerator kLPADC_TriggerPriorityExceptionDisabled

High priority trigger exception disabled.

enum _lpadc_tune_value

Define enumeration of tune value.

Values:

enumerator kLPADC_TuneValue0

Tune value 0.

enumerator kLPADC_TuneValue1

Tune value 1.

enumerator kLPADC_TuneValue2

Tune value 2.

enumerator kLPADC_TuneValue3

Tune value 3.

typedef enum _lpadc_sample_scale_mode lpadc_sample_scale_mode_t

Define enumeration of sample scale mode.

The sample scale mode is used to reduce the selected ADC analog channel input voltage level by a factor. The maximum possible voltage on the ADC channel input should be considered when selecting a scale mode to ensure that the reducing factor always results voltage level at or below the VREFH reference. This reducing capability allows conversion of analog inputs higher than VREFH. A-side and B-side channel inputs are both scaled using the scale mode.

typedef enum _lpadc_sample_channel_mode lpadc_sample_channel_mode_t

Define enumeration of channel sample mode.

The channel sample mode configures the channel with single-end/differential/dual-single-end, side A/B.

typedef enum _lpadc_hardware_average_mode lpadc_hardware_average_mode_t

Define enumeration of hardware average selection.

It Selects how many ADC conversions are averaged to create the ADC result. An internal storage buffer is used to capture temporary results while the averaging iterations are executed.

Note

Some enumerator values are not available on some devices, mainly depends on the size of AVGS field in CMDH register.

typedef enum _lpadc_sample_time_mode lpadc_sample_time_mode_t

Define enumeration of sample time selection.

The shortest sample time maximizes conversion speed for lower impedance inputs. Extending sample time allows higher impedance inputs to be accurately sampled. Longer sample times can also be used to lower overall power consumption when command looping and sequencing is configured and high conversion rates are not required.

typedef enum _lpadc_hardware_compare_mode lpadc_hardware_compare_mode_t

Define enumeration of hardware compare mode.

After an ADC channel input is sampled and converted and any averaging iterations are performed, this mode setting guides operation of the automatic compare function to optionally only store when the compare operation is true. When compare is enabled, the conversion result is compared to the compare values.

typedef enum _lpadc_conversion_resolution_mode lpadc_conversion_resolution_mode_t

Define enumeration of conversion resolution mode.

Configure the resolution bit in specific conversion type. For detailed resolution accuracy, see to lpadc_sample_channel_mode_t

typedef enum _lpadc_conversion_average_mode lpadc_conversion_average_mode_t

Define enumeration of conversion averages mode.

Configure the converion average number for auto-calibration.

Note

Some enumerator values are not available on some devices, mainly depends on the size of CAL_AVGS field in CTRL register.

typedef enum _lpadc_reference_voltage_mode lpadc_reference_voltage_source_t

Define enumeration of reference voltage source.

For detail information, need to check the SoC’s specification.

typedef enum _lpadc_power_level_mode lpadc_power_level_mode_t

Define enumeration of power configuration.

Configures the ADC for power and performance. In the highest power setting the highest conversion rates will be possible. Refer to the device data sheet for power and performance capabilities for each setting.

typedef enum _lpadc_offset_calibration_mode lpadc_offset_calibration_mode_t

Define enumeration of offset calibration mode.

typedef enum _lpadc_trigger_priority_policy lpadc_trigger_priority_policy_t

Define enumeration of trigger priority policy.

This selection controls how higher priority triggers are handled.

Note

kLPADC_TriggerPriorityPreemptSubsequently is not available on some devices, mainly depends on the size of TPRICTRL field in CFG register.

typedef enum _lpadc_tune_value lpadc_tune_value_t

Define enumeration of tune value.

typedef struct _lpadc_calibration_value lpadc_calibration_value_t

A structure of calibration value.

LPADC_CONVERSION_COMPLETE_TIMEOUT

Max loops to wait for LPADC conversion complete.

When doing calibration, driver will wait for the completion of conversion. This parameter defines how many loops to check completion before return timeout. If defined as 0, driver will wait forever until completion.

LPADC_CALIBRATION_READY_TIMEOUT

Max loops to wait for LPADC calibration ready.

Before doing calibration, driver will wait for the calibration ready. This parameter defines how many loops to check the calibration ready. If defined as 0, driver will wait forever until ready.

LPADC_GAIN_CAL_READY_TIMEOUT

Max loops to wait for LPADC gain calibration GAIN_CAL ready.

Before doing calibration, driver will wait for the gain calibration GAIN_CAL ready. This parameter defines how many loops to check the gain calibration GAIN_CAL ready. If defined as 0, driver will wait forever until ready.

ADC_OFSTRIM_OFSTRIM_MAX
ADC_OFSTRIM_OFSTRIM_SIGN
LPADC_GET_ACTIVE_COMMAND_STATUS(statusVal)

Define the MACRO function to get command status from status value.

The statusVal is the return value from LPADC_GetStatusFlags().

LPADC_GET_ACTIVE_TRIGGER_STATUE(statusVal)

Define the MACRO function to get trigger status from status value.

The statusVal is the return value from LPADC_GetStatusFlags().

void LPADC_Init(ADC_Type *base, const lpadc_config_t *config)

Initializes the LPADC module.

Parameters:
  • base – LPADC peripheral base address.

  • config – Pointer to configuration structure. See “lpadc_config_t”.

void LPADC_GetDefaultConfig(lpadc_config_t *config)

Gets an available pre-defined settings for initial configuration.

This function initializes the converter configuration structure with an available settings. The default values are:

config->enableInDozeMode        = true;
config->enableAnalogPreliminary = false;
config->powerUpDelay            = 0x80;
config->referenceVoltageSource  = kLPADC_ReferenceVoltageAlt1;
config->powerLevelMode          = kLPADC_PowerLevelAlt1;
config->triggerPriorityPolicy   = kLPADC_TriggerPriorityPreemptImmediately;
config->enableConvPause         = false;
config->convPauseDelay          = 0U;
config->FIFOWatermark           = 0U;

Parameters:
  • config – Pointer to configuration structure.

void LPADC_Deinit(ADC_Type *base)

De-initializes the LPADC module.

Parameters:
  • base – LPADC peripheral base address.

static inline void LPADC_Enable(ADC_Type *base, bool enable)

Switch on/off the LPADC module.

Parameters:
  • base – LPADC peripheral base address.

  • enable – switcher to the module.

static inline void LPADC_DoResetFIFO(ADC_Type *base)

Do reset the conversion FIFO.

Parameters:
  • base – LPADC peripheral base address.

static inline void LPADC_DoResetConfig(ADC_Type *base)

Do reset the module’s configuration.

Reset all ADC internal logic and registers, except the Control Register (ADCx_CTRL).

Parameters:
  • base – LPADC peripheral base address.

static inline uint32_t LPADC_GetStatusFlags(ADC_Type *base)

Get status flags.

Parameters:
  • base – LPADC peripheral base address.

Returns:

status flags’ mask. See to _lpadc_status_flags.

static inline void LPADC_ClearStatusFlags(ADC_Type *base, uint32_t mask)

Clear status flags.

Only the flags can be cleared by writing ADCx_STATUS register would be cleared by this API.

Parameters:
  • base – LPADC peripheral base address.

  • mask – Mask value for flags to be cleared. See to _lpadc_status_flags.

static inline uint32_t LPADC_GetTriggerStatusFlags(ADC_Type *base)

Get trigger status flags to indicate which trigger sequences have been completed or interrupted by a high priority trigger exception.

Parameters:
  • base – LPADC peripheral base address.

Returns:

The OR’ed value of _lpadc_trigger_status_flags.

static inline void LPADC_ClearTriggerStatusFlags(ADC_Type *base, uint32_t mask)

Clear trigger status flags.

Parameters:
  • base – LPADC peripheral base address.

  • mask – The mask of trigger status flags to be cleared, should be the OR’ed value of _lpadc_trigger_status_flags.

static inline void LPADC_EnableInterrupts(ADC_Type *base, uint32_t mask)

Enable interrupts.

Parameters:
  • base – LPADC peripheral base address.

  • mask – Mask value for interrupt events. See to _lpadc_interrupt_enable.

static inline void LPADC_DisableInterrupts(ADC_Type *base, uint32_t mask)

Disable interrupts.

Parameters:
  • base – LPADC peripheral base address.

  • mask – Mask value for interrupt events. See to _lpadc_interrupt_enable.

static inline void LPADC_EnableFIFOWatermarkDMA(ADC_Type *base, bool enable)

Switch on/off the DMA trigger for FIFO watermark event.

Parameters:
  • base – LPADC peripheral base address.

  • enable – Switcher to the event.

static inline uint32_t LPADC_GetConvResultCount(ADC_Type *base)

Get the count of result kept in conversion FIFO.

Parameters:
  • base – LPADC peripheral base address.

Returns:

The count of result kept in conversion FIFO.

bool LPADC_GetConvResult(ADC_Type *base, lpadc_conv_result_t *result)

Get the result in conversion FIFO.

Parameters:
  • base – LPADC peripheral base address.

  • result – Pointer to structure variable that keeps the conversion result in conversion FIFO.

Returns:

Status whether FIFO entry is valid.

void LPADC_GetConvResultBlocking(ADC_Type *base, lpadc_conv_result_t *result)

Get the result in conversion FIFO using blocking method.

Parameters:
  • base – LPADC peripheral base address.

  • result – Pointer to structure variable that keeps the conversion result in conversion FIFO.

void LPADC_SetConvTriggerConfig(ADC_Type *base, uint32_t triggerId, const lpadc_conv_trigger_config_t *config)

Configure the conversion trigger source.

Each programmable trigger can launch the conversion command in command buffer.

Parameters:
  • base – LPADC peripheral base address.

  • triggerId – ID for each trigger. Typically, the available value range is from 0.

  • config – Pointer to configuration structure. See to lpadc_conv_trigger_config_t.

void LPADC_GetDefaultConvTriggerConfig(lpadc_conv_trigger_config_t *config)

Gets an available pre-defined settings for trigger’s configuration.

This function initializes the trigger’s configuration structure with an available settings. The default values are:

config->targetCommandId        = 0U;
config->delayPower             = 0U;
config->priority               = 0U;
config->channelAFIFOSelect     = 0U;
config->channelBFIFOSelect     = 0U;
config->enableHardwareTrigger  = false;

Parameters:
  • config – Pointer to configuration structure.

static inline void LPADC_DoSoftwareTrigger(ADC_Type *base, uint32_t triggerIdMask)

Do software trigger to conversion command.

Parameters:
  • base – LPADC peripheral base address.

  • triggerIdMask – Mask value for software trigger indexes, which count from zero.

void LPADC_SetConvCommandConfig(ADC_Type *base, uint32_t commandId, const lpadc_conv_command_config_t *config)

Configure conversion command.

Note

The number of compare value register on different chips is different, that is mean in some chips, some command buffers do not have the compare functionality.

Parameters:
  • base – LPADC peripheral base address.

  • commandId – ID for command in command buffer. Typically, the available value range is 1 - 15.

  • config – Pointer to configuration structure. See to lpadc_conv_command_config_t.

void LPADC_GetDefaultConvCommandConfig(lpadc_conv_command_config_t *config)

Gets an available pre-defined settings for conversion command’s configuration.

This function initializes the conversion command’s configuration structure with an available settings. The default values are:

config->sampleScaleMode            = kLPADC_SampleFullScale;
config->channelBScaleMode          = kLPADC_SampleFullScale;
config->sampleChannelMode          = kLPADC_SampleChannelSingleEndSideA;
config->channelNumber              = 0U;
config->channelBNumber             = 0U;
config->chainedNextCommandNumber   = 0U;
config->enableAutoChannelIncrement = false;
config->loopCount                  = 0U;
config->hardwareAverageMode        = kLPADC_HardwareAverageCount1;
config->sampleTimeMode             = kLPADC_SampleTimeADCK3;
config->hardwareCompareMode        = kLPADC_HardwareCompareDisabled;
config->hardwareCompareValueHigh   = 0U;
config->hardwareCompareValueLow    = 0U;
config->conversionResolutionMode   = kLPADC_ConversionResolutionStandard;
config->enableWaitTrigger          = false;
config->enableChannelB             = false;

Parameters:
  • config – Pointer to configuration structure.

void LPADC_EnableCalibration(ADC_Type *base, bool enable)

Enable the calibration function.

When CALOFS is set, the ADC is configured to perform a calibration function anytime the ADC executes a conversion. Any channel selected is ignored and the value returned in the RESFIFO is a signed value between -31 and 31. -32 is not a valid and is never a returned value. Software should copy the lower 6- bits of the conversion result stored in the RESFIFO after a completed calibration conversion to the OFSTRIM field. The OFSTRIM field is used in normal operation for offset correction.

Parameters:
  • base – LPADC peripheral base address.

  • enable – switcher to the calibration function.

static inline void LPADC_SetOffsetValue(ADC_Type *base, uint32_t value)

Set proper offset value to trim ADC.

To minimize the offset during normal operation, software should read the conversion result from the RESFIFO calibration operation and write the lower 6 bits to the OFSTRIM register.

Parameters:
  • base – LPADC peripheral base address.

  • value – Setting offset value.

status_t LPADC_DoAutoCalibration(ADC_Type *base)

Do auto calibration.

Calibration function should be executed before using converter in application. It used the software trigger and a dummy conversion, get the offset and write them into the OFSTRIM register. It called some of functional API including: -LPADC_EnableCalibration(…) -LPADC_LPADC_SetOffsetValue(…) -LPADC_SetConvCommandConfig(…) -LPADC_SetConvTriggerConfig(…)

Parameters:
  • base – LPADC peripheral base address.

  • base – LPADC peripheral base address.

Return values:
  • kStatus_Success – Successfully configured.

  • kStatus_Timeout – Timeout occurs while waiting completion.

static inline void LPADC_SetOffsetValue(ADC_Type *base, int16_t value)

Set trim value for offset.

Note

For 16-bit conversions, each increment is 1/2 LSB resulting in a programmable offset range of -256 LSB to 255.5 LSB; For 12-bit conversions, each increment is 1/32 LSB resulting in a programmable offset range of -16 LSB to 15.96875 LSB.

Parameters:
  • base – LPADC peripheral base address.

  • value – Offset trim value, is a 10-bit signed value between -512 and 511.

static inline void LPADC_GetOffsetValue(ADC_Type *base, int16_t *pValue)

Get trim value of offset.

Parameters:
  • base – LPADC peripheral base address.

  • pValue – Pointer to the variable in type of int16_t to store offset value.

static inline void LPADC_EnableOffsetCalibration(ADC_Type *base, bool enable)

Enable the offset calibration function.

Parameters:
  • base – LPADC peripheral base address.

  • enable – switcher to the calibration function.

static inline void LPADC_SetOffsetCalibrationMode(ADC_Type *base, lpadc_offset_calibration_mode_t mode)

Set offset calibration mode.

Parameters:
  • base – LPADC peripheral base address.

  • mode – set offset calibration mode.see to lpadc_offset_calibration_mode_t .

status_t LPADC_DoOffsetCalibration(ADC_Type *base)

Do offset calibration.

Parameters:
  • base – LPADC peripheral base address.

Return values:
  • kStatus_Success – Successfully configured.

  • kStatus_Timeout – Timeout occurs while waiting completion.

void LPADC_PrepareAutoCalibration(ADC_Type *base)

Prepare auto calibration, LPADC_FinishAutoCalibration has to be called before using the LPADC. LPADC_DoAutoCalibration has been split in two API to avoid to be stuck too long in the function.

Parameters:
  • base – LPADC peripheral base address.

status_t LPADC_FinishAutoCalibration(ADC_Type *base)

Finish auto calibration start with LPADC_PrepareAutoCalibration.

Note

This feature is used for LPADC with CTRL[CALOFSMODE].

Parameters:
  • base – LPADC peripheral base address.

Return values:
  • kStatus_Success – Successfully configured.

  • kStatus_Timeout – Timeout occurs while waiting completion.

void LPADC_GetCalibrationValue(ADC_Type *base, lpadc_calibration_value_t *ptrCalibrationValue)

Get calibration value into the memory which is defined by invoker.

Note

Please note the ADC will be disabled temporary.

Note

This function should be used after finish calibration.

Parameters:
  • base – LPADC peripheral base address.

  • ptrCalibrationValue – Pointer to lpadc_calibration_value_t structure, this memory block should be always powered on even in low power modes.

status_t LPADC_SetCalibrationValue(ADC_Type *base, const lpadc_calibration_value_t *ptrCalibrationValue)

Set calibration value into ADC calibration registers.

Note

Please note the ADC will be disabled temporary.

Parameters:
  • base – LPADC peripheral base address.

  • ptrCalibrationValue – Pointer to lpadc_calibration_value_t structure which contains ADC’s calibration value.

Return values:
  • kStatus_Success – Successfully configured.

  • kStatus_Timeout – Timeout occurs while waiting completion.

static inline void LPADC_RequestHighSpeedModeTrim(ADC_Type *base)

Request high speed mode trim calculation.

Parameters:
  • base – LPADC peripheral base address.

static inline int8_t LPADC_GetHighSpeedTrimValue(ADC_Type *base)

Get high speed mode trim value, the result is a 5-bit signed value between -16 and 15.

Note

The high speed mode trim value is used to minimize offset for high speed conversion.

Parameters:
  • base – LPADC peripheral base address.

Returns:

The calculated high speed mode trim value.

static inline void LPADC_SetHighSpeedTrimValue(ADC_Type *base, int8_t trimValue)

Set high speed mode trim value.

Note

If is possible to set the trim value manually, but it is recommended to use the LPADC_RequestHighSpeedModeTrim.

Parameters:
  • base – LPADC peripheral base address.

  • trimValue – The trim value to be set.

static inline void LPADC_EnableHighSpeedConversionMode(ADC_Type *base, bool enable)

Enable/disable high speed conversion mode, if enabled conversions complete 2 or 3 ADCK cycles sooner compared to conversion cycle counts when high speed mode is disabled.

Parameters:
  • base – LPADC peripheral base address.

  • enable – Used to enable/disable high speed conversion mode:

    • true Enable high speed conversion mode;

    • false Disable high speed conversion mode.

static inline void LPADC_EnableExtraCycle(ADC_Type *base, bool enable)

Enable/disable an additional ADCK cycle to conversion.

Parameters:
  • base – LPADC peripheral base address.

  • enable – Used to enable/disable an additional ADCK cycle to conversion:

    • true Enable an additional ADCK cycle to conversion;

    • false Disable an additional ADCK cycle to conversion.

static inline void LPADC_SetTuneValue(ADC_Type *base, lpadc_tune_value_t tuneValue)

Set tune value which provides some variability in how many cycles are needed to complete a conversion.

Parameters:
  • base – LPADC peripheral base address.

  • tuneValue – The tune value to be set, please refer to lpadc_tune_value_t.

static inline lpadc_tune_value_t LPADC_GetTuneValue(ADC_Type *base)

Get tune value which provides some variability in how many cycles are needed to complete a conversion.

Parameters:
  • base – LPADC peripheral base address.

Returns:

The tune value, please refer to lpadc_tune_value_t.

FSL_LPADC_DRIVER_VERSION

LPADC driver version 2.9.4.

struct lpadc_config_t
#include <fsl_lpadc.h>

LPADC global configuration.

This structure would used to keep the settings for initialization.

Public Members

bool enableInternalClock

Enables the internally generated clock source. The clock source is used in clock selection logic at the chip level and is optionally used for the ADC clock source.

bool enableVref1LowVoltage

If voltage reference option1 input is below 1.8V, it should be “true”. If voltage reference option1 input is above 1.8V, it should be “false”.

bool enableInDozeMode

Control system transition to Stop and Wait power modes while ADC is converting. When enabled in Doze mode, immediate entries to Wait or Stop are allowed. When disabled, the ADC will wait for the current averaging iteration/FIFO storage to complete before acknowledging stop or wait mode entry.

lpadc_conversion_average_mode_t conversionAverageMode

Auto-Calibration Averages.

bool enableAnalogPreliminary

ADC analog circuits are pre-enabled and ready to execute conversions without startup delays(at the cost of higher DC current consumption).

uint32_t powerUpDelay

When the analog circuits are not pre-enabled, the ADC analog circuits are only powered while the ADC is active and there is a counted delay defined by this field after an initial trigger transitions the ADC from its Idle state to allow time for the analog circuits to stabilize. The startup delay count of (powerUpDelay * 4) ADCK cycles must result in a longer delay than the analog startup time.

lpadc_reference_voltage_source_t referenceVoltageSource

Selects the voltage reference high used for conversions.

lpadc_power_level_mode_t powerLevelMode

Power Configuration Selection.

lpadc_trigger_priority_policy_t triggerPriorityPolicy

Control how higher priority triggers are handled, see to lpadc_trigger_priority_policy_t.

bool enableConvPause

Enables the ADC pausing function. When enabled, a programmable delay is inserted during command execution sequencing between LOOP iterations, between commands in a sequence, and between conversions when command is executing in “Compare Until True” configuration.

uint32_t convPauseDelay

Controls the duration of pausing during command execution sequencing. The pause delay is a count of (convPauseDelay*4) ADCK cycles. Only available when ADC pausing function is enabled. The available value range is in 9-bit.

uint32_t FIFOWatermark

FIFOWatermark is a programmable threshold setting. When the number of datawords stored in the ADC Result FIFO is greater than the value in this field, the ready flag would be asserted to indicate stored data has reached the programmable threshold.

struct lpadc_conv_command_config_t
#include <fsl_lpadc.h>

Define structure to keep the configuration for conversion command.

Public Members

lpadc_sample_scale_mode_t sampleScaleMode

Sample scale mode.

lpadc_sample_scale_mode_t channelBScaleMode

Alternate channe B Scale mode.

lpadc_sample_channel_mode_t sampleChannelMode

Channel sample mode.

uint32_t channelNumber

Channel number, select the channel or channel pair.

uint32_t channelBNumber

Alternate Channel B number, select the channel.

uint32_t chainedNextCommandNumber

Selects the next command to be executed after this command completes. 1-15 is available, 0 is to terminate the chain after this command.

bool enableAutoChannelIncrement

Loop with increment: when disabled, the “loopCount” field selects the number of times the selected channel is converted consecutively; when enabled, the “loopCount” field defines how many consecutive channels are converted as part of the command execution.

uint32_t loopCount

Selects how many times this command executes before finish and transition to the next command or Idle state. Command executes LOOP+1 times. 0-15 is available.

lpadc_hardware_average_mode_t hardwareAverageMode

Hardware average selection.

lpadc_sample_time_mode_t sampleTimeMode

Sample time selection.

lpadc_hardware_compare_mode_t hardwareCompareMode

Hardware compare selection.

uint32_t hardwareCompareValueHigh

Compare Value High. The available value range is in 16-bit.

uint32_t hardwareCompareValueLow

Compare Value Low. The available value range is in 16-bit.

lpadc_conversion_resolution_mode_t conversionResolutionMode

Conversion resolution mode.

bool enableWaitTrigger

Wait for trigger assertion before execution: when disabled, this command will be automatically executed; when enabled, the active trigger must be asserted again before executing this command.

struct lpadc_conv_trigger_config_t
#include <fsl_lpadc.h>

Define structure to keep the configuration for conversion trigger.

Public Members

uint32_t targetCommandId

Select the command from command buffer to execute upon detect of the associated trigger event.

uint32_t delayPower

Select the trigger delay duration to wait at the start of servicing a trigger event. When this field is clear, then no delay is incurred. When this field is set to a non-zero value, the duration for the delay is 2^delayPower ADCK cycles. The available value range is 4-bit.

uint32_t priority

Sets the priority of the associated trigger source. If two or more triggers have the same priority level setting, the lower order trigger event has the higher priority. The lower value for this field is for the higher priority, the available value range is 1-bit.

bool enableHardwareTrigger

Enable hardware trigger source to initiate conversion on the rising edge of the input trigger source or not. THe software trigger is always available.

struct lpadc_conv_result_t
#include <fsl_lpadc.h>

Define the structure to keep the conversion result.

Public Members

uint32_t commandIdSource

Indicate the command buffer being executed that generated this result.

uint32_t loopCountIndex

Indicate the loop count value during command execution that generated this result.

uint32_t triggerIdSource

Indicate the trigger source that initiated a conversion and generated this result.

uint16_t convValue

Data result.

struct _lpadc_calibration_value
#include <fsl_lpadc.h>

A structure of calibration value.

Lpc_freqme

void FREQME_Init(FREQME_Type *base, const freq_measure_config_t *config)

Initialize freqme module, set operate mode, operate mode attribute and initialize measurement cycle.

Parameters:
  • base – FREQME peripheral base address.

  • config – The pointer to module basic configuration, please refer to freq_measure_config_t.

void FREQME_GetDefaultConfig(freq_measure_config_t *config)

Get default configuration.

config->operateMode = kFREQME_FreqMeasurementMode;
config->operateModeAttribute.refClkScaleFactor = 0U;
config->enableContinuousMode                   = false;
config->startMeasurement                       = false;
Parameters:
  • config – The pointer to module basic configuration, please refer to freq_measure_config_t.

static inline void FREQME_StartMeasurementCycle(FREQME_Type *base)

Start frequency or pulse width measurement process.

Parameters:
  • base – FREQME peripheral base address.

static inline void FREQME_TerminateMeasurementCycle(FREQME_Type *base)

Force the termination of any measurement cycle currently in progress and resets RESULT or just reset RESULT if the module in idle state.

Parameters:
  • base – FREQME peripheral base address.

static inline void FREQME_EnableContinuousMode(FREQME_Type *base, bool enable)

Enable/disable Continuous mode.

Parameters:
  • base – FREQME peripheral base address.

  • enable – Used to enable/disable continuous mode,

    • true Enable Continuous mode.

    • false Disable Continuous mode.

static inline bool FREQME_CheckContinuousMode(FREQME_Type *base)

Check whether continuous mode is enabled.

Parameters:
  • base – FREQME peripheral base address.

Return values:
  • True – Continuous mode is enabled, the measurement is performed continuously.

  • False – Continuous mode is disabled.

static inline void FREQME_SetOperateMode(FREQME_Type *base, freqme_operate_mode_t operateMode)

Set operate mode of freqme module.

Parameters:
  • base – FREQME peripheral base address.

  • operateMode – The operate mode to be set, please refer to freqme_operate_mode_t.

static inline bool FREQME_CheckOperateMode(FREQME_Type *base)

Check module’s operate mode.

Parameters:
  • base – FREQME peripheral base address.

Return values:
  • True – Pulse width measurement mode.

  • False – Frequency measurement mode.

static inline void FREQME_SetMinExpectedValue(FREQME_Type *base, uint32_t minValue)

Set the minimum expected value for the measurement result.

Parameters:
  • base – FREQME peripheral base address.

  • minValue – The minimum value to set, please note that this value is 31 bits width.

static inline void FREQME_SetMaxExpectedValue(FREQME_Type *base, uint32_t maxValue)

Set the maximum expected value for the measurement result.

Parameters:
  • base – FREQME peripheral base address.

  • maxValue – The maximum value to set, please note that this value is 31 bits width.

uint32_t FREQME_CalculateTargetClkFreq(FREQME_Type *base, uint32_t refClkFrequency)

Calculate the frequency of selected target clock。

Note

The formula: Ftarget = (RESULT - 2) * Freference / 2 ^ REF_SCALE.

Note

This function only useful when the operate mode is selected as frequency measurement mode.

Parameters:
  • base – FREQME peripheral base address.

  • refClkFrequency – The frequency of reference clock.

Returns:

The frequency of target clock the unit is Hz, if the output result is 0, please check the module’s operate mode.

static inline uint8_t FREQME_GetReferenceClkScaleValue(FREQME_Type *base)

Get reference clock scaling factor.

Parameters:
  • base – FREQME peripheral base address.

Returns:

Reference clock scaling factor, the reference count cycle is 2 ^ ref_scale.

static inline void FREQME_SetPulsePolarity(FREQME_Type *base, freqme_pulse_polarity_t pulsePolarity)

Set pulse polarity when operate mode is selected as Pulse Width Measurement mode.

Parameters:
  • base – FREQME peripheral base address.

  • pulsePolarity – The pulse polarity to be set, please refer to freqme_pulse_polarity_t.

static inline bool FREQME_CheckPulsePolarity(FREQME_Type *base)

Check pulse polarity when the operate mode is selected as pulse width measurement mode.

Parameters:
  • base – FREQME peripheral base address.

Return values:
  • True – Low period.

  • False – High period.

static inline uint32_t FREQME_GetMeasurementResult(FREQME_Type *base)

Get measurement result, if operate mode is selected as pulse width measurement mode this function can be used to calculate pulse width.

Note

Pulse width = counter result / Frequency of target clock.

Parameters:
  • base – FREQME peripheral base address.

Returns:

Measurement result.

static inline uint32_t FREQME_GetInterruptStatusFlags(FREQME_Type *base)

Get interrupt status flags, such as overflow interrupt status flag, underflow interrupt status flag, and so on.

Parameters:
  • base – FREQME peripheral base address.

Returns:

Current interrupt status flags, should be the OR’ed value of _freqme_interrupt_status_flags.

static inline void FREQME_ClearInterruptStatusFlags(FREQME_Type *base, uint32_t statusFlags)

Clear interrupt status flags.

Parameters:
  • base – FREQME peripheral base address.

  • statusFlags – The combination of interrupt status flags to clear, should be the OR’ed value of _freqme_interrupt_status_flags.

static inline void FREQME_EnableInterrupts(FREQME_Type *base, uint32_t masks)

Enable interrupts, such as result ready interrupt, overflow interrupt and so on.

Parameters:
  • base – FREQME peripheral base address.

  • masks – The mask of interrupts to enable, should be the OR’ed value of _freqme_interrupt_enable.

static inline void FREQME_DisableInterrupts(FREQME_Type *base, uint32_t masks)

Disable interrupts, such as result ready interrupt, overflow interrupt and so on.

Parameters:
  • base – FREQME peripheral base address.

  • masks – The mask of interrupts to disable, should be the OR’ed value of _freqme_interrupt_enable.

FSL_FREQME_DRIVER_VERSION

FREQME driver version 2.1.2.

enum _freqme_interrupt_status_flags

The enumeration of interrupt status flags. .

Values:

enumerator kFREQME_UnderflowInterruptStatusFlag

Indicate the measurement is just done and the result is less than minimun value.

enumerator kFREQME_OverflowInterruptStatusFlag

Indicate the measurement is just done and the result is greater than maximum value.

enumerator kFREQME_ReadyInterruptStatusFlag

Indicate the measurement is just done and the result is ready to read.

enumerator kFREQME_AllInterruptStatusFlags

All interrupt status flags.

enum _freqme_interrupt_enable

The enumeration of interrupts, including underflow interrupt, overflow interrupt, and result ready interrupt. .

Values:

enumerator kFREQME_UnderflowInterruptEnable

Enable interrupt when the result is less than minimum value.

enumerator kFREQME_OverflowInterruptEnable

Enable interrupt when the result is greater than maximum value.

enumerator kFREQME_ReadyInterruptEnable

Enable interrupt when a measurement completes and the result is ready.

enum _freqme_operate_mode

FREQME module operate mode enumeration, including frequency measurement mode and pulse width measurement mode.

Values:

enumerator kFREQME_FreqMeasurementMode

The module works in the frequency measurement mode.

enumerator kFREOME_PulseWidthMeasurementMode

The module works in the pulse width measurement mode.

enum _freqme_pulse_polarity

The enumeration of pulse polarity.

Values:

enumerator kFREQME_PulseHighPeriod

Select high period of the reference clock.

enumerator kFREQME_PulseLowPeriod

Select low period of the reference clock.

typedef enum _freqme_operate_mode freqme_operate_mode_t

FREQME module operate mode enumeration, including frequency measurement mode and pulse width measurement mode.

typedef enum _freqme_pulse_polarity freqme_pulse_polarity_t

The enumeration of pulse polarity.

typedef union _freqme_mode_attribute freqme_mode_attribute_t

The union of operate mode attribute.

Note

If the operate mode is selected as frequency measurement mode the member refClkScaleFactor should be used, if the operate mode is selected as pulse width measurement mode the member pulsePolarity should be used.

typedef struct _freq_measure_config freq_measure_config_t

The structure of freqme module basic configuration, including operate mode, operate mode attribute and so on.

union _freqme_mode_attribute
#include <fsl_freqme.h>

The union of operate mode attribute.

Note

If the operate mode is selected as frequency measurement mode the member refClkScaleFactor should be used, if the operate mode is selected as pulse width measurement mode the member pulsePolarity should be used.

Public Members

uint8_t refClkScaleFactor

Only useful in frequency measurement operate mode, used to set the reference clock counter scaling factor.

freqme_pulse_polarity_t pulsePolarity

Only Useful in pulse width measurement operate mode, used to set period polarity.

struct _freq_measure_config
#include <fsl_freqme.h>

The structure of freqme module basic configuration, including operate mode, operate mode attribute and so on.

Public Members

freqme_operate_mode_t operateMode

Select operate mode, please refer to freqme_operate_mode_t.

freqme_mode_attribute_t operateModeAttribute

Used to set the attribute of the selected operate mode, if the operate mode is selected as kFREQME_FreqMeasurementMode set freqme_mode_attribute_t::refClkScaleFactor, if operate mode is selected as kFREOME_PulseWidthMeasurementMode, please set freqme_mode_attribute_t::pulsePolarity.

bool enableContinuousMode

Enable/disable continuous mode, if continuous mode is enable, the measurement is performed continuously and the result for the last completed measurement is available in the result register.

LPCMP: Low Power Analog Comparator Driver

void LPCMP_Init(LPCMP_Type *base, const lpcmp_config_t *config)

Initialize the LPCMP.

This function initializes the LPCMP module. The operations included are:

  • Enabling the clock for LPCMP module.

  • Configuring the comparator.

  • Enabling the LPCMP module. Note: For some devices, multiple LPCMP instance share the same clock gate. In this case, to enable the clock for any instance enables all the LPCMPs. Check the chip reference manual for the clock assignment of the LPCMP.

Parameters:
  • base – LPCMP peripheral base address.

  • config – Pointer to “lpcmp_config_t” structure.

void LPCMP_Deinit(LPCMP_Type *base)

De-initializes the LPCMP module.

This function de-initializes the LPCMP module. The operations included are:

  • Disabling the LPCMP module.

  • Disabling the clock for LPCMP module.

This function disables the clock for the LPCMP. Note: For some devices, multiple LPCMP instance shares the same clock gate. In this case, before disabling the clock for the LPCMP, ensure that all the LPCMP instances are not used.

Parameters:
  • base – LPCMP peripheral base address.

void LPCMP_GetDefaultConfig(lpcmp_config_t *config)

Gets an available pre-defined settings for the comparator’s configuration.

This function initializes the comparator configuration structure to these default values:

config->enableStopMode      = false;
config->enableOutputPin     = false;
config->enableCmpToDacLink  = false;
config->useUnfilteredOutput = false;
config->enableInvertOutput  = false;
config->hysteresisMode      = kLPCMP_HysteresisLevel0;
config->powerMode           = kLPCMP_LowSpeedPowerMode;
config->functionalSourceClock = kLPCMP_FunctionalClockSource0;
config->plusInputSrc          = kLPCMP_PlusInputSrcMux;
config->minusInputSrc         = kLPCMP_MinusInputSrcMux;

Parameters:
  • config – Pointer to “lpcmp_config_t” structure.

static inline void LPCMP_Enable(LPCMP_Type *base, bool enable)

Enable/Disable LPCMP module.

Parameters:
  • base – LPCMP peripheral base address.

  • enable – “true” means enable the module, and “false” means disable the module.

void LPCMP_SetInputChannels(LPCMP_Type *base, uint32_t positiveChannel, uint32_t negativeChannel)

Select the input channels for LPCMP. This function determines which input is selected for the negative and positive mux.

Parameters:
  • base – LPCMP peripheral base address.

  • positiveChannel – Positive side input channel number. Available range is 0-7.

  • negativeChannel – Negative side input channel number. Available range is 0-7.

static inline void LPCMP_EnableDMA(LPCMP_Type *base, bool enable)

Enables/disables the DMA request for rising/falling events. Normally, the LPCMP generates a CPU interrupt if there is a rising/falling event. When DMA support is enabled and the rising/falling interrupt is enabled , the rising/falling event forces a DMA transfer request rather than a CPU interrupt instead.

Parameters:
  • base – LPCMP peripheral base address.

  • enable – “true” means enable DMA support, and “false” means disable DMA support.

void LPCMP_SetFilterConfig(LPCMP_Type *base, const lpcmp_filter_config_t *config)

Configures the filter.

Parameters:
  • base – LPCMP peripheral base address.

  • config – Pointer to “lpcmp_filter_config_t” structure.

void LPCMP_SetDACConfig(LPCMP_Type *base, const lpcmp_dac_config_t *config)

Configure the internal DAC module.

Parameters:
  • base – LPCMP peripheral base address.

  • config – Pointer to “lpcmp_dac_config_t” structure. If config is “NULL”, disable internal DAC.

static inline void LPCMP_EnableInterrupts(LPCMP_Type *base, uint32_t mask)

Enable the interrupts.

Parameters:
  • base – LPCMP peripheral base address.

  • mask – Mask value for interrupts. See “_lpcmp_interrupt_enable”.

static inline void LPCMP_DisableInterrupts(LPCMP_Type *base, uint32_t mask)

Disable the interrupts.

Parameters:
  • base – LPCMP peripheral base address.

  • mask – Mask value for interrupts. See “_lpcmp_interrupt_enable”.

static inline uint32_t LPCMP_GetStatusFlags(LPCMP_Type *base)

Get the LPCMP status flags.

Parameters:
  • base – LPCMP peripheral base address.

Returns:

Mask value for the asserted flags. See “_lpcmp_status_flags”.

static inline void LPCMP_ClearStatusFlags(LPCMP_Type *base, uint32_t mask)

Clear the LPCMP status flags.

Parameters:
  • base – LPCMP peripheral base address.

  • mask – Mask value for the flags. See “_lpcmp_status_flags”.

static inline void LPCMP_EnableWindowMode(LPCMP_Type *base, bool enable)

Enable/Disable window mode.When any windowed mode is active, COUTA is clocked by the bus clock whenever WINDOW = 1. The last latched value is held when WINDOW = 0. The optionally inverted comparator output COUT_RAW is sampled on every bus clock when WINDOW=1 to generate COUTA.

Parameters:
  • base – LPCMP peripheral base address.

  • enable – “true” means enable window mode, and “false” means disable window mode.

void LPCMP_SetWindowControl(LPCMP_Type *base, const lpcmp_window_control_config_t *config)

Configure the window control, users can use this API to implement operations on the window, such as inverting the window signal, setting the window closing event(only valid in windowing mode), and setting the COUTA signal after the window is closed(only valid in windowing mode).

Parameters:
  • base – LPCMP peripheral base address.

  • config – Pointer “lpcmp_window_control_config_t” structure.

void LPCMP_SetRoundRobinConfig(LPCMP_Type *base, const lpcmp_roundrobin_config_t *config)

Configure the roundrobin mode.

Parameters:
  • base – LPCMP peripheral base address.

  • config – Pointer “lpcmp_roundrobin_config_t” structure.

static inline void LPCMP_EnableRoundRobinMode(LPCMP_Type *base, bool enable)

Enable/Disable roundrobin mode.

Parameters:
  • base – LPCMP peripheral base address.

  • enable – “true” means enable roundrobin mode, and “false” means disable roundrobin mode.

void LPCMP_SetRoundRobinInternalTimer(LPCMP_Type *base, uint32_t value)

brief Configure the roundrobin internal timer reload value.

param base LPCMP peripheral base address. param value RoundRobin internal timer reload value, allowed range:0x0UL-0xFFFFFFFUL.

static inline void LPCMP_EnableRoundRobinInternalTimer(LPCMP_Type *base, bool enable)

Enable/Disable roundrobin internal timer, note that this function is only valid when using the internal trigger source.

Parameters:
  • base – LPCMP peripheral base address.

  • enable – “true” means enable roundrobin internal timer, and “false” means disable roundrobin internal timer.

static inline void LPCMP_SetPreSetValue(LPCMP_Type *base, uint8_t mask)

Set preset value for all channels, users can set all channels’ preset vaule through this API, for example, if the mask set to 0x03U means channel0 and channel2’s preset value set to 1U and other channels’ preset value set to 0U.

Parameters:
  • base – LPCMP peripheral base address.

  • mask – Mask of channel index.

static inline uint8_t LPCMP_GetComparisonResult(LPCMP_Type *base)

Get comparison results for all channels, users can get all channels’ comparison results through this API.

Parameters:
  • base – LPCMP peripheral base address.

Returns:

return All channels’ comparison result.

static inline void LPCMP_ClearInputChangedFlags(LPCMP_Type *base, uint8_t mask)

Clear input changed flags for single channel or multiple channels, users can clear input changed flag of a single channel or multiple channels through this API, for example, if the mask set to 0x03U means clear channel0 and channel2’s input changed flags.

Parameters:
  • base – LPCMP peripheral base address.

  • mask – Mask of channel index.

static inline uint8_t LPCMP_GetInputChangedFlags(LPCMP_Type *base)

Get input changed flags for all channels, Users can get all channels’ input changed flags through this API.

Parameters:
  • base – LPCMP peripheral base address.

Returns:

return All channels’ changed flag.

FSL_LPCMP_DRIVER_VERSION

LPCMP driver version 2.3.2.

enum _lpcmp_status_flags

LPCMP status falgs mask.

Values:

enumerator kLPCMP_OutputRisingEventFlag

Rising-edge on the comparison output has occurred.

enumerator kLPCMP_OutputFallingEventFlag

Falling-edge on the comparison output has occurred.

enumerator kLPCMP_OutputRoundRobinEventFlag

Detects when any channel’s last comparison result is different from the pre-set value in trigger mode.

enumerator kLPCMP_OutputAssertEventFlag

Return the current value of the analog comparator output. The flag does not support W1C.

enum _lpcmp_interrupt_enable

LPCMP interrupt enable/disable mask.

Values:

enumerator kLPCMP_OutputRisingInterruptEnable

Comparator interrupt enable rising.

enumerator kLPCMP_OutputFallingInterruptEnable

Comparator interrupt enable falling.

enumerator kLPCMP_RoundRobinInterruptEnable

Comparator round robin mode interrupt occurred when the comparison result changes for a given channel.

enum _lpcmp_hysteresis_mode

LPCMP hysteresis mode. See chip data sheet to get the actual hystersis value with each level.

Values:

enumerator kLPCMP_HysteresisLevel0

The hard block output has level 0 hysteresis internally.

enumerator kLPCMP_HysteresisLevel1

The hard block output has level 1 hysteresis internally.

enumerator kLPCMP_HysteresisLevel2

The hard block output has level 2 hysteresis internally.

enumerator kLPCMP_HysteresisLevel3

The hard block output has level 3 hysteresis internally.

enum _lpcmp_power_mode

LPCMP nano mode.

Values:

enumerator kLPCMP_LowSpeedPowerMode

Low speed comparison mode is selected.

enumerator kLPCMP_HighSpeedPowerMode

High speed comparison mode is selected.

enumerator kLPCMP_NanoPowerMode

Nano power comparator is enabled.

enum _lpcmp_dac_reference_voltage_source

Internal DAC reference voltage source.

Values:

enumerator kLPCMP_VrefSourceVin1

vrefh_int is selected as resistor ladder network supply reference Vin.

enumerator kLPCMP_VrefSourceVin2

vrefh_ext is selected as resistor ladder network supply reference Vin.

enum _lpcmp_functional_source_clock

LPCMP functional mode clock source selection.

Note: In different devices, the functional mode clock source selection is different, please refer to specific device Reference Manual for details.

Values:

enumerator kLPCMP_FunctionalClockSource0

Select functional mode clock source0.

enumerator kLPCMP_FunctionalClockSource1

Select functional mode clock source1.

enumerator kLPCMP_FunctionalClockSource2

Select functional mode clock source2.

enumerator kLPCMP_FunctionalClockSource3

Select functional mode clock source3.

enum _lpcmp_couta_signal

Set the COUTA signal value when the window is closed.

Values:

enumerator kLPCMP_COUTASignalNoSet

NO set the COUTA signal value when the window is closed.

enumerator kLPCMP_COUTASignalLow

Set COUTA signal low(0) when the window is closed.

enumerator kLPCMP_COUTASignalHigh

Set COUTA signal high(1) when the window is closed.

enum _lpcmp_close_window_event

Set COUT event, which can close the active window in window mode.

Values:

enumerator kLPCMP_CLoseWindowEventNoSet

No Set COUT event, which can close the active window in window mode.

enumerator kLPCMP_CloseWindowEventRisingEdge

Set rising edge COUT signal as COUT event.

enumerator kLPCMP_CloseWindowEventFallingEdge

Set falling edge COUT signal as COUT event.

enumerator kLPCMP_CLoseWindowEventBothEdge

Set both rising and falling edge COUT signal as COUT event.

enum _lpcmp_roundrobin_fixedmuxport

LPCMP round robin mode fixed mux port.

Values:

enumerator kLPCMP_FixedPlusMuxPort

Fixed plus mux port.

enumerator kLPCMP_FixedMinusMuxPort

Fixed minus mux port.

enum _lpcmp_roundrobin_clock_source

LPCMP round robin mode clock source selection.

Note: In different devices,the round robin mode clock source selection is different, please refer to the specific device Reference Manual for details.

Values:

enumerator kLPCMP_RoundRobinClockSource0

Select roundrobin mode clock source0.

enumerator kLPCMP_RoundRobinClockSource1

Select roundrobin mode clock source1.

enumerator kLPCMP_RoundRobinClockSource2

Select roundrobin mode clock source2.

enumerator kLPCMP_RoundRobinClockSource3

Select roundrobin mode clock source3.

enum _lpcmp_roundrobin_trigger_source

LPCMP round robin mode trigger source.

Values:

enumerator kLPCMP_TriggerSourceExternally

Select external trigger source.

enumerator kLPCMP_TriggerSourceInternally

Select internal trigger source.

typedef enum _lpcmp_hysteresis_mode lpcmp_hysteresis_mode_t

LPCMP hysteresis mode. See chip data sheet to get the actual hystersis value with each level.

typedef enum _lpcmp_power_mode lpcmp_power_mode_t

LPCMP nano mode.

typedef enum _lpcmp_dac_reference_voltage_source lpcmp_dac_reference_voltage_source_t

Internal DAC reference voltage source.

typedef enum _lpcmp_functional_source_clock lpcmp_functional_source_clock_t

LPCMP functional mode clock source selection.

Note: In different devices, the functional mode clock source selection is different, please refer to specific device Reference Manual for details.

typedef enum _lpcmp_couta_signal lpcmp_couta_signal_t

Set the COUTA signal value when the window is closed.

typedef enum _lpcmp_close_window_event lpcmp_close_window_event_t

Set COUT event, which can close the active window in window mode.

typedef enum _lpcmp_roundrobin_fixedmuxport lpcmp_roundrobin_fixedmuxport_t

LPCMP round robin mode fixed mux port.

typedef enum _lpcmp_roundrobin_clock_source lpcmp_roundrobin_clock_source_t

LPCMP round robin mode clock source selection.

Note: In different devices,the round robin mode clock source selection is different, please refer to the specific device Reference Manual for details.

typedef enum _lpcmp_roundrobin_trigger_source lpcmp_roundrobin_trigger_source_t

LPCMP round robin mode trigger source.

typedef struct _lpcmp_filter_config lpcmp_filter_config_t

Configure the filter.

typedef struct _lpcmp_dac_config lpcmp_dac_config_t

configure the internal DAC.

typedef struct _lpcmp_config lpcmp_config_t

Configures the comparator.

typedef struct _lpcmp_window_control_config lpcmp_window_control_config_t

Configure the window mode control.

typedef struct _lpcmp_roundrobin_config lpcmp_roundrobin_config_t

Configure the round robin mode.

LPCMP_CCR1_COUTA_CFG_MASK
LPCMP_CCR1_COUTA_CFG_SHIFT
LPCMP_CCR1_COUTA_CFG(x)
LPCMP_CCR1_EVT_SEL_CFG_MASK
LPCMP_CCR1_EVT_SEL_CFG_SHIFT
LPCMP_CCR1_EVT_SEL_CFG(x)
struct _lpcmp_filter_config
#include <fsl_lpcmp.h>

Configure the filter.

Public Members

bool enableSample

Decide whether to use the external SAMPLE as a sampling clock input.

uint8_t filterSampleCount

Filter Sample Count. Available range is 1-7; 0 disables the filter.

uint8_t filterSamplePeriod

Filter Sample Period. The divider to the bus clock. Available range is 0-255. The sampling clock must be at least 4 times slower than the system clock to the comparator. So if enableSample is “false”, filterSamplePeriod should be set greater than 4.

struct _lpcmp_dac_config
#include <fsl_lpcmp.h>

configure the internal DAC.

Public Members

bool enableLowPowerMode

Decide whether to enable DAC low power mode.

lpcmp_dac_reference_voltage_source_t referenceVoltageSource

Internal DAC supply voltage reference source.

uint8_t DACValue

Value for the DAC Output Voltage. Different devices has different available range, for specific values, please refer to the reference manual.

struct _lpcmp_config
#include <fsl_lpcmp.h>

Configures the comparator.

Public Members

bool enableStopMode

Decide whether to enable the comparator when in STOP modes.

bool enableOutputPin

Decide whether to enable the comparator is available in selected pin.

bool useUnfilteredOutput

Decide whether to use unfiltered output.

bool enableInvertOutput

Decide whether to inverts the comparator output.

lpcmp_hysteresis_mode_t hysteresisMode

LPCMP hysteresis mode.

lpcmp_power_mode_t powerMode

LPCMP power mode.

lpcmp_functional_source_clock_t functionalSourceClock

Select LPCMP functional mode clock source.

struct _lpcmp_window_control_config
#include <fsl_lpcmp.h>

Configure the window mode control.

Public Members

bool enableInvertWindowSignal

True: enable invert window signal, False: disable invert window signal.

lpcmp_couta_signal_t COUTASignal

Decide whether to define the COUTA signal value when the window is closed.

lpcmp_close_window_event_t closeWindowEvent

Decide whether to select COUT event signal edge defines a COUT event to close window.

struct _lpcmp_roundrobin_config
#include <fsl_lpcmp.h>

Configure the round robin mode.

Public Members

uint8_t initDelayModules

Comparator and DAC initialization delay modulus, See Reference Manual and DataSheet for specific value.

uint8_t sampleClockNumbers

Specify the number of the round robin clock cycles(0~3) to wait after scanning the active channel before sampling the channel’s comparison result.

uint8_t channelSampleNumbers

Specify the number of samples for one channel, note that channelSampleNumbers must not smaller than sampleTimeThreshhold.

uint8_t sampleTimeThreshhold

Specify that for one channel, when (sampleTimeThreshhold + 1) sample results are “1”,the final result is “1”, otherwise the final result is “0”, note that the sampleTimeThreshhold must not be larger than channelSampleNumbers.

lpcmp_roundrobin_clock_source_t roundrobinClockSource

Decide which clock source to choose in round robin mode.

lpcmp_roundrobin_trigger_source_t roundrobinTriggerSource

Decide which trigger source to choose in round robin mode.

lpcmp_roundrobin_fixedmuxport_t fixedMuxPort

Decide which mux port to choose as fixed channel in round robin mode.

uint8_t fixedChannel

Indicate which channel of the fixed mux port is used in round robin mode.

uint8_t checkerChannelMask

Indicate which channel of the non-fixed mux port to check its voltage value in round robin mode, for example, if checkerChannelMask set to 0x11U means select channel 0 and channel 4 as checker channel.

LPFLEXCOMM: LPFLEXCOMM Driver

LPFLEXCOMM Driver

FSL_LP_FLEXCOMM_DRIVER_VERSION

FlexCOMM driver version.

enum LP_FLEXCOMM_PERIPH_T

LP_FLEXCOMM peripheral modes.

Values:

enumerator LP_FLEXCOMM_PERIPH_NONE

No peripheral

enumerator LP_FLEXCOMM_PERIPH_LPUART

LPUART peripheral

enumerator LP_FLEXCOMM_PERIPH_LPSPI

LPSPI Peripheral

enumerator LP_FLEXCOMM_PERIPH_LPI2C

LPI2C Peripheral

enumerator LP_FLEXCOMM_PERIPH_LPI2CAndLPUART

LPI2C and LPUART Peripheral

enum _lpflexcomm_interrupt_flag

LP_FLEXCOMM interrupt source flags.

Values:

enumerator kLPFLEXCOMM_I2cSlaveInterruptFlag
enumerator kLPFLEXCOMM_I2cMasterInterruptFlag
enumerator kLPFLEXCOMM_SpiInterruptFlag
enumerator kLPFLEXCOMM_UartRxInterruptFlag
enumerator kLPFLEXCOMM_UartTxInterruptFlag
enumerator kLPFLEXCOMM_AllInterruptFlag
typedef void (*lpflexcomm_irq_handler_t)(uint32_t instance, void *handle)

Typedef for interrupt handler.

IRQn_Type const kFlexcommIrqs[]

Array with IRQ number for each LP_FLEXCOMM module.

uint32_t LP_FLEXCOMM_GetInstance(void *base)

Returns instance number for LP_FLEXCOMM module with given base address.

uint32_t LP_FLEXCOMM_GetBaseAddress(uint32_t instance)

Returns for LP_FLEXCOMM base address.

uint32_t LP_FLEXCOMM_GetInterruptStatus(uint32_t instance)

brief Returns for LP_FLEXCOMM interrupt source,see _lpflexcomm_interrupt_flag.

status_t LP_FLEXCOMM_Init(uint32_t instance, LP_FLEXCOMM_PERIPH_T periph)

Initializes LP_FLEXCOMM and selects peripheral mode according to the second parameter.

void LP_FLEXCOMM_Deinit(uint32_t instance)

Deinitializes LP_FLEXCOMM.

void LP_FLEXCOMM_SetIRQHandler(uint32_t instance, lpflexcomm_irq_handler_t handler, void *lpflexcommHandle, LP_FLEXCOMM_PERIPH_T periph)

Sets IRQ handler for given LP_FLEXCOMM module. It is used by drivers register IRQ handler according to LP_FLEXCOMM mode.

LPI2C: Low Power Inter-Integrated Circuit Driver

FSL_LPI2C_DRIVER_VERSION

LPI2C driver version.

LPI2C status return codes.

Values:

enumerator kStatus_LPI2C_Busy

The master is already performing a transfer.

enumerator kStatus_LPI2C_Idle

The slave driver is idle.

enumerator kStatus_LPI2C_Nak

The slave device sent a NAK in response to a byte.

enumerator kStatus_LPI2C_FifoError

FIFO under run or overrun.

enumerator kStatus_LPI2C_BitError

Transferred bit was not seen on the bus.

enumerator kStatus_LPI2C_ArbitrationLost

Arbitration lost error.

enumerator kStatus_LPI2C_PinLowTimeout

SCL or SDA were held low longer than the timeout.

enumerator kStatus_LPI2C_NoTransferInProgress

Attempt to abort a transfer when one is not in progress.

enumerator kStatus_LPI2C_DmaRequestFail

DMA request failed.

enumerator kStatus_LPI2C_Timeout

Timeout polling status flags.

I2C_RETRY_TIMES

Retry times for waiting flag.

LPI2C Master Driver

void LPI2C_MasterGetDefaultConfig(lpi2c_master_config_t *masterConfig)

Provides a default configuration for the LPI2C master peripheral.

This function provides the following default configuration for the LPI2C master peripheral:

masterConfig->enableMaster            = true;
masterConfig->debugEnable             = false;
masterConfig->ignoreAck               = false;
masterConfig->pinConfig               = kLPI2C_2PinOpenDrain;
masterConfig->baudRate_Hz             = 100000U;
masterConfig->busIdleTimeout_ns       = 0;
masterConfig->pinLowTimeout_ns        = 0;
masterConfig->sdaGlitchFilterWidth_ns = 0;
masterConfig->sclGlitchFilterWidth_ns = 0;
masterConfig->hostRequest.enable      = false;
masterConfig->hostRequest.source      = kLPI2C_HostRequestExternalPin;
masterConfig->hostRequest.polarity    = kLPI2C_HostRequestPinActiveHigh;

After calling this function, you can override any settings in order to customize the configuration, prior to initializing the master driver with LPI2C_MasterInit().

Parameters:
  • masterConfig[out] User provided configuration structure for default values. Refer to lpi2c_master_config_t.

void LPI2C_MasterInit(LPI2C_Type *base, const lpi2c_master_config_t *masterConfig, uint32_t sourceClock_Hz)

Initializes the LPI2C master peripheral.

This function enables the peripheral clock and initializes the LPI2C master peripheral as described by the user provided configuration. A software reset is performed prior to configuration.

Parameters:
  • base – The LPI2C peripheral base address.

  • masterConfig – User provided peripheral configuration. Use LPI2C_MasterGetDefaultConfig() to get a set of defaults that you can override.

  • sourceClock_Hz – Frequency in Hertz of the LPI2C functional clock. Used to calculate the baud rate divisors, filter widths, and timeout periods.

void LPI2C_MasterDeinit(LPI2C_Type *base)

Deinitializes the LPI2C master peripheral.

This function disables the LPI2C master peripheral and gates the clock. It also performs a software reset to restore the peripheral to reset conditions.

Parameters:
  • base – The LPI2C peripheral base address.

void LPI2C_MasterConfigureDataMatch(LPI2C_Type *base, const lpi2c_data_match_config_t *matchConfig)

Configures LPI2C master data match feature.

Parameters:
  • base – The LPI2C peripheral base address.

  • matchConfig – Settings for the data match feature.

status_t LPI2C_MasterCheckAndClearError(LPI2C_Type *base, uint32_t status)
status_t LPI2C_CheckForBusyBus(LPI2C_Type *base)
static inline void LPI2C_MasterReset(LPI2C_Type *base)

Performs a software reset.

Restores the LPI2C master peripheral to reset conditions.

Parameters:
  • base – The LPI2C peripheral base address.

static inline void LPI2C_MasterEnable(LPI2C_Type *base, bool enable)

Enables or disables the LPI2C module as master.

Parameters:
  • base – The LPI2C peripheral base address.

  • enable – Pass true to enable or false to disable the specified LPI2C as master.

static inline uint32_t LPI2C_MasterGetStatusFlags(LPI2C_Type *base)

Gets the LPI2C master status flags.

A bit mask with the state of all LPI2C master status flags is returned. For each flag, the corresponding bit in the return value is set if the flag is asserted.

See also

_lpi2c_master_flags

Parameters:
  • base – The LPI2C peripheral base address.

Returns:

State of the status flags:

  • 1: related status flag is set.

  • 0: related status flag is not set.

static inline void LPI2C_MasterClearStatusFlags(LPI2C_Type *base, uint32_t statusMask)

Clears the LPI2C master status flag state.

The following status register flags can be cleared:

  • kLPI2C_MasterEndOfPacketFlag

  • kLPI2C_MasterStopDetectFlag

  • kLPI2C_MasterNackDetectFlag

  • kLPI2C_MasterArbitrationLostFlag

  • kLPI2C_MasterFifoErrFlag

  • kLPI2C_MasterPinLowTimeoutFlag

  • kLPI2C_MasterDataMatchFlag

Attempts to clear other flags has no effect.

See also

_lpi2c_master_flags.

Parameters:
  • base – The LPI2C peripheral base address.

  • statusMask – A bitmask of status flags that are to be cleared. The mask is composed of _lpi2c_master_flags enumerators OR’d together. You may pass the result of a previous call to LPI2C_MasterGetStatusFlags().

static inline void LPI2C_MasterEnableInterrupts(LPI2C_Type *base, uint32_t interruptMask)

Enables the LPI2C master interrupt requests.

All flags except kLPI2C_MasterBusyFlag and kLPI2C_MasterBusBusyFlag can be enabled as interrupts.

Parameters:
  • base – The LPI2C peripheral base address.

  • interruptMask – Bit mask of interrupts to enable. See _lpi2c_master_flags for the set of constants that should be OR’d together to form the bit mask.

static inline void LPI2C_MasterDisableInterrupts(LPI2C_Type *base, uint32_t interruptMask)

Disables the LPI2C master interrupt requests.

All flags except kLPI2C_MasterBusyFlag and kLPI2C_MasterBusBusyFlag can be enabled as interrupts.

Parameters:
  • base – The LPI2C peripheral base address.

  • interruptMask – Bit mask of interrupts to disable. See _lpi2c_master_flags for the set of constants that should be OR’d together to form the bit mask.

static inline uint32_t LPI2C_MasterGetEnabledInterrupts(LPI2C_Type *base)

Returns the set of currently enabled LPI2C master interrupt requests.

Parameters:
  • base – The LPI2C peripheral base address.

Returns:

A bitmask composed of _lpi2c_master_flags enumerators OR’d together to indicate the set of enabled interrupts.

static inline void LPI2C_MasterEnableDMA(LPI2C_Type *base, bool enableTx, bool enableRx)

Enables or disables LPI2C master DMA requests.

Parameters:
  • base – The LPI2C peripheral base address.

  • enableTx – Enable flag for transmit DMA request. Pass true for enable, false for disable.

  • enableRx – Enable flag for receive DMA request. Pass true for enable, false for disable.

static inline uint32_t LPI2C_MasterGetTxFifoAddress(LPI2C_Type *base)

Gets LPI2C master transmit data register address for DMA transfer.

Parameters:
  • base – The LPI2C peripheral base address.

Returns:

The LPI2C Master Transmit Data Register address.

static inline uint32_t LPI2C_MasterGetRxFifoAddress(LPI2C_Type *base)

Gets LPI2C master receive data register address for DMA transfer.

Parameters:
  • base – The LPI2C peripheral base address.

Returns:

The LPI2C Master Receive Data Register address.

static inline void LPI2C_MasterSetWatermarks(LPI2C_Type *base, size_t txWords, size_t rxWords)

Sets the watermarks for LPI2C master FIFOs.

Parameters:
  • base – The LPI2C peripheral base address.

  • txWords – Transmit FIFO watermark value in words. The kLPI2C_MasterTxReadyFlag flag is set whenever the number of words in the transmit FIFO is equal or less than txWords. Writing a value equal or greater than the FIFO size is truncated.

  • rxWords – Receive FIFO watermark value in words. The kLPI2C_MasterRxReadyFlag flag is set whenever the number of words in the receive FIFO is greater than rxWords. Writing a value equal or greater than the FIFO size is truncated.

static inline void LPI2C_MasterGetFifoCounts(LPI2C_Type *base, size_t *rxCount, size_t *txCount)

Gets the current number of words in the LPI2C master FIFOs.

Parameters:
  • base – The LPI2C peripheral base address.

  • txCount[out] Pointer through which the current number of words in the transmit FIFO is returned. Pass NULL if this value is not required.

  • rxCount[out] Pointer through which the current number of words in the receive FIFO is returned. Pass NULL if this value is not required.

void LPI2C_MasterSetBaudRate(LPI2C_Type *base, uint32_t sourceClock_Hz, uint32_t baudRate_Hz)

Sets the I2C bus frequency for master transactions.

The LPI2C master is automatically disabled and re-enabled as necessary to configure the baud rate. Do not call this function during a transfer, or the transfer is aborted.

Note

Please note that the second parameter is the clock frequency of LPI2C module, the third parameter means user configured bus baudrate, this implementation is different from other I2C drivers which use baudrate configuration as second parameter and source clock frequency as third parameter.

Parameters:
  • base – The LPI2C peripheral base address.

  • sourceClock_Hz – LPI2C functional clock frequency in Hertz.

  • baudRate_Hz – Requested bus frequency in Hertz.

static inline bool LPI2C_MasterGetBusIdleState(LPI2C_Type *base)

Returns whether the bus is idle.

Requires the master mode to be enabled.

Parameters:
  • base – The LPI2C peripheral base address.

Return values:
  • true – Bus is busy.

  • false – Bus is idle.

status_t LPI2C_MasterStart(LPI2C_Type *base, uint8_t address, lpi2c_direction_t dir)

Sends a START signal and slave address on the I2C bus.

This function is used to initiate a new master mode transfer. First, the bus state is checked to ensure that another master is not occupying the bus. Then a START signal is transmitted, followed by the 7-bit address specified in the address parameter. Note that this function does not actually wait until the START and address are successfully sent on the bus before returning.

Parameters:
  • base – The LPI2C peripheral base address.

  • address – 7-bit slave device address, in bits [6:0].

  • dir – Master transfer direction, either kLPI2C_Read or kLPI2C_Write. This parameter is used to set the R/w bit (bit 0) in the transmitted slave address.

Return values:
  • kStatus_Success – START signal and address were successfully enqueued in the transmit FIFO.

  • kStatus_LPI2C_Busy – Another master is currently utilizing the bus.

static inline status_t LPI2C_MasterRepeatedStart(LPI2C_Type *base, uint8_t address, lpi2c_direction_t dir)

Sends a repeated START signal and slave address on the I2C bus.

This function is used to send a Repeated START signal when a transfer is already in progress. Like LPI2C_MasterStart(), it also sends the specified 7-bit address.

Note

This function exists primarily to maintain compatible APIs between LPI2C and I2C drivers, as well as to better document the intent of code that uses these APIs.

Parameters:
  • base – The LPI2C peripheral base address.

  • address – 7-bit slave device address, in bits [6:0].

  • dir – Master transfer direction, either kLPI2C_Read or kLPI2C_Write. This parameter is used to set the R/w bit (bit 0) in the transmitted slave address.

Return values:
  • kStatus_Success – Repeated START signal and address were successfully enqueued in the transmit FIFO.

  • kStatus_LPI2C_Busy – Another master is currently utilizing the bus.

status_t LPI2C_MasterSend(LPI2C_Type *base, void *txBuff, size_t txSize)

Performs a polling send transfer on the I2C bus.

Sends up to txSize number of bytes to the previously addressed slave device. The slave may reply with a NAK to any byte in order to terminate the transfer early. If this happens, this function returns kStatus_LPI2C_Nak.

Parameters:
  • base – The LPI2C peripheral base address.

  • txBuff – The pointer to the data to be transferred.

  • txSize – The length in bytes of the data to be transferred.

Return values:
  • kStatus_Success – Data was sent successfully.

  • kStatus_LPI2C_Busy – Another master is currently utilizing the bus.

  • kStatus_LPI2C_Nak – The slave device sent a NAK in response to a byte.

  • kStatus_LPI2C_FifoError – FIFO under run or over run.

  • kStatus_LPI2C_ArbitrationLost – Arbitration lost error.

  • kStatus_LPI2C_PinLowTimeout – SCL or SDA were held low longer than the timeout.

status_t LPI2C_MasterReceive(LPI2C_Type *base, void *rxBuff, size_t rxSize)

Performs a polling receive transfer on the I2C bus.

Parameters:
  • base – The LPI2C peripheral base address.

  • rxBuff – The pointer to the data to be transferred.

  • rxSize – The length in bytes of the data to be transferred.

Return values:
  • kStatus_Success – Data was received successfully.

  • kStatus_LPI2C_Busy – Another master is currently utilizing the bus.

  • kStatus_LPI2C_Nak – The slave device sent a NAK in response to a byte.

  • kStatus_LPI2C_FifoError – FIFO under run or overrun.

  • kStatus_LPI2C_ArbitrationLost – Arbitration lost error.

  • kStatus_LPI2C_PinLowTimeout – SCL or SDA were held low longer than the timeout.

status_t LPI2C_MasterStop(LPI2C_Type *base)

Sends a STOP signal on the I2C bus.

This function does not return until the STOP signal is seen on the bus, or an error occurs.

Parameters:
  • base – The LPI2C peripheral base address.

Return values:
  • kStatus_Success – The STOP signal was successfully sent on the bus and the transaction terminated.

  • kStatus_LPI2C_Busy – Another master is currently utilizing the bus.

  • kStatus_LPI2C_Nak – The slave device sent a NAK in response to a byte.

  • kStatus_LPI2C_FifoError – FIFO under run or overrun.

  • kStatus_LPI2C_ArbitrationLost – Arbitration lost error.

  • kStatus_LPI2C_PinLowTimeout – SCL or SDA were held low longer than the timeout.

status_t LPI2C_MasterTransferBlocking(LPI2C_Type *base, lpi2c_master_transfer_t *transfer)

Performs a master polling transfer on the I2C bus.

Note

The API does not return until the transfer succeeds or fails due to error happens during transfer.

Parameters:
  • base – The LPI2C peripheral base address.

  • transfer – Pointer to the transfer structure.

Return values:
  • kStatus_Success – Data was received successfully.

  • kStatus_LPI2C_Busy – Another master is currently utilizing the bus.

  • kStatus_LPI2C_Nak – The slave device sent a NAK in response to a byte.

  • kStatus_LPI2C_FifoError – FIFO under run or overrun.

  • kStatus_LPI2C_ArbitrationLost – Arbitration lost error.

  • kStatus_LPI2C_PinLowTimeout – SCL or SDA were held low longer than the timeout.

void LPI2C_MasterTransferCreateHandle(LPI2C_Type *base, lpi2c_master_handle_t *handle, lpi2c_master_transfer_callback_t callback, void *userData)

Creates a new handle for the LPI2C master non-blocking APIs.

The creation of a handle is for use with the non-blocking APIs. Once a handle is created, there is not a corresponding destroy handle. If the user wants to terminate a transfer, the LPI2C_MasterTransferAbort() API shall be called.

Note

The function also enables the NVIC IRQ for the input LPI2C. Need to notice that on some SoCs the LPI2C IRQ is connected to INTMUX, in this case user needs to enable the associated INTMUX IRQ in application.

Parameters:
  • base – The LPI2C peripheral base address.

  • handle[out] Pointer to the LPI2C master driver handle.

  • callback – User provided pointer to the asynchronous callback function.

  • userData – User provided pointer to the application callback data.

status_t LPI2C_MasterTransferNonBlocking(LPI2C_Type *base, lpi2c_master_handle_t *handle, lpi2c_master_transfer_t *transfer)

Performs a non-blocking transaction on the I2C bus.

Parameters:
  • base – The LPI2C peripheral base address.

  • handle – Pointer to the LPI2C master driver handle.

  • transfer – The pointer to the transfer descriptor.

Return values:
  • kStatus_Success – The transaction was started successfully.

  • kStatus_LPI2C_Busy – Either another master is currently utilizing the bus, or a non-blocking transaction is already in progress.

status_t LPI2C_MasterTransferGetCount(LPI2C_Type *base, lpi2c_master_handle_t *handle, size_t *count)

Returns number of bytes transferred so far.

Parameters:
  • base – The LPI2C peripheral base address.

  • handle – Pointer to the LPI2C master driver handle.

  • count[out] Number of bytes transferred so far by the non-blocking transaction.

Return values:
  • kStatus_Success

  • kStatus_NoTransferInProgress – There is not a non-blocking transaction currently in progress.

void LPI2C_MasterTransferAbort(LPI2C_Type *base, lpi2c_master_handle_t *handle)

Terminates a non-blocking LPI2C master transmission early.

Note

It is not safe to call this function from an IRQ handler that has a higher priority than the LPI2C peripheral’s IRQ priority.

Parameters:
  • base – The LPI2C peripheral base address.

  • handle – Pointer to the LPI2C master driver handle.

Return values:
  • kStatus_Success – A transaction was successfully aborted.

  • kStatus_LPI2C_Idle – There is not a non-blocking transaction currently in progress.

void LPI2C_MasterTransferHandleIRQ(uint32_t instance, void *lpi2cMasterHandle)

Reusable routine to handle master interrupts.

Note

This function does not need to be called unless you are reimplementing the nonblocking API’s interrupt handler routines to add special functionality.

Parameters:
  • instance – The LPI2C instance.

  • lpi2cMasterHandle – Pointer to the LPI2C master driver handle.

enum _lpi2c_master_flags

LPI2C master peripheral flags.

The following status register flags can be cleared:

  • kLPI2C_MasterEndOfPacketFlag

  • kLPI2C_MasterStopDetectFlag

  • kLPI2C_MasterNackDetectFlag

  • kLPI2C_MasterArbitrationLostFlag

  • kLPI2C_MasterFifoErrFlag

  • kLPI2C_MasterPinLowTimeoutFlag

  • kLPI2C_MasterDataMatchFlag

All flags except kLPI2C_MasterBusyFlag and kLPI2C_MasterBusBusyFlag can be enabled as interrupts.

Note

These enums are meant to be OR’d together to form a bit mask.

Values:

enumerator kLPI2C_MasterTxReadyFlag

Transmit data flag

enumerator kLPI2C_MasterRxReadyFlag

Receive data flag

enumerator kLPI2C_MasterEndOfPacketFlag

End Packet flag

enumerator kLPI2C_MasterStopDetectFlag

Stop detect flag

enumerator kLPI2C_MasterNackDetectFlag

NACK detect flag

enumerator kLPI2C_MasterArbitrationLostFlag

Arbitration lost flag

enumerator kLPI2C_MasterFifoErrFlag

FIFO error flag

enumerator kLPI2C_MasterPinLowTimeoutFlag

Pin low timeout flag

enumerator kLPI2C_MasterDataMatchFlag

Data match flag

enumerator kLPI2C_MasterBusyFlag

Master busy flag

enumerator kLPI2C_MasterBusBusyFlag

Bus busy flag

enumerator kLPI2C_MasterClearFlags

All flags which are cleared by the driver upon starting a transfer.

enumerator kLPI2C_MasterIrqFlags

IRQ sources enabled by the non-blocking transactional API.

enumerator kLPI2C_MasterErrorFlags

Errors to check for.

enum _lpi2c_direction

Direction of master and slave transfers.

Values:

enumerator kLPI2C_Write

Master transmit.

enumerator kLPI2C_Read

Master receive.

enum _lpi2c_master_pin_config

LPI2C pin configuration.

Values:

enumerator kLPI2C_2PinOpenDrain

LPI2C Configured for 2-pin open drain mode

enumerator kLPI2C_2PinOutputOnly

LPI2C Configured for 2-pin output only mode (ultra-fast mode)

enumerator kLPI2C_2PinPushPull

LPI2C Configured for 2-pin push-pull mode

enumerator kLPI2C_4PinPushPull

LPI2C Configured for 4-pin push-pull mode

enumerator kLPI2C_2PinOpenDrainWithSeparateSlave

LPI2C Configured for 2-pin open drain mode with separate LPI2C slave

enumerator kLPI2C_2PinOutputOnlyWithSeparateSlave

LPI2C Configured for 2-pin output only mode(ultra-fast mode) with separate LPI2C slave

enumerator kLPI2C_2PinPushPullWithSeparateSlave

LPI2C Configured for 2-pin push-pull mode with separate LPI2C slave

enumerator kLPI2C_4PinPushPullWithInvertedOutput

LPI2C Configured for 4-pin push-pull mode(inverted outputs)

enum _lpi2c_host_request_source

LPI2C master host request selection.

Values:

enumerator kLPI2C_HostRequestExternalPin

Select the LPI2C_HREQ pin as the host request input

enumerator kLPI2C_HostRequestInputTrigger

Select the input trigger as the host request input

enum _lpi2c_host_request_polarity

LPI2C master host request pin polarity configuration.

Values:

enumerator kLPI2C_HostRequestPinActiveLow

Configure the LPI2C_HREQ pin active low

enumerator kLPI2C_HostRequestPinActiveHigh

Configure the LPI2C_HREQ pin active high

enum _lpi2c_data_match_config_mode

LPI2C master data match configuration modes.

Values:

enumerator kLPI2C_MatchDisabled

LPI2C Match Disabled

enumerator kLPI2C_1stWordEqualsM0OrM1

LPI2C Match Enabled and 1st data word equals MATCH0 OR MATCH1

enumerator kLPI2C_AnyWordEqualsM0OrM1

LPI2C Match Enabled and any data word equals MATCH0 OR MATCH1

enumerator kLPI2C_1stWordEqualsM0And2ndWordEqualsM1

LPI2C Match Enabled and 1st data word equals MATCH0, 2nd data equals MATCH1

enumerator kLPI2C_AnyWordEqualsM0AndNextWordEqualsM1

LPI2C Match Enabled and any data word equals MATCH0, next data equals MATCH1

enumerator kLPI2C_1stWordAndM1EqualsM0AndM1

LPI2C Match Enabled and 1st data word and MATCH0 equals MATCH0 and MATCH1

enumerator kLPI2C_AnyWordAndM1EqualsM0AndM1

LPI2C Match Enabled and any data word and MATCH0 equals MATCH0 and MATCH1

enum _lpi2c_master_transfer_flags

Transfer option flags.

Note

These enumerations are intended to be OR’d together to form a bit mask of options for the _lpi2c_master_transfer::flags field.

Values:

enumerator kLPI2C_TransferDefaultFlag

Transfer starts with a start signal, stops with a stop signal.

enumerator kLPI2C_TransferNoStartFlag

Don’t send a start condition, address, and sub address

enumerator kLPI2C_TransferRepeatedStartFlag

Send a repeated start condition

enumerator kLPI2C_TransferNoStopFlag

Don’t send a stop condition.

typedef enum _lpi2c_direction lpi2c_direction_t

Direction of master and slave transfers.

typedef enum _lpi2c_master_pin_config lpi2c_master_pin_config_t

LPI2C pin configuration.

typedef enum _lpi2c_host_request_source lpi2c_host_request_source_t

LPI2C master host request selection.

typedef enum _lpi2c_host_request_polarity lpi2c_host_request_polarity_t

LPI2C master host request pin polarity configuration.

typedef struct _lpi2c_master_config lpi2c_master_config_t

Structure with settings to initialize the LPI2C master module.

This structure holds configuration settings for the LPI2C peripheral. To initialize this structure to reasonable defaults, call the LPI2C_MasterGetDefaultConfig() function and pass a pointer to your configuration structure instance.

The configuration structure can be made constant so it resides in flash.

typedef enum _lpi2c_data_match_config_mode lpi2c_data_match_config_mode_t

LPI2C master data match configuration modes.

typedef struct _lpi2c_match_config lpi2c_data_match_config_t

LPI2C master data match configuration structure.

typedef struct _lpi2c_master_transfer lpi2c_master_transfer_t
typedef struct _lpi2c_master_handle lpi2c_master_handle_t
typedef void (*lpi2c_master_transfer_callback_t)(LPI2C_Type *base, lpi2c_master_handle_t *handle, status_t completionStatus, void *userData)

Master completion callback function pointer type.

This callback is used only for the non-blocking master transfer API. Specify the callback you wish to use in the call to LPI2C_MasterTransferCreateHandle().

Param base:

The LPI2C peripheral base address.

Param completionStatus:

Either kStatus_Success or an error code describing how the transfer completed.

Param userData:

Arbitrary pointer-sized value passed from the application.

typedef void (*lpi2c_master_isr_t)(uint32_t instance, void *handle)

Typedef for master interrupt handler, used internally for LPI2C master interrupt and EDMA transactional APIs.

struct _lpi2c_master_config
#include <fsl_lpi2c.h>

Structure with settings to initialize the LPI2C master module.

This structure holds configuration settings for the LPI2C peripheral. To initialize this structure to reasonable defaults, call the LPI2C_MasterGetDefaultConfig() function and pass a pointer to your configuration structure instance.

The configuration structure can be made constant so it resides in flash.

Public Members

bool enableMaster

Whether to enable master mode.

bool enableDoze

Whether master is enabled in doze mode.

bool debugEnable

Enable transfers to continue when halted in debug mode.

bool ignoreAck

Whether to ignore ACK/NACK.

lpi2c_master_pin_config_t pinConfig

The pin configuration option.

uint32_t baudRate_Hz

Desired baud rate in Hertz.

uint32_t busIdleTimeout_ns

Bus idle timeout in nanoseconds. Set to 0 to disable.

uint32_t pinLowTimeout_ns

Pin low timeout in nanoseconds. Set to 0 to disable.

uint8_t sdaGlitchFilterWidth_ns

Width in nanoseconds of glitch filter on SDA pin. Set to 0 to disable.

uint8_t sclGlitchFilterWidth_ns

Width in nanoseconds of glitch filter on SCL pin. Set to 0 to disable.

struct _lpi2c_master_config hostRequest

Host request options.

struct _lpi2c_match_config
#include <fsl_lpi2c.h>

LPI2C master data match configuration structure.

Public Members

lpi2c_data_match_config_mode_t matchMode

Data match configuration setting.

bool rxDataMatchOnly

When set to true, received data is ignored until a successful match.

uint32_t match0

Match value 0.

uint32_t match1

Match value 1.

struct _lpi2c_master_transfer
#include <fsl_lpi2c.h>

Non-blocking transfer descriptor structure.

This structure is used to pass transaction parameters to the LPI2C_MasterTransferNonBlocking() API.

Public Members

uint32_t flags

Bit mask of options for the transfer. See enumeration _lpi2c_master_transfer_flags for available options. Set to 0 or kLPI2C_TransferDefaultFlag for normal transfers.

uint16_t slaveAddress

The 7-bit slave address.

lpi2c_direction_t direction

Either kLPI2C_Read or kLPI2C_Write.

uint32_t subaddress

Sub address. Transferred MSB first.

size_t subaddressSize

Length of sub address to send in bytes. Maximum size is 4 bytes.

void *data

Pointer to data to transfer.

size_t dataSize

Number of bytes to transfer.

struct _lpi2c_master_handle
#include <fsl_lpi2c.h>

Driver handle for master non-blocking APIs.

Note

The contents of this structure are private and subject to change.

Public Members

uint8_t state

Transfer state machine current state.

uint16_t remainingBytes

Remaining byte count in current state.

uint8_t *buf

Buffer pointer for current state.

uint16_t commandBuffer[6]

LPI2C command sequence. When all 6 command words are used: Start&addr&write[1 word] + subaddr[4 words] + restart&addr&read[1 word]

lpi2c_master_transfer_t transfer

Copy of the current transfer info.

lpi2c_master_transfer_callback_t completionCallback

Callback function pointer.

void *userData

Application data passed to callback.

struct hostRequest

Public Members

bool enable

Enable host request.

lpi2c_host_request_source_t source

Host request source.

lpi2c_host_request_polarity_t polarity

Host request pin polarity.

LPI2C Master DMA Driver

void LPI2C_MasterCreateEDMAHandle(LPI2C_Type *base, lpi2c_master_edma_handle_t *handle, edma_handle_t *rxDmaHandle, edma_handle_t *txDmaHandle, lpi2c_master_edma_transfer_callback_t callback, void *userData)

Create a new handle for the LPI2C master DMA APIs.

The creation of a handle is for use with the DMA APIs. Once a handle is created, there is not a corresponding destroy handle. If the user wants to terminate a transfer, the LPI2C_MasterTransferAbortEDMA() API shall be called.

For devices where the LPI2C send and receive DMA requests are OR’d together, the txDmaHandle parameter is ignored and may be set to NULL.

Parameters:
  • base – The LPI2C peripheral base address.

  • handle[out] Pointer to the LPI2C master driver handle.

  • rxDmaHandle – Handle for the eDMA receive channel. Created by the user prior to calling this function.

  • txDmaHandle – Handle for the eDMA transmit channel. Created by the user prior to calling this function.

  • callback – User provided pointer to the asynchronous callback function.

  • userData – User provided pointer to the application callback data.

status_t LPI2C_MasterTransferEDMA(LPI2C_Type *base, lpi2c_master_edma_handle_t *handle, lpi2c_master_transfer_t *transfer)

Performs a non-blocking DMA-based transaction on the I2C bus.

The callback specified when the handle was created is invoked when the transaction has completed.

Parameters:
  • base – The LPI2C peripheral base address.

  • handle – Pointer to the LPI2C master driver handle.

  • transfer – The pointer to the transfer descriptor.

Return values:
  • kStatus_Success – The transaction was started successfully.

  • kStatus_LPI2C_Busy – Either another master is currently utilizing the bus, or another DMA transaction is already in progress.

status_t LPI2C_MasterTransferGetCountEDMA(LPI2C_Type *base, lpi2c_master_edma_handle_t *handle, size_t *count)

Returns number of bytes transferred so far.

Parameters:
  • base – The LPI2C peripheral base address.

  • handle – Pointer to the LPI2C master driver handle.

  • count[out] Number of bytes transferred so far by the non-blocking transaction.

Return values:
  • kStatus_Success

  • kStatus_NoTransferInProgress – There is not a DMA transaction currently in progress.

status_t LPI2C_MasterTransferAbortEDMA(LPI2C_Type *base, lpi2c_master_edma_handle_t *handle)

Terminates a non-blocking LPI2C master transmission early.

Note

It is not safe to call this function from an IRQ handler that has a higher priority than the eDMA peripheral’s IRQ priority.

Parameters:
  • base – The LPI2C peripheral base address.

  • handle – Pointer to the LPI2C master driver handle.

Return values:
  • kStatus_Success – A transaction was successfully aborted.

  • kStatus_LPI2C_Idle – There is not a DMA transaction currently in progress.

typedef struct _lpi2c_master_edma_handle lpi2c_master_edma_handle_t
typedef void (*lpi2c_master_edma_transfer_callback_t)(LPI2C_Type *base, lpi2c_master_edma_handle_t *handle, status_t completionStatus, void *userData)

Master DMA completion callback function pointer type.

This callback is used only for the non-blocking master transfer API. Specify the callback you wish to use in the call to LPI2C_MasterCreateEDMAHandle().

Param base:

The LPI2C peripheral base address.

Param handle:

Handle associated with the completed transfer.

Param completionStatus:

Either kStatus_Success or an error code describing how the transfer completed.

Param userData:

Arbitrary pointer-sized value passed from the application.

struct _lpi2c_master_edma_handle
#include <fsl_lpi2c_edma.h>

Driver handle for master DMA APIs.

Note

The contents of this structure are private and subject to change.

Public Members

LPI2C_Type *base

LPI2C base pointer.

bool isBusy

Transfer state machine current state.

uint8_t nbytes

eDMA minor byte transfer count initially configured.

uint16_t commandBuffer[10]

LPI2C command sequence. When all 10 command words are used: Start&addr&write[1 word] + subaddr[4 words] + restart&addr&read[1 word] + receive&Size[4 words]

lpi2c_master_transfer_t transfer

Copy of the current transfer info.

lpi2c_master_edma_transfer_callback_t completionCallback

Callback function pointer.

void *userData

Application data passed to callback.

edma_handle_t *rx

Handle for receive DMA channel.

edma_handle_t *tx

Handle for transmit DMA channel.

edma_tcd_t tcds[3]

Software TCD. Three are allocated to provide enough room to align to 32-bytes.

LPI2C Slave Driver

void LPI2C_SlaveGetDefaultConfig(lpi2c_slave_config_t *slaveConfig)

Provides a default configuration for the LPI2C slave peripheral.

This function provides the following default configuration for the LPI2C slave peripheral:

slaveConfig->enableSlave               = true;
slaveConfig->address0                  = 0U;
slaveConfig->address1                  = 0U;
slaveConfig->addressMatchMode          = kLPI2C_MatchAddress0;
slaveConfig->filterDozeEnable          = true;
slaveConfig->filterEnable              = true;
slaveConfig->enableGeneralCall         = false;
slaveConfig->sclStall.enableAck        = false;
slaveConfig->sclStall.enableTx         = true;
slaveConfig->sclStall.enableRx         = true;
slaveConfig->sclStall.enableAddress    = true;
slaveConfig->ignoreAck                 = false;
slaveConfig->enableReceivedAddressRead = false;
slaveConfig->sdaGlitchFilterWidth_ns   = 0;
slaveConfig->sclGlitchFilterWidth_ns   = 0;
slaveConfig->dataValidDelay_ns         = 0;
slaveConfig->clockHoldTime_ns          = 0;

After calling this function, override any settings to customize the configuration, prior to initializing the master driver with LPI2C_SlaveInit(). Be sure to override at least the address0 member of the configuration structure with the desired slave address.

Parameters:
  • slaveConfig[out] User provided configuration structure that is set to default values. Refer to lpi2c_slave_config_t.

void LPI2C_SlaveInit(LPI2C_Type *base, const lpi2c_slave_config_t *slaveConfig, uint32_t sourceClock_Hz)

Initializes the LPI2C slave peripheral.

This function enables the peripheral clock and initializes the LPI2C slave peripheral as described by the user provided configuration.

Parameters:
  • base – The LPI2C peripheral base address.

  • slaveConfig – User provided peripheral configuration. Use LPI2C_SlaveGetDefaultConfig() to get a set of defaults that you can override.

  • sourceClock_Hz – Frequency in Hertz of the LPI2C functional clock. Used to calculate the filter widths, data valid delay, and clock hold time.

void LPI2C_SlaveDeinit(LPI2C_Type *base)

Deinitializes the LPI2C slave peripheral.

This function disables the LPI2C slave peripheral and gates the clock. It also performs a software reset to restore the peripheral to reset conditions.

Parameters:
  • base – The LPI2C peripheral base address.

static inline void LPI2C_SlaveReset(LPI2C_Type *base)

Performs a software reset of the LPI2C slave peripheral.

Parameters:
  • base – The LPI2C peripheral base address.

static inline void LPI2C_SlaveEnable(LPI2C_Type *base, bool enable)

Enables or disables the LPI2C module as slave.

Parameters:
  • base – The LPI2C peripheral base address.

  • enable – Pass true to enable or false to disable the specified LPI2C as slave.

static inline uint32_t LPI2C_SlaveGetStatusFlags(LPI2C_Type *base)

Gets the LPI2C slave status flags.

A bit mask with the state of all LPI2C slave status flags is returned. For each flag, the corresponding bit in the return value is set if the flag is asserted.

See also

_lpi2c_slave_flags

Parameters:
  • base – The LPI2C peripheral base address.

Returns:

State of the status flags:

  • 1: related status flag is set.

  • 0: related status flag is not set.

static inline void LPI2C_SlaveClearStatusFlags(LPI2C_Type *base, uint32_t statusMask)

Clears the LPI2C status flag state.

The following status register flags can be cleared:

  • kLPI2C_SlaveRepeatedStartDetectFlag

  • kLPI2C_SlaveStopDetectFlag

  • kLPI2C_SlaveBitErrFlag

  • kLPI2C_SlaveFifoErrFlag

Attempts to clear other flags has no effect.

See also

_lpi2c_slave_flags.

Parameters:
  • base – The LPI2C peripheral base address.

  • statusMask – A bitmask of status flags that are to be cleared. The mask is composed of _lpi2c_slave_flags enumerators OR’d together. You may pass the result of a previous call to LPI2C_SlaveGetStatusFlags().

static inline void LPI2C_SlaveEnableInterrupts(LPI2C_Type *base, uint32_t interruptMask)

Enables the LPI2C slave interrupt requests.

All flags except kLPI2C_SlaveBusyFlag and kLPI2C_SlaveBusBusyFlag can be enabled as interrupts.

Parameters:
  • base – The LPI2C peripheral base address.

  • interruptMask – Bit mask of interrupts to enable. See _lpi2c_slave_flags for the set of constants that should be OR’d together to form the bit mask.

static inline void LPI2C_SlaveDisableInterrupts(LPI2C_Type *base, uint32_t interruptMask)

Disables the LPI2C slave interrupt requests.

All flags except kLPI2C_SlaveBusyFlag and kLPI2C_SlaveBusBusyFlag can be enabled as interrupts.

Parameters:
  • base – The LPI2C peripheral base address.

  • interruptMask – Bit mask of interrupts to disable. See _lpi2c_slave_flags for the set of constants that should be OR’d together to form the bit mask.

static inline uint32_t LPI2C_SlaveGetEnabledInterrupts(LPI2C_Type *base)

Returns the set of currently enabled LPI2C slave interrupt requests.

Parameters:
  • base – The LPI2C peripheral base address.

Returns:

A bitmask composed of _lpi2c_slave_flags enumerators OR’d together to indicate the set of enabled interrupts.

static inline void LPI2C_SlaveEnableDMA(LPI2C_Type *base, bool enableAddressValid, bool enableRx, bool enableTx)

Enables or disables the LPI2C slave peripheral DMA requests.

Parameters:
  • base – The LPI2C peripheral base address.

  • enableAddressValid – Enable flag for the address valid DMA request. Pass true for enable, false for disable. The address valid DMA request is shared with the receive data DMA request.

  • enableRx – Enable flag for the receive data DMA request. Pass true for enable, false for disable.

  • enableTx – Enable flag for the transmit data DMA request. Pass true for enable, false for disable.

static inline bool LPI2C_SlaveGetBusIdleState(LPI2C_Type *base)

Returns whether the bus is idle.

Requires the slave mode to be enabled.

Parameters:
  • base – The LPI2C peripheral base address.

Return values:
  • true – Bus is busy.

  • false – Bus is idle.

static inline void LPI2C_SlaveTransmitAck(LPI2C_Type *base, bool ackOrNack)

Transmits either an ACK or NAK on the I2C bus in response to a byte from the master.

Use this function to send an ACK or NAK when the kLPI2C_SlaveTransmitAckFlag is asserted. This only happens if you enable the sclStall.enableAck field of the lpi2c_slave_config_t configuration structure used to initialize the slave peripheral.

Parameters:
  • base – The LPI2C peripheral base address.

  • ackOrNack – Pass true for an ACK or false for a NAK.

static inline void LPI2C_SlaveEnableAckStall(LPI2C_Type *base, bool enable)

Enables or disables ACKSTALL.

When enables ACKSTALL, software can transmit either an ACK or NAK on the I2C bus in response to a byte from the master.

Parameters:
  • base – The LPI2C peripheral base address.

  • enable – True will enable ACKSTALL,false will disable ACKSTALL.

static inline uint32_t LPI2C_SlaveGetReceivedAddress(LPI2C_Type *base)

Returns the slave address sent by the I2C master.

This function should only be called if the kLPI2C_SlaveAddressValidFlag is asserted.

Parameters:
  • base – The LPI2C peripheral base address.

Returns:

The 8-bit address matched by the LPI2C slave. Bit 0 contains the R/w direction bit, and the 7-bit slave address is in the upper 7 bits.

status_t LPI2C_SlaveSend(LPI2C_Type *base, void *txBuff, size_t txSize, size_t *actualTxSize)

Performs a polling send transfer on the I2C bus.

Parameters:
  • base – The LPI2C peripheral base address.

  • txBuff – The pointer to the data to be transferred.

  • txSize – The length in bytes of the data to be transferred.

  • actualTxSize[out]

Returns:

Error or success status returned by API.

status_t LPI2C_SlaveReceive(LPI2C_Type *base, void *rxBuff, size_t rxSize, size_t *actualRxSize)

Performs a polling receive transfer on the I2C bus.

Parameters:
  • base – The LPI2C peripheral base address.

  • rxBuff – The pointer to the data to be transferred.

  • rxSize – The length in bytes of the data to be transferred.

  • actualRxSize[out]

Returns:

Error or success status returned by API.

void LPI2C_SlaveTransferCreateHandle(LPI2C_Type *base, lpi2c_slave_handle_t *handle, lpi2c_slave_transfer_callback_t callback, void *userData)

Creates a new handle for the LPI2C slave non-blocking APIs.

The creation of a handle is for use with the non-blocking APIs. Once a handle is created, there is not a corresponding destroy handle. If the user wants to terminate a transfer, the LPI2C_SlaveTransferAbort() API shall be called.

Note

The function also enables the NVIC IRQ for the input LPI2C. Need to notice that on some SoCs the LPI2C IRQ is connected to INTMUX, in this case user needs to enable the associated INTMUX IRQ in application.

Parameters:
  • base – The LPI2C peripheral base address.

  • handle[out] Pointer to the LPI2C slave driver handle.

  • callback – User provided pointer to the asynchronous callback function.

  • userData – User provided pointer to the application callback data.

status_t LPI2C_SlaveTransferNonBlocking(LPI2C_Type *base, lpi2c_slave_handle_t *handle, uint32_t eventMask)

Starts accepting slave transfers.

Call this API after calling I2C_SlaveInit() and LPI2C_SlaveTransferCreateHandle() to start processing transactions driven by an I2C master. The slave monitors the I2C bus and pass events to the callback that was passed into the call to LPI2C_SlaveTransferCreateHandle(). The callback is always invoked from the interrupt context.

The set of events received by the callback is customizable. To do so, set the eventMask parameter to the OR’d combination of lpi2c_slave_transfer_event_t enumerators for the events you wish to receive. The kLPI2C_SlaveTransmitEvent and kLPI2C_SlaveReceiveEvent events are always enabled and do not need to be included in the mask. Alternatively, you can pass 0 to get a default set of only the transmit and receive events that are always enabled. In addition, the kLPI2C_SlaveAllEvents constant is provided as a convenient way to enable all events.

Parameters:
  • base – The LPI2C peripheral base address.

  • handle – Pointer to lpi2c_slave_handle_t structure which stores the transfer state.

  • eventMask – Bit mask formed by OR’ing together lpi2c_slave_transfer_event_t enumerators to specify which events to send to the callback. Other accepted values are 0 to get a default set of only the transmit and receive events, and kLPI2C_SlaveAllEvents to enable all events.

Return values:
  • kStatus_Success – Slave transfers were successfully started.

  • kStatus_LPI2C_Busy – Slave transfers have already been started on this handle.

status_t LPI2C_SlaveTransferGetCount(LPI2C_Type *base, lpi2c_slave_handle_t *handle, size_t *count)

Gets the slave transfer status during a non-blocking transfer.

Parameters:
  • base – The LPI2C peripheral base address.

  • handle – Pointer to i2c_slave_handle_t structure.

  • count[out] Pointer to a value to hold the number of bytes transferred. May be NULL if the count is not required.

Return values:
  • kStatus_Success

  • kStatus_NoTransferInProgress

void LPI2C_SlaveTransferAbort(LPI2C_Type *base, lpi2c_slave_handle_t *handle)

Aborts the slave non-blocking transfers.

Note

This API could be called at any time to stop slave for handling the bus events.

Parameters:
  • base – The LPI2C peripheral base address.

  • handle – Pointer to lpi2c_slave_handle_t structure which stores the transfer state.

Return values:
  • kStatus_Success

  • kStatus_LPI2C_Idle

void LPI2C_SlaveTransferHandleIRQ(uint32_t instance, void *lpi2cSlaveHandle)

Reusable routine to handle slave interrupts.

Note

This function does not need to be called unless you are reimplementing the non blocking API’s interrupt handler routines to add special functionality.

Parameters:
  • instance – The LPI2C instance.

  • lpi2cSlaveHandle – Pointer to lpi2c_slave_handle_t structure which stores the transfer state.

enum _lpi2c_slave_flags

LPI2C slave peripheral flags.

The following status register flags can be cleared:

  • kLPI2C_SlaveRepeatedStartDetectFlag

  • kLPI2C_SlaveStopDetectFlag

  • kLPI2C_SlaveBitErrFlag

  • kLPI2C_SlaveFifoErrFlag

All flags except kLPI2C_SlaveBusyFlag and kLPI2C_SlaveBusBusyFlag can be enabled as interrupts.

Note

These enumerations are meant to be OR’d together to form a bit mask.

Values:

enumerator kLPI2C_SlaveTxReadyFlag

Transmit data flag

enumerator kLPI2C_SlaveRxReadyFlag

Receive data flag

enumerator kLPI2C_SlaveAddressValidFlag

Address valid flag

enumerator kLPI2C_SlaveTransmitAckFlag

Transmit ACK flag

enumerator kLPI2C_SlaveRepeatedStartDetectFlag

Repeated start detect flag

enumerator kLPI2C_SlaveStopDetectFlag

Stop detect flag

enumerator kLPI2C_SlaveBitErrFlag

Bit error flag

enumerator kLPI2C_SlaveFifoErrFlag

FIFO error flag

enumerator kLPI2C_SlaveAddressMatch0Flag

Address match 0 flag

enumerator kLPI2C_SlaveAddressMatch1Flag

Address match 1 flag

enumerator kLPI2C_SlaveGeneralCallFlag

General call flag

enumerator kLPI2C_SlaveBusyFlag

Master busy flag

enumerator kLPI2C_SlaveBusBusyFlag

Bus busy flag

enumerator kLPI2C_SlaveClearFlags

All flags which are cleared by the driver upon starting a transfer.

enumerator kLPI2C_SlaveIrqFlags

IRQ sources enabled by the non-blocking transactional API.

enumerator kLPI2C_SlaveErrorFlags

Errors to check for.

enum _lpi2c_slave_address_match

LPI2C slave address match options.

Values:

enumerator kLPI2C_MatchAddress0

Match only address 0.

enumerator kLPI2C_MatchAddress0OrAddress1

Match either address 0 or address 1.

enumerator kLPI2C_MatchAddress0ThroughAddress1

Match a range of slave addresses from address 0 through address 1.

enum _lpi2c_slave_transfer_event

Set of events sent to the callback for non blocking slave transfers.

These event enumerations are used for two related purposes. First, a bit mask created by OR’ing together events is passed to LPI2C_SlaveTransferNonBlocking() in order to specify which events to enable. Then, when the slave callback is invoked, it is passed the current event through its transfer parameter.

Note

These enumerations are meant to be OR’d together to form a bit mask of events.

Values:

enumerator kLPI2C_SlaveAddressMatchEvent

Received the slave address after a start or repeated start.

enumerator kLPI2C_SlaveTransmitEvent

Callback is requested to provide data to transmit (slave-transmitter role).

enumerator kLPI2C_SlaveReceiveEvent

Callback is requested to provide a buffer in which to place received data (slave-receiver role).

enumerator kLPI2C_SlaveTransmitAckEvent

Callback needs to either transmit an ACK or NACK. When this event is set, the driver will no longer decide to reply to ack/nack.

enumerator kLPI2C_SlaveRepeatedStartEvent

A repeated start was detected.

enumerator kLPI2C_SlaveCompletionEvent

A stop was detected, completing the transfer.

enumerator kLPI2C_SlaveAllEvents

Bit mask of all available events.

typedef enum _lpi2c_slave_address_match lpi2c_slave_address_match_t

LPI2C slave address match options.

typedef struct _lpi2c_slave_config lpi2c_slave_config_t

Structure with settings to initialize the LPI2C slave module.

This structure holds configuration settings for the LPI2C slave peripheral. To initialize this structure to reasonable defaults, call the LPI2C_SlaveGetDefaultConfig() function and pass a pointer to your configuration structure instance.

The configuration structure can be made constant so it resides in flash.

typedef enum _lpi2c_slave_transfer_event lpi2c_slave_transfer_event_t

Set of events sent to the callback for non blocking slave transfers.

These event enumerations are used for two related purposes. First, a bit mask created by OR’ing together events is passed to LPI2C_SlaveTransferNonBlocking() in order to specify which events to enable. Then, when the slave callback is invoked, it is passed the current event through its transfer parameter.

Note

These enumerations are meant to be OR’d together to form a bit mask of events.

typedef struct _lpi2c_slave_transfer lpi2c_slave_transfer_t

LPI2C slave transfer structure.

typedef struct _lpi2c_slave_handle lpi2c_slave_handle_t
typedef void (*lpi2c_slave_transfer_callback_t)(LPI2C_Type *base, lpi2c_slave_transfer_t *transfer, void *userData)

Slave event callback function pointer type.

This callback is used only for the slave non-blocking transfer API. To install a callback, use the LPI2C_SlaveSetCallback() function after you have created a handle.

Param base:

Base address for the LPI2C instance on which the event occurred.

Param transfer:

Pointer to transfer descriptor containing values passed to and/or from the callback.

Param userData:

Arbitrary pointer-sized value passed from the application.

struct _lpi2c_slave_config
#include <fsl_lpi2c.h>

Structure with settings to initialize the LPI2C slave module.

This structure holds configuration settings for the LPI2C slave peripheral. To initialize this structure to reasonable defaults, call the LPI2C_SlaveGetDefaultConfig() function and pass a pointer to your configuration structure instance.

The configuration structure can be made constant so it resides in flash.

Public Members

bool enableSlave

Enable slave mode.

uint8_t address0

Slave’s 7-bit address.

uint8_t address1

Alternate slave 7-bit address.

lpi2c_slave_address_match_t addressMatchMode

Address matching options.

bool filterDozeEnable

Enable digital glitch filter in doze mode.

bool filterEnable

Enable digital glitch filter.

bool enableGeneralCall

Enable general call address matching.

bool ignoreAck

Continue transfers after a NACK is detected.

bool enableReceivedAddressRead

Enable reading the address received address as the first byte of data.

uint32_t sdaGlitchFilterWidth_ns

Width in nanoseconds of the digital filter on the SDA signal. Set to 0 to disable.

uint32_t sclGlitchFilterWidth_ns

Width in nanoseconds of the digital filter on the SCL signal. Set to 0 to disable.

uint32_t dataValidDelay_ns

Width in nanoseconds of the data valid delay.

uint32_t clockHoldTime_ns

Width in nanoseconds of the clock hold time.

struct _lpi2c_slave_transfer
#include <fsl_lpi2c.h>

LPI2C slave transfer structure.

Public Members

lpi2c_slave_transfer_event_t event

Reason the callback is being invoked.

uint8_t receivedAddress

Matching address send by master.

uint8_t *data

Transfer buffer

size_t dataSize

Transfer size

status_t completionStatus

Success or error code describing how the transfer completed. Only applies for kLPI2C_SlaveCompletionEvent.

size_t transferredCount

Number of bytes actually transferred since start or last repeated start.

struct _lpi2c_slave_handle
#include <fsl_lpi2c.h>

LPI2C slave handle structure.

Note

The contents of this structure are private and subject to change.

Public Members

lpi2c_slave_transfer_t transfer

LPI2C slave transfer copy.

bool isBusy

Whether transfer is busy.

bool wasTransmit

Whether the last transfer was a transmit.

uint32_t eventMask

Mask of enabled events.

uint32_t transferredCount

Count of bytes transferred.

lpi2c_slave_transfer_callback_t callback

Callback function called at transfer event.

void *userData

Callback parameter passed to callback.

struct sclStall

Public Members

bool enableAck

Enables SCL clock stretching during slave-transmit address byte(s) and slave-receiver address and data byte(s) to allow software to write the Transmit ACK Register before the ACK or NACK is transmitted. Clock stretching occurs when transmitting the 9th bit. When enableAckSCLStall is enabled, there is no need to set either enableRxDataSCLStall or enableAddressSCLStall.

bool enableTx

Enables SCL clock stretching when the transmit data flag is set during a slave-transmit transfer.

bool enableRx

Enables SCL clock stretching when receive data flag is set during a slave-receive transfer.

bool enableAddress

Enables SCL clock stretching when the address valid flag is asserted.

LPSPI: Low Power Serial Peripheral Interface

LPSPI Peripheral driver

void LPSPI_MasterInit(LPSPI_Type *base, const lpspi_master_config_t *masterConfig, uint32_t srcClock_Hz)

Initializes the LPSPI master.

Parameters:
  • base – LPSPI peripheral address.

  • masterConfig – Pointer to structure lpspi_master_config_t.

  • srcClock_Hz – Module source input clock in Hertz

void LPSPI_MasterGetDefaultConfig(lpspi_master_config_t *masterConfig)

Sets the lpspi_master_config_t structure to default values.

This API initializes the configuration structure for LPSPI_MasterInit(). The initialized structure can remain unchanged in LPSPI_MasterInit(), or can be modified before calling the LPSPI_MasterInit(). Example:

lpspi_master_config_t  masterConfig;
LPSPI_MasterGetDefaultConfig(&masterConfig);

Parameters:
  • masterConfig – pointer to lpspi_master_config_t structure

void LPSPI_SlaveInit(LPSPI_Type *base, const lpspi_slave_config_t *slaveConfig)

LPSPI slave configuration.

Parameters:
  • base – LPSPI peripheral address.

  • slaveConfig – Pointer to a structure lpspi_slave_config_t.

void LPSPI_SlaveGetDefaultConfig(lpspi_slave_config_t *slaveConfig)

Sets the lpspi_slave_config_t structure to default values.

This API initializes the configuration structure for LPSPI_SlaveInit(). The initialized structure can remain unchanged in LPSPI_SlaveInit() or can be modified before calling the LPSPI_SlaveInit(). Example:

lpspi_slave_config_t  slaveConfig;
LPSPI_SlaveGetDefaultConfig(&slaveConfig);

Parameters:
  • slaveConfig – pointer to lpspi_slave_config_t structure.

void LPSPI_Deinit(LPSPI_Type *base)

De-initializes the LPSPI peripheral. Call this API to disable the LPSPI clock.

Parameters:
  • base – LPSPI peripheral address.

void LPSPI_Reset(LPSPI_Type *base)

Restores the LPSPI peripheral to reset state. Note that this function sets all registers to reset state. As a result, the LPSPI module can’t work after calling this API.

Parameters:
  • base – LPSPI peripheral address.

uint32_t LPSPI_GetInstance(LPSPI_Type *base)

Get the LPSPI instance from peripheral base address.

Parameters:
  • base – LPSPI peripheral base address.

Returns:

LPSPI instance.

static inline void LPSPI_Enable(LPSPI_Type *base, bool enable)

Enables the LPSPI peripheral and sets the MCR MDIS to 0.

Parameters:
  • base – LPSPI peripheral address.

  • enable – Pass true to enable module, false to disable module.

static inline uint32_t LPSPI_GetStatusFlags(LPSPI_Type *base)

Gets the LPSPI status flag state.

Parameters:
  • base – LPSPI peripheral address.

Returns:

The LPSPI status(in SR register).

static inline uint8_t LPSPI_GetTxFifoSize(LPSPI_Type *base)

Gets the LPSPI Tx FIFO size.

Parameters:
  • base – LPSPI peripheral address.

Returns:

The LPSPI Tx FIFO size.

static inline uint8_t LPSPI_GetRxFifoSize(LPSPI_Type *base)

Gets the LPSPI Rx FIFO size.

Parameters:
  • base – LPSPI peripheral address.

Returns:

The LPSPI Rx FIFO size.

static inline uint32_t LPSPI_GetTxFifoCount(LPSPI_Type *base)

Gets the LPSPI Tx FIFO count.

Parameters:
  • base – LPSPI peripheral address.

Returns:

The number of words in the transmit FIFO.

static inline uint32_t LPSPI_GetRxFifoCount(LPSPI_Type *base)

Gets the LPSPI Rx FIFO count.

Parameters:
  • base – LPSPI peripheral address.

Returns:

The number of words in the receive FIFO.

static inline void LPSPI_ClearStatusFlags(LPSPI_Type *base, uint32_t statusFlags)

Clears the LPSPI status flag.

This function clears the desired status bit by using a write-1-to-clear. The user passes in the base and the desired status flag bit to clear. The list of status flags is defined in the _lpspi_flags. Example usage:

LPSPI_ClearStatusFlags(base, kLPSPI_TxDataRequestFlag|kLPSPI_RxDataReadyFlag);

Parameters:
  • base – LPSPI peripheral address.

  • statusFlags – The status flag used from type _lpspi_flags.

static inline uint32_t LPSPI_GetTcr(LPSPI_Type *base)
static inline void LPSPI_EnableInterrupts(LPSPI_Type *base, uint32_t mask)

Enables the LPSPI interrupts.

This function configures the various interrupt masks of the LPSPI. The parameters are base and an interrupt mask. Note that, for Tx fill and Rx FIFO drain requests, enabling the interrupt request disables the DMA request.

LPSPI_EnableInterrupts(base, kLPSPI_TxInterruptEnable | kLPSPI_RxInterruptEnable );
Parameters:
  • base – LPSPI peripheral address.

  • mask – The interrupt mask; Use the enum _lpspi_interrupt_enable.

static inline void LPSPI_DisableInterrupts(LPSPI_Type *base, uint32_t mask)

Disables the LPSPI interrupts.

LPSPI_DisableInterrupts(base, kLPSPI_TxInterruptEnable | kLPSPI_RxInterruptEnable );
Parameters:
  • base – LPSPI peripheral address.

  • mask – The interrupt mask; Use the enum _lpspi_interrupt_enable.

static inline void LPSPI_EnableDMA(LPSPI_Type *base, uint32_t mask)

Enables the LPSPI DMA request.

This function configures the Rx and Tx DMA mask of the LPSPI. The parameters are base and a DMA mask.

LPSPI_EnableDMA(base, kLPSPI_TxDmaEnable | kLPSPI_RxDmaEnable);

Parameters:
  • base – LPSPI peripheral address.

  • mask – The interrupt mask; Use the enum _lpspi_dma_enable.

static inline void LPSPI_DisableDMA(LPSPI_Type *base, uint32_t mask)

Disables the LPSPI DMA request.

This function configures the Rx and Tx DMA mask of the LPSPI. The parameters are base and a DMA mask.

SPI_DisableDMA(base, kLPSPI_TxDmaEnable | kLPSPI_RxDmaEnable);

Parameters:
  • base – LPSPI peripheral address.

  • mask – The interrupt mask; Use the enum _lpspi_dma_enable.

static inline uint32_t LPSPI_GetTxRegisterAddress(LPSPI_Type *base)

Gets the LPSPI Transmit Data Register address for a DMA operation.

This function gets the LPSPI Transmit Data Register address because this value is needed for the DMA operation. This function can be used for either master or slave mode.

Parameters:
  • base – LPSPI peripheral address.

Returns:

The LPSPI Transmit Data Register address.

static inline uint32_t LPSPI_GetRxRegisterAddress(LPSPI_Type *base)

Gets the LPSPI Receive Data Register address for a DMA operation.

This function gets the LPSPI Receive Data Register address because this value is needed for the DMA operation. This function can be used for either master or slave mode.

Parameters:
  • base – LPSPI peripheral address.

Returns:

The LPSPI Receive Data Register address.

bool LPSPI_CheckTransferArgument(LPSPI_Type *base, lpspi_transfer_t *transfer, bool isEdma)

Check the argument for transfer .

Parameters:
  • base – LPSPI peripheral address.

  • transfer – the transfer struct to be used.

  • isEdma – True to check for EDMA transfer, false to check interrupt non-blocking transfer

Returns:

Return true for right and false for wrong.

static inline void LPSPI_SetMasterSlaveMode(LPSPI_Type *base, lpspi_master_slave_mode_t mode)

Configures the LPSPI for either master or slave.

Note that the CFGR1 should only be written when the LPSPI is disabled (LPSPIx_CR_MEN = 0).

Parameters:
  • base – LPSPI peripheral address.

  • mode – Mode setting (master or slave) of type lpspi_master_slave_mode_t.

static inline void LPSPI_SelectTransferPCS(LPSPI_Type *base, lpspi_which_pcs_t select)

Configures the peripheral chip select used for the transfer.

Parameters:
  • base – LPSPI peripheral address.

  • select – LPSPI Peripheral Chip Select (PCS) configuration.

static inline void LPSPI_SetPCSContinous(LPSPI_Type *base, bool IsContinous)

Set the PCS signal to continuous or uncontinuous mode.

Note

In master mode, continuous transfer will keep the PCS asserted at the end of the frame size, until a command word is received that starts a new frame. So PCS must be set back to uncontinuous when transfer finishes. In slave mode, when continuous transfer is enabled, the LPSPI will only transmit the first frame size bits, after that the LPSPI will transmit received data back (assuming a 32-bit shift register).

Parameters:
  • base – LPSPI peripheral address.

  • IsContinous – True to set the transfer PCS to continuous mode, false to set to uncontinuous mode.

static inline bool LPSPI_IsMaster(LPSPI_Type *base)

Returns whether the LPSPI module is in master mode.

Parameters:
  • base – LPSPI peripheral address.

Returns:

Returns true if the module is in master mode or false if the module is in slave mode.

static inline void LPSPI_FlushFifo(LPSPI_Type *base, bool flushTxFifo, bool flushRxFifo)

Flushes the LPSPI FIFOs.

Parameters:
  • base – LPSPI peripheral address.

  • flushTxFifo – Flushes (true) the Tx FIFO, else do not flush (false) the Tx FIFO.

  • flushRxFifo – Flushes (true) the Rx FIFO, else do not flush (false) the Rx FIFO.

static inline void LPSPI_SetFifoWatermarks(LPSPI_Type *base, uint32_t txWater, uint32_t rxWater)

Sets the transmit and receive FIFO watermark values.

This function allows the user to set the receive and transmit FIFO watermarks. The function does not compare the watermark settings to the FIFO size. The FIFO watermark should not be equal to or greater than the FIFO size. It is up to the higher level driver to make this check.

Parameters:
  • base – LPSPI peripheral address.

  • txWater – The TX FIFO watermark value. Writing a value equal or greater than the FIFO size is truncated.

  • rxWater – The RX FIFO watermark value. Writing a value equal or greater than the FIFO size is truncated.

static inline void LPSPI_SetAllPcsPolarity(LPSPI_Type *base, uint32_t mask)

Configures all LPSPI peripheral chip select polarities simultaneously.

Note that the CFGR1 should only be written when the LPSPI is disabled (LPSPIx_CR_MEN = 0).

This is an example: PCS0 and PCS1 set to active low and other PCSs set to active high. Note that the number of PCS is device-specific.

LPSPI_SetAllPcsPolarity(base, kLPSPI_Pcs0ActiveLow | kLPSPI_Pcs1ActiveLow);

Parameters:
  • base – LPSPI peripheral address.

  • mask – The PCS polarity mask; Use the enum _lpspi_pcs_polarity.

static inline void LPSPI_SetFrameSize(LPSPI_Type *base, uint32_t frameSize)

Configures the frame size.

The minimum frame size is 8-bits and the maximum frame size is 4096-bits. If the frame size is less than or equal to 32-bits, the word size and frame size are identical. If the frame size is greater than 32-bits, the word size is 32-bits for each word except the last (the last word contains the remainder bits if the frame size is not divisible by 32). The minimum word size is 2-bits. A frame size of 33-bits (or similar) is not supported.

Note 1: The transmit command register should be initialized before enabling the LPSPI in slave mode, although the command register does not update until after the LPSPI is enabled. After it is enabled, the transmit command register should only be changed if the LPSPI is idle.

Note 2: The transmit and command FIFO is a combined FIFO that includes both transmit data and command words. That means the TCR register should be written to when the Tx FIFO is not full.

Parameters:
  • base – LPSPI peripheral address.

  • frameSize – The frame size in number of bits.

uint32_t LPSPI_MasterSetBaudRate(LPSPI_Type *base, uint32_t baudRate_Bps, uint32_t srcClock_Hz, uint32_t *tcrPrescaleValue)

Sets the LPSPI baud rate in bits per second.

This function takes in the desired bitsPerSec (baud rate) and calculates the nearest possible baud rate without exceeding the desired baud rate and returns the calculated baud rate in bits-per-second. It requires the caller to provide the frequency of the module source clock (in Hertz). Note that the baud rate does not go into effect until the Transmit Control Register (TCR) is programmed with the prescale value. Hence, this function returns the prescale tcrPrescaleValue parameter for later programming in the TCR. The higher level peripheral driver should alert the user of an out of range baud rate input.

Note that the LPSPI module must first be disabled before configuring this. Note that the LPSPI module must be configured for master mode before configuring this.

Parameters:
  • base – LPSPI peripheral address.

  • baudRate_Bps – The desired baud rate in bits per second.

  • srcClock_Hz – Module source input clock in Hertz.

  • tcrPrescaleValue – The TCR prescale value needed to program the TCR.

Returns:

The actual calculated baud rate. This function may also return a “0” if the LPSPI is not configured for master mode or if the LPSPI module is not disabled.

void LPSPI_MasterSetDelayScaler(LPSPI_Type *base, uint32_t scaler, lpspi_delay_type_t whichDelay)

Manually configures a specific LPSPI delay parameter (module must be disabled to change the delay values).

This function configures the following: SCK to PCS delay, or PCS to SCK delay, or The configurations must occur between the transfer delay.

The delay names are available in type lpspi_delay_type_t.

The user passes the desired delay along with the delay value. This allows the user to directly set the delay values if they have pre-calculated them or if they simply wish to manually increment the value.

Note that the LPSPI module must first be disabled before configuring this. Note that the LPSPI module must be configured for master mode before configuring this.

Parameters:
  • base – LPSPI peripheral address.

  • scaler – The 8-bit delay value 0x00 to 0xFF (255).

  • whichDelay – The desired delay to configure, must be of type lpspi_delay_type_t.

uint32_t LPSPI_MasterSetDelayTimes(LPSPI_Type *base, uint32_t delayTimeInNanoSec, lpspi_delay_type_t whichDelay, uint32_t srcClock_Hz)

Calculates the delay based on the desired delay input in nanoseconds (module must be disabled to change the delay values).

This function calculates the values for the following: SCK to PCS delay, or PCS to SCK delay, or The configurations must occur between the transfer delay.

The delay names are available in type lpspi_delay_type_t.

The user passes the desired delay and the desired delay value in nano-seconds. The function calculates the value needed for the desired delay parameter and returns the actual calculated delay because an exact delay match may not be possible. In this case, the closest match is calculated without going below the desired delay value input. It is possible to input a very large delay value that exceeds the capability of the part, in which case the maximum supported delay is returned. It is up to the higher level peripheral driver to alert the user of an out of range delay input.

Note that the LPSPI module must be configured for master mode before configuring this. And note that the delayTime = LPSPI_clockSource / (PRESCALE * Delay_scaler).

Parameters:
  • base – LPSPI peripheral address.

  • delayTimeInNanoSec – The desired delay value in nano-seconds.

  • whichDelay – The desired delay to configuration, which must be of type lpspi_delay_type_t.

  • srcClock_Hz – Module source input clock in Hertz.

Returns:

actual Calculated delay value in nano-seconds.

static inline void LPSPI_WriteData(LPSPI_Type *base, uint32_t data)

Writes data into the transmit data buffer.

This function writes data passed in by the user to the Transmit Data Register (TDR). The user can pass up to 32-bits of data to load into the TDR. If the frame size exceeds 32-bits, the user has to manage sending the data one 32-bit word at a time. Any writes to the TDR result in an immediate push to the transmit FIFO. This function can be used for either master or slave modes.

Parameters:
  • base – LPSPI peripheral address.

  • data – The data word to be sent.

static inline uint32_t LPSPI_ReadData(LPSPI_Type *base)

Reads data from the data buffer.

This function reads the data from the Receive Data Register (RDR). This function can be used for either master or slave mode.

Parameters:
  • base – LPSPI peripheral address.

Returns:

The data read from the data buffer.

void LPSPI_SetDummyData(LPSPI_Type *base, uint8_t dummyData)

Set up the dummy data.

Parameters:
  • base – LPSPI peripheral address.

  • dummyData – Data to be transferred when tx buffer is NULL. Note: This API has no effect when LPSPI in slave interrupt mode, because driver will set the TXMSK bit to 1 if txData is NULL, no data is loaded from transmit FIFO and output pin is tristated.

void LPSPI_MasterTransferCreateHandle(LPSPI_Type *base, lpspi_master_handle_t *handle, lpspi_master_transfer_callback_t callback, void *userData)

Initializes the LPSPI master handle.

This function initializes the LPSPI handle, which can be used for other LPSPI transactional APIs. Usually, for a specified LPSPI instance, call this API once to get the initialized handle.

Parameters:
  • base – LPSPI peripheral address.

  • handle – LPSPI handle pointer to lpspi_master_handle_t.

  • callback – DSPI callback.

  • userData – callback function parameter.

status_t LPSPI_MasterTransferBlocking(LPSPI_Type *base, lpspi_transfer_t *transfer)

LPSPI master transfer data using a polling method.

This function transfers data using a polling method. This is a blocking function, which does not return until all transfers have been completed.

Note: The transfer data size should be integer multiples of bytesPerFrame if bytesPerFrame is less than or equal to 4. For bytesPerFrame greater than 4: The transfer data size should be equal to bytesPerFrame if the bytesPerFrame is not integer multiples of 4. Otherwise, the transfer data size can be an integer multiple of bytesPerFrame.

Parameters:
  • base – LPSPI peripheral address.

  • transfer – pointer to lpspi_transfer_t structure.

Returns:

status of status_t.

status_t LPSPI_MasterTransferNonBlocking(LPSPI_Type *base, lpspi_master_handle_t *handle, lpspi_transfer_t *transfer)

LPSPI master transfer data using an interrupt method.

This function transfers data using an interrupt method. This is a non-blocking function, which returns right away. When all data is transferred, the callback function is called.

Note: The transfer data size should be integer multiples of bytesPerFrame if bytesPerFrame is less than or equal to 4. For bytesPerFrame greater than 4: The transfer data size should be equal to bytesPerFrame if the bytesPerFrame is not integer multiples of 4. Otherwise, the transfer data size can be an integer multiple of bytesPerFrame.

Parameters:
  • base – LPSPI peripheral address.

  • handle – pointer to lpspi_master_handle_t structure which stores the transfer state.

  • transfer – pointer to lpspi_transfer_t structure.

Returns:

status of status_t.

status_t LPSPI_MasterTransferGetCount(LPSPI_Type *base, lpspi_master_handle_t *handle, size_t *count)

Gets the master transfer remaining bytes.

This function gets the master transfer remaining bytes.

Parameters:
  • base – LPSPI peripheral address.

  • handle – pointer to lpspi_master_handle_t structure which stores the transfer state.

  • count – Number of bytes transferred so far by the non-blocking transaction.

Returns:

status of status_t.

void LPSPI_MasterTransferAbort(LPSPI_Type *base, lpspi_master_handle_t *handle)

LPSPI master abort transfer which uses an interrupt method.

This function aborts a transfer which uses an interrupt method.

Parameters:
  • base – LPSPI peripheral address.

  • handle – pointer to lpspi_master_handle_t structure which stores the transfer state.

void LPSPI_MasterTransferHandleIRQ(uint32_t instance, lpspi_master_handle_t *handle)

LPSPI Master IRQ handler function.

This function processes the LPSPI transmit and receive IRQ.

Parameters:
  • instance – LPSPI instance.

  • handle – pointer to lpspi_master_handle_t structure which stores the transfer state.

void LPSPI_SlaveTransferCreateHandle(LPSPI_Type *base, lpspi_slave_handle_t *handle, lpspi_slave_transfer_callback_t callback, void *userData)

Initializes the LPSPI slave handle.

This function initializes the LPSPI handle, which can be used for other LPSPI transactional APIs. Usually, for a specified LPSPI instance, call this API once to get the initialized handle.

Parameters:
  • base – LPSPI peripheral address.

  • handle – LPSPI handle pointer to lpspi_slave_handle_t.

  • callback – DSPI callback.

  • userData – callback function parameter.

status_t LPSPI_SlaveTransferNonBlocking(LPSPI_Type *base, lpspi_slave_handle_t *handle, lpspi_transfer_t *transfer)

LPSPI slave transfer data using an interrupt method.

This function transfer data using an interrupt method. This is a non-blocking function, which returns right away. When all data is transferred, the callback function is called.

Note: The transfer data size should be integer multiples of bytesPerFrame if bytesPerFrame is less than or equal to 4. For bytesPerFrame greater than 4: The transfer data size should be equal to bytesPerFrame if the bytesPerFrame is not an integer multiple of 4. Otherwise, the transfer data size can be an integer multiple of bytesPerFrame.

Parameters:
  • base – LPSPI peripheral address.

  • handle – pointer to lpspi_slave_handle_t structure which stores the transfer state.

  • transfer – pointer to lpspi_transfer_t structure.

Returns:

status of status_t.

status_t LPSPI_SlaveTransferGetCount(LPSPI_Type *base, lpspi_slave_handle_t *handle, size_t *count)

Gets the slave transfer remaining bytes.

This function gets the slave transfer remaining bytes.

Parameters:
  • base – LPSPI peripheral address.

  • handle – pointer to lpspi_slave_handle_t structure which stores the transfer state.

  • count – Number of bytes transferred so far by the non-blocking transaction.

Returns:

status of status_t.

void LPSPI_SlaveTransferAbort(LPSPI_Type *base, lpspi_slave_handle_t *handle)

LPSPI slave aborts a transfer which uses an interrupt method.

This function aborts a transfer which uses an interrupt method.

Parameters:
  • base – LPSPI peripheral address.

  • handle – pointer to lpspi_slave_handle_t structure which stores the transfer state.

void LPSPI_SlaveTransferHandleIRQ(uint32_t instance, lpspi_slave_handle_t *handle)

LPSPI Slave IRQ handler function.

This function processes the LPSPI transmit and receives an IRQ.

Parameters:
  • instance – LPSPI instance index.

  • handle – pointer to lpspi_slave_handle_t structure which stores the transfer state.

FSL_LPSPI_DRIVER_VERSION

LPSPI driver version.

Status for the LPSPI driver.

Values:

enumerator kStatus_LPSPI_Busy

LPSPI transfer is busy.

enumerator kStatus_LPSPI_Error

LPSPI driver error.

enumerator kStatus_LPSPI_Idle

LPSPI is idle.

enumerator kStatus_LPSPI_OutOfRange

LPSPI transfer out Of range.

enumerator kStatus_LPSPI_Timeout

LPSPI timeout polling status flags.

enum _lpspi_flags

LPSPI status flags in SPIx_SR register.

Values:

enumerator kLPSPI_TxDataRequestFlag

Transmit data flag

enumerator kLPSPI_RxDataReadyFlag

Receive data flag

enumerator kLPSPI_WordCompleteFlag

Word Complete flag

enumerator kLPSPI_FrameCompleteFlag

Frame Complete flag

enumerator kLPSPI_TransferCompleteFlag

Transfer Complete flag

enumerator kLPSPI_TransmitErrorFlag

Transmit Error flag (FIFO underrun)

enumerator kLPSPI_ReceiveErrorFlag

Receive Error flag (FIFO overrun)

enumerator kLPSPI_DataMatchFlag

Data Match flag

enumerator kLPSPI_ModuleBusyFlag

Module Busy flag

enumerator kLPSPI_AllStatusFlag

Used for clearing all w1c status flags

enum _lpspi_interrupt_enable

LPSPI interrupt source.

Values:

enumerator kLPSPI_TxInterruptEnable

Transmit data interrupt enable

enumerator kLPSPI_RxInterruptEnable

Receive data interrupt enable

enumerator kLPSPI_WordCompleteInterruptEnable

Word complete interrupt enable

enumerator kLPSPI_FrameCompleteInterruptEnable

Frame complete interrupt enable

enumerator kLPSPI_TransferCompleteInterruptEnable

Transfer complete interrupt enable

enumerator kLPSPI_TransmitErrorInterruptEnable

Transmit error interrupt enable(FIFO underrun)

enumerator kLPSPI_ReceiveErrorInterruptEnable

Receive Error interrupt enable (FIFO overrun)

enumerator kLPSPI_DataMatchInterruptEnable

Data Match interrupt enable

enumerator kLPSPI_AllInterruptEnable

All above interrupts enable.

enum _lpspi_dma_enable

LPSPI DMA source.

Values:

enumerator kLPSPI_TxDmaEnable

Transmit data DMA enable

enumerator kLPSPI_RxDmaEnable

Receive data DMA enable

enum _lpspi_master_slave_mode

LPSPI master or slave mode configuration.

Values:

enumerator kLPSPI_Master

LPSPI peripheral operates in master mode.

enumerator kLPSPI_Slave

LPSPI peripheral operates in slave mode.

enum _lpspi_which_pcs_config

LPSPI Peripheral Chip Select (PCS) configuration (which PCS to configure).

Values:

enumerator kLPSPI_Pcs0

PCS[0]

enumerator kLPSPI_Pcs1

PCS[1]

enumerator kLPSPI_Pcs2

PCS[2]

enumerator kLPSPI_Pcs3

PCS[3]

enum _lpspi_pcs_polarity_config

LPSPI Peripheral Chip Select (PCS) Polarity configuration.

Values:

enumerator kLPSPI_PcsActiveHigh

PCS Active High (idles low)

enumerator kLPSPI_PcsActiveLow

PCS Active Low (idles high)

enum _lpspi_pcs_polarity

LPSPI Peripheral Chip Select (PCS) Polarity.

Values:

enumerator kLPSPI_Pcs0ActiveLow

Pcs0 Active Low (idles high).

enumerator kLPSPI_Pcs1ActiveLow

Pcs1 Active Low (idles high).

enumerator kLPSPI_Pcs2ActiveLow

Pcs2 Active Low (idles high).

enumerator kLPSPI_Pcs3ActiveLow

Pcs3 Active Low (idles high).

enumerator kLPSPI_PcsAllActiveLow

Pcs0 to Pcs5 Active Low (idles high).

enum _lpspi_clock_polarity

LPSPI clock polarity configuration.

Values:

enumerator kLPSPI_ClockPolarityActiveHigh

CPOL=0. Active-high LPSPI clock (idles low)

enumerator kLPSPI_ClockPolarityActiveLow

CPOL=1. Active-low LPSPI clock (idles high)

enum _lpspi_clock_phase

LPSPI clock phase configuration.

Values:

enumerator kLPSPI_ClockPhaseFirstEdge

CPHA=0. Data is captured on the leading edge of the SCK and changed on the following edge.

enumerator kLPSPI_ClockPhaseSecondEdge

CPHA=1. Data is changed on the leading edge of the SCK and captured on the following edge.

enum _lpspi_shift_direction

LPSPI data shifter direction options.

Values:

enumerator kLPSPI_MsbFirst

Data transfers start with most significant bit.

enumerator kLPSPI_LsbFirst

Data transfers start with least significant bit.

enum _lpspi_host_request_select

LPSPI Host Request select configuration.

Values:

enumerator kLPSPI_HostReqExtPin

Host Request is an ext pin.

enumerator kLPSPI_HostReqInternalTrigger

Host Request is an internal trigger.

enum _lpspi_match_config

LPSPI Match configuration options.

Values:

enumerator kLPSI_MatchDisabled

LPSPI Match Disabled.

enumerator kLPSI_1stWordEqualsM0orM1

LPSPI Match Enabled.

enumerator kLPSI_AnyWordEqualsM0orM1

LPSPI Match Enabled.

enumerator kLPSI_1stWordEqualsM0and2ndWordEqualsM1

LPSPI Match Enabled.

enumerator kLPSI_AnyWordEqualsM0andNxtWordEqualsM1

LPSPI Match Enabled.

enumerator kLPSI_1stWordAndM1EqualsM0andM1

LPSPI Match Enabled.

enumerator kLPSI_AnyWordAndM1EqualsM0andM1

LPSPI Match Enabled.

enum _lpspi_pin_config

LPSPI pin (SDO and SDI) configuration.

Values:

enumerator kLPSPI_SdiInSdoOut

LPSPI SDI input, SDO output.

enumerator kLPSPI_SdiInSdiOut

LPSPI SDI input, SDI output.

enumerator kLPSPI_SdoInSdoOut

LPSPI SDO input, SDO output.

enumerator kLPSPI_SdoInSdiOut

LPSPI SDO input, SDI output.

enum _lpspi_data_out_config

LPSPI data output configuration.

Values:

enumerator kLpspiDataOutRetained

Data out retains last value when chip select is de-asserted

enumerator kLpspiDataOutTristate

Data out is tristated when chip select is de-asserted

enum _lpspi_pcs_function_config

LPSPI cs function configuration.

Values:

enumerator kLPSPI_PcsAsCs

PCS pin select as cs function

enumerator kLPSPI_PcsAsData

PCS pin select as date function

enum _lpspi_transfer_width

LPSPI transfer width configuration.

Values:

enumerator kLPSPI_SingleBitXfer

1-bit shift at a time, data out on SDO, in on SDI (normal mode)

enumerator kLPSPI_TwoBitXfer

2-bits shift out on SDO/SDI and in on SDO/SDI

enumerator kLPSPI_FourBitXfer

4-bits shift out on SDO/SDI/PCS[3:2] and in on SDO/SDI/PCS[3:2]

enum _lpspi_delay_type

LPSPI delay type selection.

Values:

enumerator kLPSPI_PcsToSck

PCS-to-SCK delay.

enumerator kLPSPI_LastSckToPcs

Last SCK edge to PCS delay.

enumerator kLPSPI_BetweenTransfer

Delay between transfers.

enum _lpspi_transfer_config_flag_for_master

Use this enumeration for LPSPI master transfer configFlags.

Values:

enumerator kLPSPI_MasterPcs0

LPSPI master PCS shift macro , internal used. LPSPI master transfer use PCS0 signal

enumerator kLPSPI_MasterPcs1

LPSPI master PCS shift macro , internal used. LPSPI master transfer use PCS1 signal

enumerator kLPSPI_MasterPcs2

LPSPI master PCS shift macro , internal used. LPSPI master transfer use PCS2 signal

enumerator kLPSPI_MasterPcs3

LPSPI master PCS shift macro , internal used. LPSPI master transfer use PCS3 signal

enumerator kLPSPI_MasterWidth1

LPSPI master width shift macro, internal used LPSPI master transfer 1bit

enumerator kLPSPI_MasterWidth2

LPSPI master width shift macro, internal used LPSPI master transfer 2bit

enumerator kLPSPI_MasterWidth4

LPSPI master width shift macro, internal used LPSPI master transfer 4bit

enumerator kLPSPI_MasterPcsContinuous

Is PCS signal continuous

enumerator kLPSPI_MasterByteSwap

Is master swap the byte. For example, when want to send data 1 2 3 4 5 6 7 8 (suppose you set lpspi_shift_direction_t to MSB).

  1. If you set bitPerFrame = 8 , no matter the kLPSPI_MasterByteSwapyou flag is used or not, the waveform is 1 2 3 4 5 6 7 8.

  2. If you set bitPerFrame = 16 : (1) the waveform is 2 1 4 3 6 5 8 7 if you do not use the kLPSPI_MasterByteSwap flag. (2) the waveform is 1 2 3 4 5 6 7 8 if you use the kLPSPI_MasterByteSwap flag.

  3. If you set bitPerFrame = 32 : (1) the waveform is 4 3 2 1 8 7 6 5 if you do not use the kLPSPI_MasterByteSwap flag. (2) the waveform is 1 2 3 4 5 6 7 8 if you use the kLPSPI_MasterByteSwap flag.

enum _lpspi_transfer_config_flag_for_slave

Use this enumeration for LPSPI slave transfer configFlags.

Values:

enumerator kLPSPI_SlavePcs0

LPSPI slave PCS shift macro , internal used. LPSPI slave transfer use PCS0 signal

enumerator kLPSPI_SlavePcs1

LPSPI slave PCS shift macro , internal used. LPSPI slave transfer use PCS1 signal

enumerator kLPSPI_SlavePcs2

LPSPI slave PCS shift macro , internal used. LPSPI slave transfer use PCS2 signal

enumerator kLPSPI_SlavePcs3

LPSPI slave PCS shift macro , internal used. LPSPI slave transfer use PCS3 signal

enumerator kLPSPI_SlaveByteSwap

Is slave swap the byte. For example, when want to send data 1 2 3 4 5 6 7 8 (suppose you set lpspi_shift_direction_t to MSB).

  1. If you set bitPerFrame = 8 , no matter the kLPSPI_SlaveByteSwap flag is used or not, the waveform is 1 2 3 4 5 6 7 8.

  2. If you set bitPerFrame = 16 : (1) the waveform is 2 1 4 3 6 5 8 7 if you do not use the kLPSPI_SlaveByteSwap flag. (2) the waveform is 1 2 3 4 5 6 7 8 if you use the kLPSPI_SlaveByteSwap flag.

  3. If you set bitPerFrame = 32 : (1) the waveform is 4 3 2 1 8 7 6 5 if you do not use the kLPSPI_SlaveByteSwap flag. (2) the waveform is 1 2 3 4 5 6 7 8 if you use the kLPSPI_SlaveByteSwap flag.

enum _lpspi_transfer_state

LPSPI transfer state, which is used for LPSPI transactional API state machine.

Values:

enumerator kLPSPI_Idle

Nothing in the transmitter/receiver.

enumerator kLPSPI_Busy

Transfer queue is not finished.

enumerator kLPSPI_Error

Transfer error.

typedef enum _lpspi_master_slave_mode lpspi_master_slave_mode_t

LPSPI master or slave mode configuration.

typedef enum _lpspi_which_pcs_config lpspi_which_pcs_t

LPSPI Peripheral Chip Select (PCS) configuration (which PCS to configure).

typedef enum _lpspi_pcs_polarity_config lpspi_pcs_polarity_config_t

LPSPI Peripheral Chip Select (PCS) Polarity configuration.

typedef enum _lpspi_clock_polarity lpspi_clock_polarity_t

LPSPI clock polarity configuration.

typedef enum _lpspi_clock_phase lpspi_clock_phase_t

LPSPI clock phase configuration.

typedef enum _lpspi_shift_direction lpspi_shift_direction_t

LPSPI data shifter direction options.

typedef enum _lpspi_host_request_select lpspi_host_request_select_t

LPSPI Host Request select configuration.

typedef enum _lpspi_match_config lpspi_match_config_t

LPSPI Match configuration options.

typedef enum _lpspi_pin_config lpspi_pin_config_t

LPSPI pin (SDO and SDI) configuration.

typedef enum _lpspi_data_out_config lpspi_data_out_config_t

LPSPI data output configuration.

typedef enum _lpspi_pcs_function_config lpspi_pcs_function_config_t

LPSPI cs function configuration.

typedef enum _lpspi_transfer_width lpspi_transfer_width_t

LPSPI transfer width configuration.

typedef enum _lpspi_delay_type lpspi_delay_type_t

LPSPI delay type selection.

typedef struct _lpspi_master_config lpspi_master_config_t

LPSPI master configuration structure.

typedef struct _lpspi_slave_config lpspi_slave_config_t

LPSPI slave configuration structure.

typedef struct _lpspi_master_handle lpspi_master_handle_t

Forward declaration of the _lpspi_master_handle typedefs.

typedef struct _lpspi_slave_handle lpspi_slave_handle_t

Forward declaration of the _lpspi_slave_handle typedefs.

typedef void (*lpspi_master_transfer_callback_t)(LPSPI_Type *base, lpspi_master_handle_t *handle, status_t status, void *userData)

Master completion callback function pointer type.

Param base:

LPSPI peripheral address.

Param handle:

Pointer to the handle for the LPSPI master.

Param status:

Success or error code describing whether the transfer is completed.

Param userData:

Arbitrary pointer-dataSized value passed from the application.

typedef void (*lpspi_slave_transfer_callback_t)(LPSPI_Type *base, lpspi_slave_handle_t *handle, status_t status, void *userData)

Slave completion callback function pointer type.

Param base:

LPSPI peripheral address.

Param handle:

Pointer to the handle for the LPSPI slave.

Param status:

Success or error code describing whether the transfer is completed.

Param userData:

Arbitrary pointer-dataSized value passed from the application.

typedef struct _lpspi_transfer lpspi_transfer_t

LPSPI master/slave transfer structure.

volatile uint8_t g_lpspiDummyData[]

Global variable for dummy data value setting.

LPSPI_DUMMY_DATA

LPSPI dummy data if no Tx data.

Dummy data used for tx if there is not txData.

SPI_RETRY_TIMES

Retry times for waiting flag.

LPSPI_MASTER_PCS_SHIFT

LPSPI master PCS shift macro , internal used.

LPSPI_MASTER_PCS_MASK

LPSPI master PCS shift macro , internal used.

LPSPI_MASTER_WIDTH_SHIFT

LPSPI master width shift macro, internal used

LPSPI_MASTER_WIDTH_MASK

LPSPI master width shift mask, internal used

LPSPI_SLAVE_PCS_SHIFT

LPSPI slave PCS shift macro , internal used.

LPSPI_SLAVE_PCS_MASK

LPSPI slave PCS shift macro , internal used.

struct _lpspi_master_config
#include <fsl_lpspi.h>

LPSPI master configuration structure.

Public Members

uint32_t baudRate

Baud Rate for LPSPI.

uint32_t bitsPerFrame

Bits per frame, minimum 8, maximum 4096.

lpspi_clock_polarity_t cpol

Clock polarity.

lpspi_clock_phase_t cpha

Clock phase.

lpspi_shift_direction_t direction

MSB or LSB data shift direction.

uint32_t pcsToSckDelayInNanoSec

PCS to SCK delay time in nanoseconds, setting to 0 sets the minimum delay. It sets the boundary value if out of range.

uint32_t lastSckToPcsDelayInNanoSec

Last SCK to PCS delay time in nanoseconds, setting to 0 sets the minimum delay. It sets the boundary value if out of range.

uint32_t betweenTransferDelayInNanoSec

After the SCK delay time with nanoseconds, setting to 0 sets the minimum delay. It sets the boundary value if out of range.

lpspi_which_pcs_t whichPcs

Desired Peripheral Chip Select (PCS).

lpspi_pcs_polarity_config_t pcsActiveHighOrLow

Desired PCS active high or low

lpspi_pin_config_t pinCfg

Configures which pins are used for input and output data during single bit transfers.

lpspi_pcs_function_config_t pcsFunc

Configures cs pins function.

lpspi_data_out_config_t dataOutConfig

Configures if the output data is tristated between accesses (LPSPI_PCS is negated).

bool enableInputDelay

Enable master to sample the input data on a delayed SCK. This can help improve slave setup time. Refer to device data sheet for specific time length.

struct _lpspi_slave_config
#include <fsl_lpspi.h>

LPSPI slave configuration structure.

Public Members

uint32_t bitsPerFrame

Bits per frame, minimum 8, maximum 4096.

lpspi_clock_polarity_t cpol

Clock polarity.

lpspi_clock_phase_t cpha

Clock phase.

lpspi_shift_direction_t direction

MSB or LSB data shift direction.

lpspi_which_pcs_t whichPcs

Desired Peripheral Chip Select (pcs)

lpspi_pcs_polarity_config_t pcsActiveHighOrLow

Desired PCS active high or low

lpspi_pin_config_t pinCfg

Configures which pins are used for input and output data during single bit transfers.

lpspi_data_out_config_t dataOutConfig

Configures if the output data is tristated between accesses (LPSPI_PCS is negated).

struct _lpspi_transfer
#include <fsl_lpspi.h>

LPSPI master/slave transfer structure.

Public Members

const uint8_t *txData

Send buffer.

uint8_t *rxData

Receive buffer.

volatile size_t dataSize

Transfer bytes.

uint32_t configFlags

Transfer transfer configuration flags. Set from _lpspi_transfer_config_flag_for_master if the transfer is used for master or _lpspi_transfer_config_flag_for_slave enumeration if the transfer is used for slave.

struct _lpspi_master_handle
#include <fsl_lpspi.h>

LPSPI master transfer handle structure used for transactional API.

Public Members

volatile bool isPcsContinuous

Is PCS continuous in transfer.

volatile bool writeTcrInIsr

A flag that whether should write TCR in ISR.

volatile bool isByteSwap

A flag that whether should byte swap.

volatile bool isTxMask

A flag that whether TCR[TXMSK] is set.

volatile uint16_t bytesPerFrame

Number of bytes in each frame

volatile uint8_t fifoSize

FIFO dataSize.

volatile uint8_t rxWatermark

Rx watermark.

volatile uint8_t bytesEachWrite

Bytes for each write TDR.

volatile uint8_t bytesEachRead

Bytes for each read RDR.

const uint8_t *volatile txData

Send buffer.

uint8_t *volatile rxData

Receive buffer.

volatile size_t txRemainingByteCount

Number of bytes remaining to send.

volatile size_t rxRemainingByteCount

Number of bytes remaining to receive.

volatile uint32_t writeRegRemainingTimes

Write TDR register remaining times.

volatile uint32_t readRegRemainingTimes

Read RDR register remaining times.

uint32_t totalByteCount

Number of transfer bytes

uint32_t txBuffIfNull

Used if the txData is NULL.

volatile uint8_t state

LPSPI transfer state , _lpspi_transfer_state.

lpspi_master_transfer_callback_t callback

Completion callback.

void *userData

Callback user data.

struct _lpspi_slave_handle
#include <fsl_lpspi.h>

LPSPI slave transfer handle structure used for transactional API.

Public Members

volatile bool isByteSwap

A flag that whether should byte swap.

volatile uint8_t fifoSize

FIFO dataSize.

volatile uint8_t rxWatermark

Rx watermark.

volatile uint8_t bytesEachWrite

Bytes for each write TDR.

volatile uint8_t bytesEachRead

Bytes for each read RDR.

const uint8_t *volatile txData

Send buffer.

uint8_t *volatile rxData

Receive buffer.

volatile size_t txRemainingByteCount

Number of bytes remaining to send.

volatile size_t rxRemainingByteCount

Number of bytes remaining to receive.

volatile uint32_t writeRegRemainingTimes

Write TDR register remaining times.

volatile uint32_t readRegRemainingTimes

Read RDR register remaining times.

uint32_t totalByteCount

Number of transfer bytes

volatile uint8_t state

LPSPI transfer state , _lpspi_transfer_state.

volatile uint32_t errorCount

Error count for slave transfer.

lpspi_slave_transfer_callback_t callback

Completion callback.

void *userData

Callback user data.

LPSPI eDMA Driver

FSL_LPSPI_EDMA_DRIVER_VERSION

LPSPI EDMA driver version.

typedef struct _lpspi_master_edma_handle lpspi_master_edma_handle_t

Forward declaration of the _lpspi_master_edma_handle typedefs.

typedef struct _lpspi_slave_edma_handle lpspi_slave_edma_handle_t

Forward declaration of the _lpspi_slave_edma_handle typedefs.

typedef void (*lpspi_master_edma_transfer_callback_t)(LPSPI_Type *base, lpspi_master_edma_handle_t *handle, status_t status, void *userData)

Completion callback function pointer type.

Param base:

LPSPI peripheral base address.

Param handle:

Pointer to the handle for the LPSPI master.

Param status:

Success or error code describing whether the transfer completed.

Param userData:

Arbitrary pointer-dataSized value passed from the application.

typedef void (*lpspi_slave_edma_transfer_callback_t)(LPSPI_Type *base, lpspi_slave_edma_handle_t *handle, status_t status, void *userData)

Completion callback function pointer type.

Param base:

LPSPI peripheral base address.

Param handle:

Pointer to the handle for the LPSPI slave.

Param status:

Success or error code describing whether the transfer completed.

Param userData:

Arbitrary pointer-dataSized value passed from the application.

void LPSPI_MasterTransferCreateHandleEDMA(LPSPI_Type *base, lpspi_master_edma_handle_t *handle, lpspi_master_edma_transfer_callback_t callback, void *userData, edma_handle_t *edmaRxRegToRxDataHandle, edma_handle_t *edmaTxDataToTxRegHandle)

Initializes the LPSPI master eDMA handle.

This function initializes the LPSPI eDMA handle which can be used for other LPSPI transactional APIs. Usually, for a specified LPSPI instance, call this API once to get the initialized handle.

Note that the LPSPI eDMA has a separated (Rx and Tx as two sources) or shared (Rx and Tx are the same source) DMA request source. (1) For a separated DMA request source, enable and set the Rx DMAMUX source for edmaRxRegToRxDataHandle and Tx DMAMUX source for edmaTxDataToTxRegHandle. (2) For a shared DMA request source, enable and set the Rx/Tx DMAMUX source for edmaRxRegToRxDataHandle.

Parameters:
  • base – LPSPI peripheral base address.

  • handle – LPSPI handle pointer to lpspi_master_edma_handle_t.

  • callback – LPSPI callback.

  • userData – callback function parameter.

  • edmaRxRegToRxDataHandle – edmaRxRegToRxDataHandle pointer to edma_handle_t.

  • edmaTxDataToTxRegHandle – edmaTxDataToTxRegHandle pointer to edma_handle_t.

status_t LPSPI_MasterTransferEDMA(LPSPI_Type *base, lpspi_master_edma_handle_t *handle, lpspi_transfer_t *transfer)

LPSPI master transfer data using eDMA.

This function transfers data using eDMA. This is a non-blocking function, which returns right away. When all data is transferred, the callback function is called.

Note: The transfer data size should be an integer multiple of bytesPerFrame if bytesPerFrame is less than or equal to 4. For bytesPerFrame greater than 4: The transfer data size should be equal to bytesPerFrame if the bytesPerFrame is not an integer multiple of 4. Otherwise, the transfer data size can be an integer multiple of bytesPerFrame.

Parameters:
  • base – LPSPI peripheral base address.

  • handle – pointer to lpspi_master_edma_handle_t structure which stores the transfer state.

  • transfer – pointer to lpspi_transfer_t structure.

Returns:

status of status_t.

status_t LPSPI_MasterTransferPrepareEDMALite(LPSPI_Type *base, lpspi_master_edma_handle_t *handle, uint32_t configFlags)

LPSPI master config transfer parameter while using eDMA.

This function is preparing to transfer data using eDMA, work with LPSPI_MasterTransferEDMALite.

Parameters:
  • base – LPSPI peripheral base address.

  • handle – pointer to lpspi_master_edma_handle_t structure which stores the transfer state.

  • configFlags – transfer configuration flags. _lpspi_transfer_config_flag_for_master.

Return values:
  • kStatus_Success – Execution successfully.

  • kStatus_LPSPI_Busy – The LPSPI device is busy.

Returns:

Indicates whether LPSPI master transfer was successful or not.

status_t LPSPI_MasterTransferEDMALite(LPSPI_Type *base, lpspi_master_edma_handle_t *handle, lpspi_transfer_t *transfer)

LPSPI master transfer data using eDMA without configs.

This function transfers data using eDMA. This is a non-blocking function, which returns right away. When all data is transferred, the callback function is called.

Note: This API is only for transfer through DMA without configuration. Before calling this API, you must call LPSPI_MasterTransferPrepareEDMALite to configure it once. The transfer data size should be an integer multiple of bytesPerFrame if bytesPerFrame is less than or equal to 4. For bytesPerFrame greater than 4: The transfer data size should be equal to bytesPerFrame if the bytesPerFrame is not an integer multiple of 4. Otherwise, the transfer data size can be an integer multiple of bytesPerFrame.

Parameters:
  • base – LPSPI peripheral base address.

  • handle – pointer to lpspi_master_edma_handle_t structure which stores the transfer state.

  • transfer – pointer to lpspi_transfer_t structure, config field is not uesed.

Return values:
  • kStatus_Success – Execution successfully.

  • kStatus_LPSPI_Busy – The LPSPI device is busy.

  • kStatus_InvalidArgument – The transfer structure is invalid.

Returns:

Indicates whether LPSPI master transfer was successful or not.

void LPSPI_MasterTransferAbortEDMA(LPSPI_Type *base, lpspi_master_edma_handle_t *handle)

LPSPI master aborts a transfer which is using eDMA.

This function aborts a transfer which is using eDMA.

Parameters:
  • base – LPSPI peripheral base address.

  • handle – pointer to lpspi_master_edma_handle_t structure which stores the transfer state.

status_t LPSPI_MasterTransferGetCountEDMA(LPSPI_Type *base, lpspi_master_edma_handle_t *handle, size_t *count)

Gets the master eDMA transfer remaining bytes.

This function gets the master eDMA transfer remaining bytes.

Parameters:
  • base – LPSPI peripheral base address.

  • handle – pointer to lpspi_master_edma_handle_t structure which stores the transfer state.

  • count – Number of bytes transferred so far by the EDMA transaction.

Returns:

status of status_t.

void LPSPI_SlaveTransferCreateHandleEDMA(LPSPI_Type *base, lpspi_slave_edma_handle_t *handle, lpspi_slave_edma_transfer_callback_t callback, void *userData, edma_handle_t *edmaRxRegToRxDataHandle, edma_handle_t *edmaTxDataToTxRegHandle)

Initializes the LPSPI slave eDMA handle.

This function initializes the LPSPI eDMA handle which can be used for other LPSPI transactional APIs. Usually, for a specified LPSPI instance, call this API once to get the initialized handle.

Note that LPSPI eDMA has a separated (Rx and Tx as two sources) or shared (Rx and Tx as the same source) DMA request source.

(1) For a separated DMA request source, enable and set the Rx DMAMUX source for edmaRxRegToRxDataHandle and Tx DMAMUX source for edmaTxDataToTxRegHandle. (2) For a shared DMA request source, enable and set the Rx/Rx DMAMUX source for edmaRxRegToRxDataHandle .

Parameters:
  • base – LPSPI peripheral base address.

  • handle – LPSPI handle pointer to lpspi_slave_edma_handle_t.

  • callback – LPSPI callback.

  • userData – callback function parameter.

  • edmaRxRegToRxDataHandle – edmaRxRegToRxDataHandle pointer to edma_handle_t.

  • edmaTxDataToTxRegHandle – edmaTxDataToTxRegHandle pointer to edma_handle_t.

status_t LPSPI_SlaveTransferEDMA(LPSPI_Type *base, lpspi_slave_edma_handle_t *handle, lpspi_transfer_t *transfer)

LPSPI slave transfers data using eDMA.

This function transfers data using eDMA. This is a non-blocking function, which return right away. When all data is transferred, the callback function is called.

Note: The transfer data size should be an integer multiple of bytesPerFrame if bytesPerFrame is less than or equal to 4. For bytesPerFrame greater than 4: The transfer data size should be equal to bytesPerFrame if the bytesPerFrame is not an integer multiple of 4. Otherwise, the transfer data size can be an integer multiple of bytesPerFrame.

Parameters:
  • base – LPSPI peripheral base address.

  • handle – pointer to lpspi_slave_edma_handle_t structure which stores the transfer state.

  • transfer – pointer to lpspi_transfer_t structure.

Returns:

status of status_t.

void LPSPI_SlaveTransferAbortEDMA(LPSPI_Type *base, lpspi_slave_edma_handle_t *handle)

LPSPI slave aborts a transfer which is using eDMA.

This function aborts a transfer which is using eDMA.

Parameters:
  • base – LPSPI peripheral base address.

  • handle – pointer to lpspi_slave_edma_handle_t structure which stores the transfer state.

status_t LPSPI_SlaveTransferGetCountEDMA(LPSPI_Type *base, lpspi_slave_edma_handle_t *handle, size_t *count)

Gets the slave eDMA transfer remaining bytes.

This function gets the slave eDMA transfer remaining bytes.

Parameters:
  • base – LPSPI peripheral base address.

  • handle – pointer to lpspi_slave_edma_handle_t structure which stores the transfer state.

  • count – Number of bytes transferred so far by the eDMA transaction.

Returns:

status of status_t.

struct _lpspi_master_edma_handle
#include <fsl_lpspi_edma.h>

LPSPI master eDMA transfer handle structure used for transactional API.

Public Members

volatile bool isPcsContinuous

Is PCS continuous in transfer.

volatile bool isByteSwap

A flag that whether should byte swap.

uint32_t totalByteCount

Number of transfer bytes

uint8_t nbytes

eDMA minor byte transfer count initially configured.

uint32_t txBuffIfNull

Used if there is not txData for DMA purpose.

uint32_t rxBuffIfNull

Used if there is not rxData for DMA purpose.

uint32_t transmitCommand

Used to write TCR for DMA purpose.

volatile int8_t oneFifoBlockRxWatermark

Used to change RXWATER in FCR for DMA purpose.

volatile int8_t lastBytesRxWatermark

Used to change RXWATER in FCR for DMA purpose.

volatile uint8_t state

LPSPI transfer state , _lpspi_transfer_state.

lpspi_master_edma_transfer_callback_t callback

Completion callback.

void *userData

Callback user data.

edma_handle_t *edmaRxRegToRxDataHandle

edma_handle_t handle point used for RxReg to RxData buff

edma_handle_t *edmaTxDataToTxRegHandle

edma_handle_t handle point used for TxData to TxReg buff

edma_tcd_t lpspiSoftwareTCD[6]

SoftwareTCD, internal used

struct _lpspi_slave_edma_handle
#include <fsl_lpspi_edma.h>

LPSPI slave eDMA transfer handle structure used for transactional API.

Public Members

uint32_t totalByteCount

Number of transfer bytes

uint8_t nbytes

eDMA minor byte transfer count initially configured.

uint32_t txBuffIfNull

Used if there is not txData for DMA purpose.

uint32_t rxBuffIfNull

Used if there is not rxData for DMA purpose.

volatile int8_t oneFifoBlockRxWatermark

Used to change RXWATER in FCR for DMA purpose.

volatile int8_t lastBytesRxWatermark

Used to change RXWATER in FCR for DMA purpose.

volatile uint8_t state

LPSPI transfer state.

lpspi_slave_edma_transfer_callback_t callback

Completion callback.

void *userData

Callback user data.

edma_handle_t *edmaRxRegToRxDataHandle

edma_handle_t handle point used for RxReg to RxData buff

edma_handle_t *edmaTxDataToTxRegHandle

edma_handle_t handle point used for TxData to TxReg

edma_tcd_t lpspiSoftwareTCD[5]

SoftwareTCD, internal used

LPTMR: Low-Power Timer

void LPTMR_Init(LPTMR_Type *base, const lptmr_config_t *config)

Ungates the LPTMR clock and configures the peripheral for a basic operation.

Note

This API should be called at the beginning of the application using the LPTMR driver.

Parameters:
  • base – LPTMR peripheral base address

  • config – A pointer to the LPTMR configuration structure.

void LPTMR_Deinit(LPTMR_Type *base)

Gates the LPTMR clock.

Parameters:
  • base – LPTMR peripheral base address

void LPTMR_GetDefaultConfig(lptmr_config_t *config)

Fills in the LPTMR configuration structure with default settings.

The default values are as follows.

config->timerMode = kLPTMR_TimerModeTimeCounter;
config->pinSelect = kLPTMR_PinSelectInput_0;
config->pinPolarity = kLPTMR_PinPolarityActiveHigh;
config->enableFreeRunning = false;
config->bypassPrescaler = true;
config->prescalerClockSource = kLPTMR_PrescalerClock_1;
config->value = kLPTMR_Prescale_Glitch_0;

Parameters:
  • config – A pointer to the LPTMR configuration structure.

static inline void LPTMR_EnableInterrupts(LPTMR_Type *base, uint32_t mask)

Enables the selected LPTMR interrupts.

Parameters:
  • base – LPTMR peripheral base address

  • mask – The interrupts to enable. This is a logical OR of members of the enumeration lptmr_interrupt_enable_t

static inline void LPTMR_DisableInterrupts(LPTMR_Type *base, uint32_t mask)

Disables the selected LPTMR interrupts.

Parameters:
  • base – LPTMR peripheral base address

  • mask – The interrupts to disable. This is a logical OR of members of the enumeration lptmr_interrupt_enable_t.

static inline uint32_t LPTMR_GetEnabledInterrupts(LPTMR_Type *base)

Gets the enabled LPTMR interrupts.

Parameters:
  • base – LPTMR peripheral base address

Returns:

The enabled interrupts. This is the logical OR of members of the enumeration lptmr_interrupt_enable_t

static inline uint32_t LPTMR_GetStatusFlags(LPTMR_Type *base)

Gets the LPTMR status flags.

Parameters:
  • base – LPTMR peripheral base address

Returns:

The status flags. This is the logical OR of members of the enumeration lptmr_status_flags_t

static inline void LPTMR_ClearStatusFlags(LPTMR_Type *base, uint32_t mask)

Clears the LPTMR status flags.

Parameters:
  • base – LPTMR peripheral base address

  • mask – The status flags to clear. This is a logical OR of members of the enumeration lptmr_status_flags_t.

static inline void LPTMR_SetTimerPeriod(LPTMR_Type *base, uint32_t ticks)

Sets the timer period in units of count.

Timers counts from 0 until it equals the count value set here. The count value is written to the CMR register.

Note

  1. The TCF flag is set with the CNR equals the count provided here and then increments.

  2. Call the utility macros provided in the fsl_common.h to convert to ticks.

Parameters:
  • base – LPTMR peripheral base address

  • ticks – A timer period in units of ticks

static inline uint32_t LPTMR_GetCurrentTimerCount(LPTMR_Type *base)

Reads the current timer counting value.

This function returns the real-time timer counting value in a range from 0 to a timer period.

Note

Call the utility macros provided in the fsl_common.h to convert ticks to usec or msec.

Parameters:
  • base – LPTMR peripheral base address

Returns:

The current counter value in ticks

static inline void LPTMR_StartTimer(LPTMR_Type *base)

Starts the timer.

After calling this function, the timer counts up to the CMR register value. Each time the timer reaches the CMR value and then increments, it generates a trigger pulse and sets the timeout interrupt flag. An interrupt is also triggered if the timer interrupt is enabled.

Parameters:
  • base – LPTMR peripheral base address

static inline void LPTMR_StopTimer(LPTMR_Type *base)

Stops the timer.

This function stops the timer and resets the timer’s counter register.

Parameters:
  • base – LPTMR peripheral base address

FSL_LPTMR_DRIVER_VERSION

Driver Version

enum _lptmr_pin_select

LPTMR pin selection used in pulse counter mode.

Values:

enumerator kLPTMR_PinSelectInput_0

Pulse counter input 0 is selected

enumerator kLPTMR_PinSelectInput_1

Pulse counter input 1 is selected

enumerator kLPTMR_PinSelectInput_2

Pulse counter input 2 is selected

enumerator kLPTMR_PinSelectInput_3

Pulse counter input 3 is selected

enum _lptmr_pin_polarity

LPTMR pin polarity used in pulse counter mode.

Values:

enumerator kLPTMR_PinPolarityActiveHigh

Pulse Counter input source is active-high

enumerator kLPTMR_PinPolarityActiveLow

Pulse Counter input source is active-low

enum _lptmr_timer_mode

LPTMR timer mode selection.

Values:

enumerator kLPTMR_TimerModeTimeCounter

Time Counter mode

enumerator kLPTMR_TimerModePulseCounter

Pulse Counter mode

enum _lptmr_prescaler_glitch_value

LPTMR prescaler/glitch filter values.

Values:

enumerator kLPTMR_Prescale_Glitch_0

Prescaler divide 2, glitch filter does not support this setting

enumerator kLPTMR_Prescale_Glitch_1

Prescaler divide 4, glitch filter 2

enumerator kLPTMR_Prescale_Glitch_2

Prescaler divide 8, glitch filter 4

enumerator kLPTMR_Prescale_Glitch_3

Prescaler divide 16, glitch filter 8

enumerator kLPTMR_Prescale_Glitch_4

Prescaler divide 32, glitch filter 16

enumerator kLPTMR_Prescale_Glitch_5

Prescaler divide 64, glitch filter 32

enumerator kLPTMR_Prescale_Glitch_6

Prescaler divide 128, glitch filter 64

enumerator kLPTMR_Prescale_Glitch_7

Prescaler divide 256, glitch filter 128

enumerator kLPTMR_Prescale_Glitch_8

Prescaler divide 512, glitch filter 256

enumerator kLPTMR_Prescale_Glitch_9

Prescaler divide 1024, glitch filter 512

enumerator kLPTMR_Prescale_Glitch_10

Prescaler divide 2048 glitch filter 1024

enumerator kLPTMR_Prescale_Glitch_11

Prescaler divide 4096, glitch filter 2048

enumerator kLPTMR_Prescale_Glitch_12

Prescaler divide 8192, glitch filter 4096

enumerator kLPTMR_Prescale_Glitch_13

Prescaler divide 16384, glitch filter 8192

enumerator kLPTMR_Prescale_Glitch_14

Prescaler divide 32768, glitch filter 16384

enumerator kLPTMR_Prescale_Glitch_15

Prescaler divide 65536, glitch filter 32768

enum _lptmr_prescaler_clock_select

LPTMR prescaler/glitch filter clock select.

Note

Clock connections are SoC-specific

Values:

enum _lptmr_interrupt_enable

List of the LPTMR interrupts.

Values:

enumerator kLPTMR_TimerInterruptEnable

Timer interrupt enable

enum _lptmr_status_flags

List of the LPTMR status flags.

Values:

enumerator kLPTMR_TimerCompareFlag

Timer compare flag

typedef enum _lptmr_pin_select lptmr_pin_select_t

LPTMR pin selection used in pulse counter mode.

typedef enum _lptmr_pin_polarity lptmr_pin_polarity_t

LPTMR pin polarity used in pulse counter mode.

typedef enum _lptmr_timer_mode lptmr_timer_mode_t

LPTMR timer mode selection.

typedef enum _lptmr_prescaler_glitch_value lptmr_prescaler_glitch_value_t

LPTMR prescaler/glitch filter values.

typedef enum _lptmr_prescaler_clock_select lptmr_prescaler_clock_select_t

LPTMR prescaler/glitch filter clock select.

Note

Clock connections are SoC-specific

typedef enum _lptmr_interrupt_enable lptmr_interrupt_enable_t

List of the LPTMR interrupts.

typedef enum _lptmr_status_flags lptmr_status_flags_t

List of the LPTMR status flags.

typedef struct _lptmr_config lptmr_config_t

LPTMR config structure.

This structure holds the configuration settings for the LPTMR peripheral. To initialize this structure to reasonable defaults, call the LPTMR_GetDefaultConfig() function and pass a pointer to your configuration structure instance.

The configuration struct can be made constant so it resides in flash.

static inline void LPTMR_EnableTimerDMA(LPTMR_Type *base, bool enable)

Enable or disable timer DMA request.

Parameters:
  • base – base LPTMR peripheral base address

  • enable – Switcher of timer DMA feature. “true” means to enable, “false” means to disable.

struct _lptmr_config
#include <fsl_lptmr.h>

LPTMR config structure.

This structure holds the configuration settings for the LPTMR peripheral. To initialize this structure to reasonable defaults, call the LPTMR_GetDefaultConfig() function and pass a pointer to your configuration structure instance.

The configuration struct can be made constant so it resides in flash.

Public Members

lptmr_timer_mode_t timerMode

Time counter mode or pulse counter mode

lptmr_pin_select_t pinSelect

LPTMR pulse input pin select; used only in pulse counter mode

lptmr_pin_polarity_t pinPolarity

LPTMR pulse input pin polarity; used only in pulse counter mode

bool enableFreeRunning

True: enable free running, counter is reset on overflow False: counter is reset when the compare flag is set

bool bypassPrescaler

True: bypass prescaler; false: use clock from prescaler

lptmr_prescaler_clock_select_t prescalerClockSource

LPTMR clock source

lptmr_prescaler_glitch_value_t value

Prescaler or glitch filter value

LPUART: Low Power Universal Asynchronous Receiver/Transmitter Driver

LPUART Driver

static inline void LPUART_SoftwareReset(LPUART_Type *base)

Resets the LPUART using software.

This function resets all internal logic and registers except the Global Register. Remains set until cleared by software.

Parameters:
  • base – LPUART peripheral base address.

status_t LPUART_Init(LPUART_Type *base, const lpuart_config_t *config, uint32_t srcClock_Hz)

Initializes an LPUART instance with the user configuration structure and the peripheral clock.

This function configures the LPUART module with user-defined settings. Call the LPUART_GetDefaultConfig() function to configure the configuration structure and get the default configuration. The example below shows how to use this API to configure the LPUART.

lpuart_config_t lpuartConfig;
lpuartConfig.baudRate_Bps = 115200U;
lpuartConfig.parityMode = kLPUART_ParityDisabled;
lpuartConfig.dataBitsCount = kLPUART_EightDataBits;
lpuartConfig.isMsb = false;
lpuartConfig.stopBitCount = kLPUART_OneStopBit;
lpuartConfig.txFifoWatermark = 0;
lpuartConfig.rxFifoWatermark = 1;
LPUART_Init(LPUART1, &lpuartConfig, 20000000U);

Parameters:
  • base – LPUART peripheral base address.

  • config – Pointer to a user-defined configuration structure.

  • srcClock_Hz – LPUART clock source frequency in HZ.

Return values:
  • kStatus_LPUART_BaudrateNotSupport – Baudrate is not support in current clock source.

  • kStatus_Success – LPUART initialize succeed

void LPUART_Deinit(LPUART_Type *base)

Deinitializes a LPUART instance.

This function waits for transmit to complete, disables TX and RX, and disables the LPUART clock.

Parameters:
  • base – LPUART peripheral base address.

void LPUART_GetDefaultConfig(lpuart_config_t *config)

Gets the default configuration structure.

This function initializes the LPUART configuration structure to a default value. The default values are: lpuartConfig->baudRate_Bps = 115200U; lpuartConfig->parityMode = kLPUART_ParityDisabled; lpuartConfig->dataBitsCount = kLPUART_EightDataBits; lpuartConfig->isMsb = false; lpuartConfig->stopBitCount = kLPUART_OneStopBit; lpuartConfig->txFifoWatermark = 0; lpuartConfig->rxFifoWatermark = 1; lpuartConfig->rxIdleType = kLPUART_IdleTypeStartBit; lpuartConfig->rxIdleConfig = kLPUART_IdleCharacter1; lpuartConfig->enableTx = false; lpuartConfig->enableRx = false;

Parameters:
  • config – Pointer to a configuration structure.

status_t LPUART_SetBaudRate(LPUART_Type *base, uint32_t baudRate_Bps, uint32_t srcClock_Hz)

Sets the LPUART instance baudrate.

This function configures the LPUART module baudrate. This function is used to update the LPUART module baudrate after the LPUART module is initialized by the LPUART_Init.

LPUART_SetBaudRate(LPUART1, 115200U, 20000000U);

Parameters:
  • base – LPUART peripheral base address.

  • baudRate_Bps – LPUART baudrate to be set.

  • srcClock_Hz – LPUART clock source frequency in HZ.

Return values:
  • kStatus_LPUART_BaudrateNotSupport – Baudrate is not supported in the current clock source.

  • kStatus_Success – Set baudrate succeeded.

void LPUART_Enable9bitMode(LPUART_Type *base, bool enable)

Enable 9-bit data mode for LPUART.

This function set the 9-bit mode for LPUART module. The 9th bit is not used for parity thus can be modified by user.

Parameters:
  • base – LPUART peripheral base address.

  • enable – true to enable, flase to disable.

static inline void LPUART_SetMatchAddress(LPUART_Type *base, uint16_t address1, uint16_t address2)

Set the LPUART address.

This function configures the address for LPUART module that works as slave in 9-bit data mode. One or two address fields can be configured. When the address field’s match enable bit is set, the frame it receices with MSB being 1 is considered as an address frame, otherwise it is considered as data frame. Once the address frame matches one of slave’s own addresses, this slave is addressed. This address frame and its following data frames are stored in the receive buffer, otherwise the frames will be discarded. To un-address a slave, just send an address frame with unmatched address.

Note

Any LPUART instance joined in the multi-slave system can work as slave. The position of the address mark is the same as the parity bit when parity is enabled for 8 bit and 9 bit data formats.

Parameters:
  • base – LPUART peripheral base address.

  • address1 – LPUART slave address1.

  • address2 – LPUART slave address2.

static inline void LPUART_EnableMatchAddress(LPUART_Type *base, bool match1, bool match2)

Enable the LPUART match address feature.

Parameters:
  • base – LPUART peripheral base address.

  • match1 – true to enable match address1, false to disable.

  • match2 – true to enable match address2, false to disable.

static inline void LPUART_SetRxFifoWatermark(LPUART_Type *base, uint8_t water)

Sets the rx FIFO watermark.

Parameters:
  • base – LPUART peripheral base address.

  • water – Rx FIFO watermark.

static inline void LPUART_SetTxFifoWatermark(LPUART_Type *base, uint8_t water)

Sets the tx FIFO watermark.

Parameters:
  • base – LPUART peripheral base address.

  • water – Tx FIFO watermark.

static inline void LPUART_TransferEnable16Bit(lpuart_handle_t *handle, bool enable)

Sets the LPUART using 16bit transmit, only for 9bit or 10bit mode.

This function Enable 16bit Data transmit in lpuart_handle_t.

Parameters:
  • handle – LPUART handle pointer.

  • enable – true to enable, false to disable.

uint32_t LPUART_GetStatusFlags(LPUART_Type *base)

Gets LPUART status flags.

This function gets all LPUART status flags. The flags are returned as the logical OR value of the enumerators _lpuart_flags. To check for a specific status, compare the return value with enumerators in the _lpuart_flags. For example, to check whether the TX is empty:

if (kLPUART_TxDataRegEmptyFlag & LPUART_GetStatusFlags(LPUART1))
{
    ...
}

Parameters:
  • base – LPUART peripheral base address.

Returns:

LPUART status flags which are ORed by the enumerators in the _lpuart_flags.

status_t LPUART_ClearStatusFlags(LPUART_Type *base, uint32_t mask)

Clears status flags with a provided mask.

This function clears LPUART status flags with a provided mask. Automatically cleared flags can’t be cleared by this function. Flags that can only cleared or set by hardware are: kLPUART_TxDataRegEmptyFlag, kLPUART_TransmissionCompleteFlag, kLPUART_RxDataRegFullFlag, kLPUART_RxActiveFlag, kLPUART_NoiseErrorInRxDataRegFlag, kLPUART_ParityErrorInRxDataRegFlag, kLPUART_TxFifoEmptyFlag,kLPUART_RxFifoEmptyFlag Note: This API should be called when the Tx/Rx is idle, otherwise it takes no effects.

Parameters:
  • base – LPUART peripheral base address.

  • mask – the status flags to be cleared. The user can use the enumerators in the _lpuart_status_flag_t to do the OR operation and get the mask.

Return values:
  • kStatus_LPUART_FlagCannotClearManually – The flag can’t be cleared by this function but it is cleared automatically by hardware.

  • kStatus_Success – Status in the mask are cleared.

Returns:

0 succeed, others failed.

void LPUART_EnableInterrupts(LPUART_Type *base, uint32_t mask)

Enables LPUART interrupts according to a provided mask.

This function enables the LPUART interrupts according to a provided mask. The mask is a logical OR of enumeration members. See the _lpuart_interrupt_enable. This examples shows how to enable TX empty interrupt and RX full interrupt:

LPUART_EnableInterrupts(LPUART1,kLPUART_TxDataRegEmptyInterruptEnable | kLPUART_RxDataRegFullInterruptEnable);

Parameters:
  • base – LPUART peripheral base address.

  • mask – The interrupts to enable. Logical OR of the enumeration _uart_interrupt_enable.

void LPUART_DisableInterrupts(LPUART_Type *base, uint32_t mask)

Disables LPUART interrupts according to a provided mask.

This function disables the LPUART interrupts according to a provided mask. The mask is a logical OR of enumeration members. See _lpuart_interrupt_enable. This example shows how to disable the TX empty interrupt and RX full interrupt:

LPUART_DisableInterrupts(LPUART1,kLPUART_TxDataRegEmptyInterruptEnable | kLPUART_RxDataRegFullInterruptEnable);

Parameters:
  • base – LPUART peripheral base address.

  • mask – The interrupts to disable. Logical OR of _lpuart_interrupt_enable.

uint32_t LPUART_GetEnabledInterrupts(LPUART_Type *base)

Gets enabled LPUART interrupts.

This function gets the enabled LPUART interrupts. The enabled interrupts are returned as the logical OR value of the enumerators _lpuart_interrupt_enable. To check a specific interrupt enable status, compare the return value with enumerators in _lpuart_interrupt_enable. For example, to check whether the TX empty interrupt is enabled:

uint32_t enabledInterrupts = LPUART_GetEnabledInterrupts(LPUART1);

if (kLPUART_TxDataRegEmptyInterruptEnable & enabledInterrupts)
{
    ...
}

Parameters:
  • base – LPUART peripheral base address.

Returns:

LPUART interrupt flags which are logical OR of the enumerators in _lpuart_interrupt_enable.

static inline uint32_t LPUART_GetDataRegisterAddress(LPUART_Type *base)

Gets the LPUART data register address.

This function returns the LPUART data register address, which is mainly used by the DMA/eDMA.

Parameters:
  • base – LPUART peripheral base address.

Returns:

LPUART data register addresses which are used both by the transmitter and receiver.

static inline void LPUART_EnableTxDMA(LPUART_Type *base, bool enable)

Enables or disables the LPUART transmitter DMA request.

This function enables or disables the transmit data register empty flag, STAT[TDRE], to generate DMA requests.

Parameters:
  • base – LPUART peripheral base address.

  • enable – True to enable, false to disable.

static inline void LPUART_EnableRxDMA(LPUART_Type *base, bool enable)

Enables or disables the LPUART receiver DMA.

This function enables or disables the receiver data register full flag, STAT[RDRF], to generate DMA requests.

Parameters:
  • base – LPUART peripheral base address.

  • enable – True to enable, false to disable.

uint32_t LPUART_GetInstance(LPUART_Type *base)

Get the LPUART instance from peripheral base address.

Parameters:
  • base – LPUART peripheral base address.

Returns:

LPUART instance.

static inline void LPUART_EnableTx(LPUART_Type *base, bool enable)

Enables or disables the LPUART transmitter.

This function enables or disables the LPUART transmitter.

Parameters:
  • base – LPUART peripheral base address.

  • enable – True to enable, false to disable.

static inline void LPUART_EnableRx(LPUART_Type *base, bool enable)

Enables or disables the LPUART receiver.

This function enables or disables the LPUART receiver.

Parameters:
  • base – LPUART peripheral base address.

  • enable – True to enable, false to disable.

static inline void LPUART_WriteByte(LPUART_Type *base, uint8_t data)

Writes to the transmitter register.

This function writes data to the transmitter register directly. The upper layer must ensure that the TX register is empty or that the TX FIFO has room before calling this function.

Parameters:
  • base – LPUART peripheral base address.

  • data – Data write to the TX register.

static inline uint8_t LPUART_ReadByte(LPUART_Type *base)

Reads the receiver register.

This function reads data from the receiver register directly. The upper layer must ensure that the receiver register is full or that the RX FIFO has data before calling this function.

Parameters:
  • base – LPUART peripheral base address.

Returns:

Data read from data register.

static inline uint8_t LPUART_GetRxFifoCount(LPUART_Type *base)

Gets the rx FIFO data count.

Parameters:
  • base – LPUART peripheral base address.

Returns:

rx FIFO data count.

static inline uint8_t LPUART_GetTxFifoCount(LPUART_Type *base)

Gets the tx FIFO data count.

Parameters:
  • base – LPUART peripheral base address.

Returns:

tx FIFO data count.

void LPUART_SendAddress(LPUART_Type *base, uint8_t address)

Transmit an address frame in 9-bit data mode.

Parameters:
  • base – LPUART peripheral base address.

  • address – LPUART slave address.

status_t LPUART_WriteBlocking(LPUART_Type *base, const uint8_t *data, size_t length)

Writes to the transmitter register using a blocking method.

This function polls the transmitter register, first waits for the register to be empty or TX FIFO to have room, and writes data to the transmitter buffer, then waits for the dat to be sent out to the bus.

Parameters:
  • base – LPUART peripheral base address.

  • data – Start address of the data to write.

  • length – Size of the data to write.

Return values:
  • kStatus_LPUART_Timeout – Transmission timed out and was aborted.

  • kStatus_Success – Successfully wrote all data.

status_t LPUART_WriteBlocking16bit(LPUART_Type *base, const uint16_t *data, size_t length)

Writes to the transmitter register using a blocking method in 9bit or 10bit mode.

Note

This function only support 9bit or 10bit transfer. Please make sure only 10bit of data is valid and other bits are 0.

Parameters:
  • base – LPUART peripheral base address.

  • data – Start address of the data to write.

  • length – Size of the data to write.

Return values:
  • kStatus_LPUART_Timeout – Transmission timed out and was aborted.

  • kStatus_Success – Successfully wrote all data.

status_t LPUART_ReadBlocking(LPUART_Type *base, uint8_t *data, size_t length)

Reads the receiver data register using a blocking method.

This function polls the receiver register, waits for the receiver register full or receiver FIFO has data, and reads data from the TX register.

Parameters:
  • base – LPUART peripheral base address.

  • data – Start address of the buffer to store the received data.

  • length – Size of the buffer.

Return values:
  • kStatus_LPUART_RxHardwareOverrun – Receiver overrun happened while receiving data.

  • kStatus_LPUART_NoiseError – Noise error happened while receiving data.

  • kStatus_LPUART_FramingError – Framing error happened while receiving data.

  • kStatus_LPUART_ParityError – Parity error happened while receiving data.

  • kStatus_LPUART_Timeout – Transmission timed out and was aborted.

  • kStatus_Success – Successfully received all data.

status_t LPUART_ReadBlocking16bit(LPUART_Type *base, uint16_t *data, size_t length)

Reads the receiver data register in 9bit or 10bit mode.

Note

This function only support 9bit or 10bit transfer.

Parameters:
  • base – LPUART peripheral base address.

  • data – Start address of the buffer to store the received data by 16bit, only 10bit is valid.

  • length – Size of the buffer.

Return values:
  • kStatus_LPUART_RxHardwareOverrun – Receiver overrun happened while receiving data.

  • kStatus_LPUART_NoiseError – Noise error happened while receiving data.

  • kStatus_LPUART_FramingError – Framing error happened while receiving data.

  • kStatus_LPUART_ParityError – Parity error happened while receiving data.

  • kStatus_LPUART_Timeout – Transmission timed out and was aborted.

  • kStatus_Success – Successfully received all data.

void LPUART_TransferCreateHandle(LPUART_Type *base, lpuart_handle_t *handle, lpuart_transfer_callback_t callback, void *userData)

Initializes the LPUART handle.

This function initializes the LPUART handle, which can be used for other LPUART transactional APIs. Usually, for a specified LPUART instance, call this API once to get the initialized handle.

The LPUART driver supports the “background” receiving, which means that user can set up an RX ring buffer optionally. Data received is stored into the ring buffer even when the user doesn’t call the LPUART_TransferReceiveNonBlocking() API. If there is already data received in the ring buffer, the user can get the received data from the ring buffer directly. The ring buffer is disabled if passing NULL as ringBuffer.

Parameters:
  • base – LPUART peripheral base address.

  • handle – LPUART handle pointer.

  • callback – Callback function.

  • userData – User data.

status_t LPUART_TransferSendNonBlocking(LPUART_Type *base, lpuart_handle_t *handle, lpuart_transfer_t *xfer)

Transmits a buffer of data using the interrupt method.

This function send data using an interrupt method. This is a non-blocking function, which returns directly without waiting for all data written to the transmitter register. When all data is written to the TX register in the ISR, the LPUART driver calls the callback function and passes the kStatus_LPUART_TxIdle as status parameter.

Note

The kStatus_LPUART_TxIdle is passed to the upper layer when all data are written to the TX register. However, there is no check to ensure that all the data sent out. Before disabling the TX, check the kLPUART_TransmissionCompleteFlag to ensure that the transmit is finished.

Parameters:
  • base – LPUART peripheral base address.

  • handle – LPUART handle pointer.

  • xfer – LPUART transfer structure, see lpuart_transfer_t.

Return values:
  • kStatus_Success – Successfully start the data transmission.

  • kStatus_LPUART_TxBusy – Previous transmission still not finished, data not all written to the TX register.

  • kStatus_InvalidArgument – Invalid argument.

void LPUART_TransferStartRingBuffer(LPUART_Type *base, lpuart_handle_t *handle, uint8_t *ringBuffer, size_t ringBufferSize)

Sets up the RX ring buffer.

This function sets up the RX ring buffer to a specific UART handle.

When the RX ring buffer is used, data received is stored into the ring buffer even when the user doesn’t call the UART_TransferReceiveNonBlocking() API. If there is already data received in the ring buffer, the user can get the received data from the ring buffer directly.

Note

When using RX ring buffer, one byte is reserved for internal use. In other words, if ringBufferSize is 32, then only 31 bytes are used for saving data.

Parameters:
  • base – LPUART peripheral base address.

  • handle – LPUART handle pointer.

  • ringBuffer – Start address of ring buffer for background receiving. Pass NULL to disable the ring buffer.

  • ringBufferSize – size of the ring buffer.

void LPUART_TransferStopRingBuffer(LPUART_Type *base, lpuart_handle_t *handle)

Aborts the background transfer and uninstalls the ring buffer.

This function aborts the background transfer and uninstalls the ring buffer.

Parameters:
  • base – LPUART peripheral base address.

  • handle – LPUART handle pointer.

size_t LPUART_TransferGetRxRingBufferLength(LPUART_Type *base, lpuart_handle_t *handle)

Get the length of received data in RX ring buffer.

Parameters:
  • base – LPUART peripheral base address.

  • handle – LPUART handle pointer.

Returns:

Length of received data in RX ring buffer.

void LPUART_TransferAbortSend(LPUART_Type *base, lpuart_handle_t *handle)

Aborts the interrupt-driven data transmit.

This function aborts the interrupt driven data sending. The user can get the remainBtyes to find out how many bytes are not sent out.

Parameters:
  • base – LPUART peripheral base address.

  • handle – LPUART handle pointer.

status_t LPUART_TransferGetSendCount(LPUART_Type *base, lpuart_handle_t *handle, uint32_t *count)

Gets the number of bytes that have been sent out to bus.

This function gets the number of bytes that have been sent out to bus by an interrupt method.

Parameters:
  • base – LPUART peripheral base address.

  • handle – LPUART handle pointer.

  • count – Send bytes count.

Return values:
  • kStatus_NoTransferInProgress – No send in progress.

  • kStatus_InvalidArgument – Parameter is invalid.

  • kStatus_Success – Get successfully through the parameter count;

status_t LPUART_TransferReceiveNonBlocking(LPUART_Type *base, lpuart_handle_t *handle, lpuart_transfer_t *xfer, size_t *receivedBytes)

Receives a buffer of data using the interrupt method.

This function receives data using an interrupt method. This is a non-blocking function which returns without waiting to ensure that all data are received. If the RX ring buffer is used and not empty, the data in the ring buffer is copied and the parameter receivedBytes shows how many bytes are copied from the ring buffer. After copying, if the data in the ring buffer is not enough for read, the receive request is saved by the LPUART driver. When the new data arrives, the receive request is serviced first. When all data is received, the LPUART driver notifies the upper layer through a callback function and passes a status parameter kStatus_UART_RxIdle. For example, the upper layer needs 10 bytes but there are only 5 bytes in ring buffer. The 5 bytes are copied to xfer->data, which returns with the parameter receivedBytes set to 5. For the remaining 5 bytes, the newly arrived data is saved from xfer->data[5]. When 5 bytes are received, the LPUART driver notifies the upper layer. If the RX ring buffer is not enabled, this function enables the RX and RX interrupt to receive data to xfer->data. When all data is received, the upper layer is notified.

Parameters:
  • base – LPUART peripheral base address.

  • handle – LPUART handle pointer.

  • xfer – LPUART transfer structure, see uart_transfer_t.

  • receivedBytes – Bytes received from the ring buffer directly.

Return values:
  • kStatus_Success – Successfully queue the transfer into the transmit queue.

  • kStatus_LPUART_RxBusy – Previous receive request is not finished.

  • kStatus_InvalidArgument – Invalid argument.

void LPUART_TransferAbortReceive(LPUART_Type *base, lpuart_handle_t *handle)

Aborts the interrupt-driven data receiving.

This function aborts the interrupt-driven data receiving. The user can get the remainBytes to find out how many bytes not received yet.

Parameters:
  • base – LPUART peripheral base address.

  • handle – LPUART handle pointer.

status_t LPUART_TransferGetReceiveCount(LPUART_Type *base, lpuart_handle_t *handle, uint32_t *count)

Gets the number of bytes that have been received.

This function gets the number of bytes that have been received.

Parameters:
  • base – LPUART peripheral base address.

  • handle – LPUART handle pointer.

  • count – Receive bytes count.

Return values:
  • kStatus_NoTransferInProgress – No receive in progress.

  • kStatus_InvalidArgument – Parameter is invalid.

  • kStatus_Success – Get successfully through the parameter count;

void LPUART_TransferHandleIRQ(uint32_t instance, void *irqHandle)

LPUART IRQ handle function.

This function handles the LPUART transmit and receive IRQ request.

Parameters:
  • instance – LPUART instance.

  • irqHandle – LPUART handle pointer.

void LPUART_TransferHandleErrorIRQ(LPUART_Type *base, void *irqHandle)

LPUART Error IRQ handle function.

This function handles the LPUART error IRQ request.

Parameters:
  • base – LPUART peripheral base address.

  • irqHandle – LPUART handle pointer.

FSL_LPUART_DRIVER_VERSION

LPUART driver version.

Error codes for the LPUART driver.

Values:

enumerator kStatus_LPUART_TxBusy

TX busy

enumerator kStatus_LPUART_RxBusy

RX busy

enumerator kStatus_LPUART_TxIdle

LPUART transmitter is idle.

enumerator kStatus_LPUART_RxIdle

LPUART receiver is idle.

enumerator kStatus_LPUART_TxWatermarkTooLarge

TX FIFO watermark too large

enumerator kStatus_LPUART_RxWatermarkTooLarge

RX FIFO watermark too large

enumerator kStatus_LPUART_FlagCannotClearManually

Some flag can’t manually clear

enumerator kStatus_LPUART_Error

Error happens on LPUART.

enumerator kStatus_LPUART_RxRingBufferOverrun

LPUART RX software ring buffer overrun.

enumerator kStatus_LPUART_RxHardwareOverrun

LPUART RX receiver overrun.

enumerator kStatus_LPUART_NoiseError

LPUART noise error.

enumerator kStatus_LPUART_FramingError

LPUART framing error.

enumerator kStatus_LPUART_ParityError

LPUART parity error.

enumerator kStatus_LPUART_BaudrateNotSupport

Baudrate is not support in current clock source

enumerator kStatus_LPUART_IdleLineDetected

IDLE flag.

enumerator kStatus_LPUART_Timeout

LPUART times out.

enum _lpuart_parity_mode

LPUART parity mode.

Values:

enumerator kLPUART_ParityDisabled

Parity disabled

enumerator kLPUART_ParityEven

Parity enabled, type even, bit setting: PE|PT = 10

enumerator kLPUART_ParityOdd

Parity enabled, type odd, bit setting: PE|PT = 11

enum _lpuart_data_bits

LPUART data bits count.

Values:

enumerator kLPUART_EightDataBits

Eight data bit

enumerator kLPUART_SevenDataBits

Seven data bit

enum _lpuart_stop_bit_count

LPUART stop bit count.

Values:

enumerator kLPUART_OneStopBit

One stop bit

enumerator kLPUART_TwoStopBit

Two stop bits

enum _lpuart_transmit_cts_source

LPUART transmit CTS source.

Values:

enumerator kLPUART_CtsSourcePin

CTS resource is the LPUART_CTS pin.

enumerator kLPUART_CtsSourceMatchResult

CTS resource is the match result.

enum _lpuart_transmit_cts_config

LPUART transmit CTS configure.

Values:

enumerator kLPUART_CtsSampleAtStart

CTS input is sampled at the start of each character.

enumerator kLPUART_CtsSampleAtIdle

CTS input is sampled when the transmitter is idle

enum _lpuart_idle_type_select

LPUART idle flag type defines when the receiver starts counting.

Values:

enumerator kLPUART_IdleTypeStartBit

Start counting after a valid start bit.

enumerator kLPUART_IdleTypeStopBit

Start counting after a stop bit.

enum _lpuart_idle_config

LPUART idle detected configuration. This structure defines the number of idle characters that must be received before the IDLE flag is set.

Values:

enumerator kLPUART_IdleCharacter1

the number of idle characters.

enumerator kLPUART_IdleCharacter2

the number of idle characters.

enumerator kLPUART_IdleCharacter4

the number of idle characters.

enumerator kLPUART_IdleCharacter8

the number of idle characters.

enumerator kLPUART_IdleCharacter16

the number of idle characters.

enumerator kLPUART_IdleCharacter32

the number of idle characters.

enumerator kLPUART_IdleCharacter64

the number of idle characters.

enumerator kLPUART_IdleCharacter128

the number of idle characters.

enum _lpuart_interrupt_enable

LPUART interrupt configuration structure, default settings all disabled.

This structure contains the settings for all LPUART interrupt configurations.

Values:

enumerator kLPUART_CtsStateChangeInterruptEnable

Change of state on CTS_B pin. bit 0

enumerator kLPUART_DsrStateChangeInterruptEnable

Change of state on DSR_B pin. bit 1

enumerator kLPUART_RinStateChangeInterruptEnable

Change of state on RIN_B pin. bit 2

enumerator kLPUART_DcdStateChangeInterruptEnable

Change of state on DCD_B pin. bit 3

enumerator kLPUART_RxActiveEdgeInterruptEnable

Receive Active Edge. bit 6

enumerator kLPUART_LinBreakInterruptEnable

LIN break detect. bit 7

enumerator kLPUART_RxFifoUnderflowInterruptEnable

Receive FIFO Underflow. bit 8

enumerator kLPUART_TxFifoOverflowInterruptEnable

Transmit FIFO Overflow. bit 9

enumerator kLPUART_RxCounter0TimeoutInterruptEnable

Receiver counter0 timeout. bit 10

enumerator kLPUART_RxCounter1TimeoutInterruptEnable

Receiver counter1 timeout. bit 11

enumerator kLPUART_TxCounter0TimeoutInterruptEnable

Transmitter counter0 timeout. bit 12

enumerator kLPUART_TxCounter1TimeoutInterruptEnable

Transmitter counter1 timeout. bit 13

enumerator kLPUART_DataMatch2InterruptEnable

The next character to be read from LPUART_DATA matches MA2. bit 14

enumerator kLPUART_DataMatch1InterruptEnable

The next character to be read from LPUART_DATA matches MA1. bit 15

enumerator kLPUART_IdleLineInterruptEnable

Idle line. bit 20

enumerator kLPUART_RxDataRegFullInterruptEnable

Receiver data register full. bit 21

enumerator kLPUART_TransmissionCompleteInterruptEnable

Transmission complete. bit 22

enumerator kLPUART_TxDataRegEmptyInterruptEnable

Transmit data register empty. bit 23

enumerator kLPUART_ParityErrorInterruptEnable

Parity error flag. bit 24

enumerator kLPUART_FramingErrorInterruptEnable

Framing error flag. bit 25

enumerator kLPUART_NoiseErrorInterruptEnable

Noise error flag. bit 26

enumerator kLPUART_RxOverrunInterruptEnable

Receiver Overrun. bit 27

enumerator kLPUART_AllInterruptEnable
enum _lpuart_flags

LPUART status flags.

This provides constants for the LPUART status flags for use in the LPUART functions.

Values:

enumerator kLPUART_RxFifoUnderflowFlag

RXUF bit, sets if receive buffer underflow occurred. bit 0

enumerator kLPUART_TxFifoOverflowFlag

TXOF bit, sets if transmit buffer overflow occurred. bit 1

enumerator kLPUART_RxFifoEmptyFlag

RXEMPT bit, sets if receive buffer is empty. bit 6

enumerator kLPUART_TxFifoEmptyFlag

TXEMPT bit, sets if transmit buffer is empty. bit 7

enumerator kLPUART_CtsStateChangeFlag

Change of state on CTS_B pin. bit 2

enumerator kLPUART_DsrStateChangeFlag

Change of state on DSR_B pin. bit 3

enumerator kLPUART_RinStateChangeFlag

Change of state on RIN_B pin. bit 4

enumerator kLPUART_DcdStateChangeFlag

Change of state on DCD_B pin. bit 5

enumerator kLPUART_RxCounter0TimeoutFlag

Receiver counter0 timeout. bit 10

enumerator kLPUART_RxCounter1TimeoutFlag

Receiver counter1 timeout. bit 11

enumerator kLPUART_TxCounter0TimeoutFlag

Transmitter counter0 timeout. bit 12

enumerator kLPUART_TxCounter1TimeoutFlag

Transmitter counter1 timeout. bit 13

enumerator kLPUART_DataMatch2Flag

The next character to be read from LPUART_DATA matches MA2. bit 14

enumerator kLPUART_DataMatch1Flag

The next character to be read from LPUART_DATA matches MA1. bit 15

enumerator kLPUART_ParityErrorFlag

If parity enabled, sets upon parity error detection. bit 16

enumerator kLPUART_FramingErrorFlag

Frame error flag, sets if logic 0 was detected where stop bit expected. bit 17

enumerator kLPUART_NoiseErrorFlag

Receive takes 3 samples of each received bit. If any of these samples differ, noise flag sets. bit 18

enumerator kLPUART_RxOverrunFlag

Receive Overrun, sets when new data is received before data is read from receive register. bit 19

enumerator kLPUART_IdleLineFlag

Idle line detect flag, sets when idle line detected. bit 20

enumerator kLPUART_RxDataRegFullFlag

Receive data register full flag, sets when the receive data buffer is full. bit 21

enumerator kLPUART_TransmissionCompleteFlag

Transmission complete flag, sets when transmission activity complete. bit 22

enumerator kLPUART_TxDataRegEmptyFlag

Transmit data register empty flag, sets when transmit buffer is empty. bit 23

enumerator kLPUART_RxActiveFlag

Receiver Active Flag (RAF), sets at beginning of valid start. bit 24

enumerator kLPUART_RxActiveEdgeFlag

Receive pin active edge interrupt flag, sets when active edge detected. bit 30

enumerator kLPUART_LinBreakFlag

LIN break detect interrupt flag, sets when LIN break char detected and LIN circuit enabled. bit 31

enumerator kLPUART_AllClearFlags
enumerator kLPUART_AllFlags
enum _lpuart_timeout_condition

LPUART timeout condition. This structure defines the conditions when the counter timeout occur.

Values:

enumerator kLPUART_TimeoutAfterCharacters

Timeout occurs when the number of characters specified by timeoutValue are received.

enumerator kLPUART_TimeoutAfterIdle

Timeout occurs when rx/tx remains idle for timeoutValue of bit clocks after idle condition is detected.

enumerator kLPUART_TimeoutAfterNext

Timeout occurs when rx/tx remains idle for timeoutValue of bit clocks after next character is received/transmitted.

enumerator kLPUART_TimeoutAfterIdleBeforeExtended

Timeout occurs when tx/rx is idle for larger than timeoutValue of bit clocks and smaller than tx/rx extended timeout value.

typedef enum _lpuart_parity_mode lpuart_parity_mode_t

LPUART parity mode.

typedef enum _lpuart_data_bits lpuart_data_bits_t

LPUART data bits count.

typedef enum _lpuart_stop_bit_count lpuart_stop_bit_count_t

LPUART stop bit count.

typedef enum _lpuart_transmit_cts_source lpuart_transmit_cts_source_t

LPUART transmit CTS source.

typedef enum _lpuart_transmit_cts_config lpuart_transmit_cts_config_t

LPUART transmit CTS configure.

typedef enum _lpuart_idle_type_select lpuart_idle_type_select_t

LPUART idle flag type defines when the receiver starts counting.

typedef enum _lpuart_idle_config lpuart_idle_config_t

LPUART idle detected configuration. This structure defines the number of idle characters that must be received before the IDLE flag is set.

typedef enum _lpuart_timeout_condition lpuart_timeout_condition_t

LPUART timeout condition. This structure defines the conditions when the counter timeout occur.

typedef struct _lpuart_timeout_counter_config lpuart_timeout_counter_config_t

LPUART timeout counter configuration structure.

typedef struct _lpuart_timeout_config lpuart_timeout_config_t

LPUART timeout configuration structure.

typedef struct _lpuart_config lpuart_config_t

LPUART configuration structure.

typedef struct _lpuart_transfer lpuart_transfer_t

LPUART transfer structure.

typedef struct _lpuart_handle lpuart_handle_t
typedef void (*lpuart_transfer_callback_t)(LPUART_Type *base, lpuart_handle_t *handle, status_t status, void *userData)

LPUART transfer callback function.

typedef void (*lpuart_irq_handler_t)(uint32_t instance, void *handle)
const IRQn_Type s_lpuartIRQ[]
UART_RETRY_TIMES

Retry times for waiting flag.

struct _lpuart_timeout_counter_config
#include <fsl_lpuart.h>

LPUART timeout counter configuration structure.

Public Members

bool enableCounter

Eneble the timeout counter.

lpuart_timeout_condition_t timeoutCondition

Timeout condition.

uint16_t timeoutValue

Timeout value.

struct _lpuart_timeout_config
#include <fsl_lpuart.h>

LPUART timeout configuration structure.

Public Members

uint16_t rxExtendedTimeoutValue

The number of bits since the last stop bit that is required for an idle condition to be detected. Enable this will disable rxIdleType and rxIdleConfig. Set to 0 to disable.

uint16_t txExtendedTimeoutValue

The transmitter idle time in number of bits (baud rate) whenever an idle character is queued through the transmit FIFO.

lpuart_timeout_counter_config_t rxCounter0

Rx counter 0 configuration.

lpuart_timeout_counter_config_t rxCounter1

Rx counter 1 configuration.

lpuart_timeout_counter_config_t txCounter0

Tx counter 0 configuration.

lpuart_timeout_counter_config_t txCounter1

Tx counter 1 configuration.

struct _lpuart_config
#include <fsl_lpuart.h>

LPUART configuration structure.

Public Members

uint32_t baudRate_Bps

LPUART baud rate

lpuart_parity_mode_t parityMode

Parity mode, disabled (default), even, odd

lpuart_data_bits_t dataBitsCount

Data bits count, eight (default), seven

bool isMsb

Data bits order, LSB (default), MSB

lpuart_stop_bit_count_t stopBitCount

Number of stop bits, 1 stop bit (default) or 2 stop bits

uint8_t txFifoWatermark

TX FIFO watermark

uint8_t rxFifoWatermark

RX FIFO watermark

bool enableRxRTS

RX RTS enable

bool enableTxCTS

TX CTS enable

lpuart_transmit_cts_source_t txCtsSource

TX CTS source

lpuart_transmit_cts_config_t txCtsConfig

TX CTS configure

lpuart_idle_type_select_t rxIdleType

RX IDLE type.

lpuart_idle_config_t rxIdleConfig

RX IDLE configuration.

lpuart_timeout_config_t timeoutConfig

Timeout configuration.

bool enableSingleWire

Use TXD pin as the source for the receiver. When enabled the TXD pin should be configured as open drain.

uint8_t rtsDelay

Delay the negation of RTS by the configured number of bit clocks.

bool enableTx

Enable TX

bool enableRx

Enable RX

struct _lpuart_transfer
#include <fsl_lpuart.h>

LPUART transfer structure.

Public Members

size_t dataSize

The byte count to be transfer.

struct _lpuart_handle
#include <fsl_lpuart.h>

LPUART handle structure.

Public Members

volatile size_t txDataSize

Size of the remaining data to send.

size_t txDataSizeAll

Size of the data to send out.

volatile size_t rxDataSize

Size of the remaining data to receive.

size_t rxDataSizeAll

Size of the data to receive.

size_t rxRingBufferSize

Size of the ring buffer.

volatile uint16_t rxRingBufferHead

Index for the driver to store received data into ring buffer.

volatile uint16_t rxRingBufferTail

Index for the user to get data from the ring buffer.

lpuart_transfer_callback_t callback

Callback function.

void *userData

LPUART callback function parameter.

volatile uint8_t txState

TX transfer state.

volatile uint8_t rxState

RX transfer state.

bool isSevenDataBits

Seven data bits flag.

bool is16bitData

16bit data bits flag, only used for 9bit or 10bit data

union __unnamed166__

Public Members

uint8_t *data

The buffer of data to be transfer.

uint8_t *rxData

The buffer to receive data.

uint16_t *rxData16

The buffer to receive data.

const uint8_t *txData

The buffer of data to be sent.

const uint16_t *txData16

The buffer of data to be sent.

union __unnamed168__

Public Members

const uint8_t *volatile txData

Address of remaining data to send.

const uint16_t *volatile txData16

Address of remaining data to send.

union __unnamed170__

Public Members

uint8_t *volatile rxData

Address of remaining data to receive.

uint16_t *volatile rxData16

Address of remaining data to receive.

union __unnamed172__

Public Members

uint8_t *rxRingBuffer

Start address of the receiver ring buffer.

uint16_t *rxRingBuffer16

Start address of the receiver ring buffer.

LPUART eDMA Driver

void LPUART_TransferCreateHandleEDMA(LPUART_Type *base, lpuart_edma_handle_t *handle, lpuart_edma_transfer_callback_t callback, void *userData, edma_handle_t *txEdmaHandle, edma_handle_t *rxEdmaHandle)

Initializes the LPUART handle which is used in transactional functions.

Note

This function disables all LPUART interrupts.

Parameters:
  • base – LPUART peripheral base address.

  • handle – Pointer to lpuart_edma_handle_t structure.

  • callback – Callback function.

  • userData – User data.

  • txEdmaHandle – User requested DMA handle for TX DMA transfer.

  • rxEdmaHandle – User requested DMA handle for RX DMA transfer.

status_t LPUART_SendEDMA(LPUART_Type *base, lpuart_edma_handle_t *handle, lpuart_transfer_t *xfer)

Sends data using eDMA.

This function sends data using eDMA. This is a non-blocking function, which returns right away. When all data is sent, the send callback function is called.

Parameters:
  • base – LPUART peripheral base address.

  • handle – LPUART handle pointer.

  • xfer – LPUART eDMA transfer structure. See lpuart_transfer_t.

Return values:
  • kStatus_Success – if succeed, others failed.

  • kStatus_LPUART_TxBusy – Previous transfer on going.

  • kStatus_InvalidArgument – Invalid argument.

status_t LPUART_ReceiveEDMA(LPUART_Type *base, lpuart_edma_handle_t *handle, lpuart_transfer_t *xfer)

Receives data using eDMA.

This function receives data using eDMA. This is non-blocking function, which returns right away. When all data is received, the receive callback function is called.

Parameters:
  • base – LPUART peripheral base address.

  • handle – Pointer to lpuart_edma_handle_t structure.

  • xfer – LPUART eDMA transfer structure, see lpuart_transfer_t.

Return values:
  • kStatus_Success – if succeed, others fail.

  • kStatus_LPUART_RxBusy – Previous transfer ongoing.

  • kStatus_InvalidArgument – Invalid argument.

void LPUART_TransferAbortSendEDMA(LPUART_Type *base, lpuart_edma_handle_t *handle)

Aborts the sent data using eDMA.

This function aborts the sent data using eDMA.

Parameters:
  • base – LPUART peripheral base address.

  • handle – Pointer to lpuart_edma_handle_t structure.

void LPUART_TransferAbortReceiveEDMA(LPUART_Type *base, lpuart_edma_handle_t *handle)

Aborts the received data using eDMA.

This function aborts the received data using eDMA.

Parameters:
  • base – LPUART peripheral base address.

  • handle – Pointer to lpuart_edma_handle_t structure.

status_t LPUART_TransferGetSendCountEDMA(LPUART_Type *base, lpuart_edma_handle_t *handle, uint32_t *count)

Gets the number of bytes written to the LPUART TX register.

This function gets the number of bytes written to the LPUART TX register by DMA.

Parameters:
  • base – LPUART peripheral base address.

  • handle – LPUART handle pointer.

  • count – Send bytes count.

Return values:
  • kStatus_NoTransferInProgress – No send in progress.

  • kStatus_InvalidArgument – Parameter is invalid.

  • kStatus_Success – Get successfully through the parameter count;

status_t LPUART_TransferGetReceiveCountEDMA(LPUART_Type *base, lpuart_edma_handle_t *handle, uint32_t *count)

Gets the number of received bytes.

This function gets the number of received bytes.

Parameters:
  • base – LPUART peripheral base address.

  • handle – LPUART handle pointer.

  • count – Receive bytes count.

Return values:
  • kStatus_NoTransferInProgress – No receive in progress.

  • kStatus_InvalidArgument – Parameter is invalid.

  • kStatus_Success – Get successfully through the parameter count;

void LPUART_TransferEdmaHandleIRQ(uint32_t instance, void *lpuartEdmaHandle)

LPUART eDMA IRQ handle function.

This function handles the LPUART tx complete IRQ request and invoke user callback. It is not set to static so that it can be used in user application.

Note

This function is used as default IRQ handler by double weak mechanism. If user’s specific IRQ handler is implemented, make sure this function is invoked in the handler.

Parameters:
  • instance – LPUART peripheral index.

  • lpuartEdmaHandle – LPUART handle pointer.

FSL_LPUART_EDMA_DRIVER_VERSION

LPUART EDMA driver version.

typedef struct _lpuart_edma_handle lpuart_edma_handle_t
typedef void (*lpuart_edma_transfer_callback_t)(LPUART_Type *base, lpuart_edma_handle_t *handle, status_t status, void *userData)

LPUART transfer callback function.

struct _lpuart_edma_handle
#include <fsl_lpuart_edma.h>

LPUART eDMA handle.

Public Members

lpuart_edma_transfer_callback_t callback

Callback function.

void *userData

LPUART callback function parameter.

size_t rxDataSizeAll

Size of the data to receive.

size_t txDataSizeAll

Size of the data to send out.

edma_handle_t *txEdmaHandle

The eDMA TX channel used.

edma_handle_t *rxEdmaHandle

The eDMA RX channel used.

uint8_t nbytes

eDMA minor byte transfer count initially configured.

volatile uint8_t txState

TX transfer state.

volatile uint8_t rxState

RX transfer state

Mailbox

static inline void MAILBOX_Init(MAILBOX_Type *base)

Initializes the MAILBOX module.

This function enables the MAILBOX clock only.

Parameters:
  • base – MAILBOX peripheral base address.

static inline void MAILBOX_Deinit(MAILBOX_Type *base)

De-initializes the MAILBOX module.

This function disables the MAILBOX clock only.

Parameters:
  • base – MAILBOX peripheral base address.

FSL_MAILBOX_DRIVER_VERSION

MAILBOX driver version.

static inline uint32_t MAILBOX_GetMutex(MAILBOX_Type *base)

Get MUTEX state and lock mutex.

Note

Returns ‘1’ if the mutex was taken or ‘0’ if another resources has the mutex locked. Once a mutex is taken, it can be returned with the MAILBOX_SetMutex() function.

Parameters:
  • base – MAILBOX peripheral base address.

Returns:

See note

static inline void MAILBOX_SetMutex(MAILBOX_Type *base)

Set MUTEX state.

Note

Sets mutex state to ‘1’ and allows other resources to get the mutex.

Parameters:
  • base – MAILBOX peripheral base address.

FSL_COMPONENT_ID

MCX_CMC: Core Mode Controller Driver

enum _cmc_power_mode_protection

CMC power mode Protection enumeration.

Values:

enumerator kCMC_AllowDeepSleepMode

Allow Deep Sleep mode.

enumerator kCMC_AllowPowerDownMode

Allow Power Down mode.

enumerator kCMC_AllowDeepPowerDownMode

Allow Deep Power Down mode.

enumerator kCMC_AllowAllLowPowerModes

Allow Deep Sleep, Power Down, Deep Power Down modes.

enum _cmc_wakeup_sources

Wake up sources from the previous low power mode entry.

Note

kCMC_WakeupFromUsbFs, kCMC_WakeupFromITRC, kCMC_WakeupFromCpu1 are not supported in MCXA family.

Values:

enumerator kCMC_WakeupFromResetInterruptOrPowerDown

Wakeup source is reset interrupt, or wake up from Deep Power Down.

enumerator kCMC_WakeupFromDebugReuqest

Wakeup source is debug request.

enumerator kCMC_WakeupFromInterrupt

Wakeup source is interrupt.

enumerator kCMC_WakeupFromDMAWakeup

Wakeup source is DMA Wakeup.

enumerator kCMC_WakeupFromWUURequest

Wakeup source is WUU request.

enumerator kCMC_WakeupFromUsbFs

Wakeup source is USBFS(USB0).

enumerator kCMC_WakeupFromITRC

Wakeup source is ITRC.

enumerator kCMC_WakeupFromCpu1

Wakeup source is CPU1.

enum _cmc_system_reset_interrupt_enable

System Reset Interrupt enable enumeration.

Values:

enumerator kCMC_PinResetInterruptEnable

Pin Reset interrupt enable.

enumerator kCMC_DAPResetInterruptEnable

DAP Reset interrupt enable.

enumerator kCMC_LowPowerAcknowledgeTimeoutResetInterruptEnable

Low Power Acknowledge Timeout Reset interrupt enable.

enumerator kCMC_SoftwareResetInterruptEnable

Software Reset interrupt enable.

enumerator kCMC_LockupResetInterruptEnable

Lockup Reset interrupt enable.

enum _cmc_system_reset_interrupt_flag

CMC System Reset Interrupt Status flag.

Values:

enumerator kCMC_PinResetInterruptFlag

Pin Reset interrupt flag.

enumerator kCMC_DAPResetInterruptFlag

DAP Reset interrupt flag.

enumerator kCMC_LowPowerAcknowledgeTimeoutResetFlag

Low Power Acknowledge Timeout Reset interrupt flag.

enumerator kCMC_SoftwareResetInterruptFlag

Software Reset interrupt flag.

enumerator kCMC_LockupResetInterruptFlag

Lock up Reset interrupt flag.

enum _cmc_system_sram_arrays

CMC System SRAM arrays low power mode enable enumeration.

Values:

enumerator kCMC_RAMX0

Used to control RAMX0.

enumerator kCMC_RAMX1

Used to control RAMX1.

enumerator kCMC_RAMX2

Used to control RAMX2.

enumerator kCMC_RAMB

Used to control RAMB.

enumerator kCMC_RAMC0

Used to control RAMC0.

enumerator kCMC_RAMC1

Used to control RAMC1.

enumerator kCMC_RAMD0

Used to control RAMD0.

enumerator kCMC_RAMD1

Used to control RAMD1.

enumerator kCMC_RAME0

Used to control RAME0.

enumerator kCMC_RAME1

Used to control RAME1.

enumerator kCMC_RAMF0

Used to control RAMF0.

enumerator kCMC_RAMF1

Used to control RAMF1.

enumerator kCMC_RAMG0_RAMG1

Used to control RAMG0 and RAMG1.

enumerator kCMC_RAMG2_RAMG3

Used to control RAMG2 and RAMG3.

enumerator kCMC_RAMH0_RAMH1

Used to control RAMH0 and RAMH1.

enumerator kCMC_LPCAC

Used to control LPCAC.

enumerator kCMC_DMA0_DMA1_PKC

Used to control DMA0, DMA1 and PKC.

enumerator kCMC_USB0

Used to control USB0.

enumerator kCMC_PQ

Used to control PQ.

enumerator kCMC_CAN0_CAN1_ENET_USB1

Used to control CAN0, CAN1, ENET, USB1.

enumerator kCMC_FlexSPI

Used to control FlexSPI.

enumerator kCMC_AllSramArrays

Mask of all System SRAM arrays.

enum _cmc_system_reset_sources

System reset sources enumeration.

Values:

enumerator kCMC_WakeUpReset

The reset caused by a wakeup from Power Down or Deep Power Down mode.

enumerator kCMC_PORReset

The reset caused by power on reset detection logic.

enumerator kCMC_WarmReset

The last reset source is a warm reset source.

enumerator kCMC_FatalReset

The last reset source is a fatal reset source.

enumerator kCMC_PinReset

The reset caused by the RESET_b pin.

enumerator kCMC_DAPReset

The reset caused by a reset request from the Debug Access port.

enumerator kCMC_ResetTimeout

The reset caused by a timeout or other error condition in the system reset generation.

enumerator kCMC_LowPowerAcknowledgeTimeoutReset

The reset caused by a timeout in low power mode entry logic.

enumerator kCMC_SCGReset

The reset caused by a loss of clock or loss of lock event in the SCG.

enumerator kCMC_SoftwareReset

The reset caused by a software reset request.

enumerator kCMC_LockUoReset

The reset caused by the ARM core indication of a LOCKUP event.

enumerator kCMC_JTAGSystemReset

The reset caused by a JTAG system reset request.

enum _cmc_core_clock_gate_status

Indicate the core clock was gated.

Values:

enumerator kCMC_CoreClockNotGated

Core clock not gated.

enumerator kCMC_CoreClockGated

Core clock was gated due to low power mode entry.

enum _cmc_clock_mode

CMC clock mode enumeration.

Values:

enumerator kCMC_GateNoneClock

No clock gating.

enumerator kCMC_GateCoreClock

Gate Core clock.

enumerator kCMC_GateCorePlatformClock

Gate Core clock and platform clock.

enumerator kCMC_GateAllSystemClocks

Gate all System clocks, without getting core entering into low power mode.

enumerator kCMC_GateAllSystemClocksEnterLowPowerMode

Gate all System clocks, with core entering into low power mode.

enum _cmc_low_power_mode

CMC power mode enumeration.

Values:

enumerator kCMC_ActiveOrSleepMode

Select Active/Sleep mode.

enumerator kCMC_DeepSleepMode

Select Deep Sleep mode when a core executes WFI or WFE instruction.

enumerator kCMC_PowerDownMode

Select Power Down mode when a core executes WFI or WFE instruction.

enumerator kCMC_DeepPowerDown

Select Deep Power Down mode when a core executes WFI or WFE instruction.

typedef enum _cmc_core_clock_gate_status cmc_core_clock_gate_status_t

Indicate the core clock was gated.

typedef enum _cmc_clock_mode cmc_clock_mode_t

CMC clock mode enumeration.

typedef enum _cmc_low_power_mode cmc_low_power_mode_t

CMC power mode enumeration.

typedef struct _cmc_reset_pin_config cmc_reset_pin_config_t

CMC reset pin configuration.

typedef struct _cmc_power_domain_config cmc_power_domain_config_t

power mode configuration for each power domain.

FSL_CMC_DRIVER_VERSION

CMC driver version 2.5.0.

void CMC_SetClockMode(CMC_Type *base, cmc_clock_mode_t mode)

Sets clock mode.

This function configs the amount of clock gating when the core asserts Sleeping due to WFI, WFE or SLEEPONEXIT.

Parameters:
  • base – CMC peripheral base address.

  • mode – System clock mode.

static inline void CMC_LockClockModeSetting(CMC_Type *base)

Locks the clock mode setting.

After invoking this function, any clock mode setting will be blocked.

Parameters:
  • base – CMC peripheral base address.

static inline cmc_core_clock_gate_status_t CMC_GetCoreClockGatedStatus(CMC_Type *base)

Gets the core clock gated status.

This function get the status to indicate whether the core clock is gated. The core clock gated status can be cleared by software.

Parameters:
  • base – CMC peripheral base address.

Returns:

The status to indicate whether the core clock is gated.

static inline void CMC_ClearCoreClockGatedStatus(CMC_Type *base)

Clears the core clock gated status.

This function clear clock status flag by software.

Parameters:
  • base – CMC peripheral base address.

static inline uint8_t CMC_GetWakeupSource(CMC_Type *base)

Gets the Wakeup Source.

This function gets the Wakeup sources from the previous low power mode entry.

Parameters:
  • base – CMC peripheral base address.

Returns:

The Wakeup sources from the previous low power mode entry. See _cmc_wakeup_sources for details.

static inline cmc_clock_mode_t CMC_GetClockMode(CMC_Type *base)

Gets the Clock mode.

This function gets the clock mode of the previous low power mode entry.

Parameters:
  • base – CMC peripheral base address.

Returns:

The Low Power status.

static inline uint32_t CMC_GetSystemResetStatus(CMC_Type *base)

Gets the System reset status.

This function returns the system reset status. Those status updates on every MAIN Warm Reset to indicate the type/source of the most recent reset.

Parameters:
  • base – CMC peripheral base address.

Returns:

The most recent system reset status. See _cmc_system_reset_sources for details.

static inline uint32_t CMC_GetStickySystemResetStatus(CMC_Type *base)

Gets the sticky system reset status since the last WAKE Cold Reset.

This function gets all source of system reset that have generated a system reset since the last WAKE Cold Reset, and that have not been cleared by software.

Parameters:
  • base – CMC peripheral base address.

Returns:

System reset status that have not been cleared by software. See _cmc_system_reset_sources for details.

static inline void CMC_ClearStickySystemResetStatus(CMC_Type *base, uint32_t mask)

Clears the sticky system reset status flags.

Parameters:
  • base – CMC peripheral base address.

  • mask – Bitmap of the sticky system reset status to be cleared.

static inline uint8_t CMC_GetResetCount(CMC_Type *base)

Gets the number of reset sequences completed since the last Cold Reset.

Parameters:
  • base – CMC peripheral base address.

Returns:

The number of reset sequences.

void CMC_SetPowerModeProtection(CMC_Type *base, uint32_t allowedModes)

Configures all power mode protection settings.

This function configures the power mode protection settings for supported power modes. This should be done before set the lowPower mode for each power doamin.

The allowed lowpower modes are passed as bit map. For example, to allow Sleep and DeepSleep, use CMC_SetPowerModeProtection(CMC_base, kCMC_AllowSleepMode|kCMC_AllowDeepSleepMode). To allow all low power modes, use CMC_SetPowerModeProtection(CMC_base, kCMC_AllowAllLowPowerModes).

Parameters:
  • base – CMC peripheral base address.

  • allowedModes – Bitmaps of the allowed power modes. See _cmc_power_mode_protection for details.

static inline void CMC_LockPowerModeProtectionSetting(CMC_Type *base)

Locks the power mode protection.

This function locks the power mode protection. After invoking this function, any power mode protection setting will be ignored.

Parameters:
  • base – CMC peripheral base address.

static inline void CMC_SetGlobalPowerMode(CMC_Type *base, cmc_low_power_mode_t lowPowerMode)

Config the same lowPower mode for all power domain.

This function configures the same low power mode for MAIN power domian and WAKE power domain.

Parameters:
  • base – CMC peripheral base address.

  • lowPowerMode – The desired lowPower mode. See cmc_low_power_mode_t for details.

static inline void CMC_SetMAINPowerMode(CMC_Type *base, cmc_low_power_mode_t lowPowerMode)

Configures entry into low power mode for the MAIN Power domain.

This function configures the low power mode for the MAIN power domian, when the core executes WFI/WFE instruction. The available lowPower modes are defined in the cmc_low_power_mode_t.

Parameters:
  • base – CMC peripheral base address.

  • lowPowerMode – The desired lowPower mode. See cmc_low_power_mode_t for details.

static inline cmc_low_power_mode_t CMC_GetMAINPowerMode(CMC_Type *base)

Gets the power mode of the MAIN Power domain.

Parameters:
  • base – CMC peripheral base address.

Returns:

The power mode of MAIN Power domain. See cmc_low_power_mode_t for details.

void CMC_ConfigResetPin(CMC_Type *base, const cmc_reset_pin_config_t *config)

Configure reset pin.

This function configures reset pin. When enabled, the low power filter is enabled in both Active and Low power modes, the reset filter is only enabled in Active mode. When both filers are enabled, they operate in series.

Parameters:
  • base – CMC peripheral base address.

  • config – Pointer to the reset pin config structure.

static inline void CMC_EnableSystemResetInterrupt(CMC_Type *base, uint32_t mask)

Enable system reset interrupts.

This function enables the system reset interrupts. The assertion of non-fatal warm reset can be delayed for 258 cycles of the 32K_CLK clock while an enabled interrupt is generated. Then Software can perform a graceful shutdown or abort the non-fatal warm reset provided the pending reset source is cleared by resetting the reset source and then clearing the pending flag.

Parameters:
  • base – CMC peripheral base address.

  • mask – System reset interrupts. See _cmc_system_reset_interrupt_enable for details.

static inline void CMC_DisableSystemResetInterrupt(CMC_Type *base, uint32_t mask)

Disable system reset interrupts.

This function disables the system reset interrupts.

Parameters:
  • base – CMC peripheral base address.

  • mask – System reset interrupts. See _cmc_system_reset_interrupt_enable for details.

static inline uint32_t CMC_GetSystemResetInterruptFlags(CMC_Type *base)

Gets System Reset interrupt flags.

This function returns the System reset interrupt flags.

Parameters:
  • base – CMC peripheral base address.

Returns:

System reset interrupt flags. See _cmc_system_reset_interrupt_flag for details.

static inline void CMC_ClearSystemResetInterruptFlags(CMC_Type *base, uint32_t mask)

Clears System Reset interrupt flags.

This function clears system reset interrupt flags. The pending reset source can be cleared by resetting the source of the reset and then clearing the pending flags.

Parameters:
  • base – CMC peripheral base address.

  • mask – System Reset interrupt flags. See _cmc_system_reset_interrupt_flag for details.

static inline void CMC_EnableNonMaskablePinInterrupt(CMC_Type *base, bool enable)

Enable/Disable Non maskable Pin interrupt.

Parameters:
  • base – CMC peripheral base address.

  • enable – Enable or disable Non maskable pin interrupt. true - enable Non-maskable pin interrupt. false - disable Non-maskable pin interupt.

static inline uint8_t CMC_GetISPMODEPinLogic(CMC_Type *base)

Gets the logic state of the ISPMODE_n pin.

This function returns the logic state of the ISPMODE_n pin on the last negation of RESET_b pin.

Parameters:
  • base – CMC peripheral base address.

Returns:

The logic state of the ISPMODE_n pin on the last negation of RESET_b pin.

static inline void CMC_ClearISPMODEPinLogic(CMC_Type *base)

Clears ISPMODE_n pin state.

Parameters:
  • base – CMC peripheral base address.

static inline void CMC_ForceBootConfiguration(CMC_Type *base, bool assert)

Set the logic state of the BOOT_CONFIGn pin.

This function force the logic state of the Boot_Confign pin to assert on next system reset.

Parameters:
  • base – CMC peripheral base address.

  • assert – Assert the corresponding pin or not. true - Assert corresponding pin on next system reset. false - No effect.

static inline uint32_t CMC_GetBootRomStatus(CMC_Type *base)

Gets the status information written by the BootROM.

Parameters:
  • base – CMC peripheral base address.

Returns:

The status information written by the BootROM.

static inline void CMC_SetBootRomStatus(CMC_Type *base, uint32_t statValue)

Sets the bootROM status value.

Note

This function is useful when result of CMC_CheckBootRomRegisterWrittable() is true.

Parameters:
  • base – CMC peripheral base address.

  • stat – The state value to set.

static inline bool CMC_CheckBootRomRegisterWrittable(CMC_Type *base)

Check if BootROM status and lock registers is writtable.

Parameters:
  • base – CMC peripheral base address.

Returns:

The result of whether BootROM status and lock register is writtable.

  • true BootROM status and lock registers are writtable;

  • false BootROM status and lock registers are not writtable.

static inline void CMC_LockBootRomStatusWritten(CMC_Type *base)

After invoking this function, BootROM status and lock registers cannot be written.

Parameters:
  • base – CMC peripheral base address.

static inline void CMC_UnlockBootRomStatusWritten(CMC_Type *base)

After invoking this function, BootROM status and lock register can be written.s.

Parameters:
  • base

void CMC_PowerOffSRAMAllMode(CMC_Type *base, uint32_t mask)

Power off the selected system SRAM always.

Note

This function power off the selected system SRAM always. The SRAM arrays should not be accessed while they are shut down. SRAM array contents are not retained if they are powered off.

Note

Once invoked, the previous settings will be overwritten.

Parameters:
  • base – CMC peripheral base address.

  • mask – Bitmap of the SRAM arrays to be powered off all modes. See _cmc_system_sram_arrays for details. Check Reference Manual for the SRAM region and mask bit relationship.

static inline void CMC_PowerOnSRAMAllMode(CMC_Type *base, uint32_t mask)

Power on SRAM during all mode.

Note

Once invoked, the previous settings will be overwritten.

Parameters:
  • base – CMC peripheral base address.

  • mask – Bitmap of the SRAM arrays to be powered on all modes. See _cmc_system_sram_arrays for details. Check Reference Manual for the SRAM region and mask bit relationship.

void CMC_PowerOffSRAMLowPowerOnly(CMC_Type *base, uint32_t mask)

Power off the selected system SRAM during low power modes only.

This function power off the selected system SRAM only during low power mode. SRAM array contents are not retained if they are power off.

Parameters:
  • base – CMC peripheral base address.

  • mask – Bitmap of the SRAM arrays to be power off during low power mode only. See _cmc_system_sram_arrays for details. Check Reference Manual for the SRAM region and mask bit relationship.

static inline void CMC_PowerOnSRAMLowPowerOnly(CMC_Type *base, uint32_t mask)

Power on the selected system SRAM during low power modes only.

This function power on the selected system SRAM. The SRAM arrray contents are retained in low power modes.

Parameters:
  • base – CMC peripheral base address.

  • mask – Bitmap of the SRAM arrays to be power on during low power mode only. See _cmc_system_sram_arrays for details. Check Reference Manual for the SRAM region and mask bit relationship.

void CMC_ConfigFlashMode(CMC_Type *base, bool doze, bool disable)

Configs the low power mode of the on-chip flash memory.

This function configs the low power mode of the on-chip flash memory.

Parameters:
  • base – CMC peripheral base address.

  • doze – true: Flash is disabled while core is sleeping false: No effect.

  • disable – true: Flash memory is placed in low power state. false: No effect.

static inline void CMC_EnableDebugOperation(CMC_Type *base, bool enable)

Enables/Disables debug Operation when the core sleep.

This function configs what happens to debug when core sleeps.

Parameters:
  • base – CMC peripheral base address.

  • enable – Enable or disable Debug when Core is sleeping. true - Debug remains enabled when the core is sleeping. false - Debug is disabled when the core is sleeping.

void CMC_PreEnterLowPowerMode(void)

Prepares to enter low power modes.

This function should be called before entering low power modes.

void CMC_PostExitLowPowerMode(void)

Recovers after wake up from low power modes.

This function should be called after wake up from low power modes. This function should be used with CMC_PreEnterLowPowerMode()

void CMC_GlobalEnterLowPowerMode(CMC_Type *base, cmc_low_power_mode_t lowPowerMode)

Configs the entry into the same low power mode for each power domains.

This function provides the feature to entry into the same low power mode for each power domains. Before invoking this function, please ensure the selected power mode have been allowed.

Parameters:
  • base – CMC peripheral base address.

  • lowPowerMode – The low power mode to be entered. See cmc_low_power_mode_t for the details.

void CMC_EnterLowPowerMode(CMC_Type *base, const cmc_power_domain_config_t *config)

Configs the entry into different low power modes for each power domains.

This function provides the feature to entry into different low power modes for each power domains. Before invoking this function please ensure the selected modes are allowed.

Parameters:
  • base – CMC peripheral base address.

  • config – Pointer to the cmc_power_domain_config_t structure.

bool lowpowerFilterEnable

Low Power Filter enable.

bool resetFilterEnable

Reset Filter enable.

uint8_t resetFilterWidth

Width of the Reset Filter.

cmc_clock_mode_t clock_mode

Clock mode for each power domain.

cmc_low_power_mode_t main_domain

The low power mode of the MAIN power domain.

struct _cmc_reset_pin_config
#include <fsl_cmc.h>

CMC reset pin configuration.

struct _cmc_power_domain_config
#include <fsl_cmc.h>

power mode configuration for each power domain.

ENET: Ethernet Driver

Mcx_enet

Defines the status return codes for transaction.

Values:

enumerator kStatus_ENET_InitMemoryFail

Status code 4000. Init failed since buffer memory was not enough.

enumerator kStatus_ENET_RxFrameError

Status code 4001. A frame received but data error occurred.

enumerator kStatus_ENET_RxFrameFail

Status code 4002. Failed to receive a frame.

enumerator kStatus_ENET_RxFrameEmpty

Status code 4003. No frame arrived.

enumerator kStatus_ENET_RxFrameDrop

Status code 4004. Rx frame was dropped since there’s no buffer memory.

enumerator kStatus_ENET_TxFrameBusy

Status code 4005. There were no resources for Tx operation.

enumerator kStatus_ENET_TxFrameFail

Status code 4006. Transmit frame failed.

enumerator kStatus_ENET_TxFrameOverLen

Status code 4007. Failed to send an oversize frame.

enum _enet_mii_mode

Defines the MII/RMII mode for data interface between the MAC and the PHY.

Values:

enumerator kENET_MiiMode

MII mode for data interface.

enumerator kENET_RmiiMode

RMII mode for data interface.

enum _enet_mii_speed

Defines the 10/100 Mbps speed for the MII data interface.

Values:

enumerator kENET_MiiSpeed10M

Speed 10 Mbps.

enumerator kENET_MiiSpeed100M

Speed 100 Mbps.

enum _enet_mii_duplex

Defines the half or full duplex for the MII data interface.

Values:

enumerator kENET_MiiHalfDuplex

Half duplex mode.

enumerator kENET_MiiFullDuplex

Full duplex mode.

enum _enet_dma_burstlen

Define the DMA maximum transmit burst length.

Values:

enumerator kENET_BurstLen1

DMA burst length 1.

enumerator kENET_BurstLen2

DMA burst length 2.

enumerator kENET_BurstLen4

DMA burst length 4.

enumerator kENET_BurstLen8

DMA burst length 8.

enumerator kENET_BurstLen16

DMA burst length 16.

enumerator kENET_BurstLen32

DMA burst length 32.

enumerator kENET_BurstLen64

DMA burst length 64. eight times enabled.

enumerator kENET_BurstLen128

DMA burst length 128. eight times enabled.

enumerator kENET_BurstLen256

DMA burst length 256. eight times enabled.

enum _enet_desc_flag

Define the flag for the descriptor.

Values:

enumerator kENET_MiddleFlag

It’s a middle descriptor of the frame.

enumerator kENET_LastFlagOnly

It’s the last descriptor of the frame.

enumerator kENET_FirstFlagOnly

It’s the first descriptor of the frame.

enumerator kENET_FirstLastFlag

It’s the first and last descriptor of the frame.

enum _enet_systime_op

Define the system time adjust operation control.

Values:

enumerator kENET_SystimeAdd

System time add to.

enumerator kENET_SystimeSubtract

System time subtract.

enum _enet_ts_rollover_type

Define the system time rollover control.

Values:

enumerator kENET_BinaryRollover

System time binary rollover.

enumerator kENET_DigitalRollover

System time digital rollover.

enum _enet_special_config

Defines some special configuration for ENET.

These control flags are provided for special user requirements. Normally, these is no need to set this control flags for ENET initialization. But if you have some special requirements, set the flags to specialControl in the enet_config_t.

Note

“kENET_StoreAndForward” is recommended to be set when the ENET_PTP1588FEATURE_REQUIRED is defined or else the timestamp will be mess-up when the overflow happens.

Values:

enumerator kENET_DescDoubleBuffer

The double buffer is used in the Tx/Rx descriptor.

enumerator kENET_StoreAndForward

The Rx/Tx store and forward enable.

enumerator kENET_PromiscuousEnable

The promiscuous enabled.

enumerator kENET_FlowControlEnable

The flow control enabled.

enumerator kENET_BroadCastRxDisable

The broadcast disabled.

enumerator kENET_MulticastAllEnable

All multicast are passed.

enumerator kENET_8023AS2KPacket

8023as support for 2K packets.

enumerator kENET_RxChecksumOffloadEnable

The Rx checksum offload enabled.

enum _enet_dma_interrupt_enable

List of DMA interrupts supported by the ENET interrupt. This enumeration uses one-hot encoding to allow a logical OR of multiple members.

Values:

enumerator kENET_DmaTx

Tx interrupt.

enumerator kENET_DmaTxStop

Tx stop interrupt.

enumerator kENET_DmaTxBuffUnavail

Tx buffer unavailable.

enumerator kENET_DmaRx

Rx interrupt.

enumerator kENET_DmaRxBuffUnavail

Rx buffer unavailable.

enumerator kENET_DmaRxStop

Rx stop.

enumerator kENET_DmaRxWatchdogTimeout

Rx watchdog timeout.

enumerator kENET_DmaEarlyTx

Early transmit.

enumerator kENET_DmaEarlyRx

Early receive.

enumerator kENET_DmaBusErr

Fatal bus error.

enum _enet_mac_interrupt_enable

List of mac interrupts supported by the ENET interrupt. This enumeration uses one-hot encoding to allow a logical OR of multiple members.

Values:

enumerator kENET_MacPmt
enumerator kENET_MacTimestamp
enum _enet_event

Defines the common interrupt event for callback use.

Values:

enumerator kENET_RxIntEvent

Receive interrupt event.

enumerator kENET_TxIntEvent

Transmit interrupt event.

enumerator kENET_WakeUpIntEvent

Wake up interrupt event.

enumerator kENET_TimeStampIntEvent

Time stamp interrupt event.

enum _enet_dma_tx_sche

Define the DMA transmit arbitration for multi-queue.

Values:

enumerator kENET_FixPri

Fixed priority. channel 0 has lower priority than channel 1.

enumerator kENET_WeightStrPri

Weighted(burst length) strict priority.

enumerator kENET_WeightRoundRobin

Weighted (weight factor) round robin.

enum _enet_mtl_multiqueue_txsche

Define the MTL Tx scheduling algorithm for multiple queues/rings.

Values:

enumerator kENET_txWeightRR

Tx weight round-robin.

enumerator kENET_txStrPrio

Tx strict priority.

enum _enet_mtl_multiqueue_rxsche

Define the MTL Rx scheduling algorithm for multiple queues/rings.

Values:

enumerator kENET_rxStrPrio

Tx weight round-robin, Rx strict priority.

enumerator kENET_rxWeightStrPrio

Tx strict priority, Rx weight strict priority.

enum _enet_mtl_rxqueuemap

Define the MTL Rx queue and DMA channel mapping.

Values:

enumerator kENET_StaticDirctMap

The received fame in Rx Qn(n = 0,1) direclty map to dma channel n.

enumerator kENET_DynamicMap

The received frame in Rx Qn(n = 0,1) map to the dma channel m(m = 0,1) related with the same Mac.

enum _enet_ptp_event_type

Defines the ENET PTP message related constant.

Values:

enumerator kENET_PtpEventMsgType

PTP event message type.

enumerator kENET_PtpSrcPortIdLen

PTP message sequence id length.

enumerator kENET_PtpEventPort

PTP event port number.

enumerator kENET_PtpGnrlPort

PTP general port number.

enum _enet_tx_offload

Define the Tx checksum offload options.

Values:

enumerator kENET_TxOffloadDisable

Disable Tx checksum offload.

enumerator kENET_TxOffloadIPHeader

Enable IP header checksum calculation and insertion.

enumerator kENET_TxOffloadIPHeaderPlusPayload

Enable IP header and payload checksum calculation and insertion.

enumerator kENET_TxOffloadAll

Enable IP header, payload and pseudo header checksum calculation and insertion.

enum _enet_vlan_tpid

Ethernet VLAN Tag protocol identifiers.

Values:

enumerator kENET_StanCvlan

C-VLAN 0x8100.

enumerator kENET_StanSvlan

S-VLAN 0x88A8.

enum _enet_vlan_ops

Ethernet VLAN operations.

Values:

enumerator kENET_NoOps

Not do anything.

enumerator kENET_VlanRemove

Remove VLAN Tag.

enumerator kENET_VlanInsert

Insert VLAN Tag.

enumerator kENET_VlanReplace

Replace VLAN Tag.

enum _enet_vlan_strip

Ethernet VLAN strip setting.

Values:

enumerator kENET_VlanNotStrip

Not strip frame.

enumerator kENET_VlanFilterPassStrip

Strip if VLAN filter passes.

enumerator kENET_VlanFilterFailStrip

Strip if VLAN filter fails.

enumerator kENET_VlanAlwaysStrip

Always strip.

enum _enet_vlan_tx_channel

Ethernet VLAN Tx channels.

Values:

enumerator kENET_VlanTagAllChannels

VLAN tag is inserted for every packets transmitted by the MAC.

enumerator kENET_VlanTagChannel0

VLAN tag is inserted for the frames transmitted by channel 0.

enumerator kENET_VlanTagChannel1

VLAN tag is inserted for the frames transmitted by channel 1.

typedef enum _enet_mii_mode enet_mii_mode_t

Defines the MII/RMII mode for data interface between the MAC and the PHY.

typedef enum _enet_mii_speed enet_mii_speed_t

Defines the 10/100 Mbps speed for the MII data interface.

typedef enum _enet_mii_duplex enet_mii_duplex_t

Defines the half or full duplex for the MII data interface.

typedef enum _enet_dma_burstlen enet_dma_burstlen_t

Define the DMA maximum transmit burst length.

typedef enum _enet_desc_flag enet_desc_flag_t

Define the flag for the descriptor.

typedef enum _enet_systime_op enet_systime_op_t

Define the system time adjust operation control.

typedef enum _enet_ts_rollover_type enet_ts_rollover_type_t

Define the system time rollover control.

typedef enum _enet_special_config enet_special_config_t

Defines some special configuration for ENET.

These control flags are provided for special user requirements. Normally, these is no need to set this control flags for ENET initialization. But if you have some special requirements, set the flags to specialControl in the enet_config_t.

Note

“kENET_StoreAndForward” is recommended to be set when the ENET_PTP1588FEATURE_REQUIRED is defined or else the timestamp will be mess-up when the overflow happens.

typedef enum _enet_dma_interrupt_enable enet_dma_interrupt_enable_t

List of DMA interrupts supported by the ENET interrupt. This enumeration uses one-hot encoding to allow a logical OR of multiple members.

typedef enum _enet_mac_interrupt_enable enet_mac_interrupt_enable_t

List of mac interrupts supported by the ENET interrupt. This enumeration uses one-hot encoding to allow a logical OR of multiple members.

typedef enum _enet_event enet_event_t

Defines the common interrupt event for callback use.

typedef enum _enet_dma_tx_sche enet_dma_tx_sche_t

Define the DMA transmit arbitration for multi-queue.

typedef enum _enet_mtl_multiqueue_txsche enet_mtl_multiqueue_txsche_t

Define the MTL Tx scheduling algorithm for multiple queues/rings.

typedef enum _enet_mtl_multiqueue_rxsche enet_mtl_multiqueue_rxsche_t

Define the MTL Rx scheduling algorithm for multiple queues/rings.

typedef enum _enet_mtl_rxqueuemap enet_mtl_rxqueuemap_t

Define the MTL Rx queue and DMA channel mapping.

typedef enum _enet_ptp_event_type enet_ptp_event_type_t

Defines the ENET PTP message related constant.

typedef enum _enet_tx_offload enet_tx_offload_t

Define the Tx checksum offload options.

typedef enum _enet_vlan_tpid enet_vlan_tpid_t

Ethernet VLAN Tag protocol identifiers.

typedef enum _enet_vlan_ops enet_vlan_ops_t

Ethernet VLAN operations.

typedef enum _enet_vlan_strip enet_vlan_strip_t

Ethernet VLAN strip setting.

typedef enum _enet_vlan_tx_channel enet_vlan_tx_channel_t

Ethernet VLAN Tx channels.

typedef struct _enet_rx_bd_struct enet_rx_bd_struct_t

Defines the receive descriptor structure It has the read-format and write-back format structures. They both have the same size with different region definition. So we define common name as the recive descriptor structure. When initialize the buffer descriptors, read-format region mask bits should be used. When Rx frame has been in the buffer descriptors, write-back format region store the Rx result information.

typedef struct _enet_tx_bd_struct enet_tx_bd_struct_t

Defines the transmit descriptor structure It has the read-format and write-back format structure. They both has the same size with different region definition. So we define common name as the transmit descriptor structure. When initialize the buffer descriptors for Tx, read-format region mask bits should be used. When frame has been transmitted, write-back format region store the Tx result information.

typedef struct _enet_tx_bd_config_struct enet_tx_bd_config_struct_t

Defines the Tx BD configuration structure.

typedef struct _enet_ptp_time enet_ptp_time_t

Defines the ENET PTP time stamp structure.

typedef struct enet_tx_reclaim_info enet_tx_reclaim_info_t

Defines the Tx reclaim information structure.

typedef struct _enet_tx_dirty_ring enet_tx_dirty_ring_t

Defines the ENET transmit dirty addresses ring/queue structure.

typedef struct _enet_buffer_config enet_buffer_config_t

Defines the buffer descriptor configure structure.

Notes:

  1. The receive and transmit descriptor start address pointer and tail pointer must be word-aligned.

  2. The recommended minimum Tx/Rx ring length is 4.

  3. The Tx/Rx descriptor tail address shall be the address pointer to the address just after the end of the last last descriptor. because only the descriptors between the start address and the tail address will be used by DMA.

  4. The decriptor address is the start address of all used contiguous memory. for example, the rxDescStartAddrAlign is the start address of rxRingLen contiguous descriptor memorise for Rx descriptor ring 0.

  5. The “*rxBufferstartAddr” is the first element of rxRingLen (2*rxRingLen for double buffers) Rx buffers. It means the *rxBufferStartAddr is the Rx buffer for the first descriptor the *rxBufferStartAddr + 1 is the Rx buffer for the second descriptor or the Rx buffer for the second buffer in the first descriptor. So please make sure the rxBufferStartAddr is the address of a rxRingLen or 2*rxRingLen array.

typedef struct enet_multiqueue_config enet_multiqueue_config_t

Defines the configuration when multi-queue is used.

typedef void *(*enet_rx_alloc_callback_t)(ENET_Type *base, void *userData, uint8_t channel)

Defines the Rx memory buffer alloc function pointer.

typedef void (*enet_rx_free_callback_t)(ENET_Type *base, void *buffer, void *userData, uint8_t channel)

Defines the Rx memory buffer free function pointer.

typedef struct _enet_config enet_config_t

Defines the basic configuration structure for the ENET device.

Note:

  1. Default the signal queue is used so the “multiqueueCfg” is set default with NULL. Set the pointer with a valid configration pointer if the multiple queues are required. If multiple queue is enabled, please make sure the buffer configuration for all are prepared also.

typedef struct _enet_handle enet_handle_t
typedef void (*enet_callback_t)(ENET_Type *base, enet_handle_t *handle, enet_event_t event, uint8_t channel, enet_tx_reclaim_info_t *txReclaimInfo, void *userData)

ENET callback function.

typedef struct _enet_tx_bd_ring enet_tx_bd_ring_t

Defines the ENET transmit buffer descriptor ring/queue structure.

typedef struct _enet_rx_bd_ring enet_rx_bd_ring_t

Defines the ENET receive buffer descriptor ring/queue structure.

typedef struct _enet_buffer_struct enet_buffer_struct_t
typedef struct _enet_rx_frame_attribute_struct enet_rx_frame_attribute_t

Rx frame attribute structure.

typedef struct _enet_rx_frame_error enet_rx_frame_error_t

Defines the Rx frame error structure.

typedef struct _enet_rx_frame_struct enet_rx_frame_struct_t

Defines the Rx frame data structure.

typedef struct _enet_tx_config_struct enet_tx_config_struct_t
typedef struct _enet_tx_frame_struct enet_tx_frame_struct_t
typedef struct _enet_vlan_tag enet_vlan_tag_t

Ethernet VLAN Tag.

typedef struct _enet_vlan_tx_config enet_vlan_tx_config_t

Ethernet VLAN configuration for Tx.

typedef struct _enet_vlan_ctrl enet_vlan_ctrl_t

Ethernet VLAN control.

typedef void (*enet_isr_t)(ENET_Type *base, enet_handle_t *handle)
const clock_ip_name_t s_enetClock[]

Pointers to enet clocks for each instance.

ENET_FRAME_MAX_FRAMELEN

Default maximum ethernet frame size.

ENET_FCS_LEN

Ethernet Rx frame FCS length.

ENET_ADDR_ALIGNMENT

Recommended ethernet buffer alignment.

ENET_BUFF_ALIGNMENT

Receive buffer alignment shall be 4bytes-aligned.

ENET_RING_NUM_MAX

The maximum number of Tx/Rx descriptor rings.

ENET_MTL_RXFIFOSIZE

The Rx fifo size.

ENET_MTL_TXFIFOSIZE

The Tx fifo size.

ENET_MACINT_ENUM_OFFSET

The offset for mac interrupt in enum type.

ENET_FRAME_TX_LEN_LIMITATION

The Tx frame length software limitation.

ENET_FRAME_RX_ERROR_BITS(x)

The Rx frame error bits field.

void ENET_GetDefaultConfig(enet_config_t *config)

Gets the ENET default configuration structure.

The purpose of this API is to get the default ENET configure structure for ENET_Init(). User may use the initialized structure unchanged in ENET_Init(), or modify some fields of the structure before calling ENET_Init(). Example:

enet_config_t config;
ENET_GetDefaultConfig(&config);

Parameters:
  • config – The ENET mac controller configuration structure pointer.

void ENET_Init(ENET_Type *base, const enet_config_t *config, uint8_t *macAddr, uint32_t clkSrcHz)

Initializes the ENET module.

This function ungates the module clock and initializes it with the ENET basic configuration.

Note

As our transactional transmit API use the zero-copy transmit buffer. So there are two thing we emphasize here:

  1. Tx buffer free/requeue for application should be done in the Tx interrupt handler. Please set callback: kENET_TxIntEvent with Tx buffer free/requeue process APIs.

  2. The Tx interrupt is forced to open.

Parameters:
  • base – ENET peripheral base address.

  • config – ENET mac configuration structure pointer. The “enet_config_t” type mac configuration return from ENET_GetDefaultConfig can be used directly. It is also possible to verify the Mac configuration using other methods.

  • macAddr – ENET mac address of Ethernet device. This MAC address should be provided.

  • clkSrcHz – ENET input reference clock.

void ENET_Deinit(ENET_Type *base)

Deinitializes the ENET module.

This function gates the module clock and disables the ENET module.

Parameters:
  • base – ENET peripheral base address.

status_t ENET_DescriptorInit(ENET_Type *base, enet_config_t *config, enet_buffer_config_t *bufferConfig)

Initialize for all ENET descriptors.

Note

This function finishes all Tx/Rx descriptors initialization. The descriptor initialization should be called after ENET_Init().

Parameters:
  • base – ENET peripheral base address.

  • config – The configuration for ENET.

  • bufferConfig – All buffers configuration.

status_t ENET_RxBufferAllocAll(ENET_Type *base, enet_handle_t *handle)

Allocates Rx buffers for all BDs. It’s used for zero copy Rx. In zero copy Rx case, Rx buffers are dynamic. This function will populate initial buffers in all BDs for receiving. Then ENET_GetRxFrame() is used to get Rx frame with zero copy, it will allocate new buffer to replace the buffer in BD taken by application, application should free those buffers after they’re used.

Note

This function should be called after ENET_CreateHandler() and buffer allocating callback function should be ready.

Parameters:
  • base – ENET peripheral base address.

  • handle – The ENET handler structure. This is the same handler pointer used in the ENET_Init.

void ENET_RxBufferFreeAll(ENET_Type *base, enet_handle_t *handle)

Frees Rx buffers in all BDs. It’s used for zero copy Rx. In zero copy Rx case, Rx buffers are dynamic. This function will free left buffers in all BDs.

Parameters:
  • base – ENET peripheral base address.

  • handle – The ENET handler structure. This is the same handler pointer used in the ENET_Init.

void ENET_StartRxTx(ENET_Type *base, uint8_t txRingNum, uint8_t rxRingNum)

Starts the ENET Tx/Rx. This function enable the Tx/Rx and starts the Tx/Rx DMA. This shall be set after ENET initialization and before starting to receive the data.

Note

This must be called after all the ENET initilization. And should be called when the ENET receive/transmit is required.

Parameters:
  • base – ENET peripheral base address.

  • rxRingNum – The number of the used Rx rings. It shall not be larger than the ENET_RING_NUM_MAX(2). If the ringNum is set with 1, the ring 0 will be used.

  • txRingNum – The number of the used Tx rings. It shall not be larger than the ENET_RING_NUM_MAX(2). If the ringNum is set with 1, the ring 0 will be used.

void ENET_SetISRHandler(ENET_Type *base, enet_isr_t ISRHandler)

Set the second level IRQ handler.

Parameters:
  • base – ENET peripheral base address.

  • ISRHandler – The handler to install.

static inline void ENET_SetMII(ENET_Type *base, enet_mii_speed_t speed, enet_mii_duplex_t duplex)

Sets the ENET MII speed and duplex.

This API is provided to dynamically change the speed and dulpex for MAC.

Parameters:
  • base – ENET peripheral base address.

  • speed – The speed of the RMII mode.

  • duplex – The duplex of the RMII mode.

void ENET_SetSMI(ENET_Type *base, uint32_t clkSrcHz)

Sets the ENET SMI(serial management interface)- MII management interface.

Parameters:
  • base – ENET peripheral base address.

  • clkSrcHz – ENET peripheral clock source.

static inline bool ENET_IsSMIBusy(ENET_Type *base)

Checks if the SMI is busy.

Parameters:
  • base – ENET peripheral base address.

Returns:

The status of MII Busy status.

static inline uint16_t ENET_ReadSMIData(ENET_Type *base)

Reads data from the PHY register through SMI interface.

Parameters:
  • base – ENET peripheral base address.

Returns:

The data read from PHY

void ENET_StartSMIWrite(ENET_Type *base, uint8_t phyAddr, uint8_t regAddr, uint16_t data)

Sends the MDIO IEEE802.3 Clause 22 format write command.

Parameters:
  • base – ENET peripheral base address.

  • phyAddr – The PHY address.

  • regAddr – The PHY register.

  • data – The data written to PHY.

void ENET_StartSMIRead(ENET_Type *base, uint8_t phyAddr, uint8_t regAddr)

Sends the MDIO IEEE802.3 Clause 22 format read command.

Parameters:
  • base – ENET peripheral base address.

  • phyAddr – The PHY address.

  • regAddr – The PHY register.

status_t ENET_MDIOWrite(ENET_Type *base, uint8_t phyAddr, uint8_t regAddr, uint16_t data)

MDIO write with IEEE802.3 Clause 22 format.

Parameters:
  • base – ENET peripheral base address.

  • phyAddr – The PHY address.

  • regAddr – The PHY register.

  • data – The data written to PHY.

Returns:

kStatus_Success MDIO access succeeds.

Returns:

kStatus_Timeout MDIO access timeout.

status_t ENET_MDIORead(ENET_Type *base, uint8_t phyAddr, uint8_t regAddr, uint16_t *pData)

MDIO read with IEEE802.3 Clause 22 format.

Parameters:
  • base – ENET peripheral base address.

  • phyAddr – The PHY address.

  • regAddr – The PHY register.

  • pData – The data read from PHY.

Returns:

kStatus_Success MDIO access succeeds.

Returns:

kStatus_Timeout MDIO access timeout.

uint32_t ENET_GetInstance(ENET_Type *base)

Get the ENET instance from peripheral base address.

Parameters:
  • base – ENET peripheral base address.

Returns:

ENET instance.

static inline void ENET_SetMacAddr(ENET_Type *base, uint8_t *macAddr)

Sets the ENET module Mac address.

Parameters:
  • base – ENET peripheral base address.

  • macAddr – The six-byte Mac address pointer. The pointer is allocated by application and input into the API.

void ENET_GetMacAddr(ENET_Type *base, uint8_t *macAddr)

Gets the ENET module Mac address.

Parameters:
  • base – ENET peripheral base address.

  • macAddr – The six-byte Mac address pointer. The pointer is allocated by application and input into the API.

static inline void ENET_AcceptAllMulticast(ENET_Type *base)

Enable ENET device to accept all multicast frames.

Parameters:
  • base – ENET peripheral base address.

static inline void ENET_RejectAllMulticast(ENET_Type *base)

ENET device reject to accept all multicast frames.

Parameters:
  • base – ENET peripheral base address.

void ENET_EnterPowerDown(ENET_Type *base, uint32_t *wakeFilter)

Set the MAC to enter into power down mode. the remote power wake up frame and magic frame can wake up the ENET from the power down mode.

Parameters:
  • base – ENET peripheral base address.

  • wakeFilter – The wakeFilter provided to configure the wake up frame fitlter. Set the wakeFilter to NULL is not required. But if you have the filter requirement, please make sure the wakeFilter pointer shall be eight continous 32-bits configuration.

static inline void ENET_ExitPowerDown(ENET_Type *base)

Set the MAC to exit power down mode. Eixt from the power down mode and recover to normal work mode.

Parameters:
  • base – ENET peripheral base address.

status_t ENET_SetVlanCtrl(ENET_Type *base, enet_vlan_ctrl_t *control)

Set VLAN control.

Parameters:
  • base – ENET peripheral base address.

  • control – VLAN control configuration.

status_t ENET_SetTxOuterVlan(ENET_Type *base, enet_vlan_tx_config_t *config, enet_vlan_tx_channel_t channel)

Set Tx outer VLAN configuration.

Parameters:
  • base – ENET peripheral base address.

  • config – Tx VLAN operation configuration.

  • channel – The channel to apply this configuration.

status_t ENET_SetTxInnerVlan(ENET_Type *base, enet_vlan_tx_config_t *config)

Set Tx inner VLAN configuration.

Parameters:
  • base – ENET peripheral base address.

  • config – Tx VLAN operation configuration.

void ENET_EnableInterrupts(ENET_Type *base, uint32_t mask)

Enables the ENET DMA and MAC interrupts.

This function enables the ENET interrupt according to the provided mask. The mask is a logical OR of enet_dma_interrupt_enable_t and enet_mac_interrupt_enable_t. For example, to enable the dma and mac interrupt, do the following.

ENET_EnableInterrupts(ENET, kENET_DmaRx | kENET_DmaTx | kENET_MacPmt);

Parameters:
  • base – ENET peripheral base address.

  • mask – ENET interrupts to enable. This is a logical OR of both enumeration :: enet_dma_interrupt_enable_t and enet_mac_interrupt_enable_t.

void ENET_DisableInterrupts(ENET_Type *base, uint32_t mask)

Disables the ENET DMA and MAC interrupts.

This function disables the ENET interrupt according to the provided mask. The mask is a logical OR of enet_dma_interrupt_enable_t and enet_mac_interrupt_enable_t. For example, to disable the dma and mac interrupt, do the following.

ENET_DisableInterrupts(ENET, kENET_DmaRx | kENET_DmaTx | kENET_MacPmt);

Parameters:
  • base – ENET peripheral base address.

  • mask – ENET interrupts to disables. This is a logical OR of both enumeration :: enet_dma_interrupt_enable_t and enet_mac_interrupt_enable_t.

static inline uint32_t ENET_GetDmaInterruptStatus(ENET_Type *base, uint8_t channel)

Gets the ENET DMA interrupt status flag.

Parameters:
  • base – ENET peripheral base address.

  • channel – The DMA Channel. Shall not be larger than ENET_RING_NUM_MAX.

Returns:

The event status of the interrupt source. This is the logical OR of members of the enumeration :: enet_dma_interrupt_enable_t.

static inline void ENET_ClearDmaInterruptStatus(ENET_Type *base, uint8_t channel, uint32_t mask)

Clear the ENET DMA interrupt status flag.

Parameters:
  • base – ENET peripheral base address.

  • channel – The DMA Channel. Shall not be larger than ENET_RING_NUM_MAX.

  • mask – The event status of the interrupt source. This is the logical OR of members of the enumeration :: enet_dma_interrupt_enable_t.

static inline uint32_t ENET_GetMacInterruptStatus(ENET_Type *base)

Gets the ENET MAC interrupt status flag.

Parameters:
  • base – ENET peripheral base address.

Returns:

The event status of the interrupt source. Use the enum in enet_mac_interrupt_enable_t and right shift ENET_MACINT_ENUM_OFFSET to mask the returned value to get the exact interrupt status.

void ENET_ClearMacInterruptStatus(ENET_Type *base, uint32_t mask)

Clears the ENET mac interrupt events status flag.

This function clears enabled ENET interrupts according to the provided mask. The mask is a logical OR of enumeration members. See the enet_mac_interrupt_enable_t. For example, to clear the TX frame interrupt and RX frame interrupt, do the following.

ENET_ClearMacInterruptStatus(ENET, kENET_MacPmt);

Parameters:
  • base – ENET peripheral base address.

  • mask – ENET interrupt source to be cleared. This is the logical OR of members of the enumeration :: enet_mac_interrupt_enable_t.

static inline bool ENET_IsTxDescriptorDmaOwn(enet_tx_bd_struct_t *txDesc)

Get the Tx descriptor DMA Own flag.

Parameters:
  • txDesc – The given Tx descriptor.

Return values:

True – the dma own Tx descriptor, false application own Tx descriptor.

void ENET_SetupTxDescriptor(enet_tx_bd_struct_t *txDesc, void *buffer1, uint32_t bytes1, void *buffer2, uint32_t bytes2, uint32_t framelen, bool intEnable, bool tsEnable, enet_desc_flag_t flag, uint8_t slotNum)

Setup a given Tx descriptor. This function is a low level functional API to setup or prepare a given Tx descriptor.

Note

This must be called after all the ENET initilization. And should be called when the ENET receive/transmit is required. Transmit buffers are ‘zero-copy’ buffers, so the buffer must remain in memory until the packet has been fully transmitted. The buffers should be free or requeued in the transmit interrupt irq handler.

Parameters:
  • txDesc – The given Tx descriptor.

  • buffer1 – The first buffer address in the descriptor.

  • bytes1 – The bytes in the fist buffer.

  • buffer2 – The second buffer address in the descriptor.

  • bytes2 – The bytes in the second buffer.

  • framelen – The length of the frame to be transmitted.

  • intEnable – Interrupt enable flag.

  • tsEnable – The timestamp enable.

  • flag – The flag of this Tx desciriptor, see “enet_desc_flag_t” .

  • slotNum – The slot num used for AV mode only.

static inline void ENET_UpdateTxDescriptorTail(ENET_Type *base, uint8_t channel, uint32_t txDescTailAddrAlign)

Update the Tx descriptor tail pointer. This function is a low level functional API to update the the Tx descriptor tail. This is called after you setup a new Tx descriptor to update the tail pointer to make the new descritor accessable by DMA.

Parameters:
  • base – ENET peripheral base address.

  • channel – The Tx DMA channel.

  • txDescTailAddrAlign – The new Tx tail pointer address.

static inline void ENET_UpdateRxDescriptorTail(ENET_Type *base, uint8_t channel, uint32_t rxDescTailAddrAlign)

Update the Rx descriptor tail pointer. This function is a low level functional API to update the the Rx descriptor tail. This is called after you setup a new Rx descriptor to update the tail pointer to make the new descritor accessable by DMA and to anouse the Rx poll command for DMA.

Parameters:
  • base – ENET peripheral base address.

  • channel – The Rx DMA channel.

  • rxDescTailAddrAlign – The new Rx tail pointer address.

static inline uint32_t ENET_GetRxDescriptor(enet_rx_bd_struct_t *rxDesc)

Gets the context in the ENET Rx descriptor. This function is a low level functional API to get the the status flag from a given Rx descriptor.

Note

This must be called after all the ENET initilization. And should be called when the ENET receive/transmit is required.

Parameters:
  • rxDesc – The given Rx descriptor.

Return values:

The – RDES3 regions for write-back format Rx buffer descriptor.

void ENET_UpdateRxDescriptor(enet_rx_bd_struct_t *rxDesc, void *buffer1, void *buffer2, bool intEnable, bool doubleBuffEnable)

Updates the buffers and the own status for a given Rx descriptor. This function is a low level functional API to Updates the buffers and the own status for a given Rx descriptor.

Note

This must be called after all the ENET initilization. And should be called when the ENET receive/transmit is required.

Parameters:
  • rxDesc – The given Rx descriptor.

  • buffer1 – The first buffer address in the descriptor.

  • buffer2 – The second buffer address in the descriptor.

  • intEnable – Interrupt enable flag.

  • doubleBuffEnable – The double buffer enable flag.

void ENET_CreateHandler(ENET_Type *base, enet_handle_t *handle, enet_config_t *config, enet_buffer_config_t *bufferConfig, enet_callback_t callback, void *userData)

Create ENET Handler.

This is a transactional API and it’s provided to store all datas which are needed during the whole transactional process. This API should not be used when you use functional APIs to do data Tx/Rx. This is funtion will store many data/flag for transactional use.

Parameters:
  • base – ENET peripheral base address.

  • handle – ENET handler.

  • config – ENET configuration.

  • bufferConfig – ENET buffer configuration.

  • callback – The callback function.

  • userData – The application data.

status_t ENET_GetRxFrameSize(ENET_Type *base, enet_handle_t *handle, uint32_t *length, uint8_t channel)

Gets the size of the read frame. This function gets a received frame size from the ENET buffer descriptors.

Note

The FCS of the frame is automatically removed by MAC and the size is the length without the FCS. After calling ENET_GetRxFrameSize, ENET_ReadFrame() should be called to update the receive buffers If the result is not “kStatus_ENET_RxFrameEmpty”.

Parameters:
  • base – ENET peripheral base address.

  • handle – The ENET handler structure. This is the same handler pointer used in the ENET_Init.

  • length – The length of the valid frame received.

  • channel – The DMAC channel for the Rx.

Return values:
  • kStatus_ENET_RxFrameEmpty – No frame received. Should not call ENET_ReadFrame to read frame.

  • kStatus_ENET_RxFrameError – Data error happens. ENET_ReadFrame should be called with NULL data and NULL length to update the receive buffers.

  • kStatus_Success – Receive a frame Successfully then the ENET_ReadFrame should be called with the right data buffer and the captured data length input.

status_t ENET_ReadFrame(ENET_Type *base, enet_handle_t *handle, uint8_t *data, uint32_t length, uint8_t channel, enet_ptp_time_t *timestamp)

Reads a frame from the ENET device. This function reads a frame from the ENET DMA descriptors. The ENET_GetRxFrameSize should be used to get the size of the prepared data buffer. For example use Rx dma channel 0:

uint32_t length;
enet_handle_t g_handle;
Comment: Get the received frame size firstly.
status = ENET_GetRxFrameSize(&g_handle, &length, 0);
if (length != 0)
{
    Comment: Allocate memory here with the size of "length"
    uint8_t *data = memory allocate interface;
    if (!data)
    {
        ENET_ReadFrame(ENET, &g_handle, NULL, 0, 0);
    }
    else
    {
       status = ENET_ReadFrame(ENET, &g_handle, data, length, 0);
    }
}
else if (status == kStatus_ENET_RxFrameError)
{
    Comment: Update the received buffer when a error frame is received.
    ENET_ReadFrame(ENET, &g_handle, NULL, 0, 0);
}

Parameters:
  • base – ENET peripheral base address.

  • handle – The ENET handler structure. This is the same handler pointer used in the ENET_Init.

  • data – The data buffer provided by user to store the frame which memory size should be at least “length”.

  • length – The size of the data buffer which is still the length of the received frame.

  • channel – The Rx DMA channel. Shall not be larger than 2.

  • timestamp – The timestamp address to store received timestamp.

Returns:

The execute status, successful or failure.

status_t ENET_GetRxFrame(ENET_Type *base, enet_handle_t *handle, enet_rx_frame_struct_t *rxFrame, uint8_t channel)

Receives one frame in specified BD ring with zero copy.

This function will use the user-defined allocate and free callback. Every time application gets one frame through this function, driver will allocate new buffers for the BDs whose buffers have been taken by application.

Note

This function will drop current frame and update related BDs as available for DMA if new buffers allocating fails. Application must provide a memory pool including at least BD number + 1 buffers(+2 if enable double buffer) to make this function work normally.

Parameters:
  • base – ENET peripheral base address.

  • handle – The ENET handler pointer. This is the same handler pointer used in the ENET_Init.

  • rxFrame – The received frame information structure provided by user.

  • channel – The Rx DMA channel. Shall not be larger than 2.

Return values:
  • kStatus_Success – Succeed to get one frame and allocate new memory for Rx buffer.

  • kStatus_ENET_RxFrameEmpty – There’s no Rx frame in the BD.

  • kStatus_ENET_RxFrameError – There’s issue in this receiving. In this function, issue frame will be dropped.

  • kStatus_ENET_RxFrameDrop – There’s no new buffer memory for BD, dropped this frame.

status_t ENET_SendFrame(ENET_Type *base, enet_handle_t *handle, enet_tx_frame_struct_t *txFrame, uint8_t channel)

Transmits an ENET frame.

Note

The CRC is automatically appended to the data. Input the data to send without the CRC. This API uses input buffer for Tx, application should reclaim the buffer after Tx is over.

Parameters:
  • base – ENET peripheral base address.

  • handle – The ENET handler pointer. This is the same handler pointer used in the ENET_Init.

  • txFrame – The Tx frame structure.

  • channel – Channel to send the frame, same with queue index.

Return values:
  • kStatus_Success – Send frame succeed.

  • kStatus_ENET_TxFrameBusy – Transmit buffer descriptor is busy under transmission. The transmit busy happens when the data send rate is over the MAC capacity. The waiting mechanism is recommended to be added after each call return with kStatus_ENET_TxFrameBusy. Also need to pay attention to reclaim Tx frame after Tx is over.

  • kStatus_ENET_TxFrameOverLen – Transmit frme length exceeds the 0x3FFF limit defined by the driver.

void ENET_ReclaimTxDescriptor(ENET_Type *base, enet_handle_t *handle, uint8_t channel)

Reclaim Tx descriptors. This function is used to update the Tx descriptor status and store the Tx timestamp when the 1588 feature is enabled. This is called by the transmit interupt IRQ handler after the complete of a frame transmission.

Parameters:
  • base – ENET peripheral base address.

  • handle – The ENET handler pointer. This is the same handler pointer used in the ENET_Init.

  • channel – The Tx DMA channnel.

void ENET_IRQHandler(ENET_Type *base, enet_handle_t *handle)

The ENET IRQ handler.

Parameters:
  • base – ENET peripheral base address.

  • handle – The ENET handler pointer.

FSL_ENET_DRIVER_VERSION

Defines the driver version.

ENET_RXDESCRIP_RD_BUFF1VALID_MASK

Defines for read format.

Buffer1 address valid.

ENET_RXDESCRIP_RD_BUFF2VALID_MASK

Buffer2 address valid.

ENET_RXDESCRIP_RD_IOC_MASK

Interrupt enable on complete.

ENET_RXDESCRIP_RD_OWN_MASK

Own bit.

ENET_RXDESCRIP_WR_ERR_MASK

Defines for write back format.

ENET_RXDESCRIP_WR_PYLOAD_MASK
ENET_RXDESCRIP_WR_PTPMSGTYPE_MASK
ENET_RXDESCRIP_WR_PTPTYPE_MASK
ENET_RXDESCRIP_WR_PTPVERSION_MASK
ENET_RXDESCRIP_WR_PTPTSA_MASK
ENET_RXDESCRIP_WR_PACKETLEN_MASK
ENET_RXDESCRIP_WR_ERRSUM_MASK
ENET_RXDESCRIP_WR_TYPE_MASK
ENET_RXDESCRIP_WR_DE_MASK
ENET_RXDESCRIP_WR_RE_MASK
ENET_RXDESCRIP_WR_OE_MASK
ENET_RXDESCRIP_WR_RS0V_MASK
ENET_RXDESCRIP_WR_RS1V_MASK
ENET_RXDESCRIP_WR_RS2V_MASK
ENET_RXDESCRIP_WR_LD_MASK
ENET_RXDESCRIP_WR_FD_MASK
ENET_RXDESCRIP_WR_CTXT_MASK
ENET_RXDESCRIP_WR_OWN_MASK
ENET_TXDESCRIP_RD_BL1_MASK

Defines for read format.

ENET_TXDESCRIP_RD_BL2_MASK
ENET_TXDESCRIP_RD_BL1(n)
ENET_TXDESCRIP_RD_BL2(n)
ENET_TXDESCRIP_RD_TTSE_MASK
ENET_TXDESCRIP_RD_IOC_MASK
ENET_TXDESCRIP_RD_FL_MASK
ENET_TXDESCRIP_RD_FL(n)
ENET_TXDESCRIP_RD_CIC(n)
ENET_TXDESCRIP_RD_TSE_MASK
ENET_TXDESCRIP_RD_SLOT(n)
ENET_TXDESCRIP_RD_SAIC(n)
ENET_TXDESCRIP_RD_CPC(n)
ENET_TXDESCRIP_RD_LDFD(n)
ENET_TXDESCRIP_RD_LD_MASK
ENET_TXDESCRIP_RD_FD_MASK
ENET_TXDESCRIP_RD_CTXT_MASK
ENET_TXDESCRIP_RD_OWN_MASK
ENET_TXDESCRIP_WB_TTSS_MASK

Defines for write back format.

ENET_ABNORM_INT_MASK
ENET_NORM_INT_MASK
__IO uint32_t rdes0

Receive descriptor 0

__IO uint32_t rdes1

Receive descriptor 1

__IO uint32_t rdes2

Receive descriptor 2

__IO uint32_t rdes3

Receive descriptor 3

__IO uint32_t tdes0

Transmit descriptor 0

__IO uint32_t tdes1

Transmit descriptor 1

__IO uint32_t tdes2

Transmit descriptor 2

__IO uint32_t tdes3

Transmit descriptor 3

void *buffer1

The first buffer address in the descriptor.

uint32_t bytes1

The bytes in the fist buffer.

void *buffer2

The second buffer address in the descriptor.

uint32_t bytes2

The bytes in the second buffer.

uint32_t framelen

The length of the frame to be transmitted.

bool intEnable

Interrupt enable flag.

bool tsEnable

The timestamp enable.

enet_tx_offload_t txOffloadOps

The Tx checksum offload option, only vaild for Queue 0.

enet_desc_flag_t flag

The flag of this tx desciriptor, see “enet_qos_desc_flag”.

uint8_t slotNum

The slot number used for AV mode only.

uint64_t second

Second.

uint32_t nanosecond

Nanosecond.

void *context

User specified data, could be buffer address for free

bool isTsAvail

Flag indicates timestamp available status

enet_ptp_time_t timeStamp

Timestamp of frame

enet_tx_reclaim_info_t *txDirtyBase

Dirty buffer descriptor base address pointer.

uint16_t txGenIdx

Tx generate index.

uint16_t txConsumIdx

Tx consume index.

uint16_t txRingLen

Tx ring length.

bool isFull

Tx ring is full flag, add this parameter to avoid waste one element.

uint8_t rxRingLen

The length of receive buffer descriptor ring.

uint8_t txRingLen

The length of transmit buffer descriptor ring.

enet_tx_bd_struct_t *txDescStartAddrAlign

Aligned transmit descriptor start address.

enet_tx_bd_struct_t *txDescTailAddrAlign

Aligned transmit descriptor tail address.

enet_tx_reclaim_info_t *txDirtyStartAddr

Start address of the dirty Tx frame information.

enet_rx_bd_struct_t *rxDescStartAddrAlign

Aligned receive descriptor start address.

enet_rx_bd_struct_t *rxDescTailAddrAlign

Aligned receive descriptor tail address.

uint32_t *rxBufferStartAddr

Start address of the Rx buffers.

uint32_t rxBuffSizeAlign

Aligned receive data buffer size.

enet_dma_tx_sche_t dmaTxSche

Transmit arbitation.

enet_dma_burstlen_t burstLen

Burset len for the queue 1.

uint8_t txdmaChnWeight[(2U)]

Transmit channel weight.

enet_mtl_multiqueue_txsche_t mtltxSche

Transmit schedule for multi-queue.

enet_mtl_multiqueue_rxsche_t mtlrxSche

Receive schedule for multi-queue.

uint8_t rxqueweight[