Esempio n. 1
0
 internal SmcChannelSettings(SmcChannelSettingsStruct s)
 {
     this.invert          = s.invert;
     this.scalingDegree   = s.scalingDegree;
     this.alternateUse    = s.alternateUse;
     this.pinMode         = s.pinMode;
     this.errorMin        = s.errorMin;
     this.errorMax        = s.errorMax;
     this.inputMin        = s.inputMin;
     this.inputMax        = s.inputMax;
     this.inputNeutralMin = s.inputNeutralMin;
     this.inputNeutralMax = s.inputNeutralMax;
 }
Esempio n. 2
0
 internal SmcChannelSettings(SmcChannelSettingsStruct s)
 {
     this.invert = s.invert;
     this.scalingDegree = s.scalingDegree;
     this.alternateUse = s.alternateUse;
     this.pinMode = s.pinMode;
     this.errorMin = s.errorMin;
     this.errorMax = s.errorMax;
     this.inputMin = s.inputMin;
     this.inputMax = s.inputMax;
     this.inputNeutralMin = s.inputNeutralMin;
     this.inputNeutralMax = s.inputNeutralMax;
 }
Esempio n. 3
0
        internal SmcChannelSettingsStruct convertToStruct()
        {
            SmcChannelSettingsStruct s = new SmcChannelSettingsStruct();

            s.invert          = this.invert;
            s.scalingDegree   = this.scalingDegree;
            s.alternateUse    = this.alternateUse;
            s.pinMode         = this.pinMode;
            s.errorMin        = this.errorMin;
            s.errorMax        = this.errorMax;
            s.inputMin        = this.inputMin;
            s.inputMax        = this.inputMax;
            s.inputNeutralMin = this.inputNeutralMin;
            s.inputNeutralMax = this.inputNeutralMax;
            return(s);
        }
Esempio n. 4
0
 internal SmcChannelSettingsStruct convertToStruct()
 {
     SmcChannelSettingsStruct s = new SmcChannelSettingsStruct();
     s.invert = this.invert;
     s.scalingDegree = this.scalingDegree;
     s.alternateUse = this.alternateUse;
     s.pinMode = this.pinMode;
     s.errorMin = this.errorMin;
     s.errorMax = this.errorMax;
     s.inputMin = this.inputMin;
     s.inputMax = this.inputMax;
     s.inputNeutralMin = this.inputNeutralMin;
     s.inputNeutralMax = this.inputNeutralMax;
     return s;
 }