30 #ifndef COSMOS_DEVICE_I2C_CLASS_H 31 #define COSMOS_DEVICE_I2C_CLASS_H 35 #if !defined(COSMOS_WIN_OS) 60 int32_t
send(
string data);
61 int32_t
send(uint8_t *data,
size_t len);
62 int32_t
send(vector <uint8_t> data);
64 int32_t
receive(uint8_t *data,
size_t len);
65 int32_t
receive(vector <uint8_t> &data);
88 #endif // COSMOS_DEVICE_I2C_CLASS_H Definition: agentclass.cpp:54
Definition: eci2kep_test.cpp:33
I2C(string bus, uint8_t address, double delay=2e-4)
Definition: i2c.cpp:51
uint8_t address
Definition: i2c.h:75
int fh
Definition: i2c.h:76
int32_t send(string data)
Definition: i2c.cpp:123
~I2C()
Definition: i2c.cpp:100
int32_t error
Definition: i2c.h:82
uint64_t funcs
Definition: i2c.h:77
Headers and definitions common to all COSMOS.
string bus
Definition: i2c.h:74
struct Cosmos::I2C::@29 handle
int32_t get_fh()
Definition: i2c.cpp:259
bool connected
Definition: i2c.h:78
int32_t get_error()
Definition: i2c.cpp:254
int32_t receive(string &data)
Definition: i2c.cpp:161
double delay
Definition: i2c.h:79
int32_t set_address(uint64_t address)