示例#1
0
        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);
        }
示例#2
0
        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);
        }
示例#3
0
        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);
        }
示例#4
0
        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);
        }
示例#5
0
        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);
        }
示例#6
0
 public byte SetBatteryStatus(DsBattery battery)
 {
     return RawBytes[(int) DsOffset.Battery] = (byte) battery;
 }
示例#7
0
 public byte SetBatteryStatus(DsBattery battery)
 {
     return(RawBytes[2] = (byte)battery);
 }
示例#8
0
 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;
 }
示例#10
0
 public byte SetBatteryStatus(DsBattery battery)
 {
     return(RawBytes[(int)DsOffset.Battery] = (byte)battery);
 }