user_cpu_model

Is called during initialization and verifies the configuration of the device model.

You can find the template for this subroutine in:

usrtm_cpumdl.c

Syntax

void user_cpu_model(DEVICE_DATA *device_struct,
????????????????????????????????????????int *comm_status,
????????????????????????????????????????int *status)

Input Arguments

device_struct

Is a pointer to the structure defining device data. DEVICE_DATA is a typedef to a structure defined in <inc_path/toolkit.h>.

Output Arguments

comm_status

Indicates whether a status of TOOLKIT_FAILURE occurred as a result of a communication failure. Valid values are:

TOOLKIT_SUCCESS Failure is not due to communications failure.
TOOLKIT_FAILURE Failure is due to communications failure.

status

Indicates whether the function successfully obtained all of the requested information. Valid values are:

TOOLKIT_SUCCESS Function completed successfully.
TOOLKIT_FAILURE Function did not complete successfully. Check comm_status to see if the failure was the result of a communication failure.

Return Value

None.