2_usb_device/lib_mem/cf/cf_mem.c
//! This function performs a read operation of n sectors from a given address to USB
//!
//! @param addr         Sector address to start the read from
//! @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 read operation of n sectors from a given address to USB
This function performs a read operation of n sectors from a given address to USB
Ctrl_status cf_read_10( U32 addr , U16 nb_sector )
{
   U8 status = OK;
   status = cf_read_sector(addr, nb_sector);             
   if(status == KO)
      return CTRL_FAIL;
   return CTRL_GOOD;
}
Ctrl_status cf_read_10 ( U32 addr , U16 nb_sector ) { U8 status = OK ; status = cf_read_sector ( addr , nb_sector ) ; if ( status == KO ) return CTRL_FAIL ; return CTRL_GOOD ; }
This function performs a read operation of n sectors from a given address to USB
This function performs a read operation of n sectors from a given address to USB
// transfer data from memory to USB
