EDT PCD SDK Documentation 6.1.0
|
Functions | |
int | edt_get_board_description (EdtDev edt_p, int force_mezzanine) |
Get board description. More... | |
void | edt_print_board_description (EdtDev edt_p) |
Prints all known fields from an EdtDev device. More... | |
const char * | edt_mezz_name (int mezz_id) |
Get identifier for board associated with mezz_id. More... | |
int | edt_is_test_file_loaded (EdtDev edt_p) |
Check the current bitfile to see if it's a test file. More... | |
int | edt_read_option_string (EdtDev edt_p) |
Read a new-type option string from the FPGA and copy it into the EDT device handle's internal bitfile descriptor. More... | |
int | edt_parse_option_string (char *s, EdtBitfileDescriptor *bfd) |
Parse option string and populate fields in bitfile descriptor. More... | |
const EdtBitfileDescriptor * | edt_bitfile_get_descriptor (EdtDev edt_p) |
Get read-only access to the EdtBitfileDescriptor structure in the device handle. More... | |
const EdtMezzDescriptor * | edt_bitfile_get_mezz_descriptor (EdtDev edt_p) |
Get read-only access to the EdtMezzDescriptor structure in the device handle. More... | |
const char * | edt_bitfile_option_string (EdtDev edt_p) |
Get the last EdtBitfileDescriptor.optionstr read from device. More... | |
uint16_t | edt_bitfile_revision (EdtDev edt_p) |
Get the last bitfile EdtBitfileDescriptor.revision_register value read from device. More... | |
int edt_get_board_description | ( | EdtDev | edt_p, |
int | force_mezzanine | ||
) |
Get board description.
This attempts to learn as much as possible about the board referred to by edt_p. If the bitfile that's loaded has an option string defined, fill it in and parse its fields if possible. If edt_p is not channel 0, channel 0 is opened, examined, and its fields copied to edt_p. The bfd structure within the EdtDev structure is filled in as much as possible.
edt_p | The open EDT device handle. |
force_mezzanine | Attempt to load a bitfile to characterize the mezzanine board if no bitfile is loaded. |
void edt_print_board_description | ( | EdtDev | edt_p | ) |
Prints all known fields from an EdtDev device.
edt_p | The open EDT device handle. |
const char * edt_mezz_name | ( | int | mezz_id | ) |
Get identifier for board associated with mezz_id.
mezz_id | The mezzanine id returned by edt_get_board_id. |
int edt_is_test_file_loaded | ( | EdtDev | edt_p | ) |
Check the current bitfile to see if it's a test file.
edt_p | The open EDT device handle. |
int edt_read_option_string | ( | EdtDev | edt_p | ) |
Read a new-type option string from the FPGA and copy it into the EDT device handle's internal bitfile descriptor.
EdtBitfileDescriptor.optionstr and EdtBitfileDescriptor.revision_register members.
edt_p | The open EDT device handle. |
int edt_parse_option_string | ( | char * | s, |
EdtBitfileDescriptor * | bfd | ||
) |
Parse option string and populate fields in bitfile descriptor.
s | Option string. |
bfd | Bitfile descriptor to populate. |
const EdtBitfileDescriptor * edt_bitfile_get_descriptor | ( | EdtDev | edt_p | ) |
Get read-only access to the EdtBitfileDescriptor structure in the device handle.
edt_p | The open EDT device handle. |
const EdtMezzDescriptor * edt_bitfile_get_mezz_descriptor | ( | EdtDev | edt_p | ) |
Get read-only access to the EdtMezzDescriptor structure in the device handle.
edt_p | The open EDT device handle. |
const char * edt_bitfile_option_string | ( | EdtDev | edt_p | ) |
Get the last EdtBitfileDescriptor.optionstr read from device.
edt_p | The open EDT device handle. |
uint16_t edt_bitfile_revision | ( | EdtDev | edt_p | ) |
Get the last bitfile EdtBitfileDescriptor.revision_register value read from device.
edt_p | The open EDT device handle. |