Here the 2 digital signals from the trimmer are exploited to set the gain of the input stage of the PGA.
145 uint8_t spedizione[2];
146 if( scheda_su_scheda_giu) scheda_su_scheda_giu=6;
153 if( set_2_reset_1_idle_0) {
155 spedizione[0] = set_2_reset_1_idle_0 << 1 ;
160 while( I2C_mux->GetStatus().busy);
170 while( I2C_mux->GetStatus().busy);
174 while( I2C_mux->GetStatus().busy){};
void PGA_set_reset_pre_PGA_gain(uint8_t scheda_su_scheda_giu, uint8_t canale, uint8_t set_2_reset_1_idle_0)
Here the 2 digital signals from the trimmer are exploited to set the gain of the input stage of the P...
#define set_pre_pga_idle
The swirches are set both off.
#define wait_time_for_rele_setting
[ref_spi_clock_for_relais]
volatile uint32_t Error_bad_operation
exploited to mark the errors
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.
@ I2C_Error_trimmer_0
trimmer ch0
@ error_address_I2C0
Error register A for I2C0.
void I2C_mux_select_ch(uint8_t scheda_su_scheda_giu, uint8_t mainboard_postmainboard, uint8_t canale_da_abilitare)
The I2C mux.
void Aspetta_tanti_ms(int millisecondi)
The timing function.
const struct address_detector_bias_trimmer_type address_detector_bias_trimmer[6]
Detector trimmer addresses.
uint8_t contenuto_trimmer_detector[12][4]
Content of the trimmer for detector bias system.