CROSS Technical Documentation User Manual and Technical Doc.
INFN Milano Bicocca
Loading...
Searching...
No Matches
Gpio.h File Reference
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  porta_pin
 

Macros

#define porta_0   0
 Port 0 pin usage.
 
#define pin_Rset_i2c_mux_down   6
 
#define pin_Rset_i2c_mux_sup   9
 
#define ResIn_buffer_A_down   7
 
#define ResIn_buffer_B_down   8
 
#define ResIn_buffer_A_up   10
 
#define ResIn_buffer_B_up   11
 
#define B0   0
 
#define B1   1
 
#define B2   23
 
#define B3   24
 
#define B4   25
 
#define B5   26
 
#define B6   29
 
#define B7   30
 
#define Chip_Sel_rele_0   4
 
#define Chip_Sel_rele_1   5
 
#define PGA_Chip_Sel_DAC_ch0   6
 
#define PGA_Chip_Sel_DAC_ch1   7
 
#define Chip_Sel_Adc   0
 
#define Adc_ready   0
 
#define porta_1   1
 Port 1 pin usage.
 
#define MUX_select_in_0   0
 
#define MUX_select_in_1   1
 
#define MUX_select_in_2   4
 
#define MUX_Chip_sel_1   20
 
#define MUX_Chip_sel_2   21
 
#define MUX_Chip_sel_3   22
 
#define MUX_Chip_sel_4   23
 
#define MUX_Chip_sel_5   24
 
#define MUX_Chip_sel_6   25
 
#define MUX_Chip_sel_7   26
 
#define MUX_Chip_sel_8   27
 
#define ADC_ready_up_   8
 
#define ADC_Chip_Sel_up_   10
 
#define ADC_reset_up_   9
 
#define ADC_ready_down_   14
 
#define ADC_Chip_Sel_down_   16
 
#define ADC_reset_down_   15
 
#define PGA_rele_ch0_1   9
 
#define PGA_rele_ch0_2   10
 
#define PGA_rele_ch1_1   14
 
#define PGA_rele_ch1_2   15
 
#define Sel_Par_Interruttori_3   24
 
#define Sel_Par_Interruttori_2   25
 
#define Sel_Par_Interruttori_1   26
 
#define porta_2   2
 Port 2 pin usage.
 
#define pin_Reset_I2C_mux_A   0
 
#define pin_Reset_I2C_mux_B   1
 
#define pin_LED_Green   13
 
#define pin_LED_Red   9
 
#define Led_verde   5
 
#define Porta_Led_verde   2
 

Typedefs

typedef struct porta_pin porta_pin_def
 

Functions

void Configure_Bit_Address_for_CAN (void)
 Switches for the selection of the hw CAN bus address. Pin are set as input with internal pull-up.
 
void Configure_Reset_I2C_mux (void)
 Set the reset pins of te I2C mux, reset the I2C mux and put them into operation.
 
void Configure_Reset_selection_port_analog_mux_ResIn_ADC_buffer (void)
 Set the reset pins of te analog mux's. Take care: reset=0 means output off.
 
void ADC_pin_configurations (void)
 ADc pins are initialized here.
 
void LED_pin_configuration (void)
 Red and Green LED pin configuration and reset.
 

Variables

int32_t status
 
const uint8_t ADC_node_map []
 Mapping to mux's on postmainboard.
 
const porta_pin_def Reset_I2C_mux_postfrontend_up
 location of the reset pin of the I2C_mux of post-frontend board su or giu
 
const porta_pin_def Reset_I2C_mux_postfrontend_down
 location of the reset pin of the I2C_mux of post-frontend board su or giu
 
const porta_pin_def Reset_I2C_mux_up
 location of the reset pin of the I2C_mux of frontend board su or giu
 
const porta_pin_def Reset_I2C_mux_down
 location of the reset pin of the I2C_mux of frontend board su or giu
 
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_enable_postmainboard_2
 location of the chip select pin of analog mux 2 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_4
 location of the chip select pin of analog mux 4 of postmainboard, 0=off
 
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_7
 location of the chip select pin of analog mux 7 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_0
 selettore 0 del pin di ingresso dell'analog mux
 
const porta_pin_def Mux_select_word_1
 selettore 1 del pin di ingresso dell'analog mux
 
const porta_pin_def Mux_select_word_2
 selettore 2 del pin di ingresso dell'analog mux
 
const porta_pin_def ADC_ResIn_A_buffer_down
 Refernce to fgnd of theADC input buffer, if 1 there is a 10kOhm connected to GND.
 
const porta_pin_def ADC_ResIn_B_buffer_down
 Refernce to fgnd of theADC input buffer, if 1 there is a 10kOhm connected to GND.
 
const porta_pin_def ADC_ResIn_A_buffer_up
 Refernce to fgnd of theADC input buffer, if 1 there is a 10kOhm connected to GND.
 
const porta_pin_def ADC_ResIn_B_buffer_up
 Refernce to fgnd of theADC input buffer, if 1 there is a 10kOhm connected to GND.
 
const porta_pin_def ADC_ready_up
 Configuration ADC pin.
 
const porta_pin_def ADC_Chip_Sel_up
 Configuration ADC pin.
 
const porta_pin_def ADC_reset_up
 Configuration ADC pin.
 
const porta_pin_def ADC_ready_down
 Configuration ADC pin.
 
const porta_pin_def ADC_Chip_Sel_down
 Configuration ADC pin.
 
const porta_pin_def ADC_reset_down
 Configuration ADC pin.
 
const porta_pin_def CAN_indirizzo_hw []
 hw Can address
 
const porta_pin_def LED_Green
 Green LED.
 
const porta_pin_def LED_Red
 Green LED.
 
porta_pin_def rele_driver_ch0
 
porta_pin_def PGA_DAC_select_ch0
 
porta_pin_def PGA_DAC_select_ch1
 
porta_pin_def ADC_select
 
const porta_pin_def PGA_pre_gain_1_ch0
 
const porta_pin_def PGA_pre_gain_10_ch0
 
const porta_pin_def PGA_pre_gain_1_ch1
 
const porta_pin_def PGA_pre_gain_10_ch1
 
const porta_pin_def PGA_DAC_pin_select_ch0
 
const porta_pin_def PGA_DAC_pin_select_ch1