diff --git a/inc/i2c_bb.h b/inc/i2c_bb.h index 3f4a68a..c06f49b 100644 --- a/inc/i2c_bb.h +++ b/inc/i2c_bb.h @@ -11,7 +11,7 @@ struct i2c_bb { int i2c_open(const struct i2c_bb *i2c); int i2c_close(const struct i2c_bb *i2c); -int i2_read(const struct i2c_bb *i2c, uint8_t slave_addr, char *buffer, unsigned int len); -int i2_write(const struct i2c_bb *i2c, uint8_t slave_addr, const char *buffer, unsigned int len); +int i2c_read(const struct i2c_bb *i2c, uint8_t slave_addr, char *buffer, unsigned int len); +int i2c_write(const struct i2c_bb *i2c, uint8_t slave_addr, const char *buffer, unsigned int len); #endif diff --git a/src/i2c.c b/src/i2c.c index 8c30fd3..8748063 100644 --- a/src/i2c.c +++ b/src/i2c.c @@ -40,7 +40,7 @@ int i2c_close(const struct i2c_bb *i2c) return res; } -int i2_read(const struct i2c_bb *i2c, uint8_t slave_addr, char *buffer, unsigned int len) +int i2c_read(const struct i2c_bb *i2c, uint8_t slave_addr, char *buffer, unsigned int len) { unsigned int i; assert(NULL != i2c); @@ -59,7 +59,7 @@ int i2_read(const struct i2c_bb *i2c, uint8_t slave_addr, char *buffer, unsigned return (int)i; } -int i2_write(const struct i2c_bb *i2c, uint8_t slave_addr, const char *buffer, unsigned int len) +int i2c_write(const struct i2c_bb *i2c, uint8_t slave_addr, const char *buffer, unsigned int len) { unsigned int i;