userlibandfileserver/fileserver/sfat32/filesystem_fat.h
changeset 36 538db54a451d
parent 15 4122176ea935
equal deleted inserted replaced
34:f497542af8e4 36:538db54a451d
   115     
   115     
   116     enum ///< offsets of the data units in parent class container
   116     enum ///< offsets of the data units in parent class container
   117         {
   117         {
   118         KOffsetSubType =0,  //-- 0
   118         KOffsetSubType =0,  //-- 0
   119         KOffsetReservedSec, //-- 1
   119         KOffsetReservedSec, //-- 1
   120         KOffsetSpc,         //-- 2
   120         KOffsetSpc,         //-- 2  !! do not change this offset. 
   121         KOffsetNumFATs,     //-- 3
   121         KOffsetNumFATs,     //-- 3  !! do not change this offset. 
   122         
   122         
   123         };
   123         };
   124 
   124 
   125 }; //TVolFormatParam_FAT
   125 }; //TVolFormatParam_FAT
   126 
   126 
   139 //------------------------------------------------------------------------------
   139 //------------------------------------------------------------------------------
   140 
   140 
   141 TVolFormatParam_FAT::TVolFormatParam_FAT() : TVolFormatParam() 
   141 TVolFormatParam_FAT::TVolFormatParam_FAT() : TVolFormatParam() 
   142     {
   142     {
   143      __ASSERT_COMPILE(sizeof(TVolFormatParam_FAT) == sizeof(TVolFormatParam));
   143      __ASSERT_COMPILE(sizeof(TVolFormatParam_FAT) == sizeof(TVolFormatParam));
       
   144      __ASSERT_COMPILE(KOffsetSpc == 2);
       
   145      __ASSERT_COMPILE(KOffsetNumFATs == 3);
       
   146      
   144      Init();
   147      Init();
   145     }
   148     }
   146 
   149 
   147 //------------------------------------------------------------------------------
   150 //------------------------------------------------------------------------------
   148 /** initialises the data structure with default values for all parameters and automatically sets file system name as "FAT" */
   151 /** initialises the data structure with default values for all parameters and automatically sets file system name as "FAT" */