|
ALTRO instructions
|
Enumerations |
enum | ALTRO_Code {
ALTRO_K1,
ALTRO_K2,
ALTRO_K3,
ALTRO_L1,
ALTRO_L2,
ALTRO_L3,
ALTRO_VFPED,
ALTRO_PMDTA,
ALTRO_ZSTHR,
ALTRO_BCTHR,
ALTRO_TRCFG,
ALTRO_DPCFG,
ALTRO_BFNPT,
ALTRO_PMADD,
ALTRO_dummy_0e,
ALTRO_dummy_0f,
ALTRO_ERSTR,
ALTRO_ADEVL,
ALTRO_TRCNT,
ALTRO_dummy_13,
ALTRO_dummy_14,
ALTRO_dummy_15,
ALTRO_dummy_16,
ALTRO_dummy_17,
ALTRO_WPINC,
ALTRO_RPINC,
ALTRO_CHRDO,
ALTRO_SWTRG,
ALTRO_TRCLR,
ALTRO_ERCLR
} |
Functions |
u_int | RCUC_ALTRO_encode (u_int instr) |
u_int | RCUC_BROADCAST_encode () |
u_int | RCUC_LOCAL_encode (u_int chip, u_int ch) |
u_int | RCUC_CHIP_encode (u_int chip) |
u_int | RCUC_CHANNEL_encode (u_int ch) |
u_int | RCUC_ALTRO_K_read_encode (u_short which, u_int address) |
u_int | RCUC_ALTRO_K_write_encode (u_short which, u_int address, u_int data) |
u_int | RCUC_ALTRO_L_read_encode (u_short which, u_int address) |
u_int | RCUC_ALTRO_L_write_encode (u_short which, u_int address, u_int data) |
u_int | RCUC_ALTRO_VFPED_read_encode (u_int addr) |
u_int | RCUC_ALTRO_VFPED_write_encode (u_int addr, u_int data) |
u_int | RCUC_ALTRO_PMDTA_read_encode (u_int addr) |
u_int | RCUC_ALTRO_PMDTA_write_encode (u_int addr, u_int data) |
u_int | RCUC_ALTRO_ZSTHR_read_encode (u_int addr) |
u_int | RCUC_ALTRO_ZSTHR_write_encode (u_int addr, u_int off, u_int thr) |
u_int | RCUC_ALTRO_BCTHR_read_encode (u_int addr) |
u_int | RCUC_ALTRO_BCTHR_write_encode (u_int addr, u_int high, u_int low) |
u_int | RCUC_ALTRO_TRCFG_read_encode (u_int addr) |
u_int | RCUC_ALTRO_TRCFG_write_encode (u_int addr, u_int start, u_int end) |
u_int | RCUC_ALTRO_DPCFG_read_encode (u_int addr) |
u_int | RCUC_ALTRO_DPCFG_write_encode (u_int addr, u_int invert, u_int first_bl, u_int second_bl, u_int zero_sup) |
u_int | RCUC_ALTRO_FIRST_BASELINE_encode (u_int mode) |
u_int | RCUC_ALTRO_SECOND_BASELINE_encode (u_int pre, u_int post) |
u_int | RCUC_ALTRO_ZERO_SUPPRESSION_encode (u_int conf, u_int post, u_int pre) |
u_int | RCUC_ALTRO_BFNPT_read_encode (u_int addr) |
u_int | RCUC_ALTRO_BFNPT_write_encode (u_int addr, u_int pretrigger, u_int bufsize, u_int filter, u_int powersave) |
u_int | RCUC_ALTRO_PMADD_read_encode (u_int addr) |
u_int | RCUC_ALTRO_PMADD_write_encode (u_int addr, u_int data) |
u_int | RCUC_ALTRO_ERSTR_read_encode (u_int addr) |
u_int | RCUC_ALTRO_ADEVL_read_encode (u_int chip, u_int ch) |
u_int | RCUC_ALTRO_TRCNT_read_encode (u_int addr) |
u_int | RCUC_ALTRO_WPINC_cmd_encode (u_int addr) |
u_int | RCUC_ALTRO_RPINC_cmd_encode (u_int addr) |
u_int | RCUC_ALTRO_CHRDO_cmd_encode (u_int chip, u_int ch) |
u_int | RCUC_ALTRO_SWTRG_cmd_encode (u_int addr) |
u_int | RCUC_ALTRO_TRCLR_cmd_encode (u_int addr) |
u_int | RCUC_ALTRO_ERCLR_cmd_encode (u_int addr) |
Enumeration Type Documentation
|
ALTRO instruction codes.
- Enumeration values:
-
ALTRO_K1 |
0x0 |
ALTRO_K2 |
0x01 |
ALTRO_K3 |
0x02 |
ALTRO_L1 |
0x03 |
ALTRO_L2 |
0x04 |
ALTRO_L3 |
0x05 |
ALTRO_VFPED |
0x06 |
ALTRO_PMDTA |
0x07 |
ALTRO_ZSTHR |
0x08 |
ALTRO_BCTHR |
0x09 |
ALTRO_TRCFG |
0x0A |
ALTRO_DPCFG |
0x0B |
ALTRO_BFNPT |
0x0C |
ALTRO_PMADD |
0x0D |
ALTRO_dummy_0e |
0x0E |
ALTRO_dummy_0f |
0x0F |
ALTRO_ERSTR |
0x10 |
ALTRO_ADEVL |
0x11 |
ALTRO_TRCNT |
0x12 |
ALTRO_dummy_13 |
0x13 |
ALTRO_dummy_14 |
0x14 |
ALTRO_dummy_15 |
0x15 |
ALTRO_dummy_16 |
0x16 |
ALTRO_dummy_17 |
0x17 |
ALTRO_WPINC |
0x18 |
ALTRO_RPINC |
0x19 |
ALTRO_CHRDO |
0x1A |
ALTRO_SWTRG |
0x1B |
ALTRO_TRCLR |
0x1C |
ALTRO_ERCLR |
0x1D |
|
Function Documentation
u_int RCUC_ALTRO_ADEVL_read_encode |
( |
u_int |
chip, |
|
|
u_int |
ch |
|
) |
|
|
|
Encode an ALTRO ADEVL_read instruction.
Read the address and event length of one ALTRO channel into the RCU result memory. - Parameters:
-
chip | The ALTRO chip to read from |
ch | The channel of the ALTRO chip to read from |
- Returns:
- The partially compiled instruction
|
u_int RCUC_ALTRO_BCTHR_read_encode |
( |
u_int |
addr |
) |
|
|
|
Encode an ALTRO BCTHR_read instruction.
Read the second baseline correction registers of one or all ALTRO chips into the RCU result memory. - Parameters:
-
addr | The ALTRO chip to read from (possibly all) |
- Returns:
- The partially compiled instruction
|
u_int RCUC_ALTRO_BCTHR_write_encode |
( |
u_int |
addr, |
|
|
u_int |
high, |
|
|
u_int |
low |
|
) |
|
|
|
Encode an ALTRO BCTHR_write instruction.
Write the second base line configuration into one or all ALTRO chips. - Parameters:
-
addr | ALTRO chip to write to |
high | High threshold |
low | Low threshold |
- Returns:
- The partially compiled instruction
|
u_int RCUC_ALTRO_BFNPT_read_encode |
( |
u_int |
addr |
) |
|
|
|
Encode an ALTRO BFNPT_read instruction.
Read the second data path configuration of one or all ALTRO chips into the result memory of the RCU. - Parameters:
-
addr | The ALTRO chip to read from (possibly all) |
- Returns:
- The partially compiled instruction
|
u_int RCUC_ALTRO_BFNPT_write_encode |
( |
u_int |
addr, |
|
|
u_int |
pretrigger, |
|
|
u_int |
bufsize, |
|
|
u_int |
filter, |
|
|
u_int |
powersave |
|
) |
|
|
|
Encode an ALTRO BFNPT_write instruction.
Write the second data path configuration into one or all ALTRO chips. - Parameters:
-
addr | The ALTRO chip to write to (possibly all) |
pretrigger | How many samples to take before the trigger. |
bufsize | The buffer size (zero=4, and one=8). |
filter | Enable digital filter |
powersave | Enable powersave |
- Returns:
- The partially compiled instruction
|
u_int RCUC_ALTRO_CHRDO_cmd_encode |
( |
u_int |
chip, |
|
|
u_int |
ch |
|
) |
|
|
|
Encode an ALTRO CHRDO_read instruction.
- Parameters:
-
- Returns:
- The partially compiled instruction
|
u_int RCUC_ALTRO_DPCFG_read_encode |
( |
u_int |
addr |
) |
|
|
|
Encode an ALTRO DPCFG_read instruction.
Read the data path configuration of one or all ALTRO chips into the RCU result memory - Parameters:
-
addr | The ALTRO chip to read from (possibly all) |
- Returns:
- The partially compiled instruction
|
u_int RCUC_ALTRO_DPCFG_write_encode |
( |
u_int |
addr, |
|
|
u_int |
invert, |
|
|
u_int |
first_bl, |
|
|
u_int |
second_bl, |
|
|
u_int |
zero_sup |
|
) |
|
|
|
Encode an ALTRO DPCFG_write instruction.
Write the data path configuration into one or all ALTRO chips. - Parameters:
-
addr | The ALTRO chip to write to (possibly all) |
invert | If non-zero, invert the bits of the read-out data. |
first_bl | First baseline mode (see the ALTRO documentation) |
second_bl | Second baseline paameters (see the ALTRO documentation) |
zero_sup | Zero suppression parameters. (see the ALTRO documentation) |
- Returns:
- The partially compiled instruction
|
u_int RCUC_ALTRO_encode |
( |
u_int |
instr |
) |
|
|
|
Encode an ALTRO instruction.
This really puts two instructions into the instruction set: one for the instruction itself, and one for the data. - Parameters:
-
instr | The instruction to encode. The data is set by the other ALTRO encoding functions, and need not be passed here. |
- Returns:
- The partially compiled instruction
|
u_int RCUC_ALTRO_ERCLR_cmd_encode |
( |
u_int |
addr |
) |
|
|
|
Encode an ALTRO ERCLR_read instruction.
Clear the error register of one or all ALTRO chips. - Parameters:
-
addr | The ALTRO chip to send command to (possibly all) |
- Returns:
- The partially compiled instruction
|
u_int RCUC_ALTRO_ERSTR_read_encode |
( |
u_int |
addr |
) |
|
|
|
Encode an ALTRO ERSTR_read instruction.
Read the error register of one ALTRO chip into the result memory of the RCU - Parameters:
-
addr | The ALTRO chip to read from |
- Returns:
- The partially compiled instruction
|
u_int RCUC_ALTRO_FIRST_BASELINE_encode |
( |
u_int |
mode |
) |
|
|
|
Encode an ALTRO FIRST_BASELINE instruction.
- Parameters:
-
mode | The first baeline mode. A bit pattern of 4 bits. See the ALTRO documentation for the various configurations. |
- Returns:
- The partially compiled instruction
|
u_int RCUC_ALTRO_K_read_encode |
( |
u_short |
which, |
|
|
u_int |
address |
|
) |
|
|
|
Encode an ALTRO K_read instruction.
Encode an instruction to read the K1, K2, and K3 registers of one or all ALTRO chips. The result of the read is put in the result memory of the RCU chip. - Parameters:
-
which | Which of the K parameters to read (1,2, or 3) |
address | Which channel to read from (possibly all) |
- Returns:
- The partially compiled instruction
|
u_int RCUC_ALTRO_K_write_encode |
( |
u_short |
which, |
|
|
u_int |
address, |
|
|
u_int |
data |
|
) |
|
|
|
Encode an ALTRO K_write instruction.
Encode an instruction to write the K1, K2, and K3 registers of one or all ALTRO chips. - Parameters:
-
which | Which of the K parameters to write (1,2, or 3) |
address | Which channel to write to (possibly all) |
data | The value of the K parameter |
- Returns:
- The partially compiled instruction
|
u_int RCUC_ALTRO_L_read_encode |
( |
u_short |
which, |
|
|
u_int |
address |
|
) |
|
|
|
Encode an ALTRO L_read instruction.
Encode an instruction to read the L1, L2, and L3 registers of one or all ALTRO chips. The result of the read is put in the result memory of the RCU chip. - Parameters:
-
which | Which of the K parameters to read (1,2, or 3) |
address | Which channel to read from (possibly all) |
- Returns:
- The partially compiled instruction
|
u_int RCUC_ALTRO_L_write_encode |
( |
u_short |
which, |
|
|
u_int |
address, |
|
|
u_int |
data |
|
) |
|
|
|
Encode an ALTRO L_write instruction.
Encode an instruction to write the L1, L2, and L3 registers of one or all ALTRO chips. - Parameters:
-
which | Which of the K parameters to write (1,2, or 3) |
address | Which channel to write to (possibly all) |
data | The value of the K parameter |
- Returns:
- The partially compiled instruction
|
u_int RCUC_ALTRO_PMADD_read_encode |
( |
u_int |
addr |
) |
|
|
|
Encode an ALTRO PMADD_read instruction.
Read the address where pedestal data is at into the RCU result memory - Parameters:
-
addr | The ALTRO chip to read from (possibly all) |
- Returns:
- The partially compiled instruction
|
u_int RCUC_ALTRO_PMADD_write_encode |
( |
u_int |
addr, |
|
|
u_int |
data |
|
) |
|
|
|
Encode an ALTRO PMADD_write instruction.
Write the address of the pedestal memory to write across the pedestals. - Parameters:
-
addr | The ALTRO chip address (possibly all) |
data | The address where the pedestal memory should be read from. |
- Returns:
- The partially compiled instruction
|
u_int RCUC_ALTRO_PMDTA_read_encode |
( |
u_int |
addr |
) |
|
|
|
Encode an ALTRO PMDTA_read instruction.
Read the address of one or all ALTRO chips where they will fetch the pedestal values from. - Parameters:
-
addr | Address of the chip (possibly all) |
- Returns:
- The partially compiled instruction
|
u_int RCUC_ALTRO_PMDTA_write_encode |
( |
u_int |
addr, |
|
|
u_int |
data |
|
) |
|
|
|
Encode an ALTRO PMDTA_write instruction.
Write the address to one or all ALTRO chip(s) where it should read the pedestals from. - Parameters:
-
addr | Address of the ALTRO channel (possibly all) |
data | The address to read the pedestals from. |
- Returns:
- The partially compiled instruction
|
u_int RCUC_ALTRO_RPINC_cmd_encode |
( |
u_int |
addr |
) |
|
|
|
Encode an ALTRO RPINC_read instruction.
Increment the read pointer of one or all ALTRO chips. This releases one data buffer in the ALTRO's - Parameters:
-
addr | The ALTRO chip to read from (possibly all) |
- Returns:
- The partially compiled instruction
|
u_int RCUC_ALTRO_SECOND_BASELINE_encode |
( |
u_int |
pre, |
|
|
u_int |
post |
|
) |
|
|
|
Encode an ALTRO SECOND_BASELINE instruction.
Second baseline parameters. - Parameters:
-
pre | Number of pre-samples excluded from the second baseline correction. |
post | Number of post-samples excluded from the second baseline correction. |
- Returns:
- The partially compiled instruction
|
u_int RCUC_ALTRO_SWTRG_cmd_encode |
( |
u_int |
addr |
) |
|
|
|
Encode an ALTRO SWTRG_read instruction.
Make a software trigger. - Parameters:
-
addr | The ALTRO chip to send command to (possibly all) |
- Returns:
- The partially compiled instruction
|
u_int RCUC_ALTRO_TRCFG_read_encode |
( |
u_int |
addr |
) |
|
|
|
Encode an ALTRO TRCFG_read instruction.
Read the trigger configuration of one or all ALTRO chips into the RCU result memory. (possibly all) - Returns:
- The partially compiled instruction
|
u_int RCUC_ALTRO_TRCFG_write_encode |
( |
u_int |
addr, |
|
|
u_int |
start, |
|
|
u_int |
end |
|
) |
|
|
|
Encode an ALTRO TRCFG_write instruction.
Write the trigger configuration into one or all ALTRO chips. - Parameters:
-
addr | The ALTRO chip to write to (possibly all) |
start | Which time step to start sampling at |
end | Which time step to stop sampling at |
- Returns:
- The partially compiled instruction
|
u_int RCUC_ALTRO_TRCLR_cmd_encode |
( |
u_int |
addr |
) |
|
|
|
Encode an ALTRO TRCLR_read instruction.
Clear the trigger counter of one or all ALTRO chips. - Parameters:
-
addr | The ALTRO chip to send command to (possibly all) |
- Returns:
- The partially compiled instruction
|
u_int RCUC_ALTRO_TRCNT_read_encode |
( |
u_int |
addr |
) |
|
|
|
Encode an ALTRO TRCNT_read instruction.
Read the trigger counter register of one or all ALTRO chips into the RCU result memory - Parameters:
-
addr | The ALTRO chip to read from (possibly all) |
- Returns:
- The partially compiled instruction
|
u_int RCUC_ALTRO_VFPED_read_encode |
( |
u_int |
addr |
) |
|
|
|
Encode an ALTRO VFPED_read instruction.
Read the variable and fixed pedestal register(s) of one or all ALTRO into the result memory of the RCU. - Parameters:
-
addr | ALTRO address to read from (possibly all) |
- Returns:
- The partially compiled instruction
|
u_int RCUC_ALTRO_VFPED_write_encode |
( |
u_int |
addr, |
|
|
u_int |
data |
|
) |
|
|
|
Encode an ALTRO VFPED_write instruction.
Write the fixed pedestal into the ALTRO memory of one or all chips. - Parameters:
-
addr | ALTRO chip address (possibly all) |
data | The value of the fixed pedestal. |
- Returns:
- The partially compiled instruction
|
u_int RCUC_ALTRO_WPINC_cmd_encode |
( |
u_int |
addr |
) |
|
|
|
Encode an ALTRO WPINC_read instruction.
Increment the write pointer of one or all ALTRO chips. This is equivilant to a Level 2 trigger - Parameters:
-
addr | The ALTRO chip to read from (possibly all) |
- Returns:
- The partially compiled instruction
|
u_int RCUC_ALTRO_ZERO_SUPPRESSION_encode |
( |
u_int |
conf, |
|
|
u_int |
post, |
|
|
u_int |
pre |
|
) |
|
|
|
Encode an ALTRO ZERO_SUPPRESSION instruction.
Zero suppression parameters - Parameters:
-
conf | Glitch filter configuration of the zero suppression. This is a pattern of 2 bits. See the ALTRO documentation for the various configurations. |
post | Number of post-samples excluded from the zero suppression. |
pre | Number of post-samples excluded from the zero suppression. |
- Returns:
- The partially compiled instruction
|
u_int RCUC_ALTRO_ZSTHR_read_encode |
( |
u_int |
addr |
) |
|
|
|
Encode an ALTRO ZSTHR_read instruction.
Read the zero suppression register of one or all ALTRO chips into the result memory of the RCU. - Parameters:
-
addr | ALTRO chip to read from (possibly all) |
- Returns:
- The partially compiled instruction
|
u_int RCUC_ALTRO_ZSTHR_write_encode |
( |
u_int |
addr, |
|
|
u_int |
off, |
|
|
u_int |
thr |
|
) |
|
|
|
Encode an ALTRO ZSTHR_write instruction.
Write the zero suppression registers into one or all ALTRO chips. - Parameters:
-
addr | The ALTRO chip to write to (possibly all) |
off | The offset to be added to the signal |
thr | The zero suppression threshold. |
- Returns:
- The partially compiled instruction
|
u_int RCUC_BROADCAST_encode |
( |
|
) |
|
|
|
Encode an ALTRO BROADCAST instruction.
Make the instruction be a broadcast to all ALTRO channels. - Returns:
- The partially compiled instruction
|
u_int RCUC_CHANNEL_encode |
( |
u_int |
ch |
) |
|
|
|
Encode a channel address.
- Parameters:
-
- Returns:
- The partially compiled instruction
|
u_int RCUC_CHIP_encode |
( |
u_int |
chip |
) |
|
|
|
Encode an ALTRO CHIP instruction.
Encode a chip address. - Parameters:
-
- Returns:
- The partially compiled instruction
|
u_int RCUC_LOCAL_encode |
( |
u_int |
chip, |
|
|
u_int |
ch |
|
) |
|
|
|
Encode an ALTRO LOCAL instruction.
Encode a channel local addres. - Parameters:
-
chip | Chip addres |
ch | Channel address. |
- Returns:
- The partially compiled instruction
|
|