Hello,
I'm wondering how the internal handling of i2c-slave is accomplished. As I understand the documentation this is done by polling the slave.receive() function to check if new data has arrived.
When I'm using mbed to to other things, too - let's say, a webserver, this might use pretty much processing time which might beeing used better at other parts of my project.
How could I provide an interrupt-driven routine which is only called when there is a need to instead of testing over and over again? Especially I don't know what happens when an attached i2c-master sends data which isn't beeing processed in time - is that data stored to a receive buffer and does it get overwritten if another write access is done by the master side (in my case, this would be O.K., but I can't imagine this to be so)?
Why isn't there a method like 'Ticker' or 'Timeout' which could be used? Or am I thinking the wrong way around...?
Every hint is welcome...
Michael
Hello,
I'm wondering how the internal handling of i2c-slave is accomplished. As I understand the documentation this is done by polling the slave.receive() function to check if new data has arrived.
When I'm using mbed to to other things, too - let's say, a webserver, this might use pretty much processing time which might beeing used better at other parts of my project.
How could I provide an interrupt-driven routine which is only called when there is a need to instead of testing over and over again? Especially I don't know what happens when an attached i2c-master sends data which isn't beeing processed in time - is that data stored to a receive buffer and does it get overwritten if another write access is done by the master side (in my case, this would be O.K., but I can't imagine this to be so)?
Why isn't there a method like 'Ticker' or 'Timeout' which could be used? Or am I thinking the wrong way around...?
Every hint is welcome...
Michael