User Guide
Code Generation
77
RMS CodeCrafter
Function Definitions
RMSCommon Callbacks
RMS CodeCrafter creates definitions for the following callback functions:
RMSDevMonRegisterCallBack
This function has the following signature:
(***************************************)
(* Call Name: RMSDevMonRegisterCallback*)
(* Function: time to register devices *)
(* Param: None *)
(* Return: None *)
(* Note: Caller must define this *)
(***************************************)
DEFINE_FUNCTION RMSDevMonRegisterCallback()
{
}
Each monitored device and parameter not monitored with a support module will add several lines
of code within this function.
A comment containing the devices logical name
A call to RMSRegisterDevice()
A call to RMSRegisterDeviceNumberParam()
RMSDevMonSetParamCallBack
This function has the following signature:
(***************************************)
(* Call Name: RMSDevMonSetParamCallback*)
(* Function: Reset parameters *)
(* Param: DPS, Name, Value *)
(* Return: None *)
(* Note: Caller must define this *)
(***************************************)
DEFINE_FUNCTION RMSDevMonSetParamCallback(DEV dvDPS, CHAR cName[], CHAR
cValue[])
{
}
Each device parameter with Reset selected should have an entry in an ACTIVE/CASE statement.
Further, all parameters of the same device will be grouped in the same ACTIVE/CASE statement.
As in the following example:
SELECT
{
// Left Projector
ACTIVE (dvLProj == dvDPS):
{
IF ('Lamp Hours' == cName)
slLeftProjectorLampHours = ATOI(cValue)
}
}