![]() |
PDK API Guide for J721E
|
Sub Modules | |
MMCSD Driver API | |
Data Structures | |
struct | MMCSD_ConfigParams |
SD Parameters. More... | |
struct | MMCSD_FxnTable |
The definition of a SD function table that contains the required set of functions to control a specific SD driver implementation. More... | |
struct | MMCSD_Config |
SD Global configuration. More... | |
struct | MMCSD_mediaParams |
Parameters of the media attached to the controller. More... | |
Functions | |
MMCSD_Error | MMCSD_close (MMCSD_Handle handle) |
Function to close a SD peripheral specified by the SD handle. More... | |
MMCSD_Error | MMCSD_control (MMCSD_Handle handle, uint32_t cmd, void *arg) |
Function performs implementation specific features on a given MMCSD_Handle. More... | |
MMCSD_Error | MMCSD_init (void) |
Function to initializes the SD module. More... | |
MMCSD_Error | MMCSD_open (uint32_t index, MMCSD_Params params, MMCSD_Handle *handle) |
Function to initialize a given SD peripheral specified by the particular index value. The parameter specifies which mode the SD will operate. More... | |
MMCSD_Error | MMCSD_readcid (uint32_t index, void *arg) |
Function to Read the CID of a given emmc peripheral specified by the particular index value. More... | |
MMCSD_Error | MMCSD_Params_init (MMCSD_Params params) |
Function to initialize the MMCSD_Params struct to its defaults. More... | |
MMCSD_Error | MMCSD_write (MMCSD_Handle handle, uint8_t *buf, uint32_t block, uint32_t numBlks) |
Function that handles the SD write for SYS/BIOS. More... | |
MMCSD_Error | MMCSD_read (MMCSD_Handle handle, uint8_t *buf, uint32_t block, uint32_t numBlks) |
Function that handles the SD read for SYS/BIOS. More... | |
Variables | |
const MMCSD_FxnTable | MMCSD_fxnTable |
const MMCSD_Config_list | MMCSD_config |
Typedefs | |
typedef int32_t | MMCSD_Error |
Return status of MMCSD. More... | |
typedef void * | MMCSD_Handle |
A handle that is returned from a MMCSD_open() call. More... | |
typedef void * | MMCSD_Params |
A handle that is returned from a MMCSD_open() call. More... | |
typedef void(* | MMCSD_CardDetectCallbackFxn) (MMCSD_Handle handle, uint32_t temp) |
MMCSD callback function. More... | |
typedef MMCSD_Error(* | MMCSD_CloseFxn) (MMCSD_Handle handle) |
A function pointer to a driver specific implementation of MMCSD_close(). More... | |
typedef MMCSD_Error(* | MMCSD_ControlFxn) (MMCSD_Handle handle, uint32_t cmd, const void *arg) |
A function pointer to a driver specific implementation of MMCSD_control(). More... | |
typedef MMCSD_Error(* | MMCSD_InitFxn) (MMCSD_Handle handle) |
A function pointer to a driver specific implementation of MMCSD_init(). More... | |
typedef MMCSD_Error(* | MMCSD_OpenFxn) (MMCSD_Handle handle, MMCSD_Params params) |
A function pointer to a driver specific implementation of MMCSD_open(). More... | |
typedef MMCSD_Error(* | MMCSD_WriteFxn) (MMCSD_Handle handle, uint8_t *buf, uint32_t block, uint32_t numBlks) |
A function pointer to a driver specific implementation of MMCSD_write(). More... | |
typedef MMCSD_Error(* | MMCSD_ReadFxn) (MMCSD_Handle handle, uint8_t *buf, uint32_t block, uint32_t numBlks) |
A function pointer to a driver specific implementation of MMCSD_read(). More... | |
typedef MMCSD_Config | MMCSD_Config_list[MMCSD_MAX_CONFIG_CNT] |
Macros | |
#define | MMCSD_MAX_CONFIG_CNT (5U) |
#define MMCSD_MAX_CONFIG_CNT (5U) |
typedef int32_t MMCSD_Error |
Return status of MMCSD.
typedef void* MMCSD_Handle |
A handle that is returned from a MMCSD_open() call.
typedef void* MMCSD_Params |
A handle that is returned from a MMCSD_open() call.
typedef void(* MMCSD_CardDetectCallbackFxn) (MMCSD_Handle handle, uint32_t temp) |
MMCSD callback function.
User definable callback function prototype. The MMCSD driver will call the defined function and pass in the I2C driver's handle, the pointer to the I2C transaction that just completed, and the return value of I2C_transfer.
MMCSD_Handle | MMCSD_Handle |
bool | Results of the I2C transaction |
typedef MMCSD_Error(* MMCSD_CloseFxn) (MMCSD_Handle handle) |
A function pointer to a driver specific implementation of MMCSD_close().
typedef MMCSD_Error(* MMCSD_ControlFxn) (MMCSD_Handle handle, uint32_t cmd, const void *arg) |
A function pointer to a driver specific implementation of MMCSD_control().
typedef MMCSD_Error(* MMCSD_InitFxn) (MMCSD_Handle handle) |
A function pointer to a driver specific implementation of MMCSD_init().
typedef MMCSD_Error(* MMCSD_OpenFxn) (MMCSD_Handle handle, MMCSD_Params params) |
A function pointer to a driver specific implementation of MMCSD_open().
typedef MMCSD_Error(* MMCSD_WriteFxn) (MMCSD_Handle handle, uint8_t *buf, uint32_t block, uint32_t numBlks) |
A function pointer to a driver specific implementation of MMCSD_write().
typedef MMCSD_Error(* MMCSD_ReadFxn) (MMCSD_Handle handle, uint8_t *buf, uint32_t block, uint32_t numBlks) |
A function pointer to a driver specific implementation of MMCSD_read().
typedef MMCSD_Config MMCSD_Config_list[MMCSD_MAX_CONFIG_CNT] |
MMCSD_Error MMCSD_close | ( | MMCSD_Handle | handle | ) |
Function to close a SD peripheral specified by the SD handle.
handle | A MMCSD_Handle returned from MMCSD_open |
MMCSD_Error MMCSD_control | ( | MMCSD_Handle | handle, |
uint32_t | cmd, | ||
void * | arg | ||
) |
Function performs implementation specific features on a given MMCSD_Handle.
handle | A SD handle returned from MMCSD_open() |
cmd | A command value defined by the driver specific implementation |
arg | An optional R/W (read/write) argument that is accompanied with cmd |
MMCSD_Error MMCSD_init | ( | void | ) |
Function to initializes the SD module.
MMCSD_Error MMCSD_open | ( | uint32_t | index, |
MMCSD_Params | params, | ||
MMCSD_Handle * | handle | ||
) |
Function to initialize a given SD peripheral specified by the particular index value. The parameter specifies which mode the SD will operate.
index | Logical peripheral number for the SD indexed into the MMCSD_config table |
params | Pointer to an parameter block, if NULL it will use default values. All the fields in this structure are RO (read-only). |
handle | A pointer to the MMCSD_Handle |
MMCSD_Error MMCSD_readcid | ( | uint32_t | index, |
void * | arg | ||
) |
Function to Read the CID of a given emmc peripheral specified by the particular index value.
index | Logical peripheral number for the SD indexed into the MMCSD_config table |
arg | A pointer to buffer for CID |
MMCSD_Error MMCSD_Params_init | ( | MMCSD_Params | params | ) |
Function to initialize the MMCSD_Params struct to its defaults.
params | An pointer to MMCSD_Params structure for initialization |
MMCSD_Error MMCSD_write | ( | MMCSD_Handle | handle, |
uint8_t * | buf, | ||
uint32_t | block, | ||
uint32_t | numBlks | ||
) |
Function that handles the SD write for SYS/BIOS.
handle | A MMCSD_Handle |
buf | A pointer to buffer |
block | Start block to write. |
numBlks | Number of blocks to be read. |
MMCSD_Error MMCSD_read | ( | MMCSD_Handle | handle, |
uint8_t * | buf, | ||
uint32_t | block, | ||
uint32_t | numBlks | ||
) |
Function that handles the SD read for SYS/BIOS.
handle | A MMCSD_Handle |
buf | A pointer to buffer |
block | Start block to read. |
numBlks | Number of blocks to be read. |
const MMCSD_FxnTable MMCSD_fxnTable |
const MMCSD_Config_list MMCSD_config |