Home |
Function PegInitialize HMI (Human-Machine Interface) Classes |
Function PegInitializeThe RTPEG-32 library must be initialized with a call to PegInitialize: PegPresentationManager * PegInitialize(PegScreen * pScreen, int PegScreenClassSize); Parameter pScreen must point to an instantiated screen driver. Parameter PegScreenClassSize must be the size in bytes of the abstract class PegScreen. This value is used to verify that the application and the PEG.LIB library have been compiled with the same structure alignment (minimum 4) and options specified in header file pconfig.hpp. The function's return value is a pointer to the PegPresentationManager of the application. The task calling function PegInitialize will be the PEG task, which is the task which handles the main message loop of the program. Therefore, functions PegInitialize and PegExecute must be called from the same task.
|