nox771 / i2c_t3

Enhanced I2C library for Teensy 3.x devices
157 stars 44 forks source link

Check operation mode during runtime #9

Closed Flying-Bolt closed 7 years ago

Flying-Bolt commented 7 years ago

How can I check in which mode I2C operate (DMA/INT/IMM) during runtime?

nox771 commented 7 years ago

There is no function for it, but you can read it directly from the i2c structure: i2c_op_mode currOpMode = Wire.i2c->opMode;

Flying-Bolt commented 7 years ago

:+1: thx perfect