|
AM243x MCU+ SDK
10.01.00
|
|
Go to the documentation of this file.
69 #include <drivers/hw_include/csl_types.h>
70 #include <drivers/hw_include/cslr_mmcsd.h>
87 #define MMCSD_MODE_BLOCKING ((uint32_t) 0U)
88 #define MMCSD_MODE_CALLBACK ((uint32_t) 1U)
111 int32_t transferStatus);
void MMCSD_Params_init(MMCSD_Params *mmcsdParams)
Initialize data structure with defaults.
uint32_t eventId
Definition: mmcsd.h:153
MMCSD_Config gMmcsdConfig[]
Externally defined driver configuration array.
void * MMCSD_Handle
Definition: mmcsd.h:92
int32_t MMCSD_change_Bus_Config(MMCSD_Handle handle, uint32_t busSpeed, uint32_t busWidth)
This function reconfigures the bus Configuration.
uint16_t index
Definition: tisci_rm_proxy.h:3
uint32_t intrPriority
Definition: mmcsd.h:171
MMCSDLLD_InitObject mmcsdLldInitObject
Definition: mmcsd.h:195
MMCSD_Handle MMCSD_getHandle(uint32_t index)
This function returns the handle of an open MMCSD Instance from the instance index.
MMCSD_txnCallbackFxn txnCallbackFxn
Definition: mmcsd.h:132
bool autoAssignMaxSpeed
Definition: mmcsd.h:163
MMCSD_txnCallbackFxn txnCallbackFxn
Definition: mmcsd.h:201
MMCSD LLD Driver API/interface file.
int32_t MMCSD_read(MMCSD_Handle handle, uint8_t *buf, uint32_t startBlk, uint32_t numBlks)
Function to perform block reads from the MMC/SD media.
SemaphoreP_Object xferCompleteSemObj
Definition: mmcsd.h:187
MMCSD_Handle MMCSD_open(uint32_t index, const MMCSD_Params *openParams)
This function opens a given MMCSD peripheral.
uint32_t ssBaseAddr
Definition: mmcsd.h:143
uint32_t inputClkFreq
Definition: mmcsd.h:145
void MMCSD_deinit(void)
This function de-initializes the MMCSD module.
MMCSD_Object * object
Definition: mmcsd.h:217
bool isOpen
Definition: mmcsd.h:183
uint32_t cardType
Definition: mmcsd.h:181
uint32_t MMCSD_getBlockCount(MMCSD_Handle handle)
This function returns the block count of User Data Area of the MMC/SD media connected to the MMCSD co...
uint32_t busWidth
Definition: mmcsd.h:157
MMCSDLLD_Handle mmcsdLldHandle
Definition: mmcsd.h:193
bool pllEnableSD
Definition: mmcsd.h:169
MMCSD Driver Initialization Object.
Definition: mmcsd_lld.h:399
int32_t MMCSD_enableBootPartition(MMCSD_Handle handle, uint32_t partitionNum)
This function enables the boot partition if the connected media is eMMC.
const MMCSD_Attrs * attrs
Definition: mmcsd.h:215
uint32_t cardType
Definition: mmcsd.h:155
uint32_t MMCSD_isHC(MMCSD_Handle handle)
This function returns if the media connected is High Capacity (> 2GB in size) or not.
MMCSDLLD_Object mmcsdLldObject
Definition: mmcsd.h:191
SemaphoreP_Object mutex
Definition: mmcsd.h:185
uint32_t intrNum
Definition: mmcsd.h:151
MMCSD Driver Object.
Definition: mmcsd_lld.h:445
bool enableDma
Definition: mmcsd.h:147
HwiP_Object hwiObj
Definition: mmcsd.h:189
uint32_t phyType
Definition: mmcsd.h:159
uint32_t ctrlBaseAddr
Definition: mmcsd.h:141
uint8_t * dataBuf
Definition: mmcsd.h:128
bool intrEnable
Definition: mmcsd.h:149
int32_t MMCSD_write(MMCSD_Handle handle, uint8_t *buf, uint32_t startBlk, uint32_t numBlks)
Function to perform block writes to the MMC/SD media.
MMCSD instance attributes - used during initialization.
Definition: mmcsd.h:121
int32_t MMCSD_change_Tuning_Type(MMCSD_Handle handle, uint32_t tuningType)
This function reconfigures the bus Configuration.
uint32_t MMCSD_getBlockSize(MMCSD_Handle handle)
This function returns the block size of the MMC/SD media connected to the MMCSD controller.
uint32_t slotType
Definition: mmcsd.h:167
MMCSD driver object.
Definition: mmcsd.h:180
Opaque Hwi object used with the Hwi APIs.
Definition: HwiP.h:93
void * deviceData
Definition: mmcsd.h:124
uint32_t uaBusSpeed
Definition: mmcsd.h:165
void MMCSD_close(MMCSD_Handle handle)
Function to close a MMCSD peripheral specified by the MMCSD handle.
MMCSD Global configuration.
Definition: mmcsd.h:214
Opaque semaphore object used with the semaphore APIs.
Definition: SemaphoreP.h:59
int32_t MMCSD_disableBootPartition(MMCSD_Handle handle)
This function disables the boot partition if the connected media is eMMC.
MMCSD instance attributes - used during init time.
Definition: mmcsd.h:140
uint8_t transferMode
Definition: mmcsd.h:130
uint32_t gMmcsdConfigNum
Externally defined driver configuration array size.
uint32_t transferMode
Definition: mmcsd.h:199
void(* MMCSD_txnCallbackFxn)(MMCSD_Handle mmcsdHandle, int32_t transferStatus)
MMCSD callback function.
Definition: mmcsd.h:110
uint32_t tuningType
Definition: mmcsd.h:161
void MMCSD_init(void)
This function initializes the MMCSD module.