109 #ifndef ti_drivers_SDSPI__include
110 #define ti_drivers_SDSPI__include
129 #define SDSPI_CMD_RESERVED 32
143 #define SDSPI_STATUS_RESERVED -32
151 #define SDSPI_STATUS_SUCCESS 0
159 #define SDSPI_STATUS_ERROR -1
168 #define SDSPI_STATUS_UNDEFINEDCMD -2
290 extern int SDSPI_control(SDSPI_Handle handle,
unsigned int cmd,
void *arg);
324 extern SDSPI_Handle
SDSPI_open(
unsigned int index,
unsigned char drv,
SDSPI Global configuration.
Definition: SDSPI.h:247
void * object
Definition: SDSPI.h:252
struct SDSPI_Config * SDSPI_Handle
A handle that is returned from a SDSPI_open() call.
Definition: SDSPI.h:173
int(* SDSPI_ControlFxn)(SDSPI_Handle handle, unsigned int cmd, void *arg)
A function pointer to a driver specific implementation of SDSPI_control().
Definition: SDSPI.h:213
SDSPI_OpenFxn openFxn
Definition: SDSPI.h:227
SDSPI_FxnTable const * fxnTablePtr
Definition: SDSPI.h:249
The definition of a SDSPI function table that contains the required set of functions to control a spe...
Definition: SDSPI.h:222
SDSPI_Handle SDSPI_open(unsigned int index, unsigned char drv, SDSPI_Params *params)
This function registers the SDSPI driver with BIOS' FatFs module and mounts the FatFs file system...
void(* SDSPI_InitFxn)(SDSPI_Handle handle)
A function pointer to a driver specific implementation of SDSPI_init().
Definition: SDSPI.h:193
struct SDSPI_FxnTable SDSPI_FxnTable
The definition of a SDSPI function table that contains the required set of functions to control a spe...
struct SDSPI_Config SDSPI_Config
SDSPI Global configuration.
SDSPI Parameters.
Definition: SDSPI.h:184
uint32_t bitRate
Definition: SDSPI.h:185
void const * hwAttrs
Definition: SDSPI.h:255
void SDSPI_init(void)
This function initializes the SDSPI driver module.
int SDSPI_control(SDSPI_Handle handle, unsigned int cmd, void *arg)
Function performs implementation specific features on a given SDSPI_Handle.
SDSPI_Handle(* SDSPI_OpenFxn)(SDSPI_Handle handle, unsigned char drv, SDSPI_Params *params)
A function pointer to a driver specific implementation of SDSPI_open().
Definition: SDSPI.h:199
void * custom
Definition: SDSPI.h:186
void(* SDSPI_CloseFxn)(SDSPI_Handle handle)
A function pointer to a driver specific implementation of SDSPI_close().
Definition: SDSPI.h:207
void SDSPI_Params_init(SDSPI_Params *params)
Function to initialize the SDSPI_Params struct to its defaults.
SDSPI_InitFxn initFxn
Definition: SDSPI.h:224
struct SDSPI_Params SDSPI_Params
SDSPI Parameters.
void SDSPI_close(SDSPI_Handle handle)
Function to close a SDSPI peripheral specified by the SDSPI handle. This function unmounts the file s...
SDSPI_ControlFxn controlFxn
Definition: SDSPI.h:233
SDSPI_CloseFxn closeFxn
Definition: SDSPI.h:230