Exemple #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;
 }
Exemple #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;
 }
Exemple #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);
        }
Exemple #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;
 }