63 #include LUN_0_INCLUDE
66 #include LUN_1_INCLUDE
69 #include LUN_2_INCLUDE
72 #include LUN_3_INCLUDE
75 #include LUN_4_INCLUDE
78 #include LUN_5_INCLUDE
81 #include LUN_6_INCLUDE
84 #include LUN_7_INCLUDE
86 #if (LUN_USB == ENABLE)
87 #include LUN_USB_INCLUDE
94 #ifndef GLOBAL_WR_PROTECT
95 # error GLOBAL_WR_PROTECT must be defined with ENABLED or DISABLED in conf_access.h
113 U8 FLASH* mem_name( U8 lun );
133 #if (ACCESS_STREAM == ENABLED)
135 #define ID_STREAM_ERR 0xFF
140 #define TYPE_STREAM_AUDIO DFC_ID_AUDIOPROC1
141 #define TYPE_STREAM_AUDIO2 DFC_ID_AUDIOPROC2
142 #define TYPE_STREAM_SIO DFC_ID_SIO
143 #define TYPE_STREAM_SPI DFC_ID_SPI
144 #define TYPE_STREAM_DEVNULL DFC_ID_NULL_DEV
146 U8
stream_mem_to_mem ( U8 src_lun , U32 src_addr , U8 dest_lun , U32 dest_addr , U16 nb_sector );
147 U8 stream_read_10_start ( U8 TypeStream , U8 lun , U32 addr , U16 nb_sector );
148 U8 stream_write_10_start ( U8 TypeStream , U8 lun , U32 addr , U16 nb_sector );
149 U8 stream_to_stream_start ( U8 TypeStream_src , U8 TypeStream_dest , U16 nb_sector );
153 #endif // (ACCESS_STREAM == ENABLED)
This file contains the possible external configuration of the USB.
U8 get_cur_lun()
This fonction return the current logical unit.
Bool mem_removal(U8 lun)
This fonction inform about the memory type.
Ctrl_status
Define control status.
This file contains the USB driver routines.
Ctrl_status stream_state(U8 Id)
Returns the state on a data transfer.
Ctrl_status mem_read_capacity(U8 lun, U32 _MEM_TYPE_SLOW_ *u32_nb_sector)
This fonction return the capacity of the memory.
U16 stream_stop(U8 Id)
Stop the data transfer.
Bool mem_wr_protect(U8 lun)
This fonction return is the write protected mode.
Ctrl_status mem_test_unit_ready(U8 lun)
This fonction test the state of memory, and start the initialisation of the memory.
Ctrl_status ram_2_memory(U8 lun, const U32 _MEM_TYPE_SLOW_ *addr, U8 _MEM_TYPE_SLOW_ *ram)
This fonction trabsfer a data from ram to memory.
Ctrl_status memory_2_ram(U8 lun, const U32 _MEM_TYPE_SLOW_ *addr, U8 _MEM_TYPE_SLOW_ *ram)
Interface for RAM.
Ctrl_status memory_2_usb(U8 lun, U32 addr, U16 nb_sector)
This fonction returns a pointer to the LUN name.
This file contains the interface :
U8 stream_mem_to_mem(U8 src_lun, U32 src_addr, U8 dest_lun, U32 dest_addr, U16 nb_sector)
Interface for streaming interface.
Ctrl_status usb_2_memory(U8 lun, U32 addr, U16 nb_sector)
This fonction trabsfer a data from usb to memory.
U8 get_nb_lun()
This fonction return the number of logical unit.
This file contains the possible external configuration of the control access.