LL UCPD Functions

Configuration

group UCPD_LL_EF_Configuration

Functions

void LL_UCPD_Enable ( UCPD_TypeDef * p_ucpd )

Enable UCPD peripheral.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR1 UCPDEN LL_UCPD_Enable

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_Disable ( UCPD_TypeDef * p_ucpd )

Disable UCPD peripheral.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR1 UCPDEN LL_UCPD_Disable

Note

When disabling the UCPD, follow the procedure described in the Reference Manual.

Parameters :

p_ucpd – UCPD Instance.

uint32_t LL_UCPD_IsEnabled ( const UCPD_TypeDef * p_ucpd )

Check if UCPD peripheral is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR1 UCPDEN LL_UCPD_IsEnabled

Parameters :

p_ucpd – UCPD Instance.

Return values :
  • 0 – UCPD peripheral is disabled.

  • 1 – UCPD peripheral is enabled.

void LL_UCPD_SetRxOrderSet ( UCPD_TypeDef * p_ucpd , uint32_t OrderSet )

Set the receiver ordered set detection enable.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR1 RXORDSETEN LL_UCPD_SetRxOrderSet

Parameters :
uint32_t LL_UCPD_GetRxOrderSet ( const UCPD_TypeDef * p_ucpd )

Get the receiver ordered set detection enable.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR1 RXORDSETEN LL_UCPD_GetRxOrderSet

Parameters :

p_ucpd – UCPD Instance.

Returns :

Returned value can be one of the following values:

void LL_UCPD_SetPSCClk ( UCPD_TypeDef * p_ucpd , uint32_t Psc )

Set the prescaler for UCPD clock.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR1 UCPDCLK LL_UCPD_SetPSCClk

Parameters :
uint32_t LL_UCPD_GetPSCClk ( const UCPD_TypeDef * p_ucpd )

Get the prescaler for UCPD clock.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR1 UCPDCLK LL_UCPD_GetPSCClk

Parameters :

p_ucpd – UCPD Instance.

Returns :

Returned value can be one of the following values:

void LL_UCPD_SetTransWin ( UCPD_TypeDef * p_ucpd , uint32_t TransWin )

Set the clock divider producing transition window clock from hbit_clk.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR1 TRANSWIN LL_UCPD_SetTransWin

Parameters :
uint32_t LL_UCPD_GetTransWin ( const UCPD_TypeDef * p_ucpd )

Get the clock divider producing transition window clock from hbit_clk.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR1 TRANSWIN LL_UCPD_GetTransWin

Parameters :

p_ucpd – UCPD Instance.

Returns :

Returned value can be one of the following values:

void LL_UCPD_SetIfrGap ( UCPD_TypeDef * p_ucpd , uint32_t IfrGap )

Set the clock divider value to generate an interframe gap.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR1 IFRGAP LL_UCPD_SetIfrGap

Parameters :
uint32_t LL_UCPD_GetIfrGap ( const UCPD_TypeDef * p_ucpd )

Get the clock divider value for generating an interframe gap.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR1 IFRGAP LL_UCPD_GetIfrGap

Parameters :

p_ucpd – UCPD Instance.

Returns :

Returned value can be one of the following values:

void LL_UCPD_SetHbitClockDiv ( UCPD_TypeDef * p_ucpd , uint32_t HbitClock )

Set the half bit clock divider.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR1 HBITCLKDIV LL_UCPD_SetHbitClockDiv

Parameters :
uint32_t LL_UCPD_GetHbitClockDiv ( const UCPD_TypeDef * p_ucpd )

Set the half bit clock divider.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR1 HBITCLKDIV LL_UCPD_GetHbitClockDiv

Parameters :

p_ucpd – UCPD Instance.

Returns :

Returned value can be one of the following values:

Functions

void LL_UCPD_RxAnalogFilterEnable ( UCPD_TypeDef * p_ucpd )

Enable the Rx analog filter.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR2 RXAFILTEN LL_UCPD_RxAnalogFilterEnable

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_RxAnalogFilterDisable ( UCPD_TypeDef * p_ucpd )

Disable the Rx analog filter.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR2 RXAFILTEN LL_UCPD_RxAnalogFilterDisable

Parameters :

p_ucpd – UCPD Instance.

uint32_t LL_UCPD_IsEnabledRxAnalogFilter ( const UCPD_TypeDef * p_ucpd )

Check if the Rx analog filter is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR2 RXAFILTEN LL_UCPD_IsEnabledRxAnalogFilter

Parameters :

p_ucpd – UCPD Instance.

Return values :
  • 0 – Rx analog filter is disabled.

  • 1 – Rx analog filter is enabled.

void LL_UCPD_WakeUpEnable ( UCPD_TypeDef * p_ucpd )

Enable the wakeup mode.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR2 WUPEN LL_UCPD_WakeUpEnable

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_WakeUpDisable ( UCPD_TypeDef * p_ucpd )

Disable the wakeup mode.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR2 WUPEN LL_UCPD_WakeUpDisable

Parameters :

p_ucpd – UCPD Instance.

uint32_t LL_UCPD_IsEnabledWakeUp ( const UCPD_TypeDef * p_ucpd )

Check if wakeup mode is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR2 WUPEN LL_UCPD_IsEnabledWakeUp

Parameters :

p_ucpd – UCPD Instance.

Return values :
  • 0 – Wakeup mode is disabled.

  • 1 – Wakeup mode is enabled.

void LL_UCPD_ForceClockEnable ( UCPD_TypeDef * p_ucpd )

Enable ClkReq clock request forcing.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR2 FORCECLK LL_UCPD_ForceClockEnable

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_ForceClockDisable ( UCPD_TypeDef * p_ucpd )

Disable ClkReq clock request forcing.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR2 FORCECLK LL_UCPD_ForceClockDisable

Parameters :

p_ucpd – UCPD Instance.

uint32_t LL_UCPD_IsEnabledForceClock ( const UCPD_TypeDef * p_ucpd )

Check if ClkReq clock request forcing is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR2 FORCECLK LL_UCPD_IsEnabledForceClock

Parameters :

p_ucpd – UCPD Instance.

Return values :
  • 0 – ClkReq clock request forcing is disabled.

  • 1 – ClkReq clock request forcing is enabled.

void LL_UCPD_SetRxPreFilterSampling ( UCPD_TypeDef * p_ucpd , uint32_t rx_filt_samples )

Set BMC decoder Rx pre-filter sampling method.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR2 RXFILT2N3 LL_UCPD_SetRxPreFilterSampling

Parameters :
uint32_t LL_UCPD_GetRxPreFilterSampling ( const UCPD_TypeDef * p_ucpd )

Get BMC decoder Rx pre-filter sampling method.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR2 RXFILT2N3 LL_UCPD_GetRxPreFilterSampling

Parameters :

p_ucpd – UCPD Instance.

Return values :

BMC – decoder Rx pre-filter sampling method.

void LL_UCPD_RxPreFilterEnable ( UCPD_TypeDef * p_ucpd )

BMC decoder Rx pre-filter enable.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR2 RXFILTDIS LL_UCPD_RxPreFilterEnable

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_RxPreFilterDisable ( UCPD_TypeDef * p_ucpd )

BMC decoder Rx pre-filter disable.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR2 RXFILTDIS LL_UCPD_RxPreFilterDisable

Parameters :

p_ucpd – UCPD Instance.

uint32_t LL_UCPD_IsEnabledRxPreFilter ( const UCPD_TypeDef * p_ucpd )

Check if BMC decoder Rx pre-filter is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR2 RXFILTDIS LL_UCPD_IsEnabledRxPreFilter

Parameters :

p_ucpd – UCPD Instance.

Return values :
  • 0 – BMC decoder Rx pre-filter is disabled.

  • 1 – BMC decoder Rx pre-filter is enabled.

Functions

void LL_UCPD_SetTrimCC1_Rp ( UCPD_TypeDef * p_ucpd , uint32_t trim_cc1_rp )

Apply trimming of Rp resistor on the CC1 line.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR3 TRIM_CC1_RP LL_UCPD_SetTrimCC1_Rp

Parameters :
  • p_ucpd – UCPD Instance.

  • trim_cc1_rp – SW trim value for Rp resistor on the CC1 line. Value between 0x0 and 0xF.

uint32_t LL_UCPD_GetTrimCC1_Rp ( const UCPD_TypeDef * p_ucpd )

Get trimming of Rp resistor on the CC1 line.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR3 TRIM_CC1_RP LL_UCPD_GetTrimCC1_Rp

Parameters :

p_ucpd – UCPD Instance.

Return values :

SW – trim value for Rp resistor on the CC1 line. Value between 0x0 and 0xF.

void LL_UCPD_SetTrimCC2_Rp ( UCPD_TypeDef * p_ucpd , uint32_t trim_cc2_rp )

Apply trimming of Rp resistor on the CC2 line.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR3 TRIM_CC2_RP LL_UCPD_SetTrimCC2_Rp

Parameters :
  • p_ucpd – UCPD Instance.

  • trim_cc2_rp – SW trim value for Rp resistor on the CC2 line. Value between 0x0 and 0xF.

uint32_t LL_UCPD_GetTrimCC2_Rp ( const UCPD_TypeDef * p_ucpd )

Get trimming of Rp resistor on the CC2 line.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR3 TRIM_CC2_RP LL_UCPD_GetTrimCC2_Rp

Parameters :

p_ucpd – UCPD Instance.

Return values :

SW – trim value for Rp resistor on the CC2 line. Value between 0x0 and 0xF.

void LL_UCPD_SetTrimCC1_Rd ( UCPD_TypeDef * p_ucpd , uint32_t trim_cc1_rd )

Apply trimming of Rd resistor on the CC1 line.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR3 TRIM_CC1_RD LL_UCPD_SetTrimCC1_Rd

Parameters :
  • p_ucpd – UCPD Instance.

  • trim_cc1_rd – SW trim value for Rd resistor on the CC1 line. Value between 0x0 and 0xF.

uint32_t LL_UCPD_GetTrimCC1_Rd ( const UCPD_TypeDef * p_ucpd )

Get trimming of Rd resistor on the CC1 line.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR3 TRIM_CC1_RD LL_UCPD_GetTrimCC1_Rd

Parameters :

p_ucpd – UCPD Instance.

Return values :

SW – trim value for Rd resistor on the CC1 line. Value between 0x0 and 0xF.

void LL_UCPD_SetTrimCC2_Rd ( UCPD_TypeDef * p_ucpd , uint32_t trim_cc2_rd )

Apply trimming of Rd resistor on the CC2 line.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR3 TRIM_CC2_RD LL_UCPD_SetTrimCC2_Rd

Parameters :
  • p_ucpd – UCPD Instance.

  • trim_cc2_rd – SW trim value for Rd resistor on the CC2 line. Value between 0x0 and 0xF.

uint32_t LL_UCPD_GetTrimCC2_Rd ( const UCPD_TypeDef * p_ucpd )

Get trimming of Rd resistor on the CC2 line.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR3 TRIM_CC2_RD LL_UCPD_GetTrimCC2_Rd

Parameters :

p_ucpd – UCPD Instance.

Return values :

SW – trim value for Rd resistor on the CC2 line. Value between 0x0 and 0xF.

CR register

group UCPD_LL_EF_CR

Functions

void LL_UCPD_TypeCDetectionCC2Enable ( UCPD_TypeDef * p_ucpd )

Type-C detector for CC2 enable.

Reference Manual to LL API cross reference (Register Field Functions)

CR CC2TCDIS LL_UCPD_TypeCDetectionCC2Enable

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_TypeCDetectionCC2Disable ( UCPD_TypeDef * p_ucpd )

Type-C detector for CC2 disable.

Reference Manual to LL API cross reference (Register Field Functions)

CR CC2TCDIS LL_UCPD_TypeCDetectionCC2Disable

Parameters :

p_ucpd – UCPD Instance.

uint32_t LL_UCPD_IsEnabledTypeCDetectionCC2 ( const UCPD_TypeDef * p_ucpd )

Check if Type-C detector for CC2 is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR CC2TCDIS LL_UCPD_IsEnabledTypeCDetectionCC2

Parameters :

p_ucpd – UCPD Instance.

Return values :
  • 0 – Type-C detector for CC2 is disabled.

  • 1 – Type-C detector for CC2 is enabled.

void LL_UCPD_TypeCDetectionCC1Enable ( UCPD_TypeDef * p_ucpd )

Type-C detector for CC1 enable.

Reference Manual to LL API cross reference (Register Field Functions)

CR CC1TCDIS LL_UCPD_TypeCDetectionCC1Enable

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_TypeCDetectionCC1Disable ( UCPD_TypeDef * p_ucpd )

Type-C detector for CC1 disable.

Reference Manual to LL API cross reference (Register Field Functions)

CR CC1TCDIS LL_UCPD_TypeCDetectionCC1Disable

Parameters :

p_ucpd – UCPD Instance.

uint32_t LL_UCPD_IsEnabledTypeCDetectionCC1 ( const UCPD_TypeDef * p_ucpd )

Check if Type-C detector for CC1 is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR CC1TCDIS LL_UCPD_IsEnabledTypeCDetectionCC1

Parameters :

p_ucpd – UCPD Instance.

Return values :
  • 0 – Type-C detector for CC1 is disabled.

  • 1 – Type-C detector for CC1 is enabled.

void LL_UCPD_VconnDischargeEnable ( UCPD_TypeDef * p_ucpd )

Source Vconn discharge enable.

Reference Manual to LL API cross reference (Register Field Functions)

CR RDCH LL_UCPD_VconnDischargeEnable

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_VconnDischargeDisable ( UCPD_TypeDef * p_ucpd )

Source Vconn discharge disable.

Reference Manual to LL API cross reference (Register Field Functions)

CR RDCH LL_UCPD_VconnDischargeDisable

Parameters :

p_ucpd – UCPD Instance.

uint32_t LL_UCPD_IsEnabledVconnDischarge ( const UCPD_TypeDef * p_ucpd )

Check if source Vconn discharge is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR RDCH LL_UCPD_IsEnabledVconnDischarge

Parameters :

p_ucpd – UCPD Instance.

Return values :
  • 0 – Source Vconn discharge is disabled.

  • 1 – Source Vconn discharge is enabled.

void LL_UCPD_SignalFRSTX ( UCPD_TypeDef * p_ucpd )

Signal Fast Role Swap request.

Reference Manual to LL API cross reference (Register Field Functions)

CR FRSTX LL_UCPD_SignalFRSTX

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_FRSDetectionEnable ( UCPD_TypeDef * p_ucpd )

Fast Role Swap RX detection enable.

Reference Manual to LL API cross reference (Register Field Functions)

CR FRSRXEN LL_UCPD_FRSDetectionEnable

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_FRSDetectionDisable ( UCPD_TypeDef * p_ucpd )

Fast Role Swap RX detection disable.

Reference Manual to LL API cross reference (Register Field Functions)

CR FRSRXEN LL_UCPD_FRSDetectionDisable

Parameters :

p_ucpd – UCPD Instance.

uint32_t LL_UCPD_IsEnabledFRSDetection ( const UCPD_TypeDef * p_ucpd )

Check if Fast Role Swap RX detection is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR FRSRXEN LL_UCPD_IsEnabledFRSDetection

Parameters :

p_ucpd – UCPD Instance.

Return values :
  • 0 – Fast Role Swap RX detection is disabled.

  • 1 – Fast Role Swap RX detection is enabled.

void LL_UCPD_SetCCEnable ( UCPD_TypeDef * p_ucpd , uint32_t CCEnable )

Set CC line enable.

Reference Manual to LL API cross reference (Register Field Functions)

CR CCENABLE LL_UCPD_SetCCEnable

Parameters :
uint32_t LL_UCPD_GetCCEnable ( const UCPD_TypeDef * p_ucpd )

Get CC line enable.

Reference Manual to LL API cross reference (Register Field Functions)

CR CCENABLE LL_UCPD_GetCCEnable

Parameters :

p_ucpd – UCPD Instance.

Returns :

Returned value can be one of the following values:

void LL_UCPD_SetRole ( UCPD_TypeDef * p_ucpd , uint32_t Role )

Set UCPD SNK/SRC role.

Reference Manual to LL API cross reference (Register Field Functions)

CR ANAMODE LL_UCPD_SetRole

Parameters :
uint32_t LL_UCPD_GetRole ( const UCPD_TypeDef * p_ucpd )

Get UCPD Role.

Reference Manual to LL API cross reference (Register Field Functions)

CR ANAMODE LL_UCPD_GetRole

Parameters :

p_ucpd – UCPD Instance.

Returns :

Returned value can be one of the following values:

void LL_UCPD_SetRpResistor ( UCPD_TypeDef * p_ucpd , uint32_t Resistor )

Set Rp resistor.

Reference Manual to LL API cross reference (Register Field Functions)

CR ANASUBMODE LL_UCPD_SetRpResistor

Parameters :
uint32_t LL_UCPD_GetRpResistor ( const UCPD_TypeDef * p_ucpd )

Get Rp resistor.

Reference Manual to LL API cross reference (Register Field Functions)

CR ANASUBMODE LL_UCPD_GetRpResistor

Parameters :

p_ucpd – UCPD Instance.

Returns :

Returned value can be one of the following values:

void LL_UCPD_SetCCPin ( UCPD_TypeDef * p_ucpd , uint32_t CCPin )

Set CC pin.

Reference Manual to LL API cross reference (Register Field Functions)

CR PHYCCSEL LL_UCPD_SetCCPin

Parameters :
uint32_t LL_UCPD_GetCCPin ( const UCPD_TypeDef * p_ucpd )

Get CC pin.

Reference Manual to LL API cross reference (Register Field Functions)

CR PHYCCSEL LL_UCPD_GetCCPin

Parameters :

p_ucpd – UCPD Instance.

Returns :

Returned value can be one of the following values:

void LL_UCPD_RxEnable ( UCPD_TypeDef * p_ucpd )

Rx enable.

Reference Manual to LL API cross reference (Register Field Functions)

CR PHYRXEN LL_UCPD_RxEnable

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_RxDisable ( UCPD_TypeDef * p_ucpd )

Rx disable.

Reference Manual to LL API cross reference (Register Field Functions)

CR PHYRXEN LL_UCPD_RxDisable

Parameters :

p_ucpd – UCPD Instance.

uint32_t LL_UCPD_IsEnabledRx ( const UCPD_TypeDef * p_ucpd )

Check if Rx is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR PHYRXEN LL_UCPD_IsEnabledIT_FRS

Parameters :

p_ucpd – UCPD Instance.

Return values :
  • 0 – Rx is disabled.

  • 1 – Rx is enabled.

void LL_UCPD_SetRxMode ( UCPD_TypeDef * p_ucpd , uint32_t RxMode )

Set Rx mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR RXMODE LL_UCPD_SetRxMode

Parameters :
uint32_t LL_UCPD_GetRxMode ( const UCPD_TypeDef * p_ucpd )

Get Rx mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR RXMODE LL_UCPD_GetRxMode

Parameters :

p_ucpd – UCPD Instance.

Returns :

Returned value can be one of the following values:

void LL_UCPD_SendHardReset ( UCPD_TypeDef * p_ucpd )

Send Hard Reset.

Reference Manual to LL API cross reference (Register Field Functions)

CR TXHRST LL_UCPD_SendHardReset

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_SendMessage ( UCPD_TypeDef * p_ucpd )

Send message.

Reference Manual to LL API cross reference (Register Field Functions)

CR TXSEND LL_UCPD_SendMessage

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_SetTxMode ( UCPD_TypeDef * p_ucpd , uint32_t TxMode )

Set Tx mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR TXMODE LL_UCPD_SetTxMode

Parameters :
uint32_t LL_UCPD_GetTxMode ( const UCPD_TypeDef * p_ucpd )

Get Tx mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR TXMODE LL_UCPD_GetTxMode

Parameters :

p_ucpd – UCPD Instance.

Returns :

Returned value can be one of the following values:

Interrupt Management

group UCPD_LL_EF_IT_Management

Functions

void LL_UCPD_EnableIT_FRS ( UCPD_TypeDef * p_ucpd )

Enable FRS interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

IMR FRSEVTIE LL_UCPD_EnableIT_FRS

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_EnableIT_TypeCEventCC2 ( UCPD_TypeDef * p_ucpd )

Enable Type-C event on CC2.

Reference Manual to LL API cross reference (Register Field Functions)

IMR TYPECEVT2IE LL_UCPD_EnableIT_TypeCEventCC2

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_EnableIT_TypeCEventCC1 ( UCPD_TypeDef * p_ucpd )

Enable Type-C event on CC1.

Reference Manual to LL API cross reference (Register Field Functions)

IMR TYPECEVT1IE LL_UCPD_EnableIT_TypeCEventCC1

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_EnableIT_RxMsgEnd ( UCPD_TypeDef * p_ucpd )

Enable Rx message end interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

IMR RXMSGENDIE LL_UCPD_EnableIT_RxMsgEnd

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_EnableIT_RxOvr ( UCPD_TypeDef * p_ucpd )

Enable Rx overrun interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

IMR RXOVRIE LL_UCPD_EnableIT_RxOvr

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_EnableIT_RxHRST ( UCPD_TypeDef * p_ucpd )

Enable Rx hard reset interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

IMR RXHRSTDETIE LL_UCPD_EnableIT_RxHRST

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_EnableIT_RxOrderSet ( UCPD_TypeDef * p_ucpd )

Enable Rx ordered set interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

IMR RXORDDETIE LL_UCPD_EnableIT_RxOrderSet

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_EnableIT_RxNE ( UCPD_TypeDef * p_ucpd )

Enable Rx non empty interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

IMR RXNEIE LL_UCPD_EnableIT_RxNE

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_EnableIT_TxUND ( UCPD_TypeDef * p_ucpd )

Enable TX underrun interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

IMR TXUNDIE LL_UCPD_EnableIT_TxUND

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_EnableIT_TxHRSTSENT ( UCPD_TypeDef * p_ucpd )

Enable hard reset sent interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

IMR HRSTSENTIE LL_UCPD_EnableIT_TxHRSTSENT

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_EnableIT_TxHRSTDISC ( UCPD_TypeDef * p_ucpd )

Enable hard reset discard interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

IMR HRSTDISCIE LL_UCPD_EnableIT_TxHRSTDISC

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_EnableIT_TxMSGABT ( UCPD_TypeDef * p_ucpd )

Enable Tx message abort interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

IMR TXMSGABTIE LL_UCPD_EnableIT_TxMSGABT

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_EnableIT_TxMSGSENT ( UCPD_TypeDef * p_ucpd )

Enable Tx message sent interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

IMR TXMSGSENTIE LL_UCPD_EnableIT_TxMSGSENT

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_EnableIT_TxMSGDISC ( UCPD_TypeDef * p_ucpd )

Enable Tx message discarded interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

IMR TXMSGDISCIE LL_UCPD_EnableIT_TxMSGDISC

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_EnableIT_TxIS ( UCPD_TypeDef * p_ucpd )

Enable Tx data receive interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

IMR TXISIE LL_UCPD_EnableIT_TxIS

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_DisableIT_FRS ( UCPD_TypeDef * p_ucpd )

Disable FRS interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

IMR FRSEVTIE LL_UCPD_DisableIT_FRS

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_DisableIT_TypeCEventCC2 ( UCPD_TypeDef * p_ucpd )

Disable Type-C event on CC2.

Reference Manual to LL API cross reference (Register Field Functions)

IMR TYPECEVT2IE LL_UCPD_DisableIT_TypeCEventCC2

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_DisableIT_TypeCEventCC1 ( UCPD_TypeDef * p_ucpd )

Disable Type-C event on CC1.

Reference Manual to LL API cross reference (Register Field Functions)

IMR TYPECEVT1IE LL_UCPD_DisableIT_TypeCEventCC1

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_DisableIT_RxMsgEnd ( UCPD_TypeDef * p_ucpd )

Disable Rx message end interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

IMR RXMSGENDIE LL_UCPD_DisableIT_RxMsgEnd

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_DisableIT_RxOvr ( UCPD_TypeDef * p_ucpd )

Disable Rx overrun interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

IMR RXOVRIE LL_UCPD_DisableIT_RxOvr

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_DisableIT_RxHRST ( UCPD_TypeDef * p_ucpd )

Disable Rx hard reset interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

IMR RXHRSTDETIE LL_UCPD_DisableIT_RxHRST

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_DisableIT_RxOrderSet ( UCPD_TypeDef * p_ucpd )

Disable Rx ordered set interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

IMR RXORDDETIE LL_UCPD_DisableIT_RxOrderSet

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_DisableIT_RxNE ( UCPD_TypeDef * p_ucpd )

Disable Rx non empty interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

IMR RXNEIE LL_UCPD_DisableIT_RxNE

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_DisableIT_TxUND ( UCPD_TypeDef * p_ucpd )

Disable TX underrun interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

IMR TXUNDIE LL_UCPD_DisableIT_TxUND

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_DisableIT_TxHRSTSENT ( UCPD_TypeDef * p_ucpd )

Disable hard reset sent interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

IMR HRSTSENTIE LL_UCPD_DisableIT_TxHRSTSENT

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_DisableIT_TxHRSTDISC ( UCPD_TypeDef * p_ucpd )

Disable hard reset discard interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

IMR HRSTDISCIE LL_UCPD_DisableIT_TxHRSTDISC

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_DisableIT_TxMSGABT ( UCPD_TypeDef * p_ucpd )

Disable Tx message abort interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

IMR TXMSGABTIE LL_UCPD_DisableIT_TxMSGABT

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_DisableIT_TxMSGSENT ( UCPD_TypeDef * p_ucpd )

Disable Tx message sent interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

IMR TXMSGSENTIE LL_UCPD_DisableIT_TxMSGSENT

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_DisableIT_TxMSGDISC ( UCPD_TypeDef * p_ucpd )

Disable Tx message discarded interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

IMR TXMSGDISCIE LL_UCPD_DisableIT_TxMSGDISC

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_DisableIT_TxIS ( UCPD_TypeDef * p_ucpd )

Disable Tx data receive interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

IMR TXISIE LL_UCPD_DisableIT_TxIS

Parameters :

p_ucpd – UCPD Instance.

uint32_t LL_UCPD_IsEnabledIT_FRS ( const UCPD_TypeDef * p_ucpd )

Check if FRS interrupt is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

IMR FRSEVTIE LL_UCPD_IsEnabledIT_FRS

Parameters :

p_ucpd – UCPD Instance.

Return values :
  • 0 – FRS interrupt is disabled.

  • 1 – FRS interrupt is enabled.

uint32_t LL_UCPD_IsEnabledIT_TypeCEventCC2 ( const UCPD_TypeDef * p_ucpd )

Check if Type-C event on CC2 is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

IMR TYPECEVT2IE LL_UCPD_IsEnabledIT_TypeCEventCC2

Parameters :

p_ucpd – UCPD Instance.

Return values :
  • 0 – Type-C event on CC2 is disabled.

  • 1 – Type-C event on CC2 is enabled.

uint32_t LL_UCPD_IsEnabledIT_TypeCEventCC1 ( const UCPD_TypeDef * p_ucpd )

Check if Type-C event on CC1 is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

IMR2 TYPECEVT1IE LL_UCPD_IsEnabledIT_TypeCEventCC1

Parameters :

p_ucpd – UCPD Instance.

Return values :
  • 0 – Type-C event on CC1 is disabled.

  • 1 – Type-C event on CC1 is enabled.

uint32_t LL_UCPD_IsEnabledIT_RxMsgEnd ( const UCPD_TypeDef * p_ucpd )

Check if Rx message end interrupt is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

IMR RXMSGENDIE LL_UCPD_IsEnabledIT_RxMsgEnd

Parameters :

p_ucpd – UCPD Instance.

Return values :
  • 0 – Rx message end interrupt is disabled.

  • 1 – Rx message end interrupt is enabled.

uint32_t LL_UCPD_IsEnabledIT_RxOvr ( const UCPD_TypeDef * p_ucpd )

Check if Rx overrun interrupt is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

IMR RXOVRIE LL_UCPD_IsEnabledIT_RxOvr

Parameters :

p_ucpd – UCPD Instance.

Return values :
  • 0 – Rx overrun interrupt is disabled.

  • 1 – Rx overrun interrupt is enabled.

uint32_t LL_UCPD_IsEnabledIT_RxHRST ( const UCPD_TypeDef * p_ucpd )

Check if Rx hard reset interrupt is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

IMR RXHRSTDETIE LL_UCPD_IsEnabledIT_RxHRST

Parameters :

p_ucpd – UCPD Instance.

Return values :
  • 0 – Rx hard reset interrupt is disabled.

  • 1 – Rx hard reset interrupt is enabled.

uint32_t LL_UCPD_IsEnabledIT_RxOrderSet ( const UCPD_TypeDef * p_ucpd )

Check if Rx ordered set interrupt is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

IMR RXORDDETIE LL_UCPD_IsEnabledIT_RxOrderSet

Parameters :

p_ucpd – UCPD Instance.

Return values :
  • 0 – Rx ordered set interrupt is disabled.

  • 1 – Rx ordered set interrupt is enabled.

uint32_t LL_UCPD_IsEnabledIT_RxNE ( const UCPD_TypeDef * p_ucpd )

Check if Rx non empty interrupt is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

IMR RXNEIE LL_UCPD_IsEnabledIT_RxNE

Parameters :

p_ucpd – UCPD Instance.

Return values :
  • 0 – Rx non empty interrupt is disabled.

  • 1 – Rx non empty interrupt is enabled.

uint32_t LL_UCPD_IsEnabledIT_TxUND ( const UCPD_TypeDef * p_ucpd )

Check if TX underrun interrupt is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

IMR TXUNDIE LL_UCPD_IsEnabledIT_TxUND

Parameters :

p_ucpd – UCPD Instance.

Return values :
  • 0 – TX underrun interrupt is disabled.

  • 1 – TX underrun interrupt is enabled.

uint32_t LL_UCPD_IsEnabledIT_TxHRSTSENT ( const UCPD_TypeDef * p_ucpd )

Check if hard reset sent interrupt is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

IMR HRSTSENTIE LL_UCPD_IsEnabledIT_TxHRSTSENT

Parameters :

p_ucpd – UCPD Instance.

Return values :
  • 0 – Hard reset sent interrupt is disabled.

  • 1 – Hard reset sent interrupt is enabled.

uint32_t LL_UCPD_IsEnabledIT_TxHRSTDISC ( const UCPD_TypeDef * p_ucpd )

Check if hard reset discard interrupt is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

IMR HRSTDISCIE LL_UCPD_IsEnabledIT_TxHRSTDISC

Parameters :

p_ucpd – UCPD Instance.

Return values :
  • 0 – Hard reset discard interrupt is disabled.

  • 1 – Hard reset discard interrupt is enabled.

uint32_t LL_UCPD_IsEnabledIT_TxMSGABT ( const UCPD_TypeDef * p_ucpd )

Check if Tx message abort interrupt is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

IMR TXMSGABTIE LL_UCPD_IsEnabledIT_TxMSGABT

Parameters :

p_ucpd – UCPD Instance.

Return values :
  • 0 – Tx message abort interrupt is enabled is disabled.

  • 1 – Tx message abort interrupt is enabled is enabled.

uint32_t LL_UCPD_IsEnabledIT_TxMSGSENT ( const UCPD_TypeDef * p_ucpd )

Check if Tx message sent interrupt is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

IMR TXMSGSENTIE LL_UCPD_IsEnabledIT_TxMSGSENT

Parameters :

p_ucpd – UCPD Instance.

Return values :
  • 0 – Tx message sent interrupt is disabled.

  • 1 – Tx message sent interrupt is enabled.

uint32_t LL_UCPD_IsEnabledIT_TxMSGDISC ( const UCPD_TypeDef * p_ucpd )

Check if Tx message discarded interrupt is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

IMR TXMSGDISCIE LL_UCPD_IsEnabledIT_TxMSGDISC

Parameters :

p_ucpd – UCPD Instance.

Return values :
  • 0 – Tx message discarded interrupt is disabled.

  • 1 – Tx message discarded interrupt is enabled.

uint32_t LL_UCPD_IsEnabledIT_TxIS ( const UCPD_TypeDef * p_ucpd )

Check if Tx data receive interrupt is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

IMR TXISIE LL_UCPD_IsEnabledIT_TxIS

Parameters :

p_ucpd – UCPD Instance.

Return values :
  • 0 – Tx data receive interrupt is disabled.

  • 1 – Tx data receive interrupt is enabled.

Interrupt Clear

group UCPD_LL_EF_IT_Clear

Functions

void LL_UCPD_ClearFlag_FRS ( UCPD_TypeDef * p_ucpd )

Clear FRS interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

ICR FRSEVTCF LL_UCPD_ClearFlag_FRS

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_ClearFlag_TypeCEventCC2 ( UCPD_TypeDef * p_ucpd )

Clear Type-C event on CC2.

Reference Manual to LL API cross reference (Register Field Functions)

ICR TYPECEVT2CF LL_UCPD_ClearFlag_TypeCEventCC2

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_ClearFlag_TypeCEventCC1 ( UCPD_TypeDef * p_ucpd )

Clear Type-C event on CC1.

Reference Manual to LL API cross reference (Register Field Functions)

ICR TYPECEVT1CF LL_UCPD_ClearFlag_TypeCEventCC1

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_ClearFlag_RxMsgEnd ( UCPD_TypeDef * p_ucpd )

Clear Rx message end interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

ICR RXMSGENDCF LL_UCPD_ClearFlag_RxMsgEnd

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_ClearFlag_RxOvr ( UCPD_TypeDef * p_ucpd )

Clear Rx overrun interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

ICR RXOVRCF LL_UCPD_ClearFlag_RxOvr

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_ClearFlag_RxHRST ( UCPD_TypeDef * p_ucpd )

Clear Rx hard reset interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

ICR RXHRSTDETCF LL_UCPD_ClearFlag_RxHRST

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_ClearFlag_RxOrderSet ( UCPD_TypeDef * p_ucpd )

Clear Rx ordered set interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

ICR RXORDDETCF LL_UCPD_ClearFlag_RxOrderSet

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_ClearFlag_TxUND ( UCPD_TypeDef * p_ucpd )

Clear TX underrun interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

ICR TXUNDCF LL_UCPD_ClearFlag_TxUND

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_ClearFlag_TxHRSTSENT ( UCPD_TypeDef * p_ucpd )

Clear hard reset sent interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

ICR HRSTSENTCF LL_UCPD_ClearFlag_TxHRSTSENT

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_ClearFlag_TxHRSTDISC ( UCPD_TypeDef * p_ucpd )

Clear hard reset discard interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

ICR HRSTDISCCF LL_UCPD_ClearFlag_TxHRSTDISC

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_ClearFlag_TxMSGABT ( UCPD_TypeDef * p_ucpd )

Clear Tx message abort interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

ICR TXMSGABTCF LL_UCPD_ClearFlag_TxMSGABT

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_ClearFlag_TxMSGSENT ( UCPD_TypeDef * p_ucpd )

Clear Tx message sent interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

ICR TXMSGSENTCF LL_UCPD_ClearFlag_TxMSGSENT

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_ClearFlag_TxMSGDISC ( UCPD_TypeDef * p_ucpd )

Clear Tx message discarded interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

ICR TXMSGDISCCF LL_UCPD_ClearFlag_TxMSGDISC

Parameters :

p_ucpd – UCPD Instance.

FLAG Management

group UCPD_LL_EF_FLAG_Management

Functions

uint32_t LL_UCPD_IsActiveFlag_FRS ( const UCPD_TypeDef * p_ucpd )

Check if FRS interrupt is active.

Reference Manual to LL API cross reference (Register Field Functions)

SR FRSEVT LL_UCPD_IsActiveFlag_FRS

Parameters :

p_ucpd – UCPD Instance.

uint32_t LL_UCPD_GetTypeCVstateCC2 ( const UCPD_TypeDef * p_ucpd )

Return the Vstate value for CC2.

Reference Manual to LL API cross reference (Register Field Functions)

SR TYPEC_VSTATE_CC2 LL_UCPD_GetTypeCVstateCC2

Parameters :

p_ucpd – UCPD Instance.

Return values :

val.

uint32_t LL_UCPD_GetTypeCVstateCC1 ( const UCPD_TypeDef * p_ucpd )

Return the Vstate value for CC1.

Reference Manual to LL API cross reference (Register Field Functions)

SR TYPEC_VSTATE_CC1 LL_UCPD_GetTypeCVstateCC1

Parameters :

p_ucpd – UCPD Instance.

Return values :

val.

uint32_t LL_UCPD_IsActiveFlag_TypeCEventCC2 ( const UCPD_TypeDef * p_ucpd )

Check if Type-C event on CC2 is active.

Reference Manual to LL API cross reference (Register Field Functions)

SR TYPECEVT2 LL_UCPD_IsActiveFlag_TypeCEventCC2

Parameters :

p_ucpd – UCPD Instance.

uint32_t LL_UCPD_IsActiveFlag_TypeCEventCC1 ( const UCPD_TypeDef * p_ucpd )

Check if Type-C event on CC1 is active.

Reference Manual to LL API cross reference (Register Field Functions)

SR TYPECEVT1 LL_UCPD_IsActiveFlag_TypeCEventCC1

Parameters :

p_ucpd – UCPD Instance.

uint32_t LL_UCPD_IsActiveFlag_RxErr ( const UCPD_TypeDef * p_ucpd )

Check if receive message error interrupt is active.

Reference Manual to LL API cross reference (Register Field Functions)

SR RXERR LL_UCPD_IsActiveFlag_RxErr

Parameters :

p_ucpd – UCPD Instance.

uint32_t LL_UCPD_IsActiveFlag_RxMsgEnd ( const UCPD_TypeDef * p_ucpd )

Check if Rx message end interrupt is active.

Reference Manual to LL API cross reference (Register Field Functions)

SR RXMSGEND LL_UCPD_IsActiveFlag_RxMsgEnd

Parameters :

p_ucpd – UCPD Instance.

uint32_t LL_UCPD_IsActiveFlag_RxOvr ( const UCPD_TypeDef * p_ucpd )

Check if Rx overrun interrupt is active.

Reference Manual to LL API cross reference (Register Field Functions)

SR RXOVR LL_UCPD_IsActiveFlag_RxOvr

Parameters :

p_ucpd – UCPD Instance.

uint32_t LL_UCPD_IsActiveFlag_RxHRST ( const UCPD_TypeDef * p_ucpd )

Check if Rx hard reset interrupt is active.

Reference Manual to LL API cross reference (Register Field Functions)

SR RXHRSTDET LL_UCPD_IsActiveFlag_RxHRST

Parameters :

p_ucpd – UCPD Instance.

uint32_t LL_UCPD_IsActiveFlag_RxOrderSet ( const UCPD_TypeDef * p_ucpd )

Check if Rx ordered set interrupt is active.

Reference Manual to LL API cross reference (Register Field Functions)

SR RXORDDET LL_UCPD_IsActiveFlag_RxOrderSet

Parameters :

p_ucpd – UCPD Instance.

Return values :
  • 0 – Rx ordered set interrupt is not active.

  • 1 – Rx ordered set interrupt is active.

uint32_t LL_UCPD_IsActiveFlag_RxNE ( const UCPD_TypeDef * p_ucpd )

Check if Rx non empty interrupt is active.

Reference Manual to LL API cross reference (Register Field Functions)

SR RXNE LL_UCPD_IsActiveFlag_RxNE

Parameters :

p_ucpd – UCPD Instance.

Return values :
  • 0 – Rx non empty interrupt is not active.

  • 1 – Rx non empty interrupt is active.

uint32_t LL_UCPD_IsActiveFlag_TxUND ( const UCPD_TypeDef * p_ucpd )

Check if TX underrun interrupt is active.

Reference Manual to LL API cross reference (Register Field Functions)

SR TXUND LL_UCPD_IsActiveFlag_TxUND

Parameters :

p_ucpd – UCPD Instance.

Return values :
  • 0 – TX underrun interrupt is not active.

  • 1 – TX underrun interrupt is active.

uint32_t LL_UCPD_IsActiveFlag_TxHRSTSENT ( const UCPD_TypeDef * p_ucpd )

Check if hard reset sent interrupt is active.

Reference Manual to LL API cross reference (Register Field Functions)

SR HRSTSENT LL_UCPD_IsActiveFlag_TxHRSTSENT

Parameters :

p_ucpd – UCPD Instance.

Return values :
  • 0 – Hard reset sent interrupt is not active.

  • 1 – Hard reset sent interrupt is active.

uint32_t LL_UCPD_IsActiveFlag_TxHRSTDISC ( const UCPD_TypeDef * p_ucpd )

Check if hard reset discard interrupt is active.

Reference Manual to LL API cross reference (Register Field Functions)

SR HRSTDISC LL_UCPD_IsActiveFlag_TxHRSTDISC

Parameters :

p_ucpd – UCPD Instance.

Return values :
  • 0 – Hard reset discard interrupt is not active.

  • 1 – Hard reset discard interrupt is active.

uint32_t LL_UCPD_IsActiveFlag_TxMSGABT ( const UCPD_TypeDef * p_ucpd )

Check if Tx message abort interrupt is active.

Reference Manual to LL API cross reference (Register Field Functions)

SR TXMSGABT LL_UCPD_IsActiveFlag_TxMSGABT

Parameters :

p_ucpd – UCPD Instance.

Return values :
  • 0 – Tx message abort interrupt is not active.

  • 1 – Tx message abort interrupt is active.

uint32_t LL_UCPD_IsActiveFlag_TxMSGSENT ( const UCPD_TypeDef * p_ucpd )

Check if Tx message sent interrupt is active.

Reference Manual to LL API cross reference (Register Field Functions)

SR TXMSGSENT LL_UCPD_IsActiveFlag_TxMSGSENT

Parameters :

p_ucpd – UCPD Instance.

Return values :
  • 0 – Tx message sent interrupt is not active.

  • 1 – Tx message sent interrupt is active.

uint32_t LL_UCPD_IsActiveFlag_TxMSGDISC ( const UCPD_TypeDef * p_ucpd )

Check if Tx message discarded interrupt is active.

Reference Manual to LL API cross reference (Register Field Functions)

SR TXMSGDISC LL_UCPD_IsActiveFlag_TxMSGDISC

Parameters :

p_ucpd – UCPD Instance.

Return values :
  • 0 – Tx message discarded interrupt is not active.

  • 1 – Tx message discarded interrupt is active.

uint32_t LL_UCPD_IsActiveFlag_TxIS ( const UCPD_TypeDef * p_ucpd )

Check if Tx data receive interrupt is active.

Reference Manual to LL API cross reference (Register Field Functions)

SR TXIS LL_UCPD_IsActiveFlag_TxIS

Parameters :

p_ucpd – UCPD Instance.

Return values :
  • 0 – Tx data receive interrupt is not active.

  • 1 – Tx data receive interrupt is active.

DMA Management

group UCPD_LL_EF_DMA_Management

Functions

void LL_UCPD_RxDMAEnable ( UCPD_TypeDef * p_ucpd )

Rx DMA Enable.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR1 RXDMAEN LL_UCPD_RxDMAEnable

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_RxDMADisable ( UCPD_TypeDef * p_ucpd )

Rx DMA Disable.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR1 RXDMAEN LL_UCPD_RxDMADisable

Parameters :

p_ucpd – UCPD Instance.

uint32_t LL_UCPD_IsEnabledRxDMA ( const UCPD_TypeDef * p_ucpd )

Check if Rx DMA is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR1 RXDMAEN LL_UCPD_IsEnabledRxDMA

Parameters :

p_ucpd – UCPD Instance.

Return values :
  • 0 – Rx DMA is disabled.

  • 1 – Rx DMA is enabled.

void LL_UCPD_TxDMAEnable ( UCPD_TypeDef * p_ucpd )

Tx DMA Enable.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR1 TXDMAEN LL_UCPD_TxDMAEnable

Parameters :

p_ucpd – UCPD Instance.

void LL_UCPD_TxDMADisable ( UCPD_TypeDef * p_ucpd )

Tx DMA Disable.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR1 TXDMAEN LL_UCPD_TxDMADisable

Parameters :

p_ucpd – UCPD Instance.

uint32_t LL_UCPD_IsEnabledTxDMA ( const UCPD_TypeDef * p_ucpd )

Check if Tx DMA is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

CFGR1 TXDMAEN LL_UCPD_IsEnabledTxDMA

Parameters :

p_ucpd – UCPD Instance.

Return values :
  • 0 – Tx DMA is disabled.

  • 1 – Tx DMA is enabled.

DATA Management

group UCPD_LL_EF_DATA_Management

Functions

void LL_UCPD_WriteTxOrderSet ( UCPD_TypeDef * p_ucpd , uint32_t TxOrderSet )

Write the ordered set for Tx message.

Reference Manual to LL API cross reference (Register Field Functions)

TX_ORDSETR TXORDSET LL_UCPD_WriteTxOrderSet

Parameters :
uint32_t LL_UCPD_ReadTxOrderSet ( const UCPD_TypeDef * p_ucpd )

Read the configured ordered set for Tx message.

Reference Manual to LL API cross reference (Register Field Functions)

TX_ORDSETR TXORDSET LL_UCPD_ReadTxOrderSet

Parameters :

p_ucpd – UCPD Instance.

Return values :

Returned – value can be one of the following values:

void LL_UCPD_WriteTxPaySize ( UCPD_TypeDef * p_ucpd , uint32_t TxPaySize )

Write the Tx paysize.

Reference Manual to LL API cross reference (Register Field Functions)

TX_PAYSZR TXPAYSZ LL_UCPD_WriteTxPaySize

Parameters :
  • p_ucpd – UCPD Instance.

  • TxPaySize – Payload size yet to transmit. Value between 0x000 and 0x3FF.

void LL_UCPD_WriteData ( UCPD_TypeDef * p_ucpd , uint8_t Data )

Write data.

Reference Manual to LL API cross reference (Register Field Functions)

TXDR TXDATA LL_UCPD_WriteData

Parameters :
  • p_ucpd – UCPD Instance.

  • Data – Value between 0x00 and 0xFF.

uint32_t LL_UCPD_ReadRxOrderSet ( const UCPD_TypeDef * p_ucpd )

Read RX the ordered set detected.

Reference Manual to LL API cross reference (Register Field Functions)

RX_ORDSETR RXORDSET LL_UCPD_ReadRxOrderSet

Parameters :

p_ucpd – UCPD Instance.

Return values :

RxOrderSet – one of the following values:

uint32_t LL_UCPD_ReadRxPaySize ( const UCPD_TypeDef * p_ucpd )

Read the Rx paysize.

Reference Manual to LL API cross reference (Register Field Functions)

RX_PAYSZR RXPAYSZ LL_UCPD_ReadRxPaySize

Parameters :

p_ucpd – UCPD Instance.

Return values :

RXPaysize – Value between 0x000 and 0x3FF.

uint32_t LL_UCPD_ReadData ( const UCPD_TypeDef * p_ucpd )

Read data.

Reference Manual to LL API cross reference (Register Field Functions)

RXDR RXDATA LL_UCPD_ReadData

Parameters :

p_ucpd – UCPD Instance.

Return values :

RxData – Value between 0x00 and 0xFF.

void LL_UCPD_SetRxOrdExt1 ( UCPD_TypeDef * p_ucpd , uint32_t SOPExt )

Set Rx OrderSet Ext1.

Reference Manual to LL API cross reference (Register Field Functions)

RX_ORDEXTR1 RXSOPX1 LL_UCPD_SetRxOrdExt1

Parameters :
  • p_ucpd – UCPD Instance.

  • SOPExt – Value between 0x00000 and 0xFFFFF.

void LL_UCPD_SetRxOrdExt2 ( UCPD_TypeDef * p_ucpd , uint32_t SOPExt )

Set Rx OrderSet Ext2.

Reference Manual to LL API cross reference (Register Field Functions)

RX_ORDEXTR2 RXSOPX2 LL_UCPD_SetRxOrdExt2

Parameters :
  • p_ucpd – UCPD Instance.

  • SOPExt – Value between 0x00000 and 0xFFFFF.