Contiki 2.5
Macros | Functions
ctrl_access.h File Reference

This file contains the interface : More...

#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.

Macros

#define ID_STREAM_ERR   0xFF
 -— Interface for streaming interface -------------------------------—
 

Functions

U8 get_nb_lun ()
 This fonction return the number of logical unit. More...
 
U8 get_cur_lun ()
 This fonction return the current logical unit. More...
 
Ctrl_status mem_test_unit_ready (U8 lun)
 This fonction test the state of memory, and start the initialisation of the memory. More...
 
Ctrl_status mem_read_capacity (U8 lun, U32 _MEM_TYPE_SLOW_ *u32_nb_sector)
 This fonction return the capacity of the memory. More...
 
Bool mem_wr_protect (U8 lun)
 This fonction return is the write protected mode. More...
 
Bool mem_removal (U8 lun)
 This fonction inform about the memory type. More...
 
Ctrl_status memory_2_usb (U8 lun, U32 addr, U16 nb_sector)
 This fonction returns a pointer to the LUN name. More...
 
Ctrl_status usb_2_memory (U8 lun, U32 addr, U16 nb_sector)
 This fonction trabsfer a data from usb to memory. More...
 
Ctrl_status memory_2_ram (U8 lun, const U32 _MEM_TYPE_SLOW_ *addr, U8 _MEM_TYPE_SLOW_ *ram)
 Interface for RAM. More...
 
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. More...
 
U8 stream_mem_to_mem (U8 src_lun, U32 src_addr, U8 dest_lun, U32 dest_addr, U16 nb_sector)
 Interface for streaming interface. More...
 
Ctrl_status stream_state (U8 Id)
 Returns the state on a data transfer. More...
 
U16 stream_stop (U8 Id)
 Stop the data transfer. More...
 

Detailed Description

This file contains the interface :


     - between USB <-> MEMORY
  OR
     - between USB <- Access Memory Ctrl -> Memory

  This interface may be controled by a "Access Memory Control" for :
     - include a management of write protect global or specific
     - include a management of access password

Definition in file ctrl_access.h.