![]() |
CROSS Technical Documentation User Manual and Technical Doc.
INFN Milano Bicocca
|
#include <stdint.h>Go to the source code of this file.
Data Structures | |
| struct | chip_select_type |
| This is the struct definition for the selection of the chip select of the relays drivers. More... | |
Macros | |
| #define | channel_number 6 |
| #define | I2C_to_Parallel_1_ini_set 0xFF |
| #define | I2C_to_Parallel_2_ini_set 0x7F |
| #define | I2C_to_Parallel_3_ini_set 0xFD |
| #define | I2C_to_Parallel_maschera_linee_ucita 0xF |
| #define | I2C_to_Parallel_address_1 0x21 |
| address of the first I2C to parallel | |
| #define | I2C_to_Parallel_address_2 0x22 |
| address of the second I2C to parallel | |
| #define | I2C_to_Parallel_address_3 0x23 |
| address of the third I2C to parallel | |
| #define | I2C_to_Parallel_name_1 1 |
| the first PCA | |
| #define | I2C_to_Parallel_name_2 2 |
| the second PCA | |
| #define | I2C_to_Parallel_name_3 3 |
| the third PCA | |
| #define | I2C_to_Parallel_Command_read_output 0 |
| Read output pin, either if they are inputs or outpus. | |
| #define | I2C_to_Parallel_Command_data_to_write 1 |
| Data are written in the bits set as output. | |
| #define | I2C_to_Parallel_Command_polarity_inversion 2 |
| Polarity inversion of the read bit, set all 0 in our case. | |
| #define | I2C_to_Parallel_Command_configuration_register 3 |
| Configuration register, set to 0 for ouput of the corresponding bit. | |
| #define | chip_select_all_off 0xFF |
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 uint8_t | I2C_to_Parallel_ini_set [4] |
| ... | |
| 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 |
| const struct chip_select_type | PGA_DAC_chip_select [6] |