keil_examples/USBHostLite/UsbHost/Fat/usbhost_fat.c
/*
**************************************************************************************************************
*                                              UPDATE THE FILE ENTRY
*
* Description: This function updates the file entry that is located in the root directory
*
* Arguments  : entry    Pointer to the FILE ENTRY structure which contains the information about the file
*
* Returns    : None
*
**************************************************************************************************************
*/
UPDATE THE FILE ENTRY
Description: This function updates the file entry that is located in the root directory

Arguments  : entry    Pointer to the FILE ENTRY structure which contains the information about the file

Returns    : None
UPDATE THE FILE ENTRY Description : This function updates the file entry that is located in the root directory Arguments : entry Pointer to the FILE ENTRY structure which contains the information about the file Returns : None
void  FAT_UpdateEntry (FILE_ENTRY  *entry)
{
    uint32_t  sec_num;
    uint32_t  offset;
    sec_num = entry->EntrySec;
    offset  = entry->EntrySecOffset;
    MS_BulkRecv(sec_num, 1, FATBuffer);
    WriteLE32U(&FATBuffer[offset + 28], entry->FileSize);
    MS_BulkSend(sec_num, 1, FATBuffer);
}
void FAT_UpdateEntry ( FILE_ENTRY * entry ) { uint32_t sec_num ; uint32_t offset ; sec_num = entry -> EntrySec ; offset = entry -> EntrySecOffset ; MS_BulkRecv ( sec_num , 1 , FATBuffer ) ; WriteLE32U ( & FATBuffer [ offset + 28 ] , entry -> FileSize ) ; MS_BulkSend ( sec_num , 1 , FATBuffer ) ; }
UPDATE THE FILE ENTRY
Description: This function updates the file entry that is located in the root directory
UPDATE THE FILE ENTRY Description : This function updates the file entry that is located in the root directory