CO_REGISTER_GET


 int32 co_register_get(co_register reg); 

Header File

co.h

Description

This function reads the contents of a register. This function must be called from within a process run function.

Arguments

The argument for co_register_get is as follows:

co_register reg

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


Return Value

The value of the register is returned as a 32-bit integer. If the register is wider than 32 bits, the least-significant 32 bits of data are returned as an integer. If the register is smaller than 32 bits, the integer value of the data in the register is returned.



    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