Class DataPort
- Defined in File Port.h 
Inheritance Relationships
Base Type
- public Port(Class Port)
Class Documentation
- 
class DataPort : public Port
- A specialized Port to store data Connectors. - Public Functions - 
DataPort() = default
 - 
~DataPort() override = default
 - 
virtual void connect(std::weak_ptr<Connector> connector) override
- Connect a data Connector. - Parameters
- connector – A connector to attach. 
- Throws
- std::invalid_argument – If the provided connector is empty or invalid. 
 
 - 
uint32_t read(uint32_t address)
- Read data at a specified address. Default value returned is 0x0. - Parameters
- address – Address to read from. 
- Returns
- Read value. 
 
 - 
bool readConfirmed(uint32_t address, uint32_t &buffer)
- Read data at a specified address with confirmation that anybody actually responded. Used for e.g. buses, when there does not have to be a device responding to the specified address. - Parameters
- address – An address to read from. 
- buffer – A buffer to store the value to. 
 
- Returns
- true If any Component responded to the address. 
 
 - 
void write(uint32_t address, uint32_t data)
- Write data to the address specified. - Parameters
- address – An address to write the data to. 
- data – Data to write. 
 
 
 
- 
DataPort() = default