read16 method

int read16(
  1. int offset
)

Reads 16-bits from mapped physical memory, starting at the specified byte offset, relative to the base address the MMIO handle was opened with.

Implementation

int read16(int offset) {
  var data = malloc<Uint16>(1);
  try {
    _checkError(_nativeMMIOread16(_mmioHandle, offset, data));
    return data.value;
  } finally {
    malloc.free(data);
  }
}