CROSS Technical Documentation User Manual and Technical Doc.
INFN Milano Bicocca
Loading...
Searching...
No Matches
DAC_PGA.h
Go to the documentation of this file.
1#include <stdint.h>
2
3/// \file
4
5#define fondo_scala_DAC_PGA (uint32_t) 0x3FF /*(1<<10)-1*/
6
7#define PGA_set_pre_pga_high_gain 0x02 //!< Set the amplifier gain in front of the PGA to 10 V/V, it is left shifted once in the trimmer
8#define PGA_set_pre_pga_low_gain 0x01 //!< Set the amplifier gain in front of the PGA to 1 V/V, it is left shifted once in the trimmer
9#define set_pre_pga_idle 0 //!< The swirches are set both off
10
11extern unsigned char guadagno_minimo_PGA;
12#define gain_pre_PGA_x_2 guadagno_minimo_PGA *10
13
14
15extern unsigned int PGA_Gain_code[];
16extern unsigned int PGA_Gain_V_su_V[];
17
18
19//Inizio CROSS
20
21#define PGA_pre_PGA_max_gain 10 /*!< Max gain of the input stage of PGA */
22
23extern uint8_t guadagno_minimo_PGA;
24extern uint8_t massimo_guadagno_impostabile;
25extern uint8_t PGA_settled_gain[]; ///< PGA set gain
26
27void PGA_set_reset_pre_PGA_gain (uint8_t scheda_su_scheda_giu, uint8_t canale, uint8_t set_1_reset_0 );
28void PGA_GAIN(uint8_t scheda_su_scheda_giu, uint8_t canale, uint8_t guadagno_da_impostare);
29void PGA_DAC_GAIN_CROSS(uint8_t scheda_su_scheda_giu, uint8_t canale, uint8_t guadagno_da_impostare, uint8_t PGA_si_NO);
30void PGA_GAIN_CROSS(uint8_t scheda_su_scheda_giu, uint8_t canale, uint8_t PGA_gain_to_set );
31
32//Fine CROSS
33
34
35//void instruction_for_PGA_GAIN_set(void);
36void PGA_GAIN_set(char canale, unsigned int guadagno_da_impostare );
37void PGA_preparation_to_gain_set(char canale, unsigned int guadagno_da_impostare);
void PGA_GAIN_CROSS(uint8_t scheda_su_scheda_giu, uint8_t canale, uint8_t PGA_gain_to_set)
Here the 2 digital signals from the trimmer are exploited to set the gain of the input stage of the P...
Definition: DAC_PGA.c:109
uint8_t massimo_guadagno_impostabile
Definition: DAC_PGA.c:89
uint8_t PGA_settled_gain[]
PGA set gain.
Definition: DAC_PGA.c:95
unsigned char guadagno_minimo_PGA
Definition: DAC_PGA.h:23
void PGA_set_reset_pre_PGA_gain(uint8_t scheda_su_scheda_giu, uint8_t canale, uint8_t set_1_reset_0)
Here the 2 digital signals from the trimmer are exploited to set the gain of the input stage of the P...
Definition: DAC_PGA.c:143
void PGA_GAIN(uint8_t scheda_su_scheda_giu, uint8_t canale, uint8_t guadagno_da_impostare)
It sets the PGA gain irrespective of the offset.
Definition: DAC_PGA.c:292
void PGA_preparation_to_gain_set(char canale, unsigned int guadagno_da_impostare)
It sets the new gain letting the output offset at the same level.
Definition: DAC_PGA.c:382
void PGA_GAIN_set(char canale, unsigned int guadagno_da_impostare)
It sets the new gain irrespective of the offset.
Definition: DAC_PGA.c:443
void PGA_DAC_GAIN_CROSS(uint8_t scheda_su_scheda_giu, uint8_t canale, uint8_t guadagno_da_impostare, uint8_t PGA_si_NO)
Definition: DAC_PGA.c:193