Files
allwpilib/hal/lib/Athena/i2clib/i2c-lib.h
thomasclark 27896984f7 Added the new NI shared libraries and headers
Change-Id: I090f2ebe35b65aa323a97ce2ba0154d044e1b4c2
2014-05-09 15:11:56 -04:00

10 lines
448 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__ */