LL DCACHE Functions

Configuration

group DCACHE_LL_EF_Configuration

Functions

void LL_DCACHE_Enable ( DCACHE_TypeDef * dcachex )

Enable the selected DCACHE instance.

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

CR EN LL_DCACHE_Enable

Parameters :

dcachex – DCACHE instance

void LL_DCACHE_Disable ( DCACHE_TypeDef * dcachex )

Disable the selected DCACHE instance.

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

CR EN LL_DCACHE_Disable

Parameters :

dcachex – DCACHE instance

uint32_t LL_DCACHE_IsEnabled ( const DCACHE_TypeDef * dcachex )

Get the selected DCACHE instance enable state.

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

CR EN LL_DCACHE_IsEnabled

Parameters :

dcachex – DCACHE instance

Return values :

0 – DCACHE is disabled, 1: DCACHE is enabled.

void LL_DCACHE_SetStartAddress ( DCACHE_TypeDef * dcachex , uint32_t addr )

Set the DCACHE instance start command address.

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

CR CMDRSADDRR LL_DCACHE_SetStartAddress

Parameters :
  • dcachex – DCACHE instance

  • addr – DCACHE command start address (Clean, Invalidate or Clean and Invalidate).

uint32_t LL_DCACHE_GetStartAddress ( const DCACHE_TypeDef * dcachex )

Get the DCACHE command start address.

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

CR CMDRSADDRR LL_DCACHE_GetStartAddress

Parameters :

dcachex – DCACHE instance

Return values :

Start – address of DCACHE command

void LL_DCACHE_SetEndAddress ( DCACHE_TypeDef * dcachex , uint32_t addr )

Set the DCACHE instance End command address.

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

CR CMDREADDRR LL_DCACHE_SetEndAddress

Parameters :
  • dcachex – DCACHE instance

  • addr – DCACHE command end address (Clean, Invalidate or Clean and Invalidate).

uint32_t LL_DCACHE_GetEndAddress ( const DCACHE_TypeDef * dcachex )

Get the DCACHE command End address.

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

CR CMDREADDRR LL_DCACHE_GetEndAddress

Parameters :

dcachex – DCACHE instance

Return values :

End – address of DCACHE command

void LL_DCACHE_SetCommand ( DCACHE_TypeDef * dcachex , uint32_t command )

Set DCACHE command.

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

CR CACHECMD LL_DCACHE_SetCommand

Parameters :
  • dcachex – DCACHE instance

  • command – Command to be applied for the DCACHE Command can be one of the following values:

    • LL_DCACHE_COMMAND_INVALIDATE_BY_ADDR

    • LL_DCACHE_COMMAND_CLEAN_BY_ADDR

    • LL_DCACHE_COMMAND_CLEAN_INVALIDATE_BY_ADDR

    • LL_DCACHE_COMMAND_NO_OPERATION

uint32_t LL_DCACHE_GetCommand ( const DCACHE_TypeDef * dcachex )

Set DCACHE command.

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

CR CACHECMD LL_DCACHE_GetCommand

Parameters :

dcachex – DCACHE instance

Return values :

Returned – value can be one of the following values:

  • LL_DCACHE_COMMAND_NO_OPERATION

  • LL_DCACHE_COMMAND_CLEAN_BY_ADDR

  • LL_DCACHE_COMMAND_INVALIDATE_BY_ADDR

  • LL_DCACHE_COMMAND_CLEAN_INVALIDATE_BY_ADDR

void LL_DCACHE_StartCommand ( DCACHE_TypeDef * dcachex )

Launch DCACHE Command.

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

CR CACHECMD LL_DCACHE_StartCommand

Parameters :

dcachex – DCACHE instance

void LL_DCACHE_SetReadBurstType ( DCACHE_TypeDef * dcachex , uint32_t read_burst_type )

Set requested read burst type.

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

CR HBURST LL_DCACHE_SetReadBurstType

Parameters :
  • dcachex – DCACHE instance

  • read_burst_type – Burst type to be applied for Data Cache Burst type can be one of the following values:

    • LL_DCACHE_READ_BURST_WRAP

    • LL_DCACHE_READ_BURST_INCR

uint32_t LL_DCACHE_GetReadBurstType ( const DCACHE_TypeDef * dcachex )

Get requested read burst type.

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

CR HBURST LL_DCACHE_GetReadBurstType

Parameters :

dcachex – DCACHE instance

Return values :

Returned – value can be one of the following values:

  • LL_DCACHE_READ_BURST_WRAP

  • LL_DCACHE_READ_BURST_INCR

void LL_DCACHE_Invalidate ( DCACHE_TypeDef * dcachex )

Invalidate the DCACHE.

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

CR CACHEINV LL_DCACHE_Invalidate

Parameters :

dcachex – DCACHE instance

Monitor

group DCACHE_LL_EF_Monitor

Functions

void LL_DCACHE_EnableMonitors ( DCACHE_TypeDef * dcachex , uint32_t monitors )

Enable the hit/miss monitor(s).

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

CR (RMISSMEN/RHITMEN/WMISSMEN/WHITMEN) LL_DCACHE_EnableMonitors

Parameters :
  • dcachex – DCACHE instance

  • monitors – This parameter can be one or a combination of the following values:

    • LL_DCACHE_MONITOR_READ_HIT

    • LL_DCACHE_MONITOR_READ_MISS

    • LL_DCACHE_MONITOR_WRITE_HIT

    • LL_DCACHE_MONITOR_WRITE_MISS

    • LL_DCACHE_MONITOR_ALL

void LL_DCACHE_DisableMonitors ( DCACHE_TypeDef * dcachex , uint32_t monitors )

Disable the hit/miss monitor(s).

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

CR (RMISSMEN/RHITMEN/WMISSMEN/WHITMEN) LL_DCACHE_DisableMonitors

Parameters :
  • dcachex – DCACHE instance

  • monitors – This parameter can be one or a combination of the following values:

    • LL_DCACHE_MONITOR_READ_HIT

    • LL_DCACHE_MONITOR_READ_MISS

    • LL_DCACHE_MONITOR_WRITE_HIT

    • LL_DCACHE_MONITOR_WRITE_MISS

    • LL_DCACHE_MONITOR_ALL

uint32_t LL_DCACHE_IsEnabledMonitors ( const DCACHE_TypeDef * dcachex , uint32_t monitors )

Return the hit/miss monitor(s) enable state.

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

CR (RMISSMEN/RHITMEN/WMISSMEN/WHITMEN) LL_DCACHE_IsEnabledMonitors

Parameters :
  • dcachex – DCACHE instance

  • monitors – This parameter can be one or a combination of the following values:

    • LL_DCACHE_MONITOR_READ_HIT

    • LL_DCACHE_MONITOR_READ_MISS

    • LL_DCACHE_MONITOR_WRITE_HIT

    • LL_DCACHE_MONITOR_WRITE_MISS

    • LL_DCACHE_MONITOR_ALL

Return values :

State – of parameter value (1 or 0).

void LL_DCACHE_ResetMonitors ( DCACHE_TypeDef * dcachex , uint32_t monitors )

Reset the performance monitoring.

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

CR (RHITMRST/RMISSMRST/WHITMRST/WMISSMRST) LL_DCACHE_ResetMonitors

Parameters :
  • dcachex – DCACHE instance

  • monitors – Monitoring type This parameter can be a combination of the following values:

    • LL_DCACHE_MONITOR_READ_HIT

    • LL_DCACHE_MONITOR_READ_MISS

    • LL_DCACHE_MONITOR_WRITE_HIT

    • LL_DCACHE_MONITOR_WRITE_MISS

    • LL_DCACHE_MONITOR_ALL

uint32_t LL_DCACHE_Monitor_GetReadHitValue ( const DCACHE_TypeDef * dcachex )

Get the Read Hit monitor value.

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

RHMONR RHMONR LL_DCACHE_Monitor_GetReadHitValue

Parameters :

dcachex – DCACHE instance

Return values :

Value – between Min_Data=0 and Max_Data=0xFFFFFFFF

uint32_t LL_DCACHE_Monitor_GetReadMissValue ( const DCACHE_TypeDef * dcachex )

Get the Read Miss monitor value.

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

RMMONR RMMONR LL_DCACHE_Monitor_GetReadMissValue

Parameters :

dcachex – DCACHE instance

Return values :

Value – between Min_Data=0 and Max_Data=0xFFFF

uint32_t LL_DCACHE_Monitor_GetWriteHitValue ( const DCACHE_TypeDef * dcachex )

Get the Write Hit monitor value.

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

WHMONR WHMONR LL_DCACHE_Monitor_GetWriteHitValue

Parameters :

dcachex – DCACHE instance

Return values :

Value – between Min_Data=0 and Max_Data=0xFFFFFFFF

uint32_t LL_DCACHE_Monitor_GetWriteMissValue ( const DCACHE_TypeDef * dcachex )

Get the Write Miss monitor value.

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

WMMONR WMMONR LL_DCACHE_Monitor_GetWriteMissValue

Parameters :

dcachex – DCACHE instance

Return values :

Value – between Min_Data=0 and Max_Data=0xFFFF

IT-Management

group DCACHE_LL_EF_IT_Management

Functions

void LL_DCACHE_EnableIT ( DCACHE_TypeDef * dcachex , uint32_t mask )

Enable interrupt(s).

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

IER BSYENDIE LL_DCACHE_EnableIT

IER ERRIE LL_DCACHE_EnableIT

IER CMDENDIE LL_DCACHE_EnableIT

Parameters :
  • dcachex – DCACHE instance

  • mask – Mask This parameter can be a combination of the following values:

    • LL_DCACHE_IER_BSYENDIE

    • LL_DCACHE_IER_ERRIE

    • LL_DCACHE_IER_CMDENDIE

void LL_DCACHE_DisableIT ( DCACHE_TypeDef * dcachex , uint32_t mask )

Disable interrupt(s).

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

IER BSYENDIE LL_DCACHE_DisableIT

IER ERRIE LL_DCACHE_DisableIT

IER CMDENDIE LL_DCACHE_DisableIT

Parameters :
  • dcachex – DCACHE instance

  • mask – Mask This parameter can be a combination of the following values:

    • LL_DCACHE_IER_BSYENDIE

    • LL_DCACHE_IER_ERRIE

    • LL_DCACHE_IER_CMDENDIE

uint32_t LL_DCACHE_IsEnabledIT ( const DCACHE_TypeDef * dcachex , uint32_t mask )

Indicate whether the interrupt(s) is(are) enabled.

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

IER BSYENDIE LL_DCACHE_IsEnabledIT

IER ERRIE LL_DCACHE_IsEnabledIT

IER CMDENDIE LL_DCACHE_IsEnabledIT

Parameters :
  • dcachex – DCACHE instance

  • mask – Mask This parameter can be a combination of the following values:

    • LL_DCACHE_IER_BSYENDIE

    • LL_DCACHE_IER_ERRIE

    • LL_DCACHE_IER_CMDENDIE

Return values :

State – of bit (1 or 0).

void LL_DCACHE_EnableIT_BSYEND ( DCACHE_TypeDef * dcachex )

Enable busy end interrupt.

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

IER BSYENDIE LL_DCACHE_EnableIT_BSYEND

Parameters :

dcachex – DCACHE instance

void LL_DCACHE_DisableIT_BSYEND ( DCACHE_TypeDef * dcachex )

Disable busy end interrupt.

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

IER BSYENDIE LL_DCACHE_DisableIT_BSYEND

Parameters :

dcachex – DCACHE instance

uint32_t LL_DCACHE_IsEnabledIT_BSYEND ( const DCACHE_TypeDef * dcachex )

Indicate whether the busy end interrupt is enabled.

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

IER BSYENDIE LL_DCACHE_IsEnabledIT_BSYEND

Parameters :

dcachex – DCACHE instance

Return values :

State – of bit (1 or 0).

void LL_DCACHE_EnableIT_ERR ( DCACHE_TypeDef * dcachex )

Enable error interrupt.

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

IER ERRIE LL_DCACHE_EnableIT_ERR

Parameters :

dcachex – DCACHE instance

void LL_DCACHE_DisableIT_ERR ( DCACHE_TypeDef * dcachex )

Disable error interrupt.

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

IER ERRIE LL_DCACHE_DisableIT_ERR

Parameters :

dcachex – DCACHE instance

uint32_t LL_DCACHE_IsEnabledIT_ERR ( const DCACHE_TypeDef * dcachex )

Indicate whether the error interrupt is enabled.

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

IER ERRIE LL_DCACHE_IsEnabledIT_ERR

Parameters :

dcachex – DCACHE instance

Return values :

State – of bit (1 or 0).

void LL_DCACHE_EnableIT_CMDEND ( DCACHE_TypeDef * dcachex )

Enable command end interrupt.

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

IER CMDENDIE LL_DCACHE_EnableIT_CMDEND

Parameters :

dcachex – DCACHE instance

void LL_DCACHE_DisableIT_CMDEND ( DCACHE_TypeDef * dcachex )

Disable command end interrupt.

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

IER CMDENDIE LL_DCACHE_DisableIT_CMDEND

Parameters :

dcachex – DCACHE instance

uint32_t LL_DCACHE_IsEnabledIT_CMDEND ( const DCACHE_TypeDef * dcachex )

Indicate whether the command end interrupt is enabled.

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

IER CMDENDIE LL_DCACHE_IsEnabledIT_CMDEND

Parameters :

dcachex – DCACHE instance

Return values :

State – of bit (1 or 0).

void LL_DCACHE_ClearFlag ( DCACHE_TypeDef * dcachex , uint32_t mask )

Clear flag(s).

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

FCR CBSYENDF LL_DCACHE_ClearFlag

FCR CERRF LL_DCACHE_ClearFlag

FCR CCMDENDF LL_DCACHE_ClearFlag

Parameters :
  • dcachex – DCACHE instance

  • mask – Mask This parameter can be a combination of the following values:

    • LL_DCACHE_FCR_CBSYENDF

    • LL_DCACHE_FCR_CCMDENDF

    • LL_DCACHE_FCR_CERRF

void LL_DCACHE_ClearFlag_BSYEND ( DCACHE_TypeDef * dcachex )

Clear full invalidate busy end flag.

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

FCR CBSYENDF LL_DCACHE_ClearFlag_BSYEND

Parameters :

dcachex – DCACHE instance

void LL_DCACHE_ClearFlag_ERR ( DCACHE_TypeDef * dcachex )

Clear cache error flag.

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

FCR CERRF LL_DCACHE_ClearFlag_ERR

Parameters :

dcachex – DCACHE instance

void LL_DCACHE_ClearFlag_CMDEND ( DCACHE_TypeDef * dcachex )

Clear command end flag.

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

FCR CCMDENDF LL_DCACHE_ClearFlag_CMDEND

Parameters :

dcachex – DCACHE instance

uint32_t LL_DCACHE_IsActiveFlag ( const DCACHE_TypeDef * dcachex , uint32_t mask )

Get flag DCACHE.

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

SR BUSYF LL_DCACHE_IsActiveFlag

SR BSYENDF LL_DCACHE_IsActiveFlag

SR ERRF LL_DCACHE_IsActiveFlag

SR BUSYCMDF LL_DCACHE_IsActiveFlag

SR CMDENDF LL_DCACHE_IsActiveFlag

Parameters :
  • dcachex – DCACHE instance

  • mask – Mask This parameter can be a combination of the following values:

    • LL_DCACHE_SR_BUSYF

    • LL_DCACHE_SR_BSYENDF

    • LL_DCACHE_SR_ERRF

    • LL_DCACHE_SR_CMDENDF

    • LL_DCACHE_SR_BUSYCMDF

Return values :

Return – 1 if at least one flag is set, else 0.

uint32_t LL_DCACHE_IsActiveFlag_BUSY ( const DCACHE_TypeDef * dcachex )

Get flag DCACHE busy.

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

SR BUSYF LL_DCACHE_IsActiveFlag_BUSY

Parameters :

dcachex – DCACHE instance

Return values :

State – of bit (1 or 0).

uint32_t LL_DCACHE_IsActiveFlag_BSYEND ( const DCACHE_TypeDef * dcachex )

Get flag DCACHE busy end.

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

SR BSYENDF LL_DCACHE_IsActiveFlag_BSYEND

Parameters :

dcachex – DCACHE instance

Return values :

State – of bit (1 or 0).

uint32_t LL_DCACHE_IsActiveFlag_ERR ( const DCACHE_TypeDef * dcachex )

Get flag DCACHE error.

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

SR ERRF LL_DCACHE_IsActiveFlag_ERR

Parameters :

dcachex – DCACHE instance

Return values :

State – of bit (1 or 0).

uint32_t LL_DCACHE_IsActiveFlag_BUSYCMD ( const DCACHE_TypeDef * dcachex )

Get flag DCACHE busy command.

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

SR BUSYCMDF LL_DCACHE_IsActiveFlag_BUSYCMD

Parameters :

dcachex – DCACHE instance

Return values :

State – of bit (1 or 0).

uint32_t LL_DCACHE_IsActiveFlag_CMDEND ( const DCACHE_TypeDef * dcachex )

Get flag DCACHE command end.

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

SR CMDENDF LL_DCACHE_IsActiveFlag_CMDEND

Parameters :

dcachex – DCACHE instance

Return values :

State – of bit (1 or 0).