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); } ; }
public void Ver(ushort src) { Lib.set_bytes((ulong)(src), 2, data_.bytes, data_.origin + 2);; }
public ushort Ver() { return((ushort)((ushort)(ushort)Lib.get_bytes(data_.bytes, data_.origin + 2, 2)));; }
public void DevID(ushort src) { Lib.set_bytes((ulong)(src), 2, data_.bytes, data_.origin + 0);; }
public ushort DevID() { return((ushort)((ushort)(ushort)Lib.get_bytes(data_.bytes, data_.origin + 0, 2)));; }
public void set(ushort src, int index) { Lib.set_bytes((ulong)(src), 2, data_.bytes, data_.origin + 0 + index * 2);; }
public void error_id(Errors src) { Lib.set_bits((ulong)(src), 1, data_.bytes, data_.origin * 8 + 16);; }
public ushort get(int index) { return((ushort)((ushort)(ushort)Lib.get_bytes(data_.bytes, data_.origin + 0 + index * 2, 2)));; }
public Errors error_id() { return((Errors)(((sbyte)Lib.get_bits(data_.bytes, data_.origin * 8 + 16, 1))));; }
public ushort time() { return((ushort)((ushort)(ushort)Lib.get_bytes(data_.bytes, data_.origin + 1, 2)));; }
public void clk_khz(ushort src) { Lib.set_bytes((ulong)(src), 2, data_.bytes, data_.origin + 3);; }
public ushort clk_khz() { return((ushort)((ushort)(ushort)Lib.get_bytes(data_.bytes, data_.origin + 3, 2)));; }
public void time(ushort src) { Lib.set_bytes((ulong)(src), 2, data_.bytes, data_.origin + 1);; }