Subversion Repositories pentevo

Rev

Rev 1140 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. // Z-Controller by KOE
  2. // Only SD-card
  3. #ifndef ZC_H
  4. #define ZC_H
  5. class TZc
  6. {
  7.     TSdCard SdCard;
  8.     u8 Cfg;
  9.     u8 Status;
  10.     u8 RdReg;
  11.     u8 RdBuff;
  12.     u8 IsCh341;
  13. public:
  14.     TZc() : SdCard("zc.sdcard") {}
  15.     void Reset();
  16.     void Open(const char *Name);
  17.     void Close();
  18.     void Wr(u32 Port, u8 Val);
  19.     u8 Rd(u32 Port);
  20. };
  21.  
  22. extern TZc Zc;
  23. #endif
  24.