mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +00:00
This is the changes made by Patrick Plenefisch converting the native code to use CMake and the CMake Maven Plugin, as opposed to the native Maven plugin. This is to allow for compatibility with newer versions of the GCC toolchain. All the cpp sources were moved from maven style directories to cpp style directories for CMake. Change-Id: I67f5e3608948f37c83b0990d232105a3784f8593
10 lines
439 B
C
10 lines
439 B
C
#ifndef __I2C_LIB_H__
|
|
#define __I2C_LIB_H__
|
|
|
|
int i2clib_open(const char *device);
|
|
void i2clib_close(int handle);
|
|
int i2clib_read(int handle, uint8_t dev_addr, char *recv_buf, int32_t recv_size);
|
|
int i2clib_write(int handle, uint8_t dev_addr, const char *send_buf, int32_t send_size);
|
|
int i2clib_writeread(int handle, uint8_t dev_addr, const char *send_buf, int32_t send_size, char *recv_buf, int32_t recv_size);
|
|
|
|
#endif /* __I2C_LIB_H__ */ |