peary::hal::E2Reader

A resource that can read from memory.

#include <peary/hal/Resources.hpp>

Inherits from peary::hal::Resource

Inherited by peary::board::carboard::EEPROM

Public Functions

Name
virtual uint8_t read(uint16_t address) =0Read a byte from the specified address.

Additional inherited members

Public Functions inherited from peary::hal::Resource

Name
virtual ~Resource() =defaultDefault constructor.
void setName(const std::string & name)Set the name of the resource.
std::string name() constGet the name of the resource.

Protected Attributes inherited from peary::hal::Resource

Name
std::string _name

Public Functions Documentation

function read

  virtual uint8_t read(
    uint16_t address
) =0
  

Read a byte from the specified address.

Parameters:

  • address Address to read from

Return: Byte read from the specified address

Reimplemented by: peary::board::carboard::EEPROM::read

Purely virtual function to be implemented by the actual resource class


Updated on 2025-11-14 at 11:31:23 +0100