Go to the source code of this file.
Functions | |
int | CloseReg32 (void) |
Optional: Close the VisualApplets register interface. | |
int | OpenReg32 (void) |
Optional: Open the VisualApplets register interface. | |
int | ReadReg32 (unsigned long address, unsigned long *value) |
Read a 32bit register from a VisualApplet FPGA design. | |
int | WriteReg32 (unsigned long address, unsigned long value) |
Write a 32bit value to a VisualApplet FPGA design register. |
int CloseReg32 | ( | void | ) |
Optional: Close the VisualApplets register interface.
This is an optional function that may be called to close the internally used file descriptor to the regsiter driver. (which is accessed through /dev/fpgapi). This may be useful when the user want's to have control over register access from concurrently running applications. By default Linux closes the opened file descpriptor when the application process terminates.
int OpenReg32 | ( | void | ) |
Optional: Open the VisualApplets register interface.
This is an optional function that may be called to control the point of time where this interface should open the register driver (which is accessed through /dev/fpgapi). This may be useful when the user want's to have control over register access from concurrently running applications. By default the first call to ReadReg32() or WriteReg32() tries to open the driver interface automatically.
int ReadReg32 | ( | unsigned long | address, | |
unsigned long * | value | |||
) |
Read a 32bit register from a VisualApplet FPGA design.
address | specifies the register address in the VisualApplets register address space (starting at 0) | |
value | pointer to 32bit variable to hold the result |
int WriteReg32 | ( | unsigned long | address, | |
unsigned long | value | |||
) |
Write a 32bit value to a VisualApplet FPGA design register.
address | specifies the register address in the VisualApplets register address space (starting at 0) | |
value | 32bit value to be written to the register |