Function to set the relais for detector bias.
1013 uint8_t scheda_su_giu= (canale >> 7) & 1;
1015 int32_t ADC_misura_fatta;
1018 for ( canale_=0; canale_ <6; canale_++){
1019 if( (canale >> canale_) & 1){
1057 if( flag_error_verified){
static bool Detector_verifica_Vbias(uint8_t scheda_su_giu, bool si_commuta)
Function to verify if the Vbias voltage is within the limit to be swtitched.
void instr_Relays_driver_set_reset_channel_function(void)
Function to set the relais for detector bias.
void Relays_driver_set_reset_channel(uint8_t scheda_su_giu, uint8_t numero_canale, uint8_t valore_da_trasmettere)
Setting the state of the detector realis: pre connected to detector or intrnal resistor,...
#define Detector_small_RLOAD
#define Detector_prea_to_det
#define Detector_bias_invertito
#define Detector_external_bias
#define Detector_internal_bias
#define Detector_prea_to_GND
#define Detector_bias_diretto
#define Detector_large_RLOAD
void Error_imposta_la_istruzione(void)
Function to be located at the end of every instruction to mark the error, if any.
void ERROR_codifica_errore(uint8_t scheda_su_scheda_giu, unsigned char error_addres, unsigned char code_to_shift, uint8_t reset_count_se_0)
If an error is found its flag is codified here.
#define istruzione_byte_3
#define istruzione_byte_4_e_scelta_canale
volatile int8_t vettore_istruzioni[8]
This is a copy of the received 8 bytes from the CAN.