i2c.c File Reference

Functions

KI2CStatus kprv_i2c_dev_init (KI2CNum i2c)
 Setup and enable i2c bus. More...
 
KI2CStatus kprv_i2c_dev_terminate (KI2CNum i2c)
 i2c hardware cleanup and disabling More...
 
KI2CStatus kprv_i2c_master_write (KI2CNum i2c, uint16_t addr, uint8_t *ptr, int len)
 Write data over i2c bus as master. More...
 
KI2CStatus kprv_i2c_master_read (KI2CNum i2c, uint16_t addr, uint8_t *ptr, int len)
 Read data over i2c bus as master. More...