co_register co_register_create(const char *name,                                co_type type); 

Header File



This function creates a register object. This function must be called from within the configuration function of your application.


The arguments for co_register_create are as follows:

const char *name

A programmer-defined name. This name may be any text string. It is used to identify the register externally, such as when using the Application Monitor.

co_type type

The type of the register. The type is normally expressed as a signed or unsigned integer of a specific width using the INT_TYPE(n), UINT_TYPE(n), or CHAR_TYPE macros.

Return Value

A pointer to the created register. This return value may subsequently be used as an argument to function co_process_create. It returns NULL and sets co_errno to CO_ENOERROR if the type argument is NULL.


Register names, as specified in the first argument to co_register_create, must be unique across the application when using the Application Monitor.

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

    Similar book on Amazon © 2008-2017.
    If you may any questions please contact us: