![]() |
CROSS Technical Documentation User Manual and Technical Doc.
INFN Milano Bicocca
|
#include "tutti_gli_header.h"
Go to the source code of this file.
Enumerations | |
enum | I2C_to_Parallel_pin_type { pin_1 , pin_2 , pin_3 , pin_4 , pin_5 , pin_6 , pin_7 , pin_8 } |
These are the aliases for the I2C to parallel output. More... | |
Functions | |
void | I2C_to_Parallel_ini_PCA9554 (uint8_t scheda_su_scheda_giu, uint8_t select_PCA) |
The I2C_to_Parallel_ini_PCA9554 inits the I2C_to_Parallel_ini_PCA9554 chips by setting all the outputs high, but the 2 chip select analog muxes, to disable all the chips. | |
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 parallel, there are structures for this. The detector: detector_chip_select_bias, the PGA_DAC. | |
Variables | |
const struct chip_select_type | detector_chip_select_bias [6] |
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. | |
const struct chip_select_type | detector_reset_all_relays_driver ={ 3 , (~(1<<pin_1 ) & 0xFD )} |
const struct chip_select_type | PGA_DAC_chip_select [6] |
const uint8_t | I2C_to_Parallel_ini_set [4] ={0, 0xFF , 0x7F , 0xFD } |
... | |