[][src]Function linuxcnc_hal_sys::hal_param_set

pub unsafe extern "C" fn hal_param_set(
    name: *const c_char,
    type_: hal_type_t,
    value_addr: *mut c_void
) -> c_int

'hal_param_set()' is a generic function that sets the value of a parameter. It is provided ONLY for those special cases where a generic function is needed. It is STRONGLY recommended that the functions above be used instead, because they are simpler and less prone to errors. 'name', is the same as in the functions above. 'type' is the hal type of the the data at *value_addr, and must match the type of the parameter. The parameter must not be read only. 'value_addr' is a pointer to the new value of the parameter. The data at that location will be interpreted according to the type of the parameter. If successful, hal_param_set() returns 0. On failure it returns a negative error code.