public SnapSrc GetSrc() { byte[] src_addr = { 0x31, 0x00, 0x00, 0x00 }; var rb = _rbcp.Read(src_addr)[0]; return((SnapSrc)rb); }
public void TestmodeOff() { var rddata = RBCP.Interpret(_rbcp.Read(DACAddress(0x01))); byte pt = (byte)(rddata.Item2[0] & 0xfb); _rbcp.Write(DACAddress(0x01), new byte[] { pt }); }
public List <byte[]> Read(byte[] reg_addr) { var length = reg_addr.Length; var result_list = new List <byte[]>(); for (int i = 0; i < length; i++) { var tmpaddr = ADCAddress(reg_addr[i], false); var result = _rbcp.Read(tmpaddr); result_list.Add(result); } return(result_list); }