Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
eeprom.h
Go to the documentation of this file.
1
7/*
8 * Copyright (c) 2017 BayLibre, SAS
9 *
10 * SPDX-License-Identifier: Apache-2.0
11 */
12#ifndef ZEPHYR_INCLUDE_DRIVERS_I2C_SLAVE_EEPROM_H_
13#define ZEPHYR_INCLUDE_DRIVERS_I2C_SLAVE_EEPROM_H_
14
32int eeprom_slave_program(const struct device *dev, const uint8_t *eeprom_data,
33 unsigned int length);
34
45int eeprom_slave_read(const struct device *dev, uint8_t *eeprom_data,
46 unsigned int offset);
47
52#endif /* ZEPHYR_INCLUDE_DRIVERS_I2C_SLAVE_EEPROM_H_ */
int eeprom_slave_read(const struct device *dev, uint8_t *eeprom_data, unsigned int offset)
Read single byte of virtual EEPROM memory.
int eeprom_slave_program(const struct device *dev, const uint8_t *eeprom_data, unsigned int length)
Program memory of the virtual EEPROM.
__UINT8_TYPE__ uint8_t
Definition: stdint.h:58
Runtime device structure (in ROM) per driver instance.
Definition: device.h:367