---
title: MemoryRead16
framework: pcidriverkit
role: symbol
role_heading: Instance Method
path: pcidriverkit/iopcidevice/memoryread16-9qkdh
---

# MemoryRead16

Reads a 16-bit value synchronously from the PCI device’s aperture at the specified memory index.

## Declaration

```occ
void MemoryRead16(uint8_t memoryIndex, uint64_t offset, uint16_t *readData);
```

## Parameters

- `memoryIndex`: The index of the memory range from which to read.
- `offset`: An offset from the beginning of the specified memory range.
- `readData`: A variable in which to store the data. If this method encounters an error when reading the data, it sets the value to -1.

## See Also

### Reading and Writing Memory Locations

- [MemoryRead8](pcidriverkit/iopcidevice/memoryread8-1edw0.md)
- [MemoryRead8](pcidriverkit/iopcidevice/memoryread8-7b2zp.md)
- [MemoryRead16](pcidriverkit/iopcidevice/memoryread16-50bq8.md)
- [MemoryRead32](pcidriverkit/iopcidevice/memoryread32-60hg9.md)
- [MemoryRead32](pcidriverkit/iopcidevice/memoryread32-84jap.md)
- [MemoryRead64](pcidriverkit/iopcidevice/memoryread64-9ntrf.md)
- [MemoryRead64](pcidriverkit/iopcidevice/memoryread64-37uob.md)
- [MemoryWrite8](pcidriverkit/iopcidevice/memorywrite8-1uey6.md)
- [MemoryWrite8](pcidriverkit/iopcidevice/memorywrite8-fzh6.md)
- [MemoryWrite16](pcidriverkit/iopcidevice/memorywrite16-8k6ch.md)
- [MemoryWrite16](pcidriverkit/iopcidevice/memorywrite16-534yk.md)
- [MemoryWrite32](pcidriverkit/iopcidevice/memorywrite32-4pmh.md)
- [MemoryWrite32](pcidriverkit/iopcidevice/memorywrite32-ow7r.md)
- [MemoryWrite64](pcidriverkit/iopcidevice/memorywrite64-8qyob.md)
- [MemoryWrite64](pcidriverkit/iopcidevice/memorywrite64-nvpu.md)
