EFR32 Blue Gecko 13 Software Documentation  efr32bg13-doc-5.1.2
msdh.h
Go to the documentation of this file.
1 /***************************************************************************/
17 #ifndef __MSDH_H
18 #define __MSDH_H
19 
20 /***************************************************************************/
25 /***************************************************************************/
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 /*** MSDH Function prototypes ***/
35 
36 bool MSDH_Init(uint8_t *usbDeviceInfo, int usbDeviceInfoSize);
37 bool MSDH_GetSectorCount(uint32_t *sectorCount);
38 bool MSDH_GetSectorSize(uint16_t *sectorSize);
39 bool MSDH_GetBlockSize(uint32_t *blockSize);
40 bool MSDH_ReadSectors(uint32_t lba, uint16_t sectors, void *data);
41 bool MSDH_WriteSectors(uint32_t lba, uint16_t sectors, const void *data);
42 
43 #ifdef __cplusplus
44 }
45 #endif
46 
50 #endif /* __MSDH_H */
bool MSDH_WriteSectors(uint32_t lba, uint16_t sectors, const void *data)
Write sectors to device.
Definition: msdh.c:287
bool MSDH_ReadSectors(uint32_t lba, uint16_t sectors, void *data)
Read sectors from device.
Definition: msdh.c:266
bool MSDH_GetBlockSize(uint32_t *blockSize)
Get blocksize from the device.
Definition: msdh.c:237
bool MSDH_GetSectorSize(uint16_t *sectorSize)
Get sectorsize from the device.
Definition: msdh.c:211
bool MSDH_Init(uint8_t *usbDeviceInfo, int usbDeviceInfoSize)
Initialize an USB connected Mass Storage Device. Checks if the device is a valid MSD device...
Definition: msdh.c:61
bool MSDH_GetSectorCount(uint32_t *sectorCount)
Get sectorcount from the device.
Definition: msdh.c:188