internal DsDetail(DsPadId PadId, DsState State, DsModel Model, byte[] Mac, DsConnection Mode, DsBattery Level) { Pad = PadId; this.State = State; this.Model = Model; this.Mode = Mode; Charge = Level; Array.Copy(Mac, m_Local, m_Local.Length); }
internal DsDetail(DsPadId padId, DsState state, DsModel model, byte[] mac, DsConnection mode, DsBattery level) { Pad = padId; State = state; Model = model; Mode = mode; Charge = level; Buffer.BlockCopy(mac, 0, _localMac, 0, _localMac.Length); }
internal DsDetail(DsPadId PadId, DsState State, DsModel Model, Byte[] Mac, DsConnection Mode, DsBattery Level) { m_Serial = PadId; m_State = State; m_Model = Model; m_Mode = Mode; m_Charge = Level; Array.Copy(Mac, m_Local, m_Local.Length); }
public byte SetBatteryStatus(DsBattery battery) { return RawBytes[(int) DsOffset.Battery] = (byte) battery; }
public byte SetBatteryStatus(DsBattery battery) { return(RawBytes[2] = (byte)battery); }
public byte SetBatteryStatus(DsBattery battery) { return RawBytes[2] = (byte) battery; }
public static byte SetBatteryStatus(this ReportEventArgs args, DsBattery battery) { return args.Report[2] = (byte)battery; }
public byte SetBatteryStatus(DsBattery battery) { return(RawBytes[(int)DsOffset.Battery] = (byte)battery); }