Synergy Software Package User's Manual

#include <sf_memory_api.h>

Data Fields

ssp_err_t(* open )(sf_memory_ctrl_t *const p_api_ctrl, sf_memory_cfg_t const *const p_cfg)
 
ssp_err_t(* read )(sf_memory_ctrl_t *const p_api_ctrl, uint8_t *const p_dest_address, uint32_t const memory_address, uint32_t const num_bytes)
 
ssp_err_t(* write )(sf_memory_ctrl_t *const p_api_ctrl, uint8_t *const p_src_address, uint32_t const memory_address, uint32_t const num_bytes)
 
ssp_err_t(* flush )(sf_memory_ctrl_t *const p_api_ctrl)
 
ssp_err_t(* erase )(sf_memory_ctrl_t *const p_api_ctrl, uint32_t const memory_address, uint32_t const num_bytes)
 
ssp_err_t(* infoGet )(sf_memory_ctrl_t *const p_api_ctrl, sf_memory_info_t *const p_info)
 
ssp_err_t(* close )(sf_memory_ctrl_t *const p_api_ctrl)
 
ssp_err_t(* versionGet )(ssp_version_t *const p_version)
 

Detailed Description

SF_MEMORY functions implemented at the Framework layer will follow this API.

Field Documentation

◆ close

ssp_err_t(* sf_memory_api_t::close) (sf_memory_ctrl_t *const p_api_ctrl)

Closes the module.

Implemented as
  • SF_MEMORY_QSPI_NOR_Close
Parameters
[in]p_api_ctrlControl block set in sf_memory_api_t::open call.

◆ erase

ssp_err_t(* sf_memory_api_t::erase) (sf_memory_ctrl_t *const p_api_ctrl, uint32_t const memory_address, uint32_t const num_bytes)

Erases the specified number of bytes from the memory device.

Implemented as
  • SF_MEMORY_QSPI_NOR_Erase
Parameters
[in]p_api_ctrlControl block set in sf_memory_api_t::open call.
[in]memory_addressAddress to start the erase process at.
[in]num_bytesNumber of bytes of data to erase.

◆ flush

ssp_err_t(* sf_memory_api_t::flush) (sf_memory_ctrl_t *const p_api_ctrl)

Performs any buffered pending writes. This function MUST be called by the application after the final write is called to complete any pending writes.

Implemented as
  • SF_MEMORY_QSPI_NOR_Flush
Parameters
[in]p_api_ctrlControl block set in sf_memory_api_t::open call.

◆ infoGet

ssp_err_t(* sf_memory_api_t::infoGet) (sf_memory_ctrl_t *const p_api_ctrl, sf_memory_info_t *const p_info)

Returns information about the memory implementation.

Implemented as
  • SF_MEMORY_QSPI_NOR_InfoGet
Parameters
[in]p_api_ctrlControl block set in sf_memory_api_t::open call.
[out]p_infoPointer to information structure. All elements of this structure will be set by the function.

◆ open

ssp_err_t(* sf_memory_api_t::open) (sf_memory_ctrl_t *const p_api_ctrl, sf_memory_cfg_t const *const p_cfg)

Initialize Memory framework.

Implemented as
  • SF_MEMORY_QSPI_NOR_Open
Parameters
[in]p_api_ctrlPointer to control block. Must be declared by user. Elements set here.
[in]p_configPointer to configuration structure. All elements of this structure must be set by user.

◆ read

ssp_err_t(* sf_memory_api_t::read) (sf_memory_ctrl_t *const p_api_ctrl, uint8_t *const p_dest_address, uint32_t const memory_address, uint32_t const num_bytes)

Reads data from the specified memory device address to the location specified by the caller.

Implemented as
  • SF_MEMORY_QSPI_NOR_Read
Parameters
[in]p_api_ctrlControl block set in sf_memory_api_t::open call.
[in]p_dest_addressDestination to read the data into.
[in]memory_addressAddress to read the data from.
[in]num_bytesNumber of bytes of data to read.

◆ versionGet

ssp_err_t(* sf_memory_api_t::versionGet) (ssp_version_t *const p_version)

Gets version and stores it in provided pointer p_version.

Implemented as
  • SF_MEMORY_QSPI_NOR_VersionGet
Parameters
[out]p_versionCode and API version used.

◆ write

ssp_err_t(* sf_memory_api_t::write) (sf_memory_ctrl_t *const p_api_ctrl, uint8_t *const p_src_address, uint32_t const memory_address, uint32_t const num_bytes)

Writes the specified number of data bytes to the specified device memory address.

Implemented as
  • SF_MEMORY_QSPI_NOR_Write
Parameters
[in]p_api_ctrlControl block set in sf_memory_api_t::open call.
[in]p_src_addressAddress to read the data to be written.
[in]memory_addressAddress to write the data to.
[in]num_bytesNumber of bytes of data to write.

The documentation for this struct was generated from the following file: