|
AM64x MCU+ SDK
10.01.00
|
|
Go to the documentation of this file.
43 #include <drivers/hw_include/soc_config.h>
69 typedef struct Ram_Attrs_s {
125 uint8_t *buf, uint32_t len) ;
141 uint8_t *buf, uint32_t len) ;
146 typedef struct Ram_Fxns_s
157 typedef struct Ram_Config_s
198 typedef struct Ram_Params_s {
205 #if defined (DRV_VERSION_PSRAM_V0)
206 #include <board/ram/gpmc/psram_gpmc.h>
Driver implementation callbacks.
Definition: ram.h:147
char * ramName
Definition: ram.h:72
Ram_Handle Ram_open(uint32_t instanceId, Ram_Params *params)
Open RAM driver.
int32_t(* Ram_quirksFxn)(Ram_Config *config)
Ram device config. This will be part of the ram config, so has to be filled by sysconfig or otherwise...
Definition: ram.h:181
uint32_t driverInstance
Definition: ram.h:75
Ram_Attrs * Ram_getAttrs(uint32_t instanceId)
int32_t(* Ram_WriteFxn)(Ram_Config *config, uint32_t offset, uint8_t *buf, uint32_t len)
Driver implementation to write to RAM using specific RAM driver.
Definition: ram.h:140
Ram_ReadFxn readFxn
Definition: ram.h:150
struct Ram_Config_s Ram_Config
Forward declaration of Ram_Config.
Definition: ram.h:62
int32_t(* Ram_custProtocolFxn)(Ram_Config *config)
User implementation of a custom function to configure RAM to operate in a specific protocol.
Definition: ram.h:190
uint32_t deviceId
Definition: ram.h:73
Ram_WriteFxn writeFxn
Definition: ram.h:151
int32_t Ram_read(Ram_Handle handle, uint32_t offset, uint8_t *buf, uint32_t len)
Read data from RAM device.
uint32_t manufacturerId
Definition: ram.h:74
uint32_t ramType
Definition: ram.h:71
void(* Ram_CloseFxn)(Ram_Config *config)
Driver implementation to close a specific RAM driver.
Definition: ram.h:109
Ram_OpenFxn openFxn
Definition: ram.h:148
Ram_Fxns * fxns
Definition: ram.h:160
Parameters passed during RAM_open()
Definition: ram.h:198
int32_t(* Ram_OpenFxn)(Ram_Config *config)
Driver implementation to open a specific RAM driver.
Definition: ram.h:97
Ram_quirksFxn quirksFxn
Definition: ram.h:200
void * object
Definition: ram.h:161
Ram_CloseFxn closeFxn
Definition: ram.h:149
Ram_Attrs * attrs
Definition: ram.h:159
void * Ram_Handle
Handle to the RAM driver returned by Ram_open()
Definition: ram.h:57
int32_t Ram_write(Ram_Handle handle, uint32_t offset, uint8_t *buf, uint32_t len)
Write to RAM device.
int32_t(* Ram_ReadFxn)(Ram_Config *config, uint32_t offset, uint8_t *buf, uint32_t len)
Driver implementation to read from RAM using a specific RAM driver.
Definition: ram.h:124
uint32_t ramSize
Definition: ram.h:76
Ram_custProtocolFxn custProtoFxn
Definition: ram.h:201
void Ram_close(Ram_Handle handle)
Close RAM driver.
Ram driver configuration, these are filled by SysCfg based on the ram device that is selected.
Definition: ram.h:158
struct Ram_Params_s Ram_Params
Forward declaration of Ram_Params.
Definition: ram.h:67