Functions

__STATIC_INLINE void ll_ospi_x_set_mem_base_address (ospi_x_regs_t *OSPIx, uint32_t base_address)
 Set memory base address --------------------------. More...
 
__STATIC_INLINE uint32_t ll_ospi_x_get_mem_base_address (ospi_x_regs_t *OSPIx)
 Get memory base address --------------------------. More...
 
__STATIC_INLINE void ll_ospi_x_set_mem_top_address (ospi_x_regs_t *OSPIx, uint32_t top_address)
 Set memory top address --------------------------. More...
 
__STATIC_INLINE uint32_t ll_ospi_x_get_mem_top_address (ospi_x_regs_t *OSPIx)
 Get memory top address --------------------------. More...
 
__STATIC_INLINE void ll_ospi_x_set_trst_count (ospi_x_regs_t *OSPIx, uint32_t trst_cnt)
 Set clock count for tRST --------------------------. More...
 
__STATIC_INLINE uint32_t ll_ospi_x_get_trst_count (ospi_x_regs_t *OSPIx)
 Get clock count for tRST --------------------------. More...
 
__STATIC_INLINE void ll_ospi_x_enable_global_reset (ospi_x_regs_t *OSPIx)
 Trigger Global Reset Command --------------------------. More...
 
__STATIC_INLINE void ll_ospi_x_set_access_type (ospi_x_regs_t *OSPIx, uint32_t access_type)
 Set access type for PSRAM --------------------------. More...
 
__STATIC_INLINE uint32_t ll_ospi_x_get_access_type (ospi_x_regs_t *OSPIx)
 Get access type for PSRAM --------------------------. More...
 
__STATIC_INLINE void ll_ospi_x_set_tcem_ignore (ospi_x_regs_t *OSPIx, uint32_t is_ignore)
 Set ignoring the tcem or not --------------------------. More...
 
__STATIC_INLINE uint32_t ll_ospi_x_get_tcem_ignore (ospi_x_regs_t *OSPIx)
 Get whether ignoring the tcem or not --------------------------. More...
 
__STATIC_INLINE void ll_ospi_x_set_tcem_count (ospi_x_regs_t *OSPIx, uint32_t tcem_cnt)
 Set clock count for the tcem --------------------------. More...
 
__STATIC_INLINE uint32_t ll_ospi_x_get_tcem_count (ospi_x_regs_t *OSPIx)
 Get clock count for the tcem --------------------------. More...
 
__STATIC_INLINE void ll_ospi_x_set_trc_count (ospi_x_regs_t *OSPIx, uint32_t trc_cnt)
 Set clock count for the tRC --------------------------. More...
 
__STATIC_INLINE uint32_t ll_ospi_x_get_trc_count (ospi_x_regs_t *OSPIx)
 Get clock count for the tRC --------------------------. More...
 
__STATIC_INLINE void ll_ospi_x_set_tcph_count (ospi_x_regs_t *OSPIx, uint32_t tcph_cnt)
 Set clock count for the tCPH --------------------------. More...
 
__STATIC_INLINE uint32_t ll_ospi_x_get_tcph_count (ospi_x_regs_t *OSPIx)
 Get clock count for the tCPH --------------------------. More...
 
__STATIC_INLINE void ll_ospi_x_set_mem_page_size (ospi_x_regs_t *OSPIx, uint32_t mem_page_size)
 Set memory page size --------------------------. More...
 
__STATIC_INLINE uint32_t ll_ospi_x_get_mem_page_size (ospi_x_regs_t *OSPIx)
 Get memory page size --------------------------. More...
 
__STATIC_INLINE void ll_ospi_x_entry_dpd (ospi_x_regs_t *OSPIx)
 Trigger the entry deep power down command --------------------------. More...
 
__STATIC_INLINE void ll_ospi_x_exit_dpd (ospi_x_regs_t *OSPIx)
 Trigger the exit deep power down command --------------------------. More...
 
__STATIC_INLINE void ll_ospi_x_set_txdpd_ignore (ospi_x_regs_t *OSPIx, uint32_t is_ignore)
 Set ignoring the txdpd or not --------------------------. More...
 
__STATIC_INLINE uint32_t ll_ospi_x_get_txdpd_ignore (ospi_x_regs_t *OSPIx)
 Get whether ignoring the txdpd or not --------------------------. More...
 
__STATIC_INLINE void ll_ospi_x_set_txdpd_count (ospi_x_regs_t *OSPIx, uint32_t txdpd_cnt)
 Set clock count for the tXDPD --------------------------. More...
 
__STATIC_INLINE uint32_t ll_ospi_x_get_txdpd_count (ospi_x_regs_t *OSPIx)
 Get clock count for the tXDPD --------------------------. More...
 
__STATIC_INLINE void ll_ospi_x_set_txpdpd_count (ospi_x_regs_t *OSPIx, uint32_t txpdpd_cnt)
 Set clock count for the tXPDPD --------------------------. More...
 
__STATIC_INLINE uint32_t ll_ospi_x_get_txpdpd_count (ospi_x_regs_t *OSPIx)
 Get clock count for the tXPDPD --------------------------. More...
 
__STATIC_INLINE void ll_ospi_x_entry_half_sleep (ospi_x_regs_t *OSPIx)
 Trigger the entry half sleep command --------------------------. More...
 
__STATIC_INLINE void ll_ospi_x_exit_half_sleep (ospi_x_regs_t *OSPIx)
 Trigger the exit half sleep command --------------------------. More...
 
__STATIC_INLINE void ll_ospi_x_set_txhs_ignore (ospi_x_regs_t *OSPIx, uint32_t is_ignore)
 Set ignoring the tXHS or not --------------------------. More...
 
__STATIC_INLINE uint32_t ll_ospi_x_get_txhs_ignore (ospi_x_regs_t *OSPIx)
 Get whether ignoring the tXHS or not --------------------------. More...
 
__STATIC_INLINE void ll_ospi_x_set_txhs_count (ospi_x_regs_t *OSPIx, uint32_t txhs_count)
 Set clock count for the tXHS --------------------------. More...
 
__STATIC_INLINE uint32_t ll_ospi_x_get_txhs_count (ospi_x_regs_t *OSPIx)
 Get clock count for the tXHS --------------------------. More...
 
__STATIC_INLINE void ll_ospi_x_set_txphs_count (ospi_x_regs_t *OSPIx, uint32_t txphs_count)
 Set clock count for the tXPHS --------------------------. More...
 
__STATIC_INLINE uint32_t ll_ospi_x_get_txphs_count (ospi_x_regs_t *OSPIx)
 Get clock count for the tXPHS --------------------------. More...
 
__STATIC_INLINE void ll_ospi_x_set_global_rst_interrupt (ospi_x_regs_t *OSPIx, uint32_t intr)
 Enable the global reset interrupt or not --------------------------. More...
 
__STATIC_INLINE uint32_t ll_ospi_x_is_global_rst_interrupt_enabled (ospi_x_regs_t *OSPIx)
 Check whether the global reset interrupt is enabled or not --------------------------. More...
 
__STATIC_INLINE void ll_ospi_x_set_half_sleep_entry_interrupt (ospi_x_regs_t *OSPIx, uint32_t intr)
 Enable the half sleep entry interrupt or not --------------------------. More...
 
__STATIC_INLINE uint32_t ll_ospi_x_is_half_sleep_entry_interrupt_enabled (ospi_x_regs_t *OSPIx)
 Check whether the half sleep entry interrupt is enabled or not --------------------------. More...
 
__STATIC_INLINE void ll_ospi_x_set_half_sleep_exit_interrupt (ospi_x_regs_t *OSPIx, uint32_t intr)
 Enable the half sleep exit interrupt or not --------------------------. More...
 
__STATIC_INLINE uint32_t ll_ospi_x_is_half_sleep_exit_interrupt_enabled (ospi_x_regs_t *OSPIx)
 Check whether the half sleep exit interrupt is enabled or not --------------------------. More...
 
__STATIC_INLINE void ll_ospi_x_set_dpd_entry_interrupt (ospi_x_regs_t *OSPIx, uint32_t intr)
 Enable the deep power down entry interrupt or not --------------------------. More...
 
__STATIC_INLINE uint32_t ll_ospi_x_is_dpd_entry_interrupt_enabled (ospi_x_regs_t *OSPIx)
 Check whether the deep power down entry interrupt is enabled or not --------------------------. More...
 
__STATIC_INLINE void ll_ospi_x_set_dpd_exit_interrupt (ospi_x_regs_t *OSPIx, uint32_t intr)
 Enable the deep power down exit interrupt or not --------------------------. More...
 
__STATIC_INLINE uint32_t ll_ospi_x_is_dpd_exit_interrupt_enabled (ospi_x_regs_t *OSPIx)
 Check whether the deep power down exit interrupt is enabled or not --------------------------. More...
 
__STATIC_INLINE void ll_ospi_x_set_dqs_timeout_interrupt (ospi_x_regs_t *OSPIx, uint32_t intr)
 Enable the dqs timeout interrupt or not --------------------------. More...
 
__STATIC_INLINE uint32_t ll_ospi_x_is_dqs_timeout_interrupt_enabled (ospi_x_regs_t *OSPIx)
 Check whether the dqs timeout interrupt is enabled or not --------------------------. More...
 
__STATIC_INLINE uint32_t ll_ospi_x_is_global_rst_done (ospi_x_regs_t *OSPIx)
 Check whether the global reset is done or not --------------------------. More...
 
__STATIC_INLINE uint32_t ll_ospi_x_is_half_sleep_entry_done (ospi_x_regs_t *OSPIx)
 Check whether the half sleep entry operation is done or not --------------------------. More...
 
__STATIC_INLINE uint32_t ll_ospi_x_is_half_sleep_exit_done (ospi_x_regs_t *OSPIx)
 Check whether the half sleep exit operation is done or not --------------------------. More...
 
__STATIC_INLINE uint32_t ll_ospi_x_is_dpd_entry_done (ospi_x_regs_t *OSPIx)
 Check whether the deep power down entry operation is done or not --------------------------. More...
 
__STATIC_INLINE uint32_t ll_ospi_x_is_dpd_exit_done (ospi_x_regs_t *OSPIx)
 Check whether the deep power down exit operation is done or not --------------------------. More...
 
__STATIC_INLINE uint32_t ll_ospi_x_is_dqs_timeout_err (ospi_x_regs_t *OSPIx)
 Check whether the dqs timeout error happen or not --------------------------. More...
 
__STATIC_INLINE void ll_ospi_x_set_sync_read_cmd (ospi_x_regs_t *OSPIx, uint32_t cmd)
 Set sync read command --------------------------. More...
 
__STATIC_INLINE uint32_t ll_ospi_x_get_sync_read_cmd (ospi_x_regs_t *OSPIx)
 Get sync read command --------------------------. More...
 
__STATIC_INLINE void ll_ospi_x_set_sync_write_cmd (ospi_x_regs_t *OSPIx, uint32_t cmd)
 Set sync write command --------------------------. More...
 
__STATIC_INLINE uint32_t ll_ospi_x_get_sync_write_cmd (ospi_x_regs_t *OSPIx)
 Get sync write command --------------------------. More...
 
__STATIC_INLINE void ll_ospi_x_set_burst_read_cmd (ospi_x_regs_t *OSPIx, uint32_t cmd)
 Set linear burst read command --------------------------. More...
 
__STATIC_INLINE uint32_t ll_ospi_x_get_burst_read_cmd (ospi_x_regs_t *OSPIx)
 Get linear burst read command --------------------------. More...
 
__STATIC_INLINE void ll_ospi_x_set_burst_write_cmd (ospi_x_regs_t *OSPIx, uint32_t cmd)
 Set linear burst write command --------------------------. More...
 
__STATIC_INLINE uint32_t ll_ospi_x_get_burst_write_cmd (ospi_x_regs_t *OSPIx)
 Get linear burst write command --------------------------. More...
 
__STATIC_INLINE void ll_ospi_x_set_register_read_cmd (ospi_x_regs_t *OSPIx, uint32_t cmd)
 Set register mode read command --------------------------. More...
 
__STATIC_INLINE uint32_t ll_ospi_x_get_register_read_cmd (ospi_x_regs_t *OSPIx)
 Get register mode read command --------------------------. More...
 
__STATIC_INLINE void ll_ospi_x_set_register_write_cmd (ospi_x_regs_t *OSPIx, uint32_t cmd)
 Set register mode write command --------------------------. More...
 
__STATIC_INLINE uint32_t ll_ospi_x_get_register_write_cmd (ospi_x_regs_t *OSPIx)
 Get register mode write command --------------------------. More...
 
__STATIC_INLINE void ll_ospi_x_set_global_rst_cmd (ospi_x_regs_t *OSPIx, uint32_t cmd)
 Set global reset command --------------------------. More...
 
__STATIC_INLINE uint32_t ll_ospi_x_get_global_rst_cmd (ospi_x_regs_t *OSPIx)
 Get global reset command --------------------------. More...
 
__STATIC_INLINE void ll_ospi_x_set_dqs_timeout (ospi_x_regs_t *OSPIx, uint32_t timeout_clk)
 Set clock count for DQS timeout --------------------------. More...
 
__STATIC_INLINE uint32_t ll_ospi_x_get_dqs_timeout (ospi_x_regs_t *OSPIx)
 Get clock count for DQS timeout --------------------------. More...
 
__STATIC_INLINE void ll_ospi_x_set_read_prefetch (ospi_x_regs_t *OSPIx, uint32_t is_prefetch)
 Enable the read prefetch feature or not --------------------------. More...
 
__STATIC_INLINE uint32_t ll_ospi_x_is_read_prefetch_enabled (ospi_x_regs_t *OSPIx)
 Check whether the read prefetch feature is enabled or not --------------------------. More...
 
__STATIC_INLINE void ll_ospi_x_set_phy_delay (ospi_x_regs_t *OSPIx, uint32_t phy_delay)
 Set the Phy Delay TAP --------------------------. More...
 
__STATIC_INLINE uint32_t ll_ospi_x_get_phy_delay (ospi_x_regs_t *OSPIx)
 Get the Phy Delay TAP --------------------------. More...
 
__STATIC_INLINE uint32_t ll_ospi_x_get_xip_base_address (ospi_x_regs_t *OSPIx)
 Get memory starting address in AHB --------------------------. More...
 
error_status_t ll_ospi_x_init (ospi_x_regs_t *OSPIx, ll_ospi_x_init_t *p_ospi_x_init)
 Configure the ospi_x unit. More...
 
error_status_t ll_ospi_x_deinit (ospi_x_regs_t *OSPIx)
 Set OSPI registers to their reset values. More...
 

Detailed Description

Function Documentation

◆ ll_ospi_x_deinit()

error_status_t ll_ospi_x_deinit ( ospi_x_regs_t *  OSPIx)

Set OSPI registers to their reset values.

Parameters
OSPIxOSPI instance
Return values
AnErrorStatus enumeration value:
  • SUCCESS: spi registers are de-initialized
  • ERROR: invalid spi instance

◆ ll_ospi_x_enable_global_reset()

__STATIC_INLINE void ll_ospi_x_enable_global_reset ( ospi_x_regs_t *  OSPIx)

Trigger Global Reset Command --------------------------.

Parameters
OSPIxOSPI instance
Return values
none

Definition at line 264 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_entry_dpd()

__STATIC_INLINE void ll_ospi_x_entry_dpd ( ospi_x_regs_t *  OSPIx)

Trigger the entry deep power down command --------------------------.

Parameters
OSPIxOSPI instance
Return values
none

Definition at line 413 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_entry_half_sleep()

__STATIC_INLINE void ll_ospi_x_entry_half_sleep ( ospi_x_regs_t *  OSPIx)

Trigger the entry half sleep command --------------------------.

Parameters
OSPIxOSPI instance
Return values
none

Definition at line 504 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_exit_dpd()

__STATIC_INLINE void ll_ospi_x_exit_dpd ( ospi_x_regs_t *  OSPIx)

Trigger the exit deep power down command --------------------------.

Parameters
OSPIxOSPI instance
Return values
none

Definition at line 424 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_exit_half_sleep()

__STATIC_INLINE void ll_ospi_x_exit_half_sleep ( ospi_x_regs_t *  OSPIx)

Trigger the exit half sleep command --------------------------.

Parameters
OSPIxOSPI instance
Return values
none

Definition at line 515 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_get_access_type()

__STATIC_INLINE uint32_t ll_ospi_x_get_access_type ( ospi_x_regs_t *  OSPIx)

Get access type for PSRAM --------------------------.

Parameters
OSPIxOSPI instance
Return values
LL_OSPI_X_ACCESS_TYPE

Definition at line 287 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_get_burst_read_cmd()

__STATIC_INLINE uint32_t ll_ospi_x_get_burst_read_cmd ( ospi_x_regs_t *  OSPIx)

Get linear burst read command --------------------------.

Parameters
OSPIxOSPI instance
Return values
linearburst read command

Definition at line 858 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_get_burst_write_cmd()

__STATIC_INLINE uint32_t ll_ospi_x_get_burst_write_cmd ( ospi_x_regs_t *  OSPIx)

Get linear burst write command --------------------------.

Parameters
OSPIxOSPI instance
Return values
linearburst write command

Definition at line 881 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_get_dqs_timeout()

__STATIC_INLINE uint32_t ll_ospi_x_get_dqs_timeout ( ospi_x_regs_t *  OSPIx)

Get clock count for DQS timeout --------------------------.

Parameters
OSPIxOSPI instance
Return values
clockcount for DQS timeout

Definition at line 974 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_get_global_rst_cmd()

__STATIC_INLINE uint32_t ll_ospi_x_get_global_rst_cmd ( ospi_x_regs_t *  OSPIx)

Get global reset command --------------------------.

Parameters
OSPIxOSPI instance
Return values
globalreset command

Definition at line 950 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_get_mem_base_address()

__STATIC_INLINE uint32_t ll_ospi_x_get_mem_base_address ( ospi_x_regs_t *  OSPIx)

Get memory base address --------------------------.

Parameters
OSPIxOSPI instance
Return values
baseaddress

Definition at line 207 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_get_mem_page_size()

__STATIC_INLINE uint32_t ll_ospi_x_get_mem_page_size ( ospi_x_regs_t *  OSPIx)

Get memory page size --------------------------.

Parameters
OSPIxOSPI instance
Return values
LL_OSPI_X_MEM_PAGE_SIZE

Definition at line 402 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_get_mem_top_address()

__STATIC_INLINE uint32_t ll_ospi_x_get_mem_top_address ( ospi_x_regs_t *  OSPIx)

Get memory top address --------------------------.

Parameters
OSPIxOSPI instance
Return values
topaddress

Definition at line 230 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_get_phy_delay()

__STATIC_INLINE uint32_t ll_ospi_x_get_phy_delay ( ospi_x_regs_t *  OSPIx)

Get the Phy Delay TAP --------------------------.

Parameters
OSPIxOSPI instance
Return values
LL_OSPI_X_READ_PREFETCH

Definition at line 1020 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_get_register_read_cmd()

__STATIC_INLINE uint32_t ll_ospi_x_get_register_read_cmd ( ospi_x_regs_t *  OSPIx)

Get register mode read command --------------------------.

Parameters
OSPIxOSPI instance
Return values
registermode read command

Definition at line 904 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_get_register_write_cmd()

__STATIC_INLINE uint32_t ll_ospi_x_get_register_write_cmd ( ospi_x_regs_t *  OSPIx)

Get register mode write command --------------------------.

Parameters
OSPIxOSPI instance
Return values
registermode write command

Definition at line 927 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_get_sync_read_cmd()

__STATIC_INLINE uint32_t ll_ospi_x_get_sync_read_cmd ( ospi_x_regs_t *  OSPIx)

Get sync read command --------------------------.

Parameters
OSPIxOSPI instance
Return values
syncread command

Definition at line 812 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_get_sync_write_cmd()

__STATIC_INLINE uint32_t ll_ospi_x_get_sync_write_cmd ( ospi_x_regs_t *  OSPIx)

Get sync write command --------------------------.

Parameters
OSPIxOSPI instance
Return values
syncwrite command

Definition at line 835 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_get_tcem_count()

__STATIC_INLINE uint32_t ll_ospi_x_get_tcem_count ( ospi_x_regs_t *  OSPIx)

Get clock count for the tcem --------------------------.

Parameters
OSPIxOSPI instance
Return values
clockcount for the tcem

Definition at line 333 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_get_tcem_ignore()

__STATIC_INLINE uint32_t ll_ospi_x_get_tcem_ignore ( ospi_x_regs_t *  OSPIx)

Get whether ignoring the tcem or not --------------------------.

Parameters
OSPIxOSPI instance
Return values
LL_OSPI_X_TCEM_TIME_IGNORE

Definition at line 310 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_get_tcph_count()

__STATIC_INLINE uint32_t ll_ospi_x_get_tcph_count ( ospi_x_regs_t *  OSPIx)

Get clock count for the tCPH --------------------------.

Parameters
OSPIxOSPI instance
Return values
clockcount for the tCPH

Definition at line 379 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_get_trc_count()

__STATIC_INLINE uint32_t ll_ospi_x_get_trc_count ( ospi_x_regs_t *  OSPIx)

Get clock count for the tRC --------------------------.

Parameters
OSPIxOSPI instance
Return values
clockcount for the tRC

Definition at line 356 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_get_trst_count()

__STATIC_INLINE uint32_t ll_ospi_x_get_trst_count ( ospi_x_regs_t *  OSPIx)

Get clock count for tRST --------------------------.

Parameters
OSPIxOSPI instance
Return values
none

Definition at line 253 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_get_txdpd_count()

__STATIC_INLINE uint32_t ll_ospi_x_get_txdpd_count ( ospi_x_regs_t *  OSPIx)

Get clock count for the tXDPD --------------------------.

Parameters
OSPIxOSPI instance
Return values
clockcount for the tXDPD

Definition at line 470 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_get_txdpd_ignore()

__STATIC_INLINE uint32_t ll_ospi_x_get_txdpd_ignore ( ospi_x_regs_t *  OSPIx)

Get whether ignoring the txdpd or not --------------------------.

Parameters
OSPIxOSPI instance
Return values
LL_OSPI_X_TXDPD_TIME_IGNORE

Definition at line 447 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_get_txhs_count()

__STATIC_INLINE uint32_t ll_ospi_x_get_txhs_count ( ospi_x_regs_t *  OSPIx)

Get clock count for the tXHS --------------------------.

Parameters
OSPIxOSPI instance
Return values
clockcount for the tXHS

Definition at line 561 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_get_txhs_ignore()

__STATIC_INLINE uint32_t ll_ospi_x_get_txhs_ignore ( ospi_x_regs_t *  OSPIx)

Get whether ignoring the tXHS or not --------------------------.

Parameters
OSPIxOSPI instance
Return values
LL_OSPI_X_TXHS_TIME_IGNORE

Definition at line 538 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_get_txpdpd_count()

__STATIC_INLINE uint32_t ll_ospi_x_get_txpdpd_count ( ospi_x_regs_t *  OSPIx)

Get clock count for the tXPDPD --------------------------.

Parameters
OSPIxOSPI instance
Return values
clockcount for the tXPDPD

Definition at line 493 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_get_txphs_count()

__STATIC_INLINE uint32_t ll_ospi_x_get_txphs_count ( ospi_x_regs_t *  OSPIx)

Get clock count for the tXPHS --------------------------.

Parameters
OSPIxOSPI instance
Return values
clockcount for the tXPHS

Definition at line 584 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_get_xip_base_address()

__STATIC_INLINE uint32_t ll_ospi_x_get_xip_base_address ( ospi_x_regs_t *  OSPIx)

Get memory starting address in AHB --------------------------.

Parameters
OSPIxOSPI instance
Return values
OSPI0_XIP_BASE

Definition at line 1031 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_init()

error_status_t ll_ospi_x_init ( ospi_x_regs_t *  OSPIx,
ll_ospi_x_init_t p_ospi_x_init 
)

Configure the ospi_x unit.

Parameters
OSPIxOSPI instance
p_ospi_x_initpointer to a ll_ospi_x_init_t structure
Return values
AnErrorStatus enumeration value:
  • SUCCESS: spi registers are de-initialized
  • ERROR: not applicable

◆ ll_ospi_x_is_dpd_entry_done()

__STATIC_INLINE uint32_t ll_ospi_x_is_dpd_entry_done ( ospi_x_regs_t *  OSPIx)

Check whether the deep power down entry operation is done or not --------------------------.

Parameters
OSPIxOSPI instance
Return values
1- done ; 0 - not done

Definition at line 767 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_is_dpd_entry_interrupt_enabled()

__STATIC_INLINE uint32_t ll_ospi_x_is_dpd_entry_interrupt_enabled ( ospi_x_regs_t *  OSPIx)

Check whether the deep power down entry interrupt is enabled or not --------------------------.

Parameters
OSPIxOSPI instance
Return values
LL_OSPI_X_INTERRUPT

Definition at line 676 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_is_dpd_exit_done()

__STATIC_INLINE uint32_t ll_ospi_x_is_dpd_exit_done ( ospi_x_regs_t *  OSPIx)

Check whether the deep power down exit operation is done or not --------------------------.

Parameters
OSPIxOSPI instance
Return values
1- done ; 0 - not done

Definition at line 778 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_is_dpd_exit_interrupt_enabled()

__STATIC_INLINE uint32_t ll_ospi_x_is_dpd_exit_interrupt_enabled ( ospi_x_regs_t *  OSPIx)

Check whether the deep power down exit interrupt is enabled or not --------------------------.

Parameters
OSPIxOSPI instance
Return values
LL_OSPI_X_INTERRUPT

Definition at line 699 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_is_dqs_timeout_err()

__STATIC_INLINE uint32_t ll_ospi_x_is_dqs_timeout_err ( ospi_x_regs_t *  OSPIx)

Check whether the dqs timeout error happen or not --------------------------.

Parameters
OSPIxOSPI instance
Return values
1- happen ; 0 - not happen

Definition at line 789 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_is_dqs_timeout_interrupt_enabled()

__STATIC_INLINE uint32_t ll_ospi_x_is_dqs_timeout_interrupt_enabled ( ospi_x_regs_t *  OSPIx)

Check whether the dqs timeout interrupt is enabled or not --------------------------.

Parameters
OSPIxOSPI instance
Return values
LL_OSPI_X_INTERRUPT

Definition at line 722 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_is_global_rst_done()

__STATIC_INLINE uint32_t ll_ospi_x_is_global_rst_done ( ospi_x_regs_t *  OSPIx)

Check whether the global reset is done or not --------------------------.

Parameters
OSPIxOSPI instance
Return values
1- done ; 0 - not done

Definition at line 733 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_is_global_rst_interrupt_enabled()

__STATIC_INLINE uint32_t ll_ospi_x_is_global_rst_interrupt_enabled ( ospi_x_regs_t *  OSPIx)

Check whether the global reset interrupt is enabled or not --------------------------.

Parameters
OSPIxOSPI instance
Return values
LL_OSPI_X_INTERRUPT

Definition at line 607 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_is_half_sleep_entry_done()

__STATIC_INLINE uint32_t ll_ospi_x_is_half_sleep_entry_done ( ospi_x_regs_t *  OSPIx)

Check whether the half sleep entry operation is done or not --------------------------.

Parameters
OSPIxOSPI instance
Return values
1- done ; 0 - not done

Definition at line 745 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_is_half_sleep_entry_interrupt_enabled()

__STATIC_INLINE uint32_t ll_ospi_x_is_half_sleep_entry_interrupt_enabled ( ospi_x_regs_t *  OSPIx)

Check whether the half sleep entry interrupt is enabled or not --------------------------.

Parameters
OSPIxOSPI instance
Return values
LL_OSPI_X_INTERRUPT

Definition at line 630 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_is_half_sleep_exit_done()

__STATIC_INLINE uint32_t ll_ospi_x_is_half_sleep_exit_done ( ospi_x_regs_t *  OSPIx)

Check whether the half sleep exit operation is done or not --------------------------.

Parameters
OSPIxOSPI instance
Return values
1- done ; 0 - not done

Definition at line 756 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_is_half_sleep_exit_interrupt_enabled()

__STATIC_INLINE uint32_t ll_ospi_x_is_half_sleep_exit_interrupt_enabled ( ospi_x_regs_t *  OSPIx)

Check whether the half sleep exit interrupt is enabled or not --------------------------.

Parameters
OSPIxOSPI instance
Return values
LL_OSPI_X_INTERRUPT

Definition at line 653 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_is_read_prefetch_enabled()

__STATIC_INLINE uint32_t ll_ospi_x_is_read_prefetch_enabled ( ospi_x_regs_t *  OSPIx)

Check whether the read prefetch feature is enabled or not --------------------------.

Parameters
OSPIxOSPI instance
Return values
LL_OSPI_X_READ_PREFETCH

Definition at line 997 of file gr55xx_ll_ospi_x.h.

Referenced by app_graphics_ospi_get_read_prefetch().

◆ ll_ospi_x_set_access_type()

__STATIC_INLINE void ll_ospi_x_set_access_type ( ospi_x_regs_t *  OSPIx,
uint32_t  access_type 
)

Set access type for PSRAM --------------------------.

Parameters
OSPIxOSPI instance
access_type- PSRAM access type
Return values
none

Definition at line 276 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_set_burst_read_cmd()

__STATIC_INLINE void ll_ospi_x_set_burst_read_cmd ( ospi_x_regs_t *  OSPIx,
uint32_t  cmd 
)

Set linear burst read command --------------------------.

Parameters
OSPIxOSPI instance
cmdLinear burst read command
Return values
none

Definition at line 847 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_set_burst_write_cmd()

__STATIC_INLINE void ll_ospi_x_set_burst_write_cmd ( ospi_x_regs_t *  OSPIx,
uint32_t  cmd 
)

Set linear burst write command --------------------------.

Parameters
OSPIxOSPI instance
cmdLinear burst write command
Return values
none

Definition at line 870 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_set_dpd_entry_interrupt()

__STATIC_INLINE void ll_ospi_x_set_dpd_entry_interrupt ( ospi_x_regs_t *  OSPIx,
uint32_t  intr 
)

Enable the deep power down entry interrupt or not --------------------------.

Parameters
OSPIxOSPI instance
intr- LL_OSPI_X_INTERRUPT
Return values
none

Definition at line 665 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_set_dpd_exit_interrupt()

__STATIC_INLINE void ll_ospi_x_set_dpd_exit_interrupt ( ospi_x_regs_t *  OSPIx,
uint32_t  intr 
)

Enable the deep power down exit interrupt or not --------------------------.

Parameters
OSPIxOSPI instance
intr- LL_OSPI_X_INTERRUPT
Return values
none

Definition at line 688 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_set_dqs_timeout()

__STATIC_INLINE void ll_ospi_x_set_dqs_timeout ( ospi_x_regs_t *  OSPIx,
uint32_t  timeout_clk 
)

Set clock count for DQS timeout --------------------------.

Parameters
OSPIxOSPI instance
timeout_clkclock count for DQS timeout
Return values
none

Definition at line 962 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_set_dqs_timeout_interrupt()

__STATIC_INLINE void ll_ospi_x_set_dqs_timeout_interrupt ( ospi_x_regs_t *  OSPIx,
uint32_t  intr 
)

Enable the dqs timeout interrupt or not --------------------------.

Parameters
OSPIxOSPI instance
intr- LL_OSPI_X_INTERRUPT
Return values
none

Definition at line 711 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_set_global_rst_cmd()

__STATIC_INLINE void ll_ospi_x_set_global_rst_cmd ( ospi_x_regs_t *  OSPIx,
uint32_t  cmd 
)

Set global reset command --------------------------.

Parameters
OSPIxOSPI instance
cmdsync read command
Return values
none

Definition at line 939 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_set_global_rst_interrupt()

__STATIC_INLINE void ll_ospi_x_set_global_rst_interrupt ( ospi_x_regs_t *  OSPIx,
uint32_t  intr 
)

Enable the global reset interrupt or not --------------------------.

Parameters
OSPIxOSPI instance
intr- LL_OSPI_X_INTERRUPT
Return values
none

Definition at line 596 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_set_half_sleep_entry_interrupt()

__STATIC_INLINE void ll_ospi_x_set_half_sleep_entry_interrupt ( ospi_x_regs_t *  OSPIx,
uint32_t  intr 
)

Enable the half sleep entry interrupt or not --------------------------.

Parameters
OSPIxOSPI instance
intr- LL_OSPI_X_INTERRUPT
Return values
none

Definition at line 619 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_set_half_sleep_exit_interrupt()

__STATIC_INLINE void ll_ospi_x_set_half_sleep_exit_interrupt ( ospi_x_regs_t *  OSPIx,
uint32_t  intr 
)

Enable the half sleep exit interrupt or not --------------------------.

Parameters
OSPIxOSPI instance
intr- LL_OSPI_X_INTERRUPT
Return values
none

Definition at line 642 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_set_mem_base_address()

__STATIC_INLINE void ll_ospi_x_set_mem_base_address ( ospi_x_regs_t *  OSPIx,
uint32_t  base_address 
)

Set memory base address --------------------------.

Parameters
OSPIxOSPI instance
base_address- base address
Return values
none

Definition at line 196 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_set_mem_page_size()

__STATIC_INLINE void ll_ospi_x_set_mem_page_size ( ospi_x_regs_t *  OSPIx,
uint32_t  mem_page_size 
)

Set memory page size --------------------------.

Parameters
OSPIxOSPI instance
mem_page_size- LL_OSPI_X_MEM_PAGE_SIZE
Return values
none

Definition at line 391 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_set_mem_top_address()

__STATIC_INLINE void ll_ospi_x_set_mem_top_address ( ospi_x_regs_t *  OSPIx,
uint32_t  top_address 
)

Set memory top address --------------------------.

Parameters
OSPIxOSPI instance
top_address- top address
Return values
none

Definition at line 219 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_set_phy_delay()

__STATIC_INLINE void ll_ospi_x_set_phy_delay ( ospi_x_regs_t *  OSPIx,
uint32_t  phy_delay 
)

Set the Phy Delay TAP --------------------------.

Parameters
OSPIxOSPI instance
phy_delay
Return values
none

Definition at line 1009 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_set_read_prefetch()

__STATIC_INLINE void ll_ospi_x_set_read_prefetch ( ospi_x_regs_t *  OSPIx,
uint32_t  is_prefetch 
)

Enable the read prefetch feature or not --------------------------.

Parameters
OSPIxOSPI instance
is_prefetch- LL_OSPI_X_READ_PREFETCH
Return values
none

Definition at line 986 of file gr55xx_ll_ospi_x.h.

Referenced by app_graphics_ospi_set_read_prefetch().

◆ ll_ospi_x_set_register_read_cmd()

__STATIC_INLINE void ll_ospi_x_set_register_read_cmd ( ospi_x_regs_t *  OSPIx,
uint32_t  cmd 
)

Set register mode read command --------------------------.

Parameters
OSPIxOSPI instance
cmdregister mode read
Return values
none

Definition at line 893 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_set_register_write_cmd()

__STATIC_INLINE void ll_ospi_x_set_register_write_cmd ( ospi_x_regs_t *  OSPIx,
uint32_t  cmd 
)

Set register mode write command --------------------------.

Parameters
OSPIxOSPI instance
cmdregister mode write command
Return values
none

Definition at line 916 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_set_sync_read_cmd()

__STATIC_INLINE void ll_ospi_x_set_sync_read_cmd ( ospi_x_regs_t *  OSPIx,
uint32_t  cmd 
)

Set sync read command --------------------------.

Parameters
OSPIxOSPI instance
cmdsync read command
Return values
none

Definition at line 801 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_set_sync_write_cmd()

__STATIC_INLINE void ll_ospi_x_set_sync_write_cmd ( ospi_x_regs_t *  OSPIx,
uint32_t  cmd 
)

Set sync write command --------------------------.

Parameters
OSPIxOSPI instance
cmdsync write command
Return values
none

Definition at line 824 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_set_tcem_count()

__STATIC_INLINE void ll_ospi_x_set_tcem_count ( ospi_x_regs_t *  OSPIx,
uint32_t  tcem_cnt 
)

Set clock count for the tcem --------------------------.

Parameters
OSPIxOSPI instance
tcem_cnt- clock count for the tcem
Return values
none

Definition at line 322 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_set_tcem_ignore()

__STATIC_INLINE void ll_ospi_x_set_tcem_ignore ( ospi_x_regs_t *  OSPIx,
uint32_t  is_ignore 
)

Set ignoring the tcem or not --------------------------.

Parameters
OSPIxOSPI instance
is_ignore- LL_OSPI_X_TCEM_TIME_IGNORE
Return values
none

Definition at line 299 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_set_tcph_count()

__STATIC_INLINE void ll_ospi_x_set_tcph_count ( ospi_x_regs_t *  OSPIx,
uint32_t  tcph_cnt 
)

Set clock count for the tCPH --------------------------.

Parameters
OSPIxOSPI instance
tcph_cnt- clock count for the tCPH
Return values
none

Definition at line 368 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_set_trc_count()

__STATIC_INLINE void ll_ospi_x_set_trc_count ( ospi_x_regs_t *  OSPIx,
uint32_t  trc_cnt 
)

Set clock count for the tRC --------------------------.

Parameters
OSPIxOSPI instance
trc_cnt- clock count for the tRC
Return values
none

Definition at line 345 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_set_trst_count()

__STATIC_INLINE void ll_ospi_x_set_trst_count ( ospi_x_regs_t *  OSPIx,
uint32_t  trst_cnt 
)

Set clock count for tRST --------------------------.

Parameters
OSPIxOSPI instance
trst_cnt- clock count for tRST
Return values
none

Definition at line 242 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_set_txdpd_count()

__STATIC_INLINE void ll_ospi_x_set_txdpd_count ( ospi_x_regs_t *  OSPIx,
uint32_t  txdpd_cnt 
)

Set clock count for the tXDPD --------------------------.

Parameters
OSPIxOSPI instance
txdpd_cnt- clock count for the tXDPD
Return values
none

Definition at line 459 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_set_txdpd_ignore()

__STATIC_INLINE void ll_ospi_x_set_txdpd_ignore ( ospi_x_regs_t *  OSPIx,
uint32_t  is_ignore 
)

Set ignoring the txdpd or not --------------------------.

Parameters
OSPIxOSPI instance
is_ignore- LL_OSPI_X_TXDPD_TIME_IGNORE
Return values
none

Definition at line 436 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_set_txhs_count()

__STATIC_INLINE void ll_ospi_x_set_txhs_count ( ospi_x_regs_t *  OSPIx,
uint32_t  txhs_count 
)

Set clock count for the tXHS --------------------------.

Parameters
OSPIxOSPI instance
txhs_count- clock count for the tXHS
Return values
none

Definition at line 550 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_set_txhs_ignore()

__STATIC_INLINE void ll_ospi_x_set_txhs_ignore ( ospi_x_regs_t *  OSPIx,
uint32_t  is_ignore 
)

Set ignoring the tXHS or not --------------------------.

Parameters
OSPIxOSPI instance
is_ignore- LL_OSPI_X_TXHS_TIME_IGNORE
Return values
none

Definition at line 527 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_set_txpdpd_count()

__STATIC_INLINE void ll_ospi_x_set_txpdpd_count ( ospi_x_regs_t *  OSPIx,
uint32_t  txpdpd_cnt 
)

Set clock count for the tXPDPD --------------------------.

Parameters
OSPIxOSPI instance
txpdpd_cnt- clock count for the tXPDPD
Return values
none

Definition at line 482 of file gr55xx_ll_ospi_x.h.

◆ ll_ospi_x_set_txphs_count()

__STATIC_INLINE void ll_ospi_x_set_txphs_count ( ospi_x_regs_t *  OSPIx,
uint32_t  txphs_count 
)

Set clock count for the tXPHS --------------------------.

Parameters
OSPIxOSPI instance
txphs_count- clock count for the tXPHS
Return values
none

Definition at line 573 of file gr55xx_ll_ospi_x.h.