APM:Libraries
StorageMode.h
Go to the documentation of this file.
1 #ifndef STORAGE_MODE_H
2 #define STORAGE_MODE_H
3 
4 #include "msc/usbd_msc_mem.h"
5 #include <usb_dcd_int.h>
6 
7 #include "usb_mass_mal.h"
8 
9 int8_t STORAGE_Init(uint8_t lun);
10 int8_t STORAGE_GetCapacity(uint8_t lun, uint32_t *block_num, uint32_t *block_size);
11 int8_t STORAGE_IsReady(uint8_t lun);
12 int8_t STORAGE_IsWriteProtected(uint8_t lun);
13 int8_t STORAGE_GetMaxLun(void);
14 void OTG_FS_WKUP_IRQHandler(void);
15 
16 int8_t STORAGE_Read(uint8_t lun, uint8_t *buf, uint32_t blk_addr, uint16_t blk_len);
17 int8_t STORAGE_Write(uint8_t lun,uint8_t *buf, uint32_t blk_addr, uint16_t blk_len);
18 
19 
20 #endif
int8_t STORAGE_IsWriteProtected(uint8_t lun)
void OTG_FS_WKUP_IRQHandler(void)
header for the STORAGE DISK file file
int8_t STORAGE_GetCapacity(uint8_t lun, uint32_t *block_num, uint32_t *block_size)
Definition: StorageMode.c:34
int8_t STORAGE_Init(uint8_t lun)
int8_t STORAGE_IsReady(uint8_t lun)
Peripheral Device Interface Layer.
int8_t STORAGE_Write(uint8_t lun, uint8_t *buf, uint32_t blk_addr, uint16_t blk_len)
int8_t STORAGE_Read(uint8_t lun, uint8_t *buf, uint32_t blk_addr, uint16_t blk_len)
int8_t STORAGE_GetMaxLun(void)