src/libYARP_dev/esdcan/linux/yarp/YARPEsdCanDeviceDriver.cpp
int YARPEsdCanDeviceDriver::setBCastMessages (void *cmd)
{
	SingleAxisParameters *tmp = (SingleAxisParameters *) cmd;
	const int axis = tmp->axis;
	ACE_ASSERT (axis >= 0 && axis <= (ESD_MAX_CARDS-1)*2);

	return _writeDWord (CAN_SET_BCAST_POLICY, axis, S_32(*((double *)tmp->parameters)));
}
/// sets the broadcast policy for a given board (don't need to be called twice).
/// the parameter is a 32-bit integer: bit X = 1 -> message X = active
/// e.g. 0x02 activates the broadcast of position information
///		 0x04 activates the broadcast of velocity ...
///
sets the broadcast policy for a given board (don't need to be called twice).
the parameter is a 32-bit integer: bit X = 1 -> message X = active
e.g. 0x02 activates the broadcast of position information
0x04 activates the broadcast of velocity
sets the broadcast policy for a given board ( don ' t need to be called twice ) . the parameter is a 32 - bit integer : bit X = 1 - > message X = active e . g . 0x02 activates the broadcast of position information 0x04 activates the broadcast of velocity
int YARPEsdCanDeviceDriver::setBCastMessages (void *cmd)
{
	SingleAxisParameters *tmp = (SingleAxisParameters *) cmd;
	const int axis = tmp->axis;
	ACE_ASSERT (axis >= 0 && axis <= (ESD_MAX_CARDS-1)*2);
	return _writeDWord (CAN_SET_BCAST_POLICY, axis, S_32(*((double *)tmp->parameters)));
}
int YARPEsdCanDeviceDriver :: setBCastMessages ( void * cmd ) { SingleAxisParameters * tmp = ( SingleAxisParameters * ) cmd ; const int axis = tmp -> axis ; ACE_ASSERT ( axis >= 0 && axis <= ( ESD_MAX_CARDS - 1 ) * 2 ) ; return _writeDWord ( CAN_SET_BCAST_POLICY , axis , S_32 ( * ( ( double * ) tmp -> parameters ) ) ) ; }
sets the broadcast policy for a given board (don't need to be called twice).
sets the broadcast policy for a given board ( don ' t need to be called twice ) .