Esempio n. 1
0
 bool SetLinChannelParameters()
 {
     XLClass.xl_linStatPar linChannelParameters = new XLClass.xl_linStatPar
     {
         baudrate   = configurationSettings.Baudrate,
         LINMode    = linMode,
         LINVersion = linVersion
     };
     XLDefine.XL_Status[] status = new XLDefine.XL_Status[configurationSettings.HardwareChannelCount];
     for (int i = 0; i < configurationSettings.HardwareChannelCount; i++)
     {
         status[i] = driver.XL_LinSetChannelParams(portHandle, MasterMask[i], linChannelParameters);
     }
     XLDefine.XL_Status maxChannelStatus = status.Max();
     return(DriverAction("Set Lin Parameters", maxChannelStatus));
 }