class member function as an interrupt service routine