#include <memory.h>
#include <string.h>
#include "cvt_board_commons.h"
Go to the source code of this file.
Functions | |
BOOL | cvt_board_open (cvt_board_data *p_data, UINT16 base_address, long vme_handle, const cvt_reg_table *p_reg_table) |
Basic board open. | |
BOOL | cvt_board_close (cvt_board_data *p_data) |
Basic board close. | |
BOOL | cvt_write (cvt_board_data *p_data, UINT16 address, const void *p_value, CVAddressModifier am, CVDataWidth data_size) |
Writes a register onto VME board. | |
BOOL | cvt_read (cvt_board_data *p_data, UINT16 address, void *p_value, CVAddressModifier am, CVDataWidth data_size) |
Reads a register from VME board. | |
BOOL | cvt_set_bitmask (cvt_board_data *p_data, UINT16 address, void *p_value, CVAddressModifier am, CVDataWidth data_size) |
Sets bitmask onto VME board register. | |
BOOL | cvt_clear_bitmask (cvt_board_data *p_data, UINT16 address, void *p_value, CVAddressModifier am, CVDataWidth data_size) |
Clears bitmask onto VME board register. | |
BOOL | cvt_FIFO_BLT_read (cvt_board_data *p_data, UINT16 address, void *p_buffer, UINT32 buffer_size, UINT32 *p_read_bytes, CVAddressModifier am, CVDataWidth data_size) |
Performs a FIFO BLT read from VME board. | |
BOOL | cvt_write_reg (cvt_board_data *p_data, UINT16 reg_index, const void *p_value) |
Writes a register onto VME board. | |
BOOL | cvt_read_reg (cvt_board_data *p_data, UINT16 reg_index, void *p_value) |
Reads a register from VME board. | |
BOOL | cvt_set_bitmask_reg (cvt_board_data *p_data, UINT16 reg_index, void *p_value) |
Sets bitmask onto VME board register. | |
BOOL | cvt_clear_bitmask_reg (cvt_board_data *p_data, UINT16 reg_index, void *p_value) |
Clears bitmask onto VME board register. | |
BOOL | cvt_FIFO_BLT_read_reg (cvt_board_data *p_data, UINT16 reg_index, void *p_buffer, UINT32 buffer_size, UINT32 *p_read_bytes) |
Performs a FIFO BLT read from VME board. | |
BOOL | cvt_set_MCST_CBLT (UINT8 address, cvt_board_data **board_array, UINT16 board_array_len) |
Setups MCST/CBLT parameters for a group of boards. | |
const char * | cvt_SW_rev (void) |
Returns library software release. |
Definition in file cvt_board_commons.c.
|
Basic board close. Provides basic handling for board closing, common to all the boards.
Definition at line 60 of file cvt_board_commons.c. References TRUE. Referenced by cvt_V1190_close(), cvt_V1495_close(), cvt_V1724_close(), cvt_V792_close(), and cvt_V812_close(). |
|
Basic board open. Provides basic handling for board opening, common to all the boards.
Definition at line 46 of file cvt_board_commons.c. References cvt_board_data::m_base_address, cvt_board_data::m_p_reg_table, cvt_board_data::m_vme_handle, and TRUE. Referenced by cvt_V1190_open(), cvt_V1495_open(), cvt_V1724_open(), cvt_V792_open(), and cvt_V812_open(). |
|
Clears bitmask onto VME board register. Reads the actual register value, ANDs it with the complementary bitmask and write back to the register.
Definition at line 152 of file cvt_board_commons.c. References cvt_read(), cvt_write(), FALSE, and TRUE. Referenced by cvt_clear_bitmask_reg(), cvt_V1190_clear_bitmask_control(), and cvt_V792_clear_bitmask_control_1(). |
|
Clears bitmask onto VME board register. Reads the actual register value, ANDs it with the complementary bitmask and write back to the register. Register address, address modifier and data size will setted according to the specific board register table
Definition at line 242 of file cvt_board_commons.c. References cvt_clear_bitmask(), cvt_reg_table::m_address, cvt_reg_table::m_am, cvt_reg_table::m_data_size, and cvt_board_data::m_p_reg_table. Referenced by cvt_V1190_set_readout_mode(), cvt_V1190_set_trigger_matching_acquisition_mode(), cvt_V1724_set_readout_mode(), cvt_V792_set_channel_enable(), cvt_V792_set_readout_mode(), and cvt_V792_set_thresholds(). |
|
Performs a FIFO BLT read from VME board. Reads a buffer of value at relative address, with specific address modifier and data size in FIFO BLT mode
Definition at line 198 of file cvt_board_commons.c. References FALSE, cvt_board_data::m_base_address, cvt_board_data::m_vme_handle, TRACE, and TRUE. Referenced by cvt_FIFO_BLT_read_reg(), cvt_V1190_read_MEB(), and cvt_V792_read_MEB(). |
|
Performs a FIFO BLT read from VME board. Reads a buffer of register values specified by register index. Register address, address modifier and data size will setted according to the specific board register table
Definition at line 250 of file cvt_board_commons.c. References cvt_FIFO_BLT_read(), cvt_reg_table::m_address, cvt_reg_table::m_am, cvt_reg_table::m_data_size, and cvt_board_data::m_p_reg_table. Referenced by cvt_V1724_read_buffer(). |
|
Reads a register from VME board. Reads a value at relative address, with specific address modifier and data size
Definition at line 90 of file cvt_board_commons.c. References FALSE, cvt_board_data::m_base_address, cvt_board_data::m_vme_handle, TRACE, and TRUE. Referenced by cvt_clear_bitmask(), cvt_read_reg(), and cvt_set_bitmask(). |
|
|
Sets bitmask onto VME board register. Reads the actual register value, ORs it with the bitmask and write back to the register.
Definition at line 106 of file cvt_board_commons.c. References cvt_read(), cvt_write(), FALSE, and TRUE. Referenced by cvt_set_bitmask_reg(), cvt_V1190_set_bitmask_control(), and cvt_V792_set_bitmask_control_1(). |
|
Sets bitmask onto VME board register. Reads the actual register value, ORs it with the bitmask and write back to the register. Register address, address modifier and data size will setted according to the specific board register table
Definition at line 234 of file cvt_board_commons.c. References cvt_set_bitmask(), cvt_reg_table::m_address, cvt_reg_table::m_am, cvt_reg_table::m_data_size, and cvt_board_data::m_p_reg_table. Referenced by cvt_V1190_set_readout_mode(), cvt_V1190_set_trigger_matching_acquisition_mode(), cvt_V1724_set_dither_enable(), cvt_V1724_set_readout_mode(), cvt_V792_set_readout_mode(), and cvt_V792_set_thresholds(). |
|
Setups MCST/CBLT parameters for a group of boards. Setups the relevant parameters for MCST/CBLT usage for a collection of boards.
Definition at line 264 of file cvt_board_commons.c. References FALSE, MCST_CBLT_board_pos_first, MCST_CBLT_board_pos_last, MCST_CBLT_board_pos_mid, TRACE1, and TRUE. |
|
Returns library software release.
Definition at line 292 of file cvt_board_commons.c. |
|
Writes a register onto VME board. Writes a value at relative address, with specific address modifier and data size
Definition at line 74 of file cvt_board_commons.c. References FALSE, cvt_board_data::m_base_address, cvt_board_data::m_vme_handle, TRACE, and TRUE. Referenced by cvt_clear_bitmask(), cvt_set_bitmask(), cvt_V1724_read_buffer(), and cvt_write_reg(). |
|
Writes a register onto VME board. Writes a value to a register specified by register index. Register address, address modifier and data size will setted according to the specific board register table
Definition at line 218 of file cvt_board_commons.c. References cvt_write(), cvt_reg_table::m_address, cvt_reg_table::m_am, cvt_reg_table::m_data_size, and cvt_board_data::m_p_reg_table. Referenced by cvt_V1190_data_clear(), cvt_V1190_module_reset(), cvt_V1190_set_almost_full(), cvt_V1190_set_interrupt(), cvt_V1190_set_MCST_CBLT(), cvt_V1190_set_readout_mode(), cvt_V1495_set_control(), cvt_V1495_set_port_A_enable(), cvt_V1495_set_port_B_enable(), cvt_V1495_set_port_D_enable(), cvt_V1724_data_clear(), cvt_V1724_set_acquisition_mode(), cvt_V1724_set_channel_trigger(), cvt_V1724_set_interrupt(), cvt_V1724_set_MCST_CBLT(), cvt_V1724_set_readout_mode(), cvt_V1724_set_trigger_mode(), cvt_V1724_software_reset(), cvt_V1724_software_trigger(), cvt_V792_data_clear(), cvt_V792_set_acquisition_mode(), cvt_V792_set_ader_high(), cvt_V792_set_ader_low(), cvt_V792_set_bit_clear_1(), cvt_V792_set_bit_clear_2(), cvt_V792_set_bit_set_1(), cvt_V792_set_bit_set_2(), cvt_V792_set_control_1(), cvt_V792_set_crate_number(), cvt_V792_set_event_counter(), cvt_V792_set_event_trigger(), cvt_V792_set_fast_clear_window(), cvt_V792_set_geo_address(), cvt_V792_set_interrupt(), cvt_V792_set_interrupt_level(), cvt_V792_set_interrupt_vector(), cvt_V792_set_MCST_CBLT(), cvt_V792_set_MCST_CBLT_address(), cvt_V792_set_MCST_CBLT_control(), cvt_V792_set_MEB(), cvt_V792_set_overflow_suppression(), cvt_V792_set_pedestal(), cvt_V792_set_sliding_scale(), cvt_V792_set_threshold(), cvt_V792_set_zero_suppression(), cvt_V792_single_shot_reset(), cvt_V792_software_reset(), cvt_V812_set_dead_time(), cvt_V812_set_majority_threshold(), cvt_V812_set_output_width(), cvt_V812_set_pattern_inhibit(), cvt_V812_set_test_pulse(), cvt_V812_set_threshold(), and vme_board_1190_write_2_micro(). |