100 #ifndef ti_drivers_SDSPI__include
101 #define ti_drivers_SDSPI__include
126 #define SDSPI_CMD_RESERVED 32
140 #define SDSPI_STATUS_RESERVED -32
155 #define SDSPI_STATUS_SUCCESS 0
163 #define SDSPI_STATUS_ERROR -1
172 #define SDSPI_STATUS_UNDEFINEDCMD -2
327 extern int SDSPI_control(SDSPI_Handle handle,
unsigned int cmd,
void *arg);
361 extern SDSPI_Handle
SDSPI_open(
unsigned int index,
unsigned char drv,
SDSPI Global configuration.
Definition: SDSPI.h:266
void * object
Definition: SDSPI.h:271
struct SDSPI_Config * SDSPI_Handle
A handle that is returned from a SDSPI_open() call.
Definition: SDSPI.h:192
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:232
SDSPI_OpenFxn openFxn
Definition: SDSPI.h:246
SDSPI_FxnTable const * fxnTablePtr
Definition: SDSPI.h:268
The definition of a SDSPI function table that contains the required set of functions to control a spe...
Definition: SDSPI.h:241
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:212
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:203
uint32_t bitRate
Definition: SDSPI.h:204
void const * hwAttrs
Definition: SDSPI.h:274
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:218
void(* SDSPI_CloseFxn)(SDSPI_Handle handle)
A function pointer to a driver specific implementation of SDSPI_close().
Definition: SDSPI.h:226
void SDSPI_Params_init(SDSPI_Params *params)
Function to initialize the SDSPI_Params struct to its defaults.
SDSPI_InitFxn initFxn
Definition: SDSPI.h:243
uintptr_t custom
Definition: SDSPI.h:205
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:252
SDSPI_CloseFxn closeFxn
Definition: SDSPI.h:249