Contiki 2.6
|
This file contains the interface :
#include "storage/conf_access.h"
#include "storage/ctrl_status.h"
#include "usb_drv.h"
#include "conf_usb.h"
Go to the source code of this file.
Defines | |
#define | ID_STREAM_ERR 0xFF |
---- Interface for streaming interface ---------------------------------- | |
Functions | |
U8 | get_nb_lun () |
This fonction return the number of logical unit. | |
U8 | get_cur_lun () |
This fonction return the current logical unit. | |
Ctrl_status | mem_test_unit_ready (U8 lun) |
This fonction test the state of memory, and start the initialisation of the memory. | |
Ctrl_status | mem_read_capacity (U8 lun, U32 _MEM_TYPE_SLOW_ *u32_nb_sector) |
This fonction return the capacity of the memory. | |
Bool | mem_wr_protect (U8 lun) |
This fonction return is the write protected mode. | |
Bool | mem_removal (U8 lun) |
This fonction inform about the memory type. | |
Ctrl_status | memory_2_usb (U8 lun, U32 addr, U16 nb_sector) |
This fonction returns a pointer to the LUN name. | |
Ctrl_status | usb_2_memory (U8 lun, U32 addr, U16 nb_sector) |
This fonction trabsfer a data from usb 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 | 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. | |
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 | stream_state (U8 Id) |
Returns the state on a data transfer. | |
U16 | stream_stop (U8 Id) |
Stop the data transfer. |
This file contains the interface :
*******************************************************
This interface may be controled by a "Access Memory Control" for :
Definition in file ctrl_access.h.