AnsweredAssumed Answered

Blocking I2C driver

Question asked by Martin Dusek on Jun 25, 2018
Latest reply on Jun 27, 2018 by Daniel Chen

Hi,

is there a simple blocking I2C driver example for Kinetis K22? I need simple functions:

 

void IicInit( void) // init i2c baud rate

void IicStart( void) // generate start condition, wait for bus busy

void IicWrite(byte Data) // write data byte, wait for transfer complete

void IicStop( void) // generate stop condition, wait for bus idle

 

Thanks

 

Martin

Outcomes