Local macros are macros defined by Processor Expert for each component.
A component can define its own local macros. These macros can also be changed in the driver. Other components have no access to macros defined by other components.
Each driver should define the following macros:
- DriverVersion - Version of the driver, format XX.XX
- DriverAuthor - Name of the author of the driver
- DriverDate - Date of last modification of the driver, format: DD.MM.YYYY
There are local macros defined for every component dependent on list of component's properties, methods, and events. Macros defined by Processor Expert cannot be changed by driver. Other components have no access to macros of another component with exception of inheritance.
List of macros defined for each component:
- DeviceType - Type of the component
- DeviceName - Name of the component
- ModuleName - Name of the component driver. It must be identifier
- Comment - User comment to the component. List of strings.
- runHighSpeed - Defined if component is supported in high speed mode
- runLowSpeed - Defined if component is supported in low speed mode
- runSleep - Defined if component is supported in slow speed mode
- runSpeedMode - List of supported speed modes, values: Yes/No
- runSpeedModeNum - Number of supported speed modes
- method - For each method of the component that must be implemented in the driver; the name of the method is defined as a macro. Value of the macro is same as the name
- method_Hint - Hint for the corresponding method
- event - For each event user requests to handle in his code, the name of event is defined as a macro. Value of the macro is name of event handler function
- eventPrior - event priority. It is defined only if the event support priority
- eventModule - event module of corresponding event
- event_Hint - hint for the event
- MethodList - list of requested methods
- MethodHints - list of corresponding hints for the requested methods
- EventList - list of requested events
- EventModules - list of corresponding event modules