2_usb_device/lib_mem/cf/cf_mem.c
//! This function performs a write operation of n sectors to a given address from USB
//!
//! @param addr         Sector address to start write
//! @param nb_sector    Number of sectors to transfer
//!
//! @return                Ctrl_status
//!   It is ready    ->    CTRL_GOOD
//!   A error occur  ->    CTRL_FAIL
//!

This function performs a write operation of n sectors to a given address from USB
This function performs a write operation of n sectors to a given address from USB
Ctrl_status cf_write_10( U32 addr , U16 nb_sector )
{
   if( CF_FAT12_WRITE_PROTECTED )
      return CTRL_FAIL;
   if( KO == cf_write_sector(addr, nb_sector) )  
      return CTRL_FAIL;
   return CTRL_GOOD;
}
Ctrl_status cf_write_10 ( U32 addr , U16 nb_sector ) { if ( CF_FAT12_WRITE_PROTECTED ) return CTRL_FAIL ; if ( KO == cf_write_sector ( addr , nb_sector ) ) return CTRL_FAIL ; return CTRL_GOOD ; }
This function performs a write operation of n sectors to a given address from USB
This function performs a write operation of n sectors to a given address from USB
// transfer data from memory to USB
