Driverlib XBAR API

Module: Driverlib (AM13E230X) APIs

More…

Types

Name

enum

DL_XBAR_InputNum { DL_XBAR_INPUT1, DL_XBAR_INPUT2, DL_XBAR_INPUT3, DL_XBAR_INPUT4, DL_XBAR_INPUT5, DL_XBAR_INPUT6, DL_XBAR_INPUT7, DL_XBAR_INPUT8, DL_XBAR_INPUT9, DL_XBAR_INPUT10, DL_XBAR_INPUT11, DL_XBAR_INPUT12, DL_XBAR_INPUT13, DL_XBAR_INPUT14, DL_XBAR_INPUT15, DL_XBAR_INPUT16, DL_XBAR_INPUT17, DL_XBAR_INPUT18, DL_XBAR_INPUT19, DL_XBAR_INPUT20, DL_XBAR_INPUT21, DL_XBAR_INPUT22, DL_XBAR_INPUT23, DL_XBAR_INPUT24, DL_XBAR_INPUT25, DL_XBAR_INPUT26, DL_XBAR_INPUT27, DL_XBAR_INPUT28}
DL_XBAR_InputNum.

enum

DL_XBAR_OutputNum { DL_XBAR_OUTPUT1, DL_XBAR_OUTPUT2, DL_XBAR_OUTPUT3, DL_XBAR_OUTPUT4, DL_XBAR_OUTPUT5, DL_XBAR_OUTPUT6, DL_XBAR_OUTPUT7, DL_XBAR_OUTPUT8, DL_XBAR_OUTPUT9, DL_XBAR_OUTPUT10, DL_XBAR_OUTPUT11, DL_XBAR_OUTPUT12}
DL_XBAR_OutputNum.

enum

DL_XBAR_OutputXBARSource { DL_XBAR_OUT_CMPSS0_CTRIPOUTH = 0x000U, DL_XBAR_OUT_CMPSS0_CTRIPOUTL = 0x001U, DL_XBAR_OUT_CMPSS1_CTRIPOUTH = 0x002U, DL_XBAR_OUT_CMPSS1_CTRIPOUTL = 0x003U, DL_XBAR_OUT_CMPSS2_CTRIPOUTH = 0x004U, DL_XBAR_OUT_CMPSS2_CTRIPOUTL = 0x005U, DL_XBAR_OUT_CMPSS3_CTRIPOUTH = 0x006U, DL_XBAR_OUT_CMPSS3_CTRIPOUTL = 0x007U, DL_XBAR_OUT_ADC0_EVT1 = 0x008U, DL_XBAR_OUT_ADC0_EVT2 = 0x009U, DL_XBAR_OUT_ADC0_EVT3 = 0x00AU, DL_XBAR_OUT_ADC0_EVT4 = 0x00BU, DL_XBAR_OUT_ADC1_EVT1 = 0x00CU, DL_XBAR_OUT_ADC1_EVT2 = 0x00DU, DL_XBAR_OUT_ADC1_EVT3 = 0x00EU, DL_XBAR_OUT_ADC1_EVT4 = 0x00FU, DL_XBAR_OUT_ADC2_EVT1 = 0x010U, DL_XBAR_OUT_ADC2_EVT2 = 0x011U, DL_XBAR_OUT_ADC2_EVT3 = 0x012U, DL_XBAR_OUT_ADC2_EVT4 = 0x013U, DL_XBAR_OUT_INPUTXBAR1 = 0x014U, DL_XBAR_OUT_INPUTXBAR2 = 0x015U, DL_XBAR_OUT_INPUTXBAR3 = 0x016U, DL_XBAR_OUT_INPUTXBAR4 = 0x017U, DL_XBAR_OUT_INPUTXBAR5 = 0x018U, DL_XBAR_OUT_INPUTXBAR6 = 0x019U, DL_XBAR_OUT_INPUTXBAR7 = 0x01AU, DL_XBAR_OUT_INPUTXBAR8 = 0x01BU, DL_XBAR_OUT_INPUTXBAR9 = 0x01CU, DL_XBAR_OUT_INPUTXBAR10 = 0x01DU, DL_XBAR_OUT_INPUTXBAR11 = 0x01EU, DL_XBAR_OUT_INPUTXBAR12 = 0x01FU, DL_XBAR_OUT_INPUTXBAR13 = 0x100U, DL_XBAR_OUT_INPUTXBAR14 = 0x101U, DL_XBAR_OUT_INPUTXBAR15 = 0x102U, DL_XBAR_OUT_INPUTXBAR16 = 0x103U, DL_XBAR_OUT_ECAP0_OUT = 0x104U, DL_XBAR_OUT_ECAP1_OUT = 0x105U, DL_XBAR_OUT_ADCSOCA = 0x106U, DL_XBAR_OUT_ADCSOCB = 0x107U, DL_XBAR_OUT_EXTSYNCOUT = 0x108U, DL_XBAR_OUT_MCAN_INT0 = 0x109U, DL_XBAR_OUT_EQEP0_ERR = 0x10CU, DL_XBAR_OUT_EQEP1_ERR = 0x10DU, DL_XBAR_OUT_EQEP2_ERR = 0x10EU, DL_XBAR_OUT_EQEP0_INDEX_SYNCOUT = 0x10FU, DL_XBAR_OUT_EQEP0_STROBE_SYNCOUT = 0x110U, DL_XBAR_OUT_EQEP1_INDEX_SYNCOUT = 0x111U, DL_XBAR_OUT_EQEP1_STROBE_SYNCOUT = 0x112U, DL_XBAR_OUT_EQEP2_INDEX_SYNCOUT = 0x113U, DL_XBAR_OUT_EQEP2_STROBE_SYNCOUT = 0x114U, DL_XBAR_OUT_XCLKOUT = 0x115U}
DL_XBAR_OutputXBARSource.

enum

DL_XBAR_TripNum { DL_XBAR_TRIP1, DL_XBAR_TRIP2, DL_XBAR_TRIP3, DL_XBAR_TRIP4, DL_XBAR_TRIP5, DL_XBAR_TRIP6, DL_XBAR_TRIP7, DL_XBAR_TRIP8}
DLXBAR_TripNum.

enum

DL_XBAR_PWMXBARSource { DL_XBAR_PWM_CMPSS0_CTRIPH = 0x000U, DL_XBAR_PWM_CMPSS0_CTRIPL = 0x001U, DL_XBAR_PWM_CMPSS1_CTRIPH = 0x002U, DL_XBAR_PWM_CMPSS1_CTRIPL = 0x003U, DL_XBAR_PWM_CMPSS2_CTRIPH = 0x004U, DL_XBAR_PWM_CMPSS2_CTRIPL = 0x005U, DL_XBAR_PWM_CMPSS3_CTRIPH = 0x006U, DL_XBAR_PWM_CMPSS3_CTRIPL = 0x007U, DL_XBAR_PWM_ADC0_EVT1 = 0x008U, DL_XBAR_PWM_ADC0_EVT2 = 0x009U, DL_XBAR_PWM_ADC0_EVT3 = 0x00AU, DL_XBAR_PWM_ADC0_EVT4 = 0x00BU, DL_XBAR_PWM_ADC1_EVT1 = 0x00CU, DL_XBAR_PWM_ADC1_EVT2 = 0x00DU, DL_XBAR_PWM_ADC1_EVT3 = 0x00EU, DL_XBAR_PWM_ADC1_EVT4 = 0x00FU, DL_XBAR_PWM_ADC2_EVT1 = 0x010U, DL_XBAR_PWM_ADC2_EVT2 = 0x011U, DL_XBAR_PWM_ADC2_EVT3 = 0x012U, DL_XBAR_PWM_ADC2_EVT4 = 0x013U, DL_XBAR_PWM_INPUTXBAR1 = 0x014U, DL_XBAR_PWM_INPUTXBAR2 = 0x015U, DL_XBAR_PWM_INPUTXBAR3 = 0x016U, DL_XBAR_PWM_INPUTXBAR4 = 0x017U, DL_XBAR_PWM_INPUTXBAR5 = 0x018U, DL_XBAR_PWM_INPUTXBAR6 = 0x019U, DL_XBAR_PWM_INPUTXBAR7 = 0x01AU, DL_XBAR_PWM_INPUTXBAR8 = 0x01BU, DL_XBAR_PWM_INPUTXBAR9 = 0x01CU, DL_XBAR_PWM_INPUTXBAR10 = 0x01DU, DL_XBAR_PWM_INPUTXBAR11 = 0x01EU, DL_XBAR_PWM_INPUTXBAR12 = 0x01FU, DL_XBAR_PWM_INPUTXBAR13 = 0x100U, DL_XBAR_PWM_INPUTXBAR14 = 0x101U, DL_XBAR_PWM_INPUTXBAR15 = 0x102U, DL_XBAR_PWM_INPUTXBAR16 = 0x103U, DL_XBAR_PWM_ECAP0_OUT = 0x104U, DL_XBAR_PWM_ECAP1_OUT = 0x105U, DL_XBAR_PWM_ADCSOCA = 0x106U, DL_XBAR_PWM_ADCSOCB = 0x107U, DL_XBAR_PWM_EXTSYNCOUT = 0x108U, DL_XBAR_PWM_MCAN_INT0 = 0x109U, DL_XBAR_PWM_EQEP0_ERR = 0x10CU, DL_XBAR_PWM_EQEP1_ERR = 0x10DU, DL_XBAR_PWM_EQEP2_ERR = 0x10EU, DL_XBAR_PWM_CPU_HALTED = 0x10FU}
DL_XBAR_PWMXBARSource.

enum

DL_XBAR_SyncOutSource { DL_XBAR_SYNCOUT_MCPWM0 = 0x0, DL_XBAR_SYNCOUT_MCPWM1 = 0x1, DL_XBAR_SYNCOUT_MCPWM2 = 0x2, DL_XBAR_SYNCOUT_MCPWM3 = 0x3, DL_XBAR_SYNCOUT_MCPWM4 = 0x4, DL_XBAR_SYNCOUT_ECAP0 = 0x18, DL_XBAR_SYNCOUT_ECAP1 = 0x19}
DL_XBAR_SyncOutSource.

Functions

Name

__STATIC_INLINE void

DL_XBAR_setInputXBAR(DL_XBAR_InputNum input, uint8_t pin)
Sets the GPIO or a non-GPIO input to an Input XBAR.

__STATIC_INLINE void

DL_XBAR_enableRawInput(uint8_t pin)
Enable Raw input signal from selected pad.

__STATIC_INLINE void

DL_XBAR_disableRawInput(uint8_t pin)
Disable Raw input signal from selected pad.

__STATIC_INLINE void

DL_XBAR_lockInputXBAR(DL_XBAR_InputNum input)
Locks the Input XBAR.

__STATIC_INLINE void

DL_XBAR_selectOutputXBARSource(DL_XBAR_OutputNum output, DL_XBAR_OutputXBARSource source)
Selects the input to the Output XBAR.

__STATIC_INLINE void

DL_XBAR_deselectOutputXBARSource(DL_XBAR_OutputNum output, DL_XBAR_OutputXBARSource source)
Deselects the input to the Output XBAR.

__STATIC_INLINE void

DL_XBAR_clearOutputXBARSourceSelection(DL_XBAR_OutputNum output)
Clears all the input source selection for the Output XBAR output.

__STATIC_INLINE void

DL_XBAR_invertOutputXBARSignalBeforeLatch(DL_XBAR_OutputNum output, bool invert)
Configure the polarity of the XBAR output before latch.

__STATIC_INLINE void

DL_XBAR_setOutputXBARLatchMode(DL_XBAR_OutputNum output, bool enable)
Enable or disable the output latch to drive the selected output.

__STATIC_INLINE void

DL_XBAR_invertOutputXBARSignal(DL_XBAR_OutputNum output, bool invert)
Configure the polarity of the Output XBAR signal.

__STATIC_INLINE void

DL_XBAR_lockOutputXBAR(void )
Locks the Output XBAR.

__STATIC_INLINE void

DL_XBAR_selectPWMXBARSource(DL_XBAR_TripNum trip, DL_XBAR_PWMXBARSource source)
Selects the input to the PWM XBAR.

__STATIC_INLINE void

DL_XBAR_deselectPWMXBARSource(DL_XBAR_TripNum trip, DL_XBAR_PWMXBARSource source)
Deselects the input to the PWM XBAR.

__STATIC_INLINE void

DL_XBAR_clearPWMXBARSourceSelection(DL_XBAR_TripNum trip)
Clears all the input source selection for the PWM XBAR output.

__STATIC_INLINE void

DL_XBAR_invertPWMXBARSignal(DL_XBAR_TripNum trip, bool invert)
Configure the polarity of the PWM XBAR signal.

__STATIC_INLINE void

DL_XBAR_lockPWMXBAR(void )
Locks the PWM XBAR.

__STATIC_INLINE void

DL_XBAR_setExtSyncOutSource(DL_XBAR_SyncOutSource source)
Set the External SyncOut Source.

__STATIC_INLINE void

DL_XBAR_lockExtSyncOut(void )
Locks the ExtSyncOut Config.

__STATIC_INLINE void

DL_XBAR_setExtADCSOCASource(uint32_t source)
Set the External ADCSOCA Source.

__STATIC_INLINE void

DL_XBAR_setExtADCSOCBSource(uint32_t source)
Set the External ADCSOCB Source.

__STATIC_INLINE void

DL_XBAR_lockExtADCSOCx(void )
Locks the ExtADCSOCx Config.

Defines

Name

DL_XBAR_DRIVE_HIGH
‘1’ will be driven to the destination

DL_XBAR_DRIVE_LOW
‘0’ will be driven to the destination

DL_XBAR_ADCSOCOUT_MCPWM0
Enable MCPWM0SOCA/B for ADCSOCA/B.

DL_XBAR_ADCSOCOUT_MCPWM1
Enable MCPWM1SOCA/B for ADCSOCA/B.

DL_XBAR_ADCSOCOUT_MCPWM2
Enable MCPWM2SOCA/B for ADCSOCA/B.

DL_XBAR_ADCSOCOUT_MCPWM3
Enable MCPWM3SOCA/B for ADCSOCA/B.

DL_XBAR_ADCSOCOUT_MCPWM4
Enable MCPWM4SOCA/B for ADCSOCA/B.

DL_XBAR_LOCK_KEY
Key for the lock register.

Detailed Description

The CrossBar (XBAR) Driver Library allows full configuration of the XBAR module.

Types Documentation

enum DL_XBAR_InputNum

Enumerator

Value

Description

DL_XBAR_INPUT1

XBAR_INPUT1 - Connected to ECAP, PWMXBAR, OUTPUTXBAR.

DL_XBAR_INPUT2

XBAR_INPUT2 - Connected to ECAP, PWMXBAR, OUTPUTXBAR.

DL_XBAR_INPUT3

XBAR_INPUT3 - Connected to ECAP, PWMXBAR, OUTPUTXBAR.

DL_XBAR_INPUT4

XBAR_INPUT4 - Connected to ECAP, PWMXBAR, OUTPUTXBAR.

DL_XBAR_INPUT5

XBAR_INPUT5 - Connected to ECAP, PWMXBAR, OUTPUTXBAR, EXTSYNCIN1.

DL_XBAR_INPUT6

XBAR_INPUT6 - Connected to ECAP, PWMXBAR, OUTPUTXBAR, EXTSYNCIN2.

DL_XBAR_INPUT7

XBAR_INPUT7 - Connected to ECAP, PWMXBAR, OUTPUTXBAR, CMPSS0_EXT_FILTIN_H, CMPSS2_EXT_FILTIN_H.

DL_XBAR_INPUT8

XBAR_INPUT8 - Connected to ECAP, PWMXBAR, OUTPUTXBAR, CMPSS0_EXT_FILTIN_L, CMPSS2_EXT_FILTIN_L.

DL_XBAR_INPUT9

XBAR_INPUT9 - Connected to ECAP, PWMXBAR, OUTPUTXBAR, CMPSS1_EXT_FILTIN_H, CMPSS2_EXT_FILTIN_H.

DL_XBAR_INPUT10

XBAR_INPUT10 - Connected to ECAP, PWMXBAR, OUTPUTXBAR, CMPSS1_EXT_FILTIN_L, CMPSS2_EXT_FILTIN_L

DL_XBAR_INPUT11

XBAR_INPUT11 - Connected to ECAP, PWMXBAR, OUTPUTXBAR.

DL_XBAR_INPUT12

XBAR_INPUT12 - Connected to ECAP, PWMXBAR, OUTPUTXBAR.

DL_XBAR_INPUT13

XBAR_INPUT13 - Connected to ECAP, PWMXBAR, OUTPUTXBAR.

DL_XBAR_INPUT14

XBAR_INPUT14 - Connected to ECAP, PWMXBAR, OUTPUTXBAR.

DL_XBAR_INPUT15

XBAR_INPUT15 - Connected to ECAP, PWMXBAR, OUTPUTXBAR.

DL_XBAR_INPUT16

XBAR_INPUT16 - Connected to ECAP, PWMXBAR, OUTPUTXBAR.

DL_XBAR_INPUT17

XBAR_INPUT17 - Connected to EQEP0A.

DL_XBAR_INPUT18

XBAR_INPUT18 - Connected to EQEP0B.

DL_XBAR_INPUT19

XBAR_INPUT19 - Connected to EQEP0I.

DL_XBAR_INPUT20

XBAR_INPUT20 - Connected to EQEP0S.

DL_XBAR_INPUT21

XBAR_INPUT21 - Connected to EQEP1A.

DL_XBAR_INPUT22

XBAR_INPUT22 - Connected to EQEP1B.

DL_XBAR_INPUT23

XBAR_INPUT23 - Connected to EQEP1I.

DL_XBAR_INPUT24

XBAR_INPUT24 - Connected to EQEP1S.

DL_XBAR_INPUT25

XBAR_INPUT25 - Connected to EQEP2A.

DL_XBAR_INPUT26

XBAR_INPUT26 - Connected to EQEP2B.

DL_XBAR_INPUT27

XBAR_INPUT27 - Connected to EQEP2I.

DL_XBAR_INPUT28

XBAR_INPUT28 - Connected to EQEP2S.

DL_XBAR_InputNum.

enum DL_XBAR_OutputNum

Enumerator

Value

Description

DL_XBAR_OUTPUT1

DL_XBAR_OUTPUT2

DL_XBAR_OUTPUT3

DL_XBAR_OUTPUT4

DL_XBAR_OUTPUT5

DL_XBAR_OUTPUT6

DL_XBAR_OUTPUT7

DL_XBAR_OUTPUT8

DL_XBAR_OUTPUT9

DL_XBAR_OUTPUT10

DL_XBAR_OUTPUT11

DL_XBAR_OUTPUT12

DL_XBAR_OutputNum.

enum DL_XBAR_OutputXBARSource

Enumerator

Value

Description

DL_XBAR_OUT_CMPSS0_CTRIPOUTH

0x000U

DL_XBAR_OUT_CMPSS0_CTRIPOUTL

0x001U

DL_XBAR_OUT_CMPSS1_CTRIPOUTH

0x002U

DL_XBAR_OUT_CMPSS1_CTRIPOUTL

0x003U

DL_XBAR_OUT_CMPSS2_CTRIPOUTH

0x004U

DL_XBAR_OUT_CMPSS2_CTRIPOUTL

0x005U

DL_XBAR_OUT_CMPSS3_CTRIPOUTH

0x006U

DL_XBAR_OUT_CMPSS3_CTRIPOUTL

0x007U

DL_XBAR_OUT_ADC0_EVT1

0x008U

DL_XBAR_OUT_ADC0_EVT2

0x009U

DL_XBAR_OUT_ADC0_EVT3

0x00AU

DL_XBAR_OUT_ADC0_EVT4

0x00BU

DL_XBAR_OUT_ADC1_EVT1

0x00CU

DL_XBAR_OUT_ADC1_EVT2

0x00DU

DL_XBAR_OUT_ADC1_EVT3

0x00EU

DL_XBAR_OUT_ADC1_EVT4

0x00FU

DL_XBAR_OUT_ADC2_EVT1

0x010U

DL_XBAR_OUT_ADC2_EVT2

0x011U

DL_XBAR_OUT_ADC2_EVT3

0x012U

DL_XBAR_OUT_ADC2_EVT4

0x013U

DL_XBAR_OUT_INPUTXBAR1

0x014U

DL_XBAR_OUT_INPUTXBAR2

0x015U

DL_XBAR_OUT_INPUTXBAR3

0x016U

DL_XBAR_OUT_INPUTXBAR4

0x017U

DL_XBAR_OUT_INPUTXBAR5

0x018U

DL_XBAR_OUT_INPUTXBAR6

0x019U

DL_XBAR_OUT_INPUTXBAR7

0x01AU

DL_XBAR_OUT_INPUTXBAR8

0x01BU

DL_XBAR_OUT_INPUTXBAR9

0x01CU

DL_XBAR_OUT_INPUTXBAR10

0x01DU

DL_XBAR_OUT_INPUTXBAR11

0x01EU

DL_XBAR_OUT_INPUTXBAR12

0x01FU

DL_XBAR_OUT_INPUTXBAR13

0x100U

DL_XBAR_OUT_INPUTXBAR14

0x101U

DL_XBAR_OUT_INPUTXBAR15

0x102U

DL_XBAR_OUT_INPUTXBAR16

0x103U

DL_XBAR_OUT_ECAP0_OUT

0x104U

DL_XBAR_OUT_ECAP1_OUT

0x105U

DL_XBAR_OUT_ADCSOCA

0x106U

DL_XBAR_OUT_ADCSOCB

0x107U

DL_XBAR_OUT_EXTSYNCOUT

0x108U

DL_XBAR_OUT_MCAN_INT0

0x109U

DL_XBAR_OUT_EQEP0_ERR

0x10CU

DL_XBAR_OUT_EQEP1_ERR

0x10DU

DL_XBAR_OUT_EQEP2_ERR

0x10EU

DL_XBAR_OUT_EQEP0_INDEX_SYNCOUT

0x10FU

DL_XBAR_OUT_EQEP0_STROBE_SYNCOUT

0x110U

DL_XBAR_OUT_EQEP1_INDEX_SYNCOUT

0x111U

DL_XBAR_OUT_EQEP1_STROBE_SYNCOUT

0x112U

DL_XBAR_OUT_EQEP2_INDEX_SYNCOUT

0x113U

DL_XBAR_OUT_EQEP2_STROBE_SYNCOUT

0x114U

DL_XBAR_OUT_XCLKOUT

0x115U

DL_XBAR_OutputXBARSource.

enum DL_XBAR_TripNum

Enumerator

Value

Description

DL_XBAR_TRIP1

DL_XBAR_TRIP2

DL_XBAR_TRIP3

DL_XBAR_TRIP4

DL_XBAR_TRIP5

DL_XBAR_TRIP6

DL_XBAR_TRIP7

DL_XBAR_TRIP8

DLXBAR_TripNum.

enum DL_XBAR_PWMXBARSource

Enumerator

Value

Description

DL_XBAR_PWM_CMPSS0_CTRIPH

0x000U

DL_XBAR_PWM_CMPSS0_CTRIPL

0x001U

DL_XBAR_PWM_CMPSS1_CTRIPH

0x002U

DL_XBAR_PWM_CMPSS1_CTRIPL

0x003U

DL_XBAR_PWM_CMPSS2_CTRIPH

0x004U

DL_XBAR_PWM_CMPSS2_CTRIPL

0x005U

DL_XBAR_PWM_CMPSS3_CTRIPH

0x006U

DL_XBAR_PWM_CMPSS3_CTRIPL

0x007U

DL_XBAR_PWM_ADC0_EVT1

0x008U

DL_XBAR_PWM_ADC0_EVT2

0x009U

DL_XBAR_PWM_ADC0_EVT3

0x00AU

DL_XBAR_PWM_ADC0_EVT4

0x00BU

DL_XBAR_PWM_ADC1_EVT1

0x00CU

DL_XBAR_PWM_ADC1_EVT2

0x00DU

DL_XBAR_PWM_ADC1_EVT3

0x00EU

DL_XBAR_PWM_ADC1_EVT4

0x00FU

DL_XBAR_PWM_ADC2_EVT1

0x010U

DL_XBAR_PWM_ADC2_EVT2

0x011U

DL_XBAR_PWM_ADC2_EVT3

0x012U

DL_XBAR_PWM_ADC2_EVT4

0x013U

DL_XBAR_PWM_INPUTXBAR1

0x014U

DL_XBAR_PWM_INPUTXBAR2

0x015U

DL_XBAR_PWM_INPUTXBAR3

0x016U

DL_XBAR_PWM_INPUTXBAR4

0x017U

DL_XBAR_PWM_INPUTXBAR5

0x018U

DL_XBAR_PWM_INPUTXBAR6

0x019U

DL_XBAR_PWM_INPUTXBAR7

0x01AU

DL_XBAR_PWM_INPUTXBAR8

0x01BU

DL_XBAR_PWM_INPUTXBAR9

0x01CU

DL_XBAR_PWM_INPUTXBAR10

0x01DU

DL_XBAR_PWM_INPUTXBAR11

0x01EU

DL_XBAR_PWM_INPUTXBAR12

0x01FU

DL_XBAR_PWM_INPUTXBAR13

0x100U

DL_XBAR_PWM_INPUTXBAR14

0x101U

DL_XBAR_PWM_INPUTXBAR15

0x102U

DL_XBAR_PWM_INPUTXBAR16

0x103U

DL_XBAR_PWM_ECAP0_OUT

0x104U

DL_XBAR_PWM_ECAP1_OUT

0x105U

DL_XBAR_PWM_ADCSOCA

0x106U

DL_XBAR_PWM_ADCSOCB

0x107U

DL_XBAR_PWM_EXTSYNCOUT

0x108U

DL_XBAR_PWM_MCAN_INT0

0x109U

DL_XBAR_PWM_EQEP0_ERR

0x10CU

DL_XBAR_PWM_EQEP1_ERR

0x10DU

DL_XBAR_PWM_EQEP2_ERR

0x10EU

DL_XBAR_PWM_CPU_HALTED

0x10FU

DL_XBAR_PWMXBARSource.

enum DL_XBAR_SyncOutSource

Enumerator

Value

Description

DL_XBAR_SYNCOUT_MCPWM0

0x0

DL_XBAR_SYNCOUT_MCPWM1

0x1

DL_XBAR_SYNCOUT_MCPWM2

0x2

DL_XBAR_SYNCOUT_MCPWM3

0x3

DL_XBAR_SYNCOUT_MCPWM4

0x4

DL_XBAR_SYNCOUT_ECAP0

0x18

DL_XBAR_SYNCOUT_ECAP1

0x19

DL_XBAR_SyncOutSource.

Functions Documentation

function DL_XBAR_setInputXBAR

__STATIC_INLINE void DL_XBAR_setInputXBAR(
    DL_XBAR_InputNum input,
    uint8_t pin
)

Sets the GPIO or a non-GPIO input to an Input XBAR.

Parameters:

  • input XBAR input to be configured

  • pin Pin number / DL_XBAR_DRIVE_HIGH / DL_XBAR_DRIVE_LOW

Note: Pin value greater than the available number of GPIO pins on a device (except 0xFF) will cause the destination to be driven ‘1’.

This function configures which GPIO / non-GPIO input is assigned to an Input X-BAR input.

The pin is specified by its numerical value. For example, GPIO34 (PB2) is specified by passing 34 as pin. Other non GPIO values :

  • DL_XBAR_DRIVE_HIGH - ‘1’ will be driven to the destination

  • DL_XBAR_DRIVE_LOW - ‘0’ will be driven to the destination

function DL_XBAR_enableRawInput

__STATIC_INLINE void DL_XBAR_enableRawInput(
    uint8_t pin
)

Enable Raw input signal from selected pad.

Parameters:

  • pin Pin to be configured

See: DL_XBAR_disableRawInput

Note: This selection is common to all the INPUTXBARx output channels

function DL_XBAR_disableRawInput

__STATIC_INLINE void DL_XBAR_disableRawInput(
    uint8_t pin
)

Disable Raw input signal from selected pad.

Parameters:

  • pin Pin to be configured

See: DL_XBAR_enableRawInput

Note: This selection is common to all the INPUTXBARx output channels

function DL_XBAR_lockInputXBAR

__STATIC_INLINE void DL_XBAR_lockInputXBAR(
    DL_XBAR_InputNum input
)

Locks the Input XBAR.

Parameters:

  • input XBAR input to be configured

function DL_XBAR_selectOutputXBARSource

__STATIC_INLINE void DL_XBAR_selectOutputXBARSource(
    DL_XBAR_OutputNum output,
    DL_XBAR_OutputXBARSource source
)

Selects the input to the Output XBAR.

Parameters:

  • output XBAR output to be configured

  • source Input source to the X-BAR output.

See: DL_XBAR_deselectOutputXBARSource

This function selects an input to affect the Output X-BAR output. To select multiple inputs, the function can be called multiple times with the respective inputs. The X-BAR output would be an OR of the selected inputs.

function DL_XBAR_deselectOutputXBARSource

__STATIC_INLINE void DL_XBAR_deselectOutputXBARSource(
    DL_XBAR_OutputNum output,
    DL_XBAR_OutputXBARSource source
)

Deselects the input to the Output XBAR.

Parameters:

  • output XBAR output to be configured

  • source Input source to the X-BAR output.

See: DL_XBAR_selectOutputXBARSource

This function deselects an input to not affect the Output X-BAR output. To deselect multiple inputs, the function can be called multiple times with the respective inputs. The X-BAR output would be an OR of of only the selected inputs

function DL_XBAR_clearOutputXBARSourceSelection

__STATIC_INLINE void DL_XBAR_clearOutputXBARSourceSelection(
    DL_XBAR_OutputNum output
)

Clears all the input source selection for the Output XBAR output.

Parameters:

  • output XBAR output to be configured

See: DL_XBAR_selectOutputXBARSource

function DL_XBAR_invertOutputXBARSignalBeforeLatch

__STATIC_INLINE void DL_XBAR_invertOutputXBARSignalBeforeLatch(
    DL_XBAR_OutputNum output,
    bool invert
)

Configure the polarity of the XBAR output before latch.

Parameters:

  • output XBAR output to be configured

  • invert true if the output signal should be inverted, false otherwise

function DL_XBAR_setOutputXBARLatchMode

__STATIC_INLINE void DL_XBAR_setOutputXBARLatchMode(
    DL_XBAR_OutputNum output,
    bool enable
)

Enable or disable the output latch to drive the selected output.

Parameters:

  • output XBAR output to be configured

  • enable true if the output should be latched, false otherwise

function DL_XBAR_invertOutputXBARSignal

__STATIC_INLINE void DL_XBAR_invertOutputXBARSignal(
    DL_XBAR_OutputNum output,
    bool invert
)

Configure the polarity of the Output XBAR signal.

Parameters:

  • output XBAR output to be configured

  • invert true if the output signal should be inverted, false otherwise

function DL_XBAR_lockOutputXBAR

__STATIC_INLINE void DL_XBAR_lockOutputXBAR(
    void 
)

Locks the Output XBAR.

Note: Once the configuration is locked, writes to GXSEL and INVERT registers are blocked

function DL_XBAR_selectPWMXBARSource

__STATIC_INLINE void DL_XBAR_selectPWMXBARSource(
    DL_XBAR_TripNum trip,
    DL_XBAR_PWMXBARSource source
)

Selects the input to the PWM XBAR.

Parameters:

  • trip PWM XBAR output (trip) to be configured

  • source Input source to the X-BAR output.

See: DL_XBAR_deselectPWMXBARSource

This function selects an input to affect the PWM X-BAR output. To select multiple inputs, the function can be called multiple times with the respective inputs. The X-BAR output would be an OR of the selected inputs.

function DL_XBAR_deselectPWMXBARSource

__STATIC_INLINE void DL_XBAR_deselectPWMXBARSource(
    DL_XBAR_TripNum trip,
    DL_XBAR_PWMXBARSource source
)

Deselects the input to the PWM XBAR.

Parameters:

  • trip PWM XBAR output (trip) to be configured

  • source Input source to the X-BAR output.

See: DL_XBAR_selectPWMXBARSource

This function deselects an input to not affect the PWM X-BAR output. To deselect multiple inputs, the function can be called multiple times with the respective inputs. The X-BAR output would be an OR of of only the selected inputs

function DL_XBAR_clearPWMXBARSourceSelection

__STATIC_INLINE void DL_XBAR_clearPWMXBARSourceSelection(
    DL_XBAR_TripNum trip
)

Clears all the input source selection for the PWM XBAR output.

Parameters:

  • trip PWM XBAR output (trip) to be configured

See: DL_XBAR_selectPWMXBARSource

function DL_XBAR_invertPWMXBARSignal

__STATIC_INLINE void DL_XBAR_invertPWMXBARSignal(
    DL_XBAR_TripNum trip,
    bool invert
)

Configure the polarity of the PWM XBAR signal.

Parameters:

  • trip PWM XBAR output (trip) to be configured

  • invert true if the output signal should be inverted, false otherwise

function DL_XBAR_lockPWMXBAR

__STATIC_INLINE void DL_XBAR_lockPWMXBAR(
    void 
)

Locks the PWM XBAR.

Note: Once the configuration is locked, writes to GXSEL and INVERT registers are blocked

function DL_XBAR_setExtSyncOutSource

__STATIC_INLINE void DL_XBAR_setExtSyncOutSource(
    DL_XBAR_SyncOutSource source
)

Set the External SyncOut Source.

Parameters:

  • source SyncOut Source

Note: EXTSYNCOUT signal can be connected to OutputXBAR to route it an external pin and/or to PWMXBAR to generate a PWM Trip signal

function DL_XBAR_lockExtSyncOut

__STATIC_INLINE void DL_XBAR_lockExtSyncOut(
    void 
)

Locks the ExtSyncOut Config.

Note: Once the configuration is locked, writes to SYNCSELECT registers are blocked

function DL_XBAR_setExtADCSOCASource

__STATIC_INLINE void DL_XBAR_setExtADCSOCASource(
    uint32_t source
)

Set the External ADCSOCA Source.

Parameters:

  • source External ADCSOCA Source. Logical OR of DL_XBAR_ADCSOCOUT_PWMx

Note: EXTADCSOCA signal can be connected to OutputXBAR to route it an external pin and/or to PWMXBAR to generate a PWM Trip signal

function DL_XBAR_setExtADCSOCBSource

__STATIC_INLINE void DL_XBAR_setExtADCSOCBSource(
    uint32_t source
)

Set the External ADCSOCB Source.

Parameters:

  • source External ADCSOCB Source. Logical OR of DL_XBAR_ADCSOCOUT_PWMx

Note: EXTADCSOCB signal can be connected to OutputXBAR to route it an external pin and/or to PWMXBAR to generate a PWM Trip signal

function DL_XBAR_lockExtADCSOCx

__STATIC_INLINE void DL_XBAR_lockExtADCSOCx(
    void 
)

Locks the ExtADCSOCx Config.

Note: Once the configuration is locked, writes to ADCSOCOUTSELECT registers are blocked

Macros Documentation

define DL_XBAR_DRIVE_HIGH

#define DL_XBAR_DRIVE_HIGH 0xFEU

‘1’ will be driven to the destination

define DL_XBAR_DRIVE_LOW

#define DL_XBAR_DRIVE_LOW 0xFFU

‘0’ will be driven to the destination

define DL_XBAR_ADCSOCOUT_MCPWM0

#define DL_XBAR_ADCSOCOUT_MCPWM0 XBAR_ADCSOCOUTSELECT_MCPWM0SOCAEN_MASK

Enable MCPWM0SOCA/B for ADCSOCA/B.

define DL_XBAR_ADCSOCOUT_MCPWM1

#define DL_XBAR_ADCSOCOUT_MCPWM1 XBAR_ADCSOCOUTSELECT_MCPWM1SOCAEN_MASK

Enable MCPWM1SOCA/B for ADCSOCA/B.

define DL_XBAR_ADCSOCOUT_MCPWM2

#define DL_XBAR_ADCSOCOUT_MCPWM2 XBAR_ADCSOCOUTSELECT_MCPWM2SOCAEN_MASK

Enable MCPWM2SOCA/B for ADCSOCA/B.

define DL_XBAR_ADCSOCOUT_MCPWM3

#define DL_XBAR_ADCSOCOUT_MCPWM3 XBAR_ADCSOCOUTSELECT_MCPWM3SOCAEN_MASK

Enable MCPWM3SOCA/B for ADCSOCA/B.

define DL_XBAR_ADCSOCOUT_MCPWM4

#define DL_XBAR_ADCSOCOUT_MCPWM4 XBAR_ADCSOCOUTSELECT_MCPWM4SOCAEN_MASK

Enable MCPWM4SOCA/B for ADCSOCA/B.

define DL_XBAR_LOCK_KEY

#define DL_XBAR_LOCK_KEY 0x5A5A0000U

Key for the lock register.