![]() |
FlxCard
|
Functions | |
| void | FlxCard::configure (std::string filename, bool do_links=true, bool do_registers=true) |
| void | FlxCard::readConfiguration (std::string filename) |
| void | FlxCard::read_configuration (std::string filename) |
| void | FlxCard::readConfiguration () |
| void | FlxCard::read_configuration () |
| u_int | FlxCard::number_of_elinks_tohost (int dma_index=-1) |
| u_int | FlxCard::number_of_elinks_toflx () |
| u_int | FlxCard::number_of_elinks_fromhost () |
| std::vector< flxcard::elink_descr_t > | FlxCard::elinks_tohost (int dma_index=-1) |
| std::vector< flxcard::elink_descr_t > | FlxCard::elinks_toflx () |
| std::vector< flxcard::elink_descr_t > | FlxCard::elinks_fromhost () |
| std::vector< flxcard::elink_descr_t > | FlxCard::elinks_toflx_broadcast () |
| std::vector< flxcard::elink_descr_t > | FlxCard::elinks_fromhost_broadcast () |
| u_int | FlxCard::number_of_dma_tohost () |
| bool | FlxCard::uses_dma_index_mask () |
| void | FlxCard::set_hdlc_instant_timeout (bool b) |
| bool | FlxCard::hdlc_instant_timeout () |
| unsigned int | FlxCard::link_mode () |
| bool | FlxCard::is_elink_enabled (u_int channel, u_int egroup, u_int epath, bool is_to_flx) |
| unsigned int | FlxCard::tohost_elink_dmaid (u_int channel, u_int egroup, u_int epath) |
| unsigned int | FlxCard::tohost_elink_dmaid (uint16_t elinknr) |
| bool | FlxCard::has_tohost_elink_streams (u_int channel, u_int egroup, u_int epath) |
| uint8_t | FlxCard::detector_id () |
| uint16_t | FlxCard::connector_id (uint16_t channel) |
| uint32_t | FlxCard::number_of_epaths_per_egroup (bool to_flx=false) |
| uint32_t | FlxCard::number_of_egroups (bool to_flx=false) |
| uint16_t | FlxCard::elink_number (uint32_t channel, uint32_t egroup, uint32_t epath, bool to_flx=false) |
| uint16_t | FlxCard::channel_number (uint32_t elinknr) |
| uint16_t | FlxCard::link_number (uint32_t elinknr) |
| uint16_t | FlxCard::egroup_number (uint32_t elinknr, bool to_flx=false) |
| uint16_t | FlxCard::epath_number (uint32_t elinknr, bool to_flx=false) |
Functions pertaining to configuration of an FLX device and its (e-)links
| void FlxCard::configure | ( | std::string | filename, |
| bool | do_links = true, | ||
| bool | do_registers = true ) |
Reads a FELIX device (e-)link configuration -plus additional register settings, if any- from a .yelc configuration file, stores it in a member structure, and writes the configuration to this FELIX device (or -optionally- not, and/or optionally skipping any register settings present in the file).
| void FlxCard::readConfiguration | ( | std::string | filename | ) |
Reads a FELIX device (e-)link configuration -plus additional register settings, if any- from a .yelc file, and stores it in a member structure.
| void FlxCard::readConfiguration | ( | ) |
Reads a FELIX device (e-)link configuration from this FELIX device and stores it in a member structure. Leaves any stored additional register settings untouched.
| u_int FlxCard::number_of_elinks_tohost | ( | int | dma_index = -1 | ) |
Returns the number of enabled ToHost e-link numbers of this FELIX device, optionally only those assigned to the given DMA index.
| u_int FlxCard::number_of_elinks_toflx | ( | ) |
Returns the number of enabled FromHost e-link numbers of this FELIX device, including TTC-type e-links.
| std::vector< flxcard::elink_descr_t > FlxCard::elinks_tohost | ( | int | dma_index = -1 | ) |
Returns a list of the enabled ToHost e-link numbers of this FELIX device, optionally only those assigned to the given DMA index.
| std::vector< flxcard::elink_descr_t > FlxCard::elinks_toflx | ( | ) |
Returns a list of the enabled FromHost e-link numbers of this FELIX device, not including TTC-type e-links.
|
inline |
Returns the number of ToHost DMA descriptors of this FELIX device.
|
inline |
Returns true if this FELIX device uses a DMA index bitmask for its e-links, rather than a single DMA index number.
| unsigned int FlxCard::link_mode | ( | ) |
Returns the link mode, defined in LinkConfig.h
| bool FlxCard::is_elink_enabled | ( | u_int | channel, |
| u_int | egroup, | ||
| u_int | epath, | ||
| bool | is_to_flx ) |
Returns true if the e-link is enabled.
| unsigned int FlxCard::tohost_elink_dmaid | ( | u_int | channel, |
| u_int | egroup, | ||
| u_int | epath ) |
Returns the DMA id assigned to the given e-link
| unsigned int FlxCard::tohost_elink_dmaid | ( | uint16_t | elinknr | ) |
Returns the DMA id assigned to the given e-link
| bool FlxCard::has_tohost_elink_streams | ( | u_int | channel, |
| u_int | egroup, | ||
| u_int | epath ) |
Returns true if the e-link is enabled.
| uint8_t FlxCard::detector_id | ( | ) |
Returns -1 if the VALID bit is not set.
| uint16_t FlxCard::connector_id | ( | uint16_t | channel | ) |
Returns the connector number from 0 to 3 if the register is not set
| channel | the channel number to resolve the connector ID in case of an FLX-155 card with more than 24 links. |