10 lines
382 B
C
10 lines
382 B
C
|
#include <stdint.h>
|
||
|
#include <mock_i2c.h>
|
||
|
|
||
|
DEFINE_FFF_GLOBALS;
|
||
|
|
||
|
DEFINE_FAKE_VALUE_FUNC(int, i2c_open, const struct i2c_bb *);
|
||
|
DEFINE_FAKE_VALUE_FUNC(int, i2c_close, const struct i2c_bb *);
|
||
|
DEFINE_FAKE_VALUE_FUNC(int, i2c_read, const struct i2c_bb *, uint8_t, char *, unsigned int);
|
||
|
DEFINE_FAKE_VALUE_FUNC(int, i2c_write, const struct i2c_bb *, uint8_t, const char *, unsigned int);
|