void WriteReg32(int addr, uint val) { Message msg = new Message(); msg.type = MessageType.Message_Register32; msg.register32_address = (uint)addr; msg.register32_value = val; msg.Send(ns); }
void WriteReg8(int addr, int val) { Message msg = new Message(); msg.type = MessageType.Message_Register8; msg.register8_address = (uint)addr; msg.register8_value = (byte)val; msg.Send(ns); }