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


Please Help Members By Posting Answers For Below Questions

What should main() return in c and c++?

536


How should runtime errors be handled in c++?

619


What is lambda in c++?

584


What is array give example?

606


What is else if syntax?

688






Is dev c++ a good compiler?

534


What is data binding in c++?

512


What problems might the following macro bring to the application?

628


Explain the properties and principles of oop.

543


What is function overloading c++?

580


Am pass the 10000 records to target in target I will take commit interval 15000 when I was stop the work flow what will happened

1091


How are virtual functions implemented in c++?

612


Show the declaration for a static function pointer.

585


Explain the virtual inheritance in c++.

610


What jobs can you get with a c++ certification?

596