10#ifndef _USB_MSD_HOST_H_
11#define _USB_MSD_HOST_H_
14#include <effs_fat/fat.h>
21#define MAX_MSD_DRIVES 1
25 MSD_STAT_DEVICE_IDLE = 0,
26 MSD_STAT_DEVICE_ATTACHED,
27 MSD_STAT_DEVICE_CONFIGURED,
28 MSD_STAT_DEVICE_SET_INTERFACE,
29 MSD_STAT_DEVICE_INTERFACED,
30 MSD_STAT_DEVICE_DETACHED,
31 MSD_STAT_DEVICE_OTHER,
32 MSD_STAT_DEVICE_UNKNOWN,
33 MSD_STAT_VOLUME_INITIALIZED,
34 MSD_STAT_DEVICE_POST_QUERY,
35 MSD_STAT_DRIVE_CHANGE_FAILED
52int MSDOpen(
OS_SEM *psema,
int *iVolume);
62int GetMSDStatus(
void);
73void VBUSEnable(
bool enable);
87F_DRIVER *msd_initfunc(
unsigned long driver_param);
103uint32_t GetMSDSectorSize(
void);
111uint32_t GetMSDSectorCount(
void);
119void USB_HostDumpRegisters(
void);
Semaphores are used to control access to shared resources or or to communicate between tasks in a mul...
Definition nbrtos.h:407