co_error co_register_write(co_register reg, const void *buffer, size_t buffersize); Header Fileco.h DescriptionThis function writes a data value from a local variable to a register object. This function must be called from within a process run function. ArgumentsThe arguments for co_register_write are as follows:
Return ValueReturns co_err_none on success. Returns co_invalid_arg if the reg argument is NULL (co_errno: CO_ENULL_PTR) or the register is smaller than buffersize bytes (CO_EINVALID_REGISTER_WIDTH). |