Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
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_TARGET_EEPROM_H_
13#define ZEPHYR_INCLUDE_DRIVERS_I2C_TARGET_EEPROM_H_
14
34int eeprom_target_program(const struct device *dev, const uint8_t *eeprom_data,
35 unsigned int length);
36
47int eeprom_target_read(const struct device *dev, uint8_t *eeprom_data,
48 unsigned int offset);
49
61int eeprom_target_set_addr(const struct device *dev, uint8_t addr);
62
67#endif /* ZEPHYR_INCLUDE_DRIVERS_I2C_TARGET_EEPROM_H_ */
int eeprom_target_set_addr(const struct device *dev, uint8_t addr)
Change the address of eeprom target at runtime.
int eeprom_target_program(const struct device *dev, const uint8_t *eeprom_data, unsigned int length)
Program memory of the virtual EEPROM.
int eeprom_target_read(const struct device *dev, uint8_t *eeprom_data, unsigned int offset)
Read single byte of virtual EEPROM memory.
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
Runtime device structure (in ROM) per driver instance.
Definition device.h:412