CROSS Technical Documentation User Manual and Technical Doc.
INFN Milano Bicocca
Loading...
Searching...
No Matches

◆ Setting_of_the_pointer_for_command_parser()

void Setting_of_the_pointer_for_command_parser ( void  )

The pointer to the instruction functions is constructed here.

34//! \brief base instrucions
35 ptr_istruzioni[instr_NO_operation] =instr_NO_operation_function; //!< Nop instruction it replais the fw version
38 //! \brief Detector instructions
43 //! \brief Preamplifier instructions
50 //! \brief PGA managing
53 ptr_istruzioni[instr_PGA_DAC_GAIN_CROSS]=instr_PGA_DAC_GAIN_CROSS_function;
54 //! \brief Errors
57 //! \brief Common use
61// ptr_istruzioni[instr_Vbias_set]=instruction_Detector_bias;
62 //! \brief Experts use
69
70
71
72//! \brief ADC instructions
73// ptr_istruzioni[instr_ADC_LETTURA] =instruction_lettura_ADC; //!<
74//! \brief preamplifier instrucions
75// ptr_istruzioni[instr_pre_PGA_gain]= instruction_Detector_PGA_Rele;
76// ptr_istruzioni[instr_PGA_GAIN]=instruction_for_PGA_GAIN_set;
77// ptr_istruzioni[instr_preamplifier_temperature_meas]=instruction_Misura_della_temperatura;
78// ptr_istruzioni[instr_Power_supply_ON_OFF]=instruction_Power_supply_control;
79// ptr_istruzioni[instr_OFFSET_ADJ]=instruction_Offset_compensation;
80
81// ptr_istruzioni[instr_preamplifier_memory]=instruction_preamplifier_memory;
82// ptr_istruzioni[instr_measure_pre_bias_coefficients]=instruction_measure_pre_bias_coefficients;
83// ptr_istruzioni[instr_Some_parameters_to_set] =instruction_Some_parameters_to_set;
84
85// ptr_istruzioni[instr_ricalibrazione_scheda] =instruction_ricalibrazione_scheda;
86}
void instr_ADC_LETTURA_function(void)
All the posible nodes voltages can be read with this instruction. Either the internal or an external ...
Definition: Adc.c:761
@ instr_Shut_Down_ON_OFF
µ-controller can be maintained always ON
@ instr_NO_operation
NOP, the fw version is replayed.
@ instr_offset_trimmer_calibration
fine and coarse trimmer calibration for ofset compensation
@ instr_preamplifier_memory
Write /read the preamplifier EPROM.
@ instr_PGA_DAC_GAIN_CROSS
Set the gain of the second stage of the PGA.
@ instr_PGA_gain_set
Set the PGA gain value.
@ instr_detector_Vbias_we_want_to_set
The voltage we intend to set to the detector. This command does not apply the voltage.
@ instr_readback_node_voltages
Nodes voltage read from external ADC.
@ instr_ERROR_inspection
quering about the presence of any error
@ instr_LED_ON_OFF
LEDs can be switched ON/OFF for test and diagnostic.
@ instr_output_offset_to_be_set
Adjust the ouput voltage that was previously set at instr_ouput_offset_we_want_to_set.
@ instr_Vbias_to_be_set
The voltage set with instr_detector_Vbias_we_want_to_set is set to the detector.
@ instr_ADC_LETTURA
ADC reading, the following byte from the CAN set the reading node.
@ instr_preamplifier_scrittura_lettura_trimmer_offset
Write /read to /from the trimmers for the preamplifier offset adjustment.
@ instr_preamplifier_temperature_meas
Measure the preamplifier temperature.
@ instr_EPROM_read_write
read from preamplifier or mainboard or post frontend board EPROM
@ instr_connect_disconnect_mux_node
select/deselect a node from the analog mux
@ instr_preamplifier_gain_low_high_set
Set /reset of the large gain for the preamplifier.
@ instr_inizializza_tutto_da_zero
µ-controller is reset. The perifelal are all initialized.
@ instr_ERROR_echo_on_off
if enabled, echo of the error via CAN as soon as the error is verified
@ instr_ouput_offset_we_want_to_set
Set the output offset to set channel per channel.
@ instr_detector_scrittura_lettura_trimmer_bias
Write /read to /from the trimmers for the detectors biases.
@ instr_Relays_driver_set_reset_channel
Set / reset of the relais that manage the detectors.
@ instr_readback_variables
Variables Readback
@ instr_DetBias_trimmer_calibration
fine and coarse trimmer calibration for detector bias compensation
@ instr_periferal_reset
I2C, SPI and CAN can be reset.
@ instr_PGA_set_reset_pre_PGA_gain
Set /reset of the first stage of PGA.
void instr_detector_scrittura_lettura_trimmer_bias_function(void)
This is an instruction via CAN bus to read/write the detector trimmers. It calls the detector_scrittu...
void instr_detector_Vbias_we_want_to_set_function(void)
void instr_Vbias_to_be_set_function(void)
The detector bias will be set at the value set with the function instr_detector_Vbias_we_want_to_set_...
void instr_Relays_driver_set_reset_channel_function(void)
Function to set the relais for detector bias.
void instr_ERROR_inspection_function(void)
The state of the errors can be verified/reset.
void instr_ERROR_echo_on_off_function(void)
Immediate echos of a verified error activated/disattivated.
void instr_readback_variables_function(void)
readback of some parameters
Definition: Istruzioni.c:179
void instr_NO_operation_function(void)
The NOP sends backs the fw version.
Definition: Istruzioni.c:99
void instr_Shut_Down_ON_OFF_function(void)
μ-controller power down ON/OFF
Definition: Istruzioni.c:116
void Setting_of_the_pointer_for_command_parser(void)
The pointer to the instruction functions is constructed here.
Definition: Istruzioni.c:33
void instr_readback_node_voltages_function(void)
readback of some node voltages from external ADC
Definition: Istruzioni.c:232
void instr_connect_disconnect_mux_node_function(void)
Routing of available node voltage to outout by means of the analog mux.
Definition: Istruzioni.c:446
void instr_PGA_gain_set_function(void)
PGA gain set.
Definition: Istruzioni.c:330
void instr_preamplifier_gain_low_high_set_function(void)
preamplifier gain set large or small
Definition: Istruzioni.c:304
void instr_preamplifier_memory_function(void)
Definition: Istruzioni.c:275
void instr_preamplifier_temperature_meas_function(void)
Definition: Istruzioni.c:248
void(* ptr_istruzioni[The_total_number_of_instrucions])(void)
This is the pointer array to the instructions set: the byte istruzione_codice of the CAN message is t...
Definition: Istruzioni.c:24
void instr_PGA_set_reset_pre_PGA_gain_function(void)
PGA input stage gain set.
Definition: Istruzioni.c:396
void instr_LED_ON_OFF_function(void)
LEDs can be set ON/OFF.
Definition: Led.c:144
void instr_EPROM_read_write_function(void)
CAN insrtuction to Read from preamplifier, on-board and post frontend board EPROM.
void instr_preamplifier_scrittura_lettura_trimmer_offset_function(void)
Content of the preamplifier trimmers can be read/write.
void instr_output_offset_to_be_set_function(void)
The detector bias will be set at the value set with the function instr_detector_Vbias_we_want_to_set_...
void instr_ouput_offset_we_want_to_set_function(void)
The preamplifier offset will be set at the value passed from the CAN with this function if,...
void instr_DetBias_trimmer_calibration_function(void)
The fine and coarse trimmers for Detector bias adjustment are calibrated here
Definition: Trimmer.c:480
void instr_offset_trimmer_calibration_function(void)
The fine and coarse trimmers for offset adjustment are calibrated here
Definition: Trimmer.c:320
void instr_inizializza_tutto_da_zero_function(void)
Start-up function.
void instr_periferal_reset_function(void)
I2C, SPI and CAN can be rest.

Definition at line 33 of file Istruzioni.c.