ADM-XRC SDK 2.8.1 User Guide (Linux)
© Copyright 2001-2009 Alpha Data
Prototype
ADMXRC_STATUS ADMXRC_GetBaseAddress( ADMXRC_HANDLE Card, void** BaseAddress);
Arguments
Argument | Type | Purpose |
Card | In | The handle of the card whose base address is required |
Image | Out | Variable to receive a pointer to the FPGA space |
Return value
Value | Meaning |
ADMXRC_SUCCESS | The address of the FPGA space was returned successfully. |
ADMXRC_INVALID_HANDLE | Card was not a valid card handle |
Description
This function returns a pointer by which the application may access the FPGA using direct slave local bus cycles.
The BaseAddress parameter must point to a variable of type void* that is filled in with the base address (in the application's address space) of the FPGA space.
Closing a card using ADMXRC_CloseCard will cause the FPGA space to be unmapped from the application's address space. Any threads attempting to access FPGA space after the call to ADMXRC_CloseCard will subsequently access invalid virtual addresses, resulting in an access violation. This cannot crash the system but is generally fatal to an application.