RZT Flexible Software Package Documentation
Release v2.2.0
|
|
Interface for external sdram communication.
The SDRAM interface provides APIs and definitions for SDRAM communication.
Data Structures | |
struct | sdram_cfg_t |
struct | sdram_api_t |
struct | sdram_instance_t |
Typedefs | |
typedef void | sdram_ctrl_t |
Enumerations | |
enum | sdram_data_bus_width_t |
enum | sdram_address_bus_width_t |
enum | sdram_write_burst_mode_t |
enum | sdram_refresh_cycle_source_div_t |
struct sdram_cfg_t |
SDRAM configuration
Data Fields | ||
---|---|---|
sdram_data_bus_width_t | data_width | Select data bus width. |
sdram_address_bus_width_t | row_address_width | Number of bits of SDRAM Row address. |
sdram_address_bus_width_t | column_address_width | Number of bits of SDRAM Column address. |
uint32_t | ras_precharge_cycle | Cycle between PRECHARGE and ACTIVE command (tRP) |
uint32_t | ras_to_cas_delay_cycle | Cycle between ACTIVE and READ/WRITE command (tRCD) |
uint32_t | cas_latency | CAS Latency cycle (tCL) |
uint32_t | write_recovery_cycle | Cycle between Data In and PRECHARGE command (tWR) |
uint32_t | row_cycle | Cycle between REFRESH/ACTIVE and REFRESH/ACTIVE command (tRC) |
uint32_t | auto_refresh_cycle | Auto-Refresh cycle time. |
sdram_refresh_cycle_source_div_t | source_div | Auto-Refresh cycle clock source divider. |
uint32_t | refresh_request_count | The number of continuous refresh cycles. |
sdram_write_burst_mode_t | write_burst_mode |
Select Burst Write or Single Write in MRS |
void const * | p_extend | SDRAM hardware dependent configuration. |
struct sdram_api_t |
SDRAM implementations follow this API.
Data Fields | |
fsp_err_t(* | open )(sdram_ctrl_t *p_ctrl, sdram_cfg_t const *const p_cfg) |
fsp_err_t(* | selfRefreshEnter )(sdram_ctrl_t *p_ctrl) |
fsp_err_t(* | selfRefreshExit )(sdram_ctrl_t *p_ctrl) |
fsp_err_t(* | powerDownEnter )(sdram_ctrl_t *p_ctrl) |
fsp_err_t(* | powerDownExit )(sdram_ctrl_t *p_ctrl) |
fsp_err_t(* | close )(sdram_ctrl_t *p_ctrl) |
fsp_err_t(* sdram_api_t::open) (sdram_ctrl_t *p_ctrl, sdram_cfg_t const *const p_cfg) |
Open the SDRAM driver module.
[in] | p_ctrl | Pointer to a driver handle |
[in] | p_cfg | Pointer to a configuration structure |
fsp_err_t(* sdram_api_t::selfRefreshEnter) (sdram_ctrl_t *p_ctrl) |
Enter Self Refresh mode.
[in] | p_ctrl | Pointer to a driver handle |
fsp_err_t(* sdram_api_t::selfRefreshExit) (sdram_ctrl_t *p_ctrl) |
Exit Self Refresh mode.
[in] | p_ctrl | Pointer to a driver handle |
fsp_err_t(* sdram_api_t::powerDownEnter) (sdram_ctrl_t *p_ctrl) |
Enter Power Down mode.
[in] | p_ctrl | Pointer to a driver handle |
fsp_err_t(* sdram_api_t::powerDownExit) (sdram_ctrl_t *p_ctrl) |
Exit Power Down mode.
[in] | p_ctrl | Pointer to a driver handle |
fsp_err_t(* sdram_api_t::close) (sdram_ctrl_t *p_ctrl) |
Close the SDRAM driver module.
[in] | p_ctrl | Pointer to a driver handle |
struct sdram_instance_t |
This structure encompasses everything that is needed to use an instance of this interface.
Data Fields | ||
---|---|---|
sdram_ctrl_t * | p_ctrl | Pointer to the control structure for this instance. |
sdram_cfg_t const * | p_cfg | Pointer to the configuration structure for this instance. |
sdram_api_t const * | p_api | Pointer to the API structure for this instance. |
typedef void sdram_ctrl_t |
SDRAM control block. Allocate an instance specific control block to pass into the SDRAM API calls.
Number of bits of SDRAM Row/Column address.
SDRAM Refresh cycle clock source divisors