⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 buffer.h

📁 keil lpc2138 epson6610 lcd source
💻 H
字号:
#ifndef BUFFER_H
#define BUFFER_H


 extern unsigned char TFile[48][12];
typedef unsigned char byte;     
typedef unsigned short int word;      
typedef unsigned long u_32; 
 	 
 union DirRecordUnion {
  struct Entry {
     byte Name[11];
     byte Attr;
     byte NTRes;
     byte CrtTimeTenth;
     word CrtTime;
     word CrtDate;
     word LstAccDate;
     word FstClusHi;
     word WrtTime;
     word WrtDate;
     word FstClusLo;
     u_32 FileSize;
  } entry;
 
   struct LongEntry {
     byte Ord;
     word Name1[5]; 
     byte Attr;
     byte Type; 
     byte Chksum;
     word Name2[6]; 
     word FstClusLO; 
     word Name3[2]; 
   } longentry;
 };
 
 typedef union DirRecordUnion dirrecordtype; 
 
 typedef union DiskBlock {
  
 struct Fat {          
     byte BS_jmpBoot[3];         
     byte BS_OEMName[8];         
     word BPB_BytsPerSec;
     byte BPB_SecPerClus;        
     word BPB_RsvdSecCnt;        
     byte BPB_NumFATs;           
     word BPB_RootEntCnt;        
     word BPB_TotSec16;          
     byte BPB_Media;             
     word BPB_FATSz16;           
     word BPB_SecPerTrk;         
     word BPB_NumHeads;          
     u_32 BPB_HiddSec;           
     u_32 BPB_TotSec32;          
    union Extensions{   
 
  struct Fat16Specific {    
        byte BS_DrvNum;         
        byte BS_Reserved1;      
        byte BS_BootSig;        
        byte BS_VolID[4];       
        byte BS_VolLab[11];     
        byte BS_FilSysType[8];  
       } _16;

  struct Fat32Specific {    
        u_32 BPB_FATSz32;       
        word BPB_ExtFlags;      
        word BPB_FSVer;         
        u_32 BPB_RootClus;      
        word BPB_FSInfo;        
        word BPB_BkBootSec;     
        byte BPB_Reserved[12];  
        byte BS_DrvNum;         
        byte BS_Reserved1;      
        byte BS_BootSig;        
        byte BS_VolID[4];       
        byte BS_VolLab[11];     
        byte BS_FilSysType[8];  
     } _32;
    } ext;
   } fat;
 
 struct Raw {
     byte buf[512];              
   } raw;
 
   dirrecordtype dir[16];  
   word Fat16Table[256]; 
   u_32 Fat32Table[128];
 } DiskBlockType;
					   
 
 typedef union Address addressType;
 extern addressType sectorAddress;
 extern DiskBlockType diskSect;
 extern unsigned char *dataBufPtr;

  union Address {
  unsigned long l;
  struct B {
    unsigned char b0;
    unsigned char b1;
    unsigned char b2;
    unsigned char b3;
  } b;
 };
	
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -