#include "Stdafx.h" void CanLogOnOff(uw16 id, uw8 state); void ScanCanBuff(void); class THVChannel { private: uw16 myIDC; uw8 myChn; TChVal myVset; TChVal myIset; TChVal myVmeas; TChVal myImeas; TChVal myItrip; TNominals myNominal; // V and I nominals of channel, Quality and FileTime TChVal myStat; public: THVChannel(uw16, uw8); ~THVChannel(); uw8 GetChn(); // read the aktuell HV channel from myChn void SetChn(uw8); // store a new value for channel to myChn void SetID(uw16); // store ID of Module in myIDC void SetVset(uw32); // write set voltage of HV channel (myChn) to module TChVal GetVset(); // read set voltage of HV channel (myChn) from module void SetIset(uw32); // write set current from HV channel (myChn) to module TChVal GetIset(); // read aktual set current from HV channel (myChn) from module void SetItrp(uw32); // write set trip current of HV channel (myChn) to module TChVal GetItrp(); // read set trip current of HV channel (myChn) from modul TChVal GetVmeas(); // read aktual voltage of HV channel (myChn) from module TChVal GetImeas(); // read aktual current of HV channel (myChn) from module TChVal GetStat(); // read aktual status of HV channel (myChn) from module TNominals GetNominal(); }; class THVModule { private: uw16 *myIDM; // CAN-ID uw8 *myDevClass; // device class TDevIDR *myDevIDR; // Device ID with software release Tuw32Val *myRamp; // Rampspeed Tuw16Val *myOnOff; // word with on off flag per channel TNominals *myNominal; TGenStat *myGenStat; // GeneralStatus, Quality and FileTime bool *myLogOn; // device log on public: THVModule(uw16, uw8, uw8); ~THVModule(); THVChannel *Chn[16]; //access to the HV channels uw16 GetID(); uw8 GetDevClass(); uw32 GetRes(); uw8 GetDataWhidth(); bool GetLogOn(); void SetLogOn(bool); void SetRamp(uw32); // send rampspeed to modul Tuw32Val GetRamp(); void SetOnOff(uw16); Tuw16Val GetOnOff(); void SetVsetAll(uw32); void SetITripAll(uw32); TNominals GetNominal(); void SetGenStat(uw8); TGenStat GetGenStat(); TDevIDR GetDevIDR(); };