59 #define ENTRY_SIZE 32 // size of entrie in byte
64 #define PBR_SECTOR (0)
65 #define FAT_SECTOR (PBR_SECTOR + VMEM_RESERVED_SIZE)
66 #define ROOT_SECTOR (FAT_SECTOR + (VMEM_SIZE_FAT*VMEM_NB_FATS))
67 #define FILE_SECTOR (ROOT_SECTOR + ((ENTRY_SIZE*VMEM_NB_ROOT_ENTRY) / VMEM_SECTOR_SIZE)) // 1(sector) = size root dir
76 Byte nb_hidden_sector;
77 Byte nb_sector_per_cluster;
100 bit avrf_mem_check(
void);
111 s_format * avrf_format (
void);
124 #include "virtual_usb.h"
void avrf_read_close(void)
This function unselects the current DF memory.
void avrf_write_close(void)
This function fills the end of the logical sector (512B) and launch page programming.
Ctrl_status avrf_usb_write(void)
This fonction transfer the usb data (programed in scsi_write_10) directly to the memory data...
Ctrl_status
Define control status.
bit avrf_read_sector(Uint16 nb_sector)
This function is optimized and writes nb-sector * 512 Bytes from DataFlash memory to USB controller...
This file contains the USB driver routines.
bit avrf_write_open(Uint32 pos)
This function opens a DF memory in write mode at a given sector address.
Ctrl_status avrf_read_10(U32 addr, U16 nb_sector)
This function performs a read operation of n sectors from a given address on.
void avrf_mem_init(void)
This function initializes the hw/sw ressources required to drive the AVR Flash.
Bool avrf_wr_protect(void)
This function returns the write protected status of the memory.
Ctrl_status avrf_usb_read()
This fonction transfer the memory data (programed in scsi_read_10) directly to the usb interface...
Ctrl_status avrf_read_capacity(U32 *u32_nb_sector)
This function gives the address of the last valid sector.
Ctrl_status avrf_test_unit_ready(void)
This function tests the state of the AVR Flash.
bit avrf_read_open(Uint32 pos)
This function opens a DF memory in read mode at a given sector address.
This file contains the interface :
Ctrl_status avrf_write_10(U32 addr, U16 nb_sector)
This fonction initialise the memory for a write operation.
This file contains the possible external configuration of the control access.
Bool avrf_removal(void)
This function tells if the memory has been removed or not.
bit avrf_write_sector(Uint16 nb_sector)
This function is optimized and writes nb-sector * 512 Bytes from USB controller to DataFlash memory...