![]() |
CROSS Technical Documentation User Manual and Technical Doc.
INFN Milano Bicocca
|
#include "tutti_gli_header.h"
Go to the source code of this file.
Macros | |
#define | PGA_mantieni_loffset 1 |
#define | offset_PGA_1_or_pre_0_out 7 /* This is at byte istruzione_byte_1 */ |
#define | offset_different_between_ch 6 /* This is at byte istruzione_byte_1 */ |
#define | offset_drift_adjusted_on_offset 5 /* This is at byte istruzione_byte_1 */ |
#define | attivazione_CMRR 2 /*if 1 the CMRR is inactive at half scale, if 0 the CMRR is loaded from EPROM and set in the trimmer*/ |
#define | JFET_offset_used_0_not_used_1 1 /* If 1 the JFET offset from EPROM is not used as default*/ |
#define | JFET_offset_measured_and_stored_in_EPROM 0 /* If 1 the JFET offset is measured and store in EPROM*/ |
#define | stato_esci_dalla_misura (int)(-1 ) |
#define | stato_compensazione_termica_su_zero_offset 0 |
#define | stato_compensazione_in_temperatura_sull_0ffset_secondo_passo 1 |
#define | stato_compensazione_in_temperatura_sull_0ffset 2 |
#define | stato_senza_compensazione_in_temperatura 3 |
#define | stato_misurare_parametro_per_EPROM_terzo_passo 4 |
#define | stato_misurare_parametro_per_EPROM_secondo_passo 5 |
#define | stato_misurare_parametro_per_EPROM 6 |
Functions | |
void | Setting_of_the_pointer_for_command_parser (void) |
The pointer to the instruction functions is constructed here. | |
void | instr_NO_operation_function (void) |
The NOP sends backs the fw version. | |
void | instr_Shut_Down_ON_OFF_function (void) |
μ-controller power down ON/OFF | |
void | instr_readback_variables_function (void) |
readback of some parameters | |
void | instr_readback_node_voltages_function (void) |
readback of some node voltages from external ADC | |
void | instr_preamplifier_temperature_meas_function (void) |
void | instr_preamplifier_memory_function (void) |
void | instr_preamplifier_gain_low_high_set_function (void) |
preamplifier gain set large or small | |
void | instr_PGA_gain_set_function (void) |
PGA gain set. | |
void | instr_PGA_set_reset_pre_PGA_gain_function (void) |
PGA input stage gain set. | |
void | instr_PGA_DAC_GAIN_CROSS_function (void) |
void | instr_connect_disconnect_mux_node_function (void) |
Routing of available node voltage to outout by means of the analog mux. | |
void | instruction_lettura_ADC (void) |
ADC instrunction implementation with node selection. | |
void | instruction_Detector_PGA_Rele (void) |
This is a sub-function of the ADC instrunction. It is useful as it cane be used in other part of the program such as detector bias setting and offset adjustement. | |
void | Detector_PGA_Rele (char discriminazione) |
void | instruction_Some_parameters_to_set (void) |
Some usefull parematers can be set here. | |
void | instruction_Misura_della_temperatura (void) |
The temperature from both preamplifier is read. | |
void | Misura_della_temperatura (int *misura_temperatura_locale) |
void | instruction_Offset_compensation (void) |
Output offset voltage compensation. | |
void | aggiustamento_SAR (bool *saturazione_canale, int attesa, char *nodo_di_misura_1) |
When the preamplifier output is saturated we start with the standard SAR. | |
for (canale=0;canale< 2;canale++) | |
Variables | |
int | valore_target_per_offset [] ={0,0} |
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 the address used for the array. | |
char | attivare_si_no |