co_error co_register_read(co_register reg, void *buffer, size_t buffersize); Header Fileco.h DescriptionThis function reads a data value from a register object and copies the value to a local memory. This function must be called from within a process run function. ArgumentsThe arguments for co_register_read are as follows:
Return ValueIf the operation is successful, the function returns co_err_none and sets co_errno to CO_ENOERROR. In case of error, it returns co_err_invalid_arg and sets the co_errno variable accordingly; co_errno is set to CO_ENULL_PTR if the reg argument is NULL or to CO_EINVALID_REGISTER_WIDTH if the register is smaller than 32 bits. |