On this page
article
peary/hardware/components/EEPROM24LC32A.hpp
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"
namespace peary::component {
class EEPROM24LC32A : public hal::Component {
public:
EEPROM24LC32A(const std::string& i2c_bus, uint8_t device_address);
void write(uint16_t address, int value);
uint8_t read(uint16_t address);
private:
std::string _bus;
uint8_t _address;
};
} // namespace peary::component
Updated on 2025-11-14 at 11:31:23 +0100