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

◆ instr_preamplifier_gain_low_high_set_function()

void instr_preamplifier_gain_low_high_set_function ( void  )

preamplifier gain set large or small

Returns
No Parameters, the actual result is sent to the CAN bus output throught tx_data.
306 uint8_t gain_small_large= vettore_istruzioni[istruzione_byte_3];
307 uint8_t scheda_su_scheda_giu= (canale >> 7) & 1;
308 ERROR_codifica_errore(0,0,0,0); //Reset_ch0 errori
309 if (gain_small_large){
310 gain_small_large=preamplifier_Gain_alto;
311 }else{
312 gain_small_large=preamplifier_Gain_basso;
313 }
314 for(canale_=0; canale_<6;canale_++){
315 if( (canale >> canale_) &1){
316 preamplifier_set_reset_pre_gain (scheda_su_scheda_giu, canale_, gain_small_large );
317 }
318 }
320}
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.
void instr_preamplifier_gain_low_high_set_function(void)
preamplifier gain set large or small
Definition: Istruzioni.c:304
#define istruzione_byte_3
Definition: Istruzioni.h:23
#define istruzione_byte_4_e_scelta_canale
Definition: Istruzioni.h:24
void preamplifier_set_reset_pre_gain(uint8_t scheda_su_scheda_giu, uint8_t canale, uint8_t set_2_reset_1_idle_0)
Here the 2 digital signals of the preamplifier's trimmer are exploited to set the gain of the preampl...
#define preamplifier_Gain_basso
. *‍/
#define preamplifier_Gain_alto
. *‍/
volatile int8_t vettore_istruzioni[8]
This is a copy of the received 8 bytes from the CAN.

Definition at line 304 of file Istruzioni.c.