source: rtems/cpukit/include/dev/i2c/eeprom.h @ 255fe43

Last change on this file since 255fe43 was 255fe43, checked in by Joel Sherrill <joel@…>, on 03/01/22 at 20:40:44

cpukit/: Scripted embedded brains header file clean up

Updates #4625.

  • Property mode set to 100644
File size: 873 bytes
Line 
1/**
2 * @file
3 *
4 * @brief EEPROM Driver API
5 *
6 * @ingroup I2CEEPROM
7 */
8
9/*
10 * Copyright (c) 2014 embedded brains GmbH.  All rights reserved.
11 *
12 * The license and distribution terms for this file may be
13 * found in the file LICENSE in this distribution or at
14 * http://www.rtems.org/license/LICENSE.
15 */
16
17#ifndef _DEV_I2C_EEPROM_H
18#define _DEV_I2C_EEPROM_H
19
20#include <dev/i2c/i2c.h>
21
22#ifdef __cplusplus
23extern "C" {
24#endif /* __cplusplus */
25
26/**
27 * @defgroup I2CEEPROM EEPROM Driver
28 *
29 * @ingroup I2CDevice
30 *
31 * @brief Driver for EEPROM device.
32 *
33 * @{
34 */
35
36int i2c_dev_register_eeprom(
37  const char *bus_path,
38  const char *dev_path,
39  uint16_t i2c_address,
40  uint16_t address_bytes,
41  uint16_t page_size_in_bytes,
42  uint32_t size_in_bytes,
43  uint32_t program_timeout_in_ms
44);
45
46/** @} */
47
48#ifdef __cplusplus
49}
50#endif /* __cplusplus */
51
52#endif /* _DEV_I2C_EEPROM_H */
Note: See TracBrowser for help on using the repository browser.