peary/hardware/components/EEPROM24LC32A.hpp

EEPROM24LC32A Component Class. More…

Namespaces

Name
peary
peary::component

Classes

Name
class peary::component::EEPROM24LC32A EEPROM24LC32A I2C EEPROM Component.

Detailed Description

EEPROM24LC32A Component Class.

Copyright: Copyright (c) 2016-2025 CERN and the Peary Caribou authors. This software is distributed under the terms of the LGPL-3.0-only License, copied verbatim in the file “LICENSE.md”. SPDX-License-Identifier: LGPL-3.0-only

Source code

  
#pragma once

#include <cstdint>
#include <string>

#include "peary/hal/Components.hpp"
#include "peary/interfaces/I2C/i2c.hpp"

namespace peary::component {

    class EEPROM24LC32A : public hal::Component<interface::I2CEndpoint> {
    public:
        EEPROM24LC32A(const std::string& i2c_bus, uint8_t device_address);

        void write(uint16_t address, int value);

        uint8_t read(uint16_t address);
    };
} // namespace peary::component
  

Updated on 2026-01-30 at 22:01:05 +0100