#include <stdio.h>
#include "cvt_common_defs.h"
#include "CAENVMELib/CAENVMElib.h"
#include "CAENVMELib/CAENVMEoslib.h"
#include "CAENVMELib/CAENVMEtypes.h"
Go to the source code of this file.
Data Structures | |
| struct | cvt_reg_table |
| Board register table entry. More... | |
| struct | cvt_board_data |
| Data common to every board. More... | |
Defines | |
| #define | CVT_BOARD_EVENT_COUNT_MSK 0x003fffff |
| event count msk : maximum count mask to be compliant with all the board | |
Enumerations | |
| enum | MCST_CBLT_board_pos { MCST_CBLT_board_pos_first = 0, MCST_CBLT_board_pos_mid, MCST_CBLT_board_pos_last, MCST_CBLT_board_disabled } |
| Board position in MCST/CBLT chain. More... | |
Functions | |
| UINT8 | cvt_ror_bits (UINT8 data, int num_bits) |
| Perfoms a num_bits bitwise right rotation of data byte. | |
| UINT8 | cvt_swap_bits (UINT8 data) |
| Swaps the bits of the source byte. | |
| void | cvt_delay (int msec) |
| Waits for specified time. | |
| 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, BOOL *p_is_berr) |
| 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, BOOL *p_is_berr) |
| 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.h.
|
|
Board position in MCST/CBLT chain.
Definition at line 50 of file cvt_board_commons.h. |
|
|
Basic board close. Provides basic handling for board closing, common to all the boards.
Definition at line 158 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 144 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 250 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 342 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_erase_flash_page(), cvt_V1724_read_flash_page(), cvt_V1724_set_readout_mode(), cvt_V1724_stop_acquisition(), cvt_V1724_write_flash_page(), cvt_V792_set_channel_enable(), cvt_V792_set_readout_mode(), and cvt_V792_set_thresholds(). |
|
|
Waits for specified time.
Definition at line 62 of file cvt_board_commons.c. |
|
||||||||||||||||||||||||||||||||||||
|
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 296 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(), cvt_V1724_read_data(), 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 350 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. |
|
||||||||||||||||||||||||
|
Reads a register from VME board. Reads a value at relative address, with specific address modifier and data size
Definition at line 188 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(). |
|
||||||||||||||||
|
||||||||||||
|
Perfoms a num_bits bitwise right rotation of data byte.
Definition at line 36 of file cvt_board_commons.c. |
|
||||||||||||||||||||||||
|
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 204 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 334 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_erase_flash_page(), cvt_V1724_set_acquisition_mode(), cvt_V1724_set_adc_conf(), cvt_V1724_set_dither_enable(), cvt_V1724_set_readout_mode(), cvt_V1724_start_acquisition(), 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 364 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 392 of file cvt_board_commons.c. |
|
|
Swaps the bits of the source byte.
Definition at line 48 of file cvt_board_commons.c. Referenced by cvt_V1724_fw_upgrade(). |
|
||||||||||||||||||||||||
|
Writes a register onto VME board. Writes a value at relative address, with specific address modifier and data size
Definition at line 172 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(), 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 318 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_erase_flash_page(), cvt_V1724_read_flash_page(), cvt_V1724_set_acquisition_mode(), cvt_V1724_set_channel_trigger(), cvt_V1724_set_front_panel_IO(), 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_V1724_start_acquisition(), cvt_V1724_write_flash_page(), 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(), vme_board_1190_read_from_micro(), and vme_board_1190_write_2_micro(). |
1.4.6-NO