EPICS Motor Module motor-R6-8-RC1_1-4
Typedefs
Routines to open and close a connection to a motion axis.

Typedefs

typedef AXIS_HDL(* motorAxisOpenFunc )(int card, int axis, char *param)
typedef int(* motorAxisCloseFunc )(AXIS_HDL pAxis)
typedef AXIS_HDL(* motorAxisOpenFunc )(int card, int axis, char *param)
typedef int(* motorAxisCloseFunc )(AXIS_HDL pAxis)

Detailed Description

Provide an external logging routine.

This is an optional function which allows external software to hook the driver log routine into an external logging system. The external log function is a standard printf style routine with the exception that it has a first parameter that can be used to set external data on an axis by axis basis and a second parameter which is a message tracing indicator. This is set to be compatible with the asynTrace reasons

If pAxis is NULL, then this logging function and parameter should be used as a default - i.e. when logging is not taking place in the context of a single axis (a background polling task, for example).

Parameters:
pAxis[in] Pointer to axis handle returned by motorAxisOpen.
logFunc[in] Pointer to function of motorAxisLogFunc type.
param[in] Pointer to the user parameter to be used for logging on this axis
Returns:
Integer indicating 0 (MOTOR_AXIS_OK) for success or non-zero for failure.

Typedef Documentation

typedef int(* motorAxisCloseFunc)(AXIS_HDL pAxis)

Initialise connection to a motor axis.

This routine should open a connection to an motor controller axis and return a driver dependent handle that can be used for subsequent calls to other axis routines supported by the motor controller. The driver should support multiple opens on a single axis and process all calls from separate threads on a fifo basis.

Parameters:
card[in] Number representing the motor controller.
axis[in] Axis number - some devices may have conventions on virtual axes.
param[in] Arbitrary, driver defined, parameter string.
Returns:
AXIS_HDL - pointer to handle for using to future calls to motorAxis routines
typedef int(* motorAxisCloseFunc)(AXIS_HDL pAxis)

Initialise connection to a motor axis.

This routine should open a connection to an motor controller axis and return a driver dependent handle that can be used for subsequent calls to other axis routines supported by the motor controller. The driver should support multiple opens on a single axis and process all calls from separate threads on a fifo basis.

Parameters:
card[in] Number representing the motor controller.
axis[in] Axis number - some devices may have conventions on virtual axes.
param[in] Arbitrary, driver defined, parameter string.
Returns:
AXIS_HDL - pointer to handle for using to future calls to motorAxis routines
 All Classes Functions Variables