Пример #1
0
        private async Task <short> GetReg16(int addr)
        {
            byte[] bytes = new byte[2];
            await ReadAsync(addr, bytes, 0, bytes.Length);

            return(MyBitConverter.LEToInt16(bytes, 0));
        }