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

◆ detector_chip_select_bias

const struct chip_select_type detector_chip_select_bias[6]
Initial value:
=
{ 1 , ~(1<<pin_1 ),
1 , ~(1<<pin_3 ),
1 , ~(1<<pin_5 ),
1 , ~(1<<pin_7 ),
2 , (~(1<<pin_1 ) & 0x7F ),
2 , (~(1<<pin_3 ) & 0x7F )}
@ pin_1
This is the first pin of the output port.

This is the vector of constant values which allows to enable the relays drivers of each channels, one at a time. Every selecting pin to be enabled needs to select the chip, namely the port to which is connected, and the pin on the port.

Note
... & I2C_to_Parallel_2_ini_set The analog mux ADG1408 chip select is idle when 0 it equals 0x7F
... & I2C_to_Parallel_2_ini_set is also set for the reson above.
More about the ADG1408 can be found at Multiplexer_strutture_funzioni_definizioni.
😉

Definition at line 138 of file I2C_to_parallel.c.