987 uint8_t scrivere_leggere= (canale >> 6) & 1;
988 uint8_t scheda_su_giu= ((canale >> 7) & 1)*6;
991 for ( canale_=0; canale_ <6; canale_++){
992 if ( (canale >> canale_) & 1){
994 contenuto_trimmer, scrivere_leggere );
uint8_t tx_data[8]
Transmission data vector.
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 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
uint8_t contenuto_trimmer_detector[12][4]
Content of the trimmer for detector bias system.
void detector_scrittura_lettura_trimmer_bias(uint8_t scheda_su_scheda_giu, uint8_t canale, uint8_t trimmer, uint8_t valore, uint8_t scrivi_1_leggi_0)
Setting the value of any trimmer for detector biasing, the contents of the trimmers are stored in the...
volatile int8_t vettore_istruzioni[8]
This is a copy of the received 8 bytes from the CAN.