Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
Hello!
I am trying to implement ComparatorIn class for KL25Z: https://developer.mbed.org/users/frankvnk/code/ComparatorIn/#e6a4cd28e217
I have to use in an interrupt a function that is a class member, but ComparatorIn class seems to accept only static functions. Is there any possibility to overcome this problem?
Here is a piece of my code:
Sampler.cpp
Line 44 of above code results in error Error: Argument of type "Sampler *" is incompatible with parameter of type "void (*)()" in "Sampler.cpp"
I will be very grateful for any possible solutions.