Exemple #1
0
        private async Task <int> GetReg32(int addr)
        {
            byte[] bytes = new byte[4];
            await ReadAsync(addr, bytes, 0, bytes.Length);

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