public void Update(Can.CanFrame frame) { switch (frame.Id) { case ID_DATA_TRANSFER_ACKNOLDGE: // 84 _numberOfCommand = frame[0]; break; case ID_COMB_AMPLITUTE_OVER_WARNING: break; } }
public void Update(Can.CanFrame frame) { switch (frame.Id) { case ID_DATETIME_TIME: Time(frame); break; case ID_DATETIME_DATE: Date(frame); break; } }
public void Update(Can.CanFrame frame) { if (frame.Id == ID_POWER_INFO && frame[0] == 80) { _powerOnMsb = frame[1]; _powerOnLsb = frame[2]; return; } if (frame.Id == ID_POWER_INFO && frame[0] == 79) { _powerOffMsb = frame[1]; _powerOffLsb = frame[2]; } }
public void Update(Can.CanFrame frame) { if (frame.Id == ID_MMC_INFO) { MmcFileCount = frame[0]; MmcFileIndex = frame[1]; return; } if (frame.Id >= ID_MMC_FILE_0 && frame.Id <= ID_MMC_FILE_9) { var name = Encoding.ASCII.GetString(frame.Data()); _mmcFiles[frame.Id - ID_MMC_FILE_0] = name; } }
public void Update(Can.CanFrame frame) { switch (frame.Id) { case ID_SUPPLY_TEMP: RectifierTemp = frame[0]; InverterTemp = frame[1]; break; case ID_SUPPLY_STATUS: _status = frame.Data(); break; case ID_SUPPLY_ANALOGS: Iout = frame[0]; Vout = frame[1]; Iin = frame[2]; Vin = frame[3]; break; } }
static void can_Received(object sender, Can.CanFrame e) { Console.WriteLine(e); }