nox771 / i2c_t3

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

Are asynchronous callbacks called from interrupt? (documentation) #22

Closed bmegli closed 6 years ago

bmegli commented 6 years ago

Hi @nox771,

First, thank you for this awesome library.

Are the asynchronous background transfer callbacks for

...called from the interrupt handler?

I suppose they have to, at least when initiating background transfer with:

nox771 commented 6 years ago

Yes that is correct, the interrupt handler will call those functions upon completion (only if they are setup).

There is an example "basic_master_callback" which shows how to setup the functions.

bmegli commented 6 years ago

Thanks!

Yes, I know the example and already have working implementation.