private void WriteRegister(WiFlyShield.Registers register, byte data) { m_uart.Write(new byte[] { (byte)register, data }); }
private byte ReadRegister(WiFlyShield.Registers register) { byte[] buffer = new byte[] { (byte)((byte)register | 0x80), 0 }; m_uart.WriteRead(buffer, buffer); return buffer[1]; }