APM:Libraries
usb_mass_mal.h
Go to the documentation of this file.
1 #ifndef __USB_MASS_MAL_H
2 #define __USB_MASS_MAL_H
3 
4 #include <stdint.h>
5 
6 #define STORAGE_LUN_NBR 1
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12  extern uint32_t MAL_massBlockCount[STORAGE_LUN_NBR];
13  extern uint32_t MAL_massBlockSize[STORAGE_LUN_NBR];
14 
15  uint16_t usb_mass_mal_get_status(uint8_t lun);
16  int8_t usb_mass_mal_read_memory(uint8_t lun, uint8_t *readbuff, uint32_t memoryOffset, uint16_t transferLength);
17  int8_t usb_mass_mal_write_memory(uint8_t lun, uint8_t *writebuff, uint32_t memoryOffset, uint16_t transferLength);
18 
20 
21 #ifdef __cplusplus
22 }
23 #endif
24 
25 #endif
#define STORAGE_LUN_NBR
Definition: usb_mass_mal.h:6
uint16_t usb_mass_mal_get_status(uint8_t lun)
uint32_t MAL_massBlockCount[STORAGE_LUN_NBR]
int8_t usb_mass_mal_write_memory(uint8_t lun, uint8_t *writebuff, uint32_t memoryOffset, uint16_t transferLength)
uint32_t MAL_massBlockSize[STORAGE_LUN_NBR]
int8_t usb_mass_mal_read_memory(uint8_t lun, uint8_t *readbuff, uint32_t memoryOffset, uint16_t transferLength)
void usb_mass_mal_USBdisconnect()