1#ifndef PFLIB_MAX5825_H_
2#define PFLIB_MAX5825_H_
32 static const uint8_t WDOG;
37 static const uint8_t RETURNn;
38 static const uint8_t CODEn;
39 static const uint8_t LOADn;
40 static const uint8_t CODEn_LOADALL;
41 static const uint8_t CODEn_LOADn;
42 static const uint8_t REFn;
43 static const uint8_t POWERn;
62 void set(uint8_t channel, uint16_t data_bytes);
142 static const uint8_t ADDR_LED_1;
143 static const uint8_t ADDR_SIPM_0;
144 static const uint8_t ADDR_SIPM_1;
162 int readSiPM(uint8_t i_sipm);
163 int readLED(uint8_t i_led);
164 void setSiPM(uint8_t i_sipm, uint16_t code);
165 void setLED(uint8_t i_led, uint16_t code);
The HGC ROC has 4 MAX5825 chips doing the DAC for the bias voltages.
Definition Bias.h:138
std::vector< MAX5825 > led_
LED bias chips.
Definition Bias.h:172
std::vector< MAX5825 > sipm_
SiPM bias chips.
Definition Bias.h:174
void initialize()
Initialize to standard settings Reference voltage - 4.096V.
Definition Bias.cxx:59
static const uint8_t ADDR_LED_0
DAC chip addresses.
Definition Bias.h:141
Bias(std::shared_ptr< I2C > bias_i2c, std::shared_ptr< I2C > board_i2c)
Wrap an I2C class for communicating with all the DAC chips.
Definition Bias.cxx:49
Class representing communication with the Digital-Analog Converter on the HGC ROC.
Definition Bias.h:29
uint8_t our_addr_
our addr on the chip
Definition Bias.h:121
std::shared_ptr< I2C > i2c_
Write a setting for the DACs on this MAX.
Definition Bias.h:119
std::vector< uint8_t > get(uint8_t channel)
Get the settings for the DACs on this MAX.
Definition Bias.cxx:25
MAX5825(std::shared_ptr< I2C > i2c, uint8_t max_addr)
Wrap an I2C class for communicating with the MAX5825.
Definition Bias.cxx:22
This version of the fast control code interfaces with the CMS Fast control library which can be contr...
Definition Backend.cxx:3