DCRP_SET_DEVICE_DOWN

Sets device to a "DEVICE DOWN" status.

Syntax

int dcrp_set_device_down(device_id, status)

char *device_id;

int *status;

Input Parameters

device_id

Contains the Device ID for the device whose status is to be set DOWN (UNAVAILABLE).

Output Parameters

status

Is the function completion status. Valid values are:

TOOLKIT_SUCCESS

Function completed successfully. 

TOOLKIT_FAILURE

Function not completed.

Return Value

This subroutine returns one of the following:

TOOLKIT_SUCCESS

Function completed successfully.

TOOLKIT_FAILURE

Function not completed successfully.

Important: DCRP_SET_DEVICE_DOWN cannot be called until USER_READ_DATA or USER_READ_DIAG_DATA is called first.

More information

    Device Communications Toolkit other subroutines.