libPocuter 1.0 Support library for programming the Pocuter

PocuterI2C.h
Go to the documentation of this file.
1 #include <stdint.h>
2 #include <stddef.h>
3 #ifndef POCUTERI2C_H
4 #define POCUTERI2C_H
5
9 class PocuterI2C {
10 public:
11 virtual int write(uint8_t i2c_addr, uint8_t i2c_reg, uint8_t* data_wr, size_t size) = 0;
12 virtual int write(uint8_t i2c_addr, uint8_t i2c_reg, uint8_t data_wr) = 0;
13
14 virtual int read(uint8_t i2c_addr, uint8_t i2c_reg, uint8_t* data_rd, size_t size) = 0;
15 virtual int read(uint8_t i2c_addr, uint8_t i2c_reg) = 0;
16 private:
17
18 };
19
20
21 #endif /* POCUTERI2C_H */
22
PocuterI2C::read
virtual int read(uint8_t i2c_addr, uint8_t i2c_reg, uint8_t *data_rd, size_t size)=0
PocuterI2C
I2C Interface.
Definition: PocuterI2C.h:9
PocuterI2C::write
virtual int write(uint8_t i2c_addr, uint8_t i2c_reg, uint8_t *data_wr, size_t size)=0