CO_REGISTER_WRITE


 co_error co_register_write(co_register reg,                            const void *buffer,                            size_t buffersize); 

Header File

co.h

Description

This function writes a data value from a local variable to a register object. This function must be called from within a process run function.

Arguments

The arguments for co_register_write are as follows:

co_register reg

A pointer to a register object as passed on the process argument list.

const void *buffer

A pointer to the source memory. (The source is typically an integer variable.)

size_t buffersize

The number of bytes to transfer in the write operation.


Return Value

Returns 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).



    Practical FPGA Programming in C
    Practical FPGA Programming in C
    ISBN: 0131543180
    EAN: 2147483647
    Year: 2005
    Pages: 208

    Similar book on Amazon

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net