Specify the setup function for a PhAB internal link callback
#include <Ap.h> void ApModuleFunction( ApEventLink_t *link_callback, int (* function)(), int realize_flags );
Ap
ApModuleFunction() is used to specify the setup function for a PhAB internal link callback.
When you create an internal link callback, PhAB lets you specify the setup function. ApModuleFunction() lets you change that setup function. The new function is retained until changed again.
ApModuleFunction( ABM_mydialog, setup_module, AB_FUNC_BOTH ); ApCreateModule( ABM_mydialog, NULL, NULL ); setup_module( PtWidget_t *widget, ... ) { /* setup processing for module */ }
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
ApCreateModule(), ApModuleLocation()
Accessing PhAB Modules from Code chapter of the Photon Programmer's Guide