示例#1
0
            public void values(ushort[] src)
            {
                var len = Math.Min(src.Length, SensorsData.values_.item_len);

                for (int index = 0; index < len; index++)
                {
                    Lib.set_bytes((ulong)(src[index]), 2, data_.bytes, data_.origin + 0 + index * 2);
                }
                ;
            }
示例#2
0
 public void Ver(ushort src)
 {
     Lib.set_bytes((ulong)(src), 2, data_.bytes, data_.origin + 2);;
 }
示例#3
0
 public ushort Ver()
 {
     return((ushort)((ushort)(ushort)Lib.get_bytes(data_.bytes, data_.origin + 2, 2)));;
 }
示例#4
0
 public void DevID(ushort src)
 {
     Lib.set_bytes((ulong)(src), 2, data_.bytes, data_.origin + 0);;
 }
示例#5
0
 public ushort DevID()
 {
     return((ushort)((ushort)(ushort)Lib.get_bytes(data_.bytes, data_.origin + 0, 2)));;
 }
示例#6
0
 public void set(ushort src, int index)
 {
     Lib.set_bytes((ulong)(src), 2, data_.bytes, data_.origin + 0 + index * 2);;
 }
示例#7
0
 public void error_id(Errors src)
 {
     Lib.set_bits((ulong)(src), 1, data_.bytes, data_.origin * 8 + 16);;
 }
示例#8
0
 public ushort get(int index)
 {
     return((ushort)((ushort)(ushort)Lib.get_bytes(data_.bytes, data_.origin + 0 + index * 2, 2)));;
 }
示例#9
0
 public Errors error_id()
 {
     return((Errors)(((sbyte)Lib.get_bits(data_.bytes, data_.origin * 8 + 16, 1))));;
 }
示例#10
0
 public ushort time()
 {
     return((ushort)((ushort)(ushort)Lib.get_bytes(data_.bytes, data_.origin + 1, 2)));;
 }
示例#11
0
 public void clk_khz(ushort src)
 {
     Lib.set_bytes((ulong)(src), 2, data_.bytes, data_.origin + 3);;
 }
示例#12
0
 public ushort clk_khz()
 {
     return((ushort)((ushort)(ushort)Lib.get_bytes(data_.bytes, data_.origin + 3, 2)));;
 }
示例#13
0
 public void time(ushort src)
 {
     Lib.set_bytes((ulong)(src), 2, data_.bytes, data_.origin + 1);;
 }