Struct DataInterface

Struct Documentation

struct DataInterface

Abstract R/W data interface, which can read and send data at specified address. Used in Components to interface with ports.

Public Members

std::function<bool(uint32_t address, uint32_t &buffer)> read

Read data from the device.

Param address

Address to read from.

Return

Data read from the address.

std::function<void(uint32_t address, uint32_t data)> write

Write data to the device.

Param address

Address to write to.

Param data

Data to store.