Skip to content

Commit 90c1ccb

Browse files
committed
Update i2c_api.h
Added i2c_slave_byte_read() and i2c_slave_byte_write() for devices such as the lpc812, lpc824 and lpc1549 that have separate I2C engines for Master and Slave functions.
1 parent eb9b8cd commit 90c1ccb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libraries/mbed/hal/i2c_api.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ void i2c_slave_mode (i2c_t *obj, int enable_slave);
4646
int i2c_slave_receive(i2c_t *obj);
4747
int i2c_slave_read (i2c_t *obj, char *data, int length);
4848
int i2c_slave_write (i2c_t *obj, const char *data, int length);
49+
int i2c_slave_byte_read(i2c_t *obj, int last);
50+
int i2c_slave_byte_write(i2c_t *obj, int data);
4951
void i2c_slave_address(i2c_t *obj, int idx, uint32_t address, uint32_t mask);
5052
#endif
5153

0 commit comments

Comments
 (0)