RTEMS: cpukit/include/dev/i2c/fpga-i2c-slave.h Source File

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
fpga-i2c-slave.h
1/*
2 * Copyright (c) 2016-2017 Chris Johns <chrisj@rtems.org>
3 * All rights reserved.
4 *
5 * The license and distribution terms for this file may be
6 * found in the file LICENSE in this distribution or at
7 * http://www.rtems.org/license/LICENSE.
8 */
9
10/*
11 * I2C slave for testing:
12 * https://github.com/oetr/FPGA-I2C-Slave
13 */
14
15#ifndef FPGA_I2C_SLAVE_H
16#define FPGA_I2C_SLAVE_H
17
18#include <dev/i2c/i2c.h>
19
20int i2c_dev_register_fpga_i2c_slave(const char* bus_path,
21 const char* dev_path,
22 uint16_t address,
23 size_t size);
24
25#endif
i2c.h
Inter-Integrated Circuit (I2C) Driver API.