mbed library sources: Modified to operate FRDM-KL25Z at 48MHz from internal 32kHz oscillator (nothing else changed).
Fork of mbed-src by
FunctionPointer Class Reference
A class for storing and calling a pointer to a static or member void function. More...
#include <FunctionPointer.h>
Public Member Functions | |
FunctionPointer (void(*function)(void)=0) | |
Create a FunctionPointer, attaching a static function. | |
template<typename T > | |
FunctionPointer (T *object, void(T::*member)(void)) | |
Create a FunctionPointer, attaching a member function. | |
void | attach (void(*function)(void)=0) |
Attach a static function. | |
template<typename T > | |
void | attach (T *object, void(T::*member)(void)) |
Attach a member function. | |
void | call () |
Call the attached static or member function. |
Detailed Description
A class for storing and calling a pointer to a static or member void function.
Definition at line 27 of file FunctionPointer.h.
Constructor & Destructor Documentation
FunctionPointer | ( | void(*)(void) | function = 0 ) |
Create a FunctionPointer, attaching a static function.
- Parameters:
-
function The void static function to attach (default is none)
Definition at line 20 of file FunctionPointer.cpp.
FunctionPointer | ( | T * | object, |
void(T::*)(void) | member | ||
) |
Create a FunctionPointer, attaching a member function.
- Parameters:
-
object The object pointer to invoke the member function on (i.e. the this pointer) function The address of the void member function to attach
Definition at line 42 of file FunctionPointer.h.
Member Function Documentation
void attach | ( | void(*)(void) | function = 0 ) |
Attach a static function.
- Parameters:
-
function The void static function to attach (default is none)
Definition at line 24 of file FunctionPointer.cpp.
void attach | ( | T * | object, |
void(T::*)(void) | member | ||
) |
Attach a member function.
- Parameters:
-
object The object pointer to invoke the member function on (i.e. the this pointer) function The address of the void member function to attach
Definition at line 58 of file FunctionPointer.h.
void call | ( | void | ) |
Call the attached static or member function.
Definition at line 29 of file FunctionPointer.cpp.
Generated on Wed Jul 13 2022 19:29:55 by 1.7.2