4#include "tutti_gli_header.h"
137 uint8_t seleziona_lo_analog_mux, de_seleziona_lo_analog_mux,the_3_selction_lines,pattern_uscita_solo_linee;
149 the_3_selction_lines= line_to_select & Analog_Mux_maschera_quali_linee ;
151 the_3_selction_lines = the_3_selction_lines << posizione_del_pattern_delle_linee ;
155 if (line_to_select & Analog_Mux_maschera_quale_chip){
158 seleziona_lo_analog_mux = 0x8f | the_3_selction_lines ;
163 seleziona_lo_analog_mux = 0xff;
167 if (select_1_deselect_0){
170 pattern_uscita_solo_linee );
195 #define offset_per_board_down 32
196 uint8_t offset_per_mux=0,actual_line_to_select,analog_node,analog_mux;
203 if (scheda_su_scheda_giu==0) offset_per_mux = offset_per_board_down;
205 actual_line_to_select=
ADC_node_map[line_to_select] + offset_per_mux;
208 analog_node = actual_line_to_select & 7;
209 analog_mux= (actual_line_to_select >> 3) & 7;
211 if(select_1_deselect_0){
218 GPIO_PinWrite(mux_in_gioco[analog_mux].porta_num, mux_in_gioco[analog_mux].pin_num, 1);
220 GPIO_PinWrite(mux_in_gioco[analog_mux].porta_num, mux_in_gioco[analog_mux].pin_num, 0);
const porta_pin_def Mux_enable_postmainboard_1
location of the chip select pin of analog mux 1 of postmainboard, 0=off
const porta_pin_def Mux_select_word_2
selettore 2 del pin di ingresso dell'analog mux
const porta_pin_def Mux_enable_postmainboard_7
location of the chip select pin of analog mux 7 of postmainboard, 0=off
const porta_pin_def Mux_enable_postmainboard_3
location of the chip select pin of analog mux 3 of postmainboard, 0=off
const porta_pin_def Mux_enable_postmainboard_8
location of the chip select pin of analog mux 8 of postmainboard, 0=off
const porta_pin_def Mux_select_word_1
selettore 1 del pin di ingresso dell'analog mux
const uint8_t ADC_node_map[]
Mapping to mux's on postmainboard. Its syntax: bits 0 to 3 are common to all the MUXs and select one ...
const porta_pin_def Mux_select_word_0
selettore 0 del pin di ingresso dell'analog mux
const porta_pin_def Mux_enable_postmainboard_5
location of the chip select pin of analog mux 5 of postmainboard, 0=off
const porta_pin_def Mux_enable_postmainboard_6
location of the chip select pin of analog mux 6 of postmainboard, 0=off
const porta_pin_def Mux_enable_postmainboard_4
location of the chip select pin of analog mux 4 of postmainboard, 0=off
const porta_pin_def Mux_enable_postmainboard_2
location of the chip select pin of analog mux 2 of postmainboard, 0=off
void I2C_to_Parallel_set_PCA9554_outputs_values(uint8_t scheda_su_scheda_giu, uint8_t select_PCA, uint8_t value)
The function I2C_to_Parallel_set_PCA9554_outputs_values allow to set the output pin of the I2C to par...
#define I2C_to_Parallel_maschera_linee_ucita
#define I2C_to_Parallel_name_3
the third PCA
#define I2C_to_Parallel_2_ini_set
#define I2C_to_Parallel_name_2
the second PCA
#define I2C_to_Parallel_3_ini_set
void Analog_mux_line_to_select_deselect(uint8_t scheda_su_scheda_giu, uint8_t line_to_select, uint8_t select_1_deselect_0)
Selection of the line to mesure with the analog MUX of the mainboard, driven by the I2C->parallel mux...
void Analog_mux_line_to_select_deselect_for_postmainboard(uint8_t scheda_su_scheda_giu, uint8_t line_to_select, uint8_t select_1_deselect_0)
Selection of the line to measure with the analog MUX's of the postmainboard, directely driven by the ...
@ node_voltage_Analog_Mux_0_offset
Starting Offset for this set of nodes, 32.