Why seem interrupt handlers as member functions to be impossible?
Answer Posted / rohit sah
Interrupt handlers as member functions _are_ possible. But they must be static member functions. Static member functions don't make use of the implicit 'this' pointer required by normal member functions. The caller of the interrupt handler doesn't know anything about objects and 'this' pointers, so it can't pass a value of such a pointer.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is a volatile variable in c++?
Why c++ is better than c language?
Does a derived class inherit or doesn't inherit?
Mention the ways in which parameterized can be invoked. Give an example of each.
Why use of template is better than a base class?
What does I ++ mean in c++?
Is c++ a low level language?
What is abstraction in c++?
What is functions syntax in c++?
How would you use the functions memcpy(), memset(), memmove()?
What is the best ide for c++?
How to allocate memory dynamically for a reference?
What is #include cstdlib in c++?
Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?
What are the two types of polymorphism?