LL ICACHE Functions

Configuration

group ICACHE_LL_EF_Configuration

Functions

void LL_ICACHE_Enable ( ICACHE_TypeDef * icachex )

Enable the ICACHE.

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

CR EN LL_ICACHE_Enable

Parameters :

icachex – ICACHE instance.

void LL_ICACHE_Disable ( ICACHE_TypeDef * icachex )

Disable the ICACHE.

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

CR EN LL_ICACHE_Disable

Parameters :

icachex – ICACHE instance.

uint32_t LL_ICACHE_IsEnabled ( const ICACHE_TypeDef * icachex )

Return if ICACHE is enabled or not.

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

CR EN LL_ICACHE_IsEnabled

Parameters :

icachex – ICACHE instance.

Return values :

State – of bit (1 or 0).

void LL_ICACHE_SetMode ( ICACHE_TypeDef * icachex , uint32_t mode )

Select the ICACHE operating mode.

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

CR WAYSEL LL_ICACHE_SetMode

Parameters :
uint32_t LL_ICACHE_GetMode ( const ICACHE_TypeDef * icachex )

Get the selected ICACHE operating mode.

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

CR WAYSEL LL_ICACHE_GetMode

Parameters :

icachex – ICACHE instance.

Return values :

Returned – value can be one of the following values:

void LL_ICACHE_Invalidate ( ICACHE_TypeDef * icachex )

Invalidate the ICACHE.

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

CR CACHEINV LL_ICACHE_Invalidate

Note

Until the BSYEND flag is set, the cache is bypassed.

Parameters :

icachex – ICACHE instance.

Monitors

group ICACHE_LL_EF_Monitors

Functions

void LL_ICACHE_EnableMonitors ( ICACHE_TypeDef * icachex , uint32_t monitors )

Enable the hit/miss monitor(s).

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

CR HITMEN LL_ICACHE_EnableMonitors

CR MISSMEN LL_ICACHE_EnableMonitors

Parameters :
void LL_ICACHE_DisableMonitors ( ICACHE_TypeDef * icachex , uint32_t monitors )

Disable the hit/miss monitor(s).

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

CR HITMEN LL_ICACHE_DisableMonitors

CR MISSMEN LL_ICACHE_DisableMonitors

Parameters :
uint32_t LL_ICACHE_IsEnabledMonitors ( const ICACHE_TypeDef * icachex , uint32_t monitors )

Check if the monitor(s) is(are) enabled or disabled.

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

CR HITMEN LL_ICACHE_IsEnabledMonitors

CR MISSMEN LL_ICACHE_IsEnabledMonitors

Parameters :
Return values :

State – of parameter value (1 or 0).

void LL_ICACHE_ResetMonitors ( ICACHE_TypeDef * icachex , uint32_t monitors )

Reset the performance monitoring.

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

CR HITMRST LL_ICACHE_ResetMonitors

CR MISSMRST LL_ICACHE_ResetMonitors

Parameters :
uint32_t LL_ICACHE_GetHitMonitor ( const ICACHE_TypeDef * icachex )

Get the Hit monitor.

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

HMONR HITMON LL_ICACHE_GetHitMonitor

Note

Upon reaching the 32-bit maximum value, hit monitor does not wrap.

Parameters :

icachex – ICACHE instance.

Return values :

Value – between Min_Data=0 and Max_Data=0xFFFFFFFF

uint32_t LL_ICACHE_GetMissMonitor ( const ICACHE_TypeDef * icachex )

Get the Miss monitor.

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

MMONR MISSMON LL_ICACHE_GetMissMonitor

Note

Upon reaching the 16-bit maximum value, miss monitor does not wrap.

Parameters :

icachex – ICACHE instance.

Return values :

Value – between Min_Data=0 and Max_Data=0xFFFF

IT_Management

group ICACHE_LL_EF_IT_Management

Functions

void LL_ICACHE_EnableIT_BSYEND ( ICACHE_TypeDef * icachex )

Enable BSYEND interrupt.

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

IER BSYENDIE LL_ICACHE_EnableIT_BSYEND

Parameters :

icachex – ICACHE instance.

void LL_ICACHE_DisableIT_BSYEND ( ICACHE_TypeDef * icachex )

Disable BSYEND interrupt.

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

IER BSYENDIE LL_ICACHE_DisableIT_BSYEND

Parameters :

icachex – ICACHE instance.

uint32_t LL_ICACHE_IsEnabledIT_BSYEND ( const ICACHE_TypeDef * icachex )

Check if the BSYEND Interrupt is enabled or disabled.

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

IER BSYENDIE LL_ICACHE_IsEnabledIT_BSYEND

Parameters :

icachex – ICACHE instance.

Return values :

State – of bit (1 or 0).

void LL_ICACHE_EnableIT_ERR ( ICACHE_TypeDef * icachex )

Enable ERR interrupt.

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

IER ERRIE LL_ICACHE_EnableIT_ERR

Parameters :

icachex – ICACHE instance.

void LL_ICACHE_DisableIT_ERR ( ICACHE_TypeDef * icachex )

Disable ERR interrupt.

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

IER ERRIE LL_ICACHE_DisableIT_ERR

Parameters :

icachex – ICACHE instance.

uint32_t LL_ICACHE_IsEnabledIT_ERR ( const ICACHE_TypeDef * icachex )

Check if the ERR Interrupt is enabled or disabled.

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

IER ERRIE LL_ICACHE_IsEnabledIT_ERR

Parameters :

icachex – ICACHE instance.

Return values :

State – of bit (1 or 0).

void LL_ICACHE_EnableIT ( ICACHE_TypeDef * icachex , uint32_t interrupts )

Enable ICACHE interrupt(s).

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

IER BSYENDIE LL_ICACHE_EnableIT

IER ERRIE LL_ICACHE_EnableIT

Parameters :
void LL_ICACHE_DisableIT ( ICACHE_TypeDef * icachex , uint32_t interrupt )

Disable ICACHE interrupt(s).

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

IER BSYENDIE LL_ICACHE_DisableIT

IER ERRIE LL_ICACHE_DisableIT

Parameters :
uint32_t LL_ICACHE_IsEnabledIT ( const ICACHE_TypeDef * icachex , uint32_t interrupts )

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

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

IER BSYENDIE LL_ICACHE_IsEnabledIT

IER ERRIE LL_ICACHE_IsEnabledIT

Parameters :
  • icachex – ICACHE instance.

  • interrupts – Specifies the ICACHE interrupt source to check. This parameter can be any combination of the following values:

Return values :

uint32_t – The state of the bit(s) checked :

  • 0UL if the corresponding test is failed.

  • 1UL if the corresponding test is succeeded.

FLAG_Management

group ICACHE_LL_EF_FLAG_Management

Functions

uint32_t LL_ICACHE_IsActiveFlag_BUSY ( const ICACHE_TypeDef * icachex )

Indicate the status of an ongoing operation flag.

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

SR BUSYF LL_ICACHE_IsActiveFlag_BUSY

Parameters :

icachex – ICACHE instance.

Return values :

State – of bit (1 or 0).

uint32_t LL_ICACHE_IsActiveFlag_BSYEND ( const ICACHE_TypeDef * icachex )

Indicate the status of an operation end flag.

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

SR BSYENDF LL_ICACHE_IsActiveFlag_BSYEND

Parameters :

icachex – ICACHE instance.

Return values :

State – of bit (1 or 0).

uint32_t LL_ICACHE_IsActiveFlag_ERR ( const ICACHE_TypeDef * icachex )

Indicate the status of an error flag.

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

SR ERRF LL_ICACHE_IsActiveFlag_ERR

Parameters :

icachex – ICACHE instance.

Return values :

State – of bit (1 or 0).

void LL_ICACHE_ClearFlag_BSYEND ( ICACHE_TypeDef * icachex )

Clear busy end of operation flag.

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

FCR CBSYENDF LL_ICACHE_ClearFlag_BSYEND

Parameters :

icachex – ICACHE instance.

void LL_ICACHE_ClearFlag_ERR ( ICACHE_TypeDef * icachex )

Clear error flag.

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

FCR ERRF LL_ICACHE_ClearFlag_ERR

Parameters :

icachex – ICACHE instance.

void LL_ICACHE_ClearFlag ( ICACHE_TypeDef * icachex , uint32_t mask )

Clear the ICACHE flag(s).

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

FCR CBSYENDF LL_ICACHE_ClearFlag

FCR ERRF LL_ICACHE_ClearFlag

Parameters :
uint32_t LL_ICACHE_IsActiveFlag ( const ICACHE_TypeDef * icachex , uint32_t interrupt )

Check whether the selected ICACHE flag(s) is(are) set or not.

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

SR BUSYF LL_ICACHE_IsActiveFlag

SR BSYENDF LL_ICACHE_IsActiveFlag

SR ERRF LL_ICACHE_IsActiveFlag

Parameters :
Return values :

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

REGION_Management

group ICACHE_LL_EF_REGION_Management

Functions

void LL_ICACHE_EnableRegion ( ICACHE_TypeDef * icachex , uint32_t region )

Enable the remapped memory region.

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

CRRx REN LL_ICACHE_EnableRegion

Note

The region must have been already configured.

Parameters :
void LL_ICACHE_DisableRegion ( ICACHE_TypeDef * icachex , uint32_t region )

Disable the remapped memory region.

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

CRRx REN LL_ICACHE_DisableRegion

Parameters :
uint32_t LL_ICACHE_IsEnabledRegion ( const ICACHE_TypeDef * icachex , uint32_t region )

Return if remapped memory region is enabled or not.

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

CRRx REN LL_ICACHE_IsEnabledRegion

Parameters :
Return values :

State – of bit (1 or 0).

void LL_ICACHE_SetRegionBaseAddress ( ICACHE_TypeDef * icachex , uint32_t region , uint32_t base_address )

Select the memory remapped region base address.

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

CRRx BASEADDR LL_ICACHE_SetRegionBaseAddress

Note

The useful bits depend on RSIZE as described in the Reference Manual.

Parameters :
uint32_t LL_ICACHE_GetRegionBaseAddress ( const ICACHE_TypeDef * icachex , uint32_t region )

Get the memory remapped region base address.

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

CRRx BASEADDR LL_ICACHE_GetRegionBaseAddress

Note

The useful bits depend on RSIZE as described in the Reference Manual.

Parameters :
Return values :

base_address – Alias address in the Code region

void LL_ICACHE_SetRegionRemapAddress ( ICACHE_TypeDef * icachex , uint32_t region , uint32_t remap_address )

Select the memory remapped region remap address.

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

CRRx REMAPADDR LL_ICACHE_SetRegionRemapAddress

Note

The useful bits depend on RSIZE as described in the Reference Manual.

Parameters :
uint32_t LL_ICACHE_GetRegionRemapAddress ( const ICACHE_TypeDef * icachex , uint32_t region )

Get the memory remapped region base address.

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

CRRx REMAPADDR LL_ICACHE_GetRegionRemapAddress

Note

The useful bits depend on RSIZE as described in the Reference Manual.

Parameters :
Return values :

remap_address – Remapped memory address

void LL_ICACHE_SetRegionSize ( ICACHE_TypeDef * icachex , uint32_t region , uint32_t size )

Select the memory remapped region size.

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

CRRx RSIZE LL_ICACHE_SetRegionSize

Parameters :
uint32_t LL_ICACHE_GetRegionSize ( const ICACHE_TypeDef * icachex , uint32_t region )

Get the selected the memory remapped region size.

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

CRRx RSIZE LL_ICACHE_GetRegionSize

Parameters :
Return values :

Returned – value can be one of the following values:

void LL_ICACHE_SetRegionOutputBurstType ( ICACHE_TypeDef * icachex , uint32_t region , uint32_t burst )

Select the memory remapped region output burst type.

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

CRRx HBURST LL_ICACHE_SetRegionOutputBurstType

Parameters :
uint32_t LL_ICACHE_GetRegionOutputBurstType ( const ICACHE_TypeDef * icachex , uint32_t region )

Get the selected the memory remapped region output burst type.

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

CRRx HBURST LL_ICACHE_GetRegionOutputBurstType

Parameters :
Return values :

Returned – value can be one of the following values:

void LL_ICACHE_SetRegionMasterPort ( ICACHE_TypeDef * icachex , uint32_t region , uint32_t port )

Select the memory remapped region cache master port.

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

CRRx MSTSEL LL_ICACHE_SetRegionMasterPort

Parameters :
uint32_t LL_ICACHE_GetRegionMasterPort ( const ICACHE_TypeDef * icachex , uint32_t region )

Get the selected the memory remapped region cache master port.

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

CRRx MSTSEL LL_ICACHE_GetRegionMasterPort

Parameters :
Return values :

uint32_t – Returned value can have one of the following values:

void LL_ICACHE_SetConfigRemapRegion ( ICACHE_TypeDef * icachex , uint32_t region , uint32_t base_address , uint32_t remap_address , uint32_t size , uint32_t master_port , uint32_t output_burst )

Set the remap region configuration.

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

CRRx BASEADDR LL_ICACHE_SetConfigRemapRegion

CRRx REMAPADDR LL_ICACHE_SetConfigRemapRegion

CRRx RSIZE LL_ICACHE_SetConfigRemapRegion

CRRx HBURST LL_ICACHE_SetConfigRemapRegion

CRRx MSTSEL LL_ICACHE_SetConfigRemapRegion

Parameters :
uint32_t LL_ICACHE_GetConfigRemapRegion ( const ICACHE_TypeDef * icachex , uint32_t region )

Get the remap region configuration.

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

CRRx BASEADDR LL_ICACHE_GetConfigRemapRegion

CRRx REMAPADDR LL_ICACHE_GetConfigRemapRegion

CRRx RSIZE LL_ICACHE_GetConfigRemapRegion

CRRx HBURST LL_ICACHE_GetConfigRemapRegion

CRRx MSTSEL LL_ICACHE_GetConfigRemapRegion

Parameters :
  • icachex – ICACHE instance.

  • region – Region number.

Return values :

uint32_t – Return the value of the CRRx register.