src/libYARP_dev/esdcan/linux/yarp/YARPEsdCanDeviceDriver.cpp
int YARPEsdCanDeviceDriver::getErrorStatus (void *cmd)
{
	EsdCanResources& r = RES(system_resources);
	int *out = (int *) cmd;
	short value = 0;

	/// the axis is irrelevant.
	/// MSB of the word is 0!
	if (_readWord16 (CAN_GET_ERROR_STATUS, 0, value) == YARP_OK)
		*out = int(value);
	else
		return YARP_FAIL;

	return YARP_OK;
}
/// cmd is a pointer to an integer
cmd is a pointer to an integer
cmd is a pointer to an integer
int YARPEsdCanDeviceDriver::getErrorStatus (void *cmd)
{
	EsdCanResources& r = RES(system_resources);
	int *out = (int *) cmd;
	short value = 0;
	if (_readWord16 (CAN_GET_ERROR_STATUS, 0, value) == YARP_OK)
		*out = int(value);
	else
		return YARP_FAIL;
	return YARP_OK;
}
int YARPEsdCanDeviceDriver :: getErrorStatus ( void * cmd ) { EsdCanResources & r = RES ( system_resources ) ; int * out = ( int * ) cmd ; short value = 0 ; if ( _readWord16 ( CAN_GET_ERROR_STATUS , 0 , value ) == YARP_OK ) * out = int ( value ) ; else return YARP_FAIL ; return YARP_OK ; }
cmd is a pointer to an integer
cmd is a pointer to an integer
/// the axis is irrelevant. /// MSB of the word is 0!