ads1115/test/inc/mock_i2c.h

14 lines
416 B
C
Raw Normal View History

2019-07-29 14:25:35 +00:00
#ifndef __MOCK_I2C_H__
#define __MOCK_I2C_H__
#include <fff.h>
DEFINE_FFF_GLOBALS;
DECLARE_FAKE_VALUE_FUNC(int, i2c_open, const struct i2c_bb *);
DECLARE_FAKE_VALUE_FUNC(int, i2c_close, const struct i2c_bb *);
DECLARE_FAKE_VALUE_FUNC(int, i2c_read, const struct i2c_bb *, uint8_t, char *, unsigned int);
DECLARE_FAKE_VALUE_FUNC(int, i2c_write, const struct i2c_bb *, uint8_t, const char *, unsigned int);
#endif