usbd_msc_mem.h
Go to the documentation of this file.
1 
28 /* Define to prevent recursive inclusion -------------------------------------*/
29 
30 #ifndef __USBD_MEM_H
31 #define __USBD_MEM_H
32 /* Includes ------------------------------------------------------------------*/
33 #include "usbd_def.h"
34 
35 
48 #define USBD_STD_INQUIRY_LENGTH 36
49 
58 typedef struct _USBD_STORAGE
59 {
60  int8_t (* Init) (uint8_t lun);
61  int8_t (* GetCapacity) (uint8_t lun, uint32_t *block_num, uint32_t *block_size);
62  int8_t (* IsReady) (uint8_t lun);
63  int8_t (* IsWriteProtected) (uint8_t lun);
64  int8_t (* Read) (uint8_t lun, uint8_t *buf, uint32_t blk_addr, uint16_t blk_len);
65  int8_t (* Write)(uint8_t lun, uint8_t *buf, uint32_t blk_addr, uint16_t blk_len);
66  int8_t (* GetMaxLun)(void);
67  int8_t *pInquiry;
68 
100 #endif /* __USBD_MEM_H */
101 
112 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
int8_t(* GetCapacity)(uint8_t lun, uint32_t *block_num, uint32_t *block_size)
Definition: usbd_msc_mem.h:61
int8_t(* IsReady)(uint8_t lun)
Definition: usbd_msc_mem.h:62
int8_t * pInquiry
Definition: usbd_msc_mem.h:67
int8_t(* Write)(uint8_t lun, uint8_t *buf, uint32_t blk_addr, uint16_t blk_len)
Definition: usbd_msc_mem.h:65
int8_t(* GetMaxLun)(void)
Definition: usbd_msc_mem.h:66
struct _USBD_STORAGE USBD_STORAGE_cb_TypeDef
USBD_STORAGE_cb_TypeDef * USBD_STORAGE_fops
int8_t(* IsWriteProtected)(uint8_t lun)
Definition: usbd_msc_mem.h:63
int8_t(* Init)(uint8_t lun)
Definition: usbd_msc_mem.h:60
int8_t(* Read)(uint8_t lun, uint8_t *buf, uint32_t blk_addr, uint16_t blk_len)
Definition: usbd_msc_mem.h:64
general defines for the usb device library


rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Thu Apr 15 2021 05:07:50