|
lolxnano
Code to control the LoLX SiPM biasing board from the connected nanoPi
|
Class specific to the AD5676 DAC. More...
#include <ad56x6.h>


Public Member Functions | |
| AD5676 (NanoPi &np, int cs) | |
| uint16_t | GetSetting (double v, unsigned short chan=0) |
| Calibration specific to the bias tuning DACs. | |
| double | GetVoltage (uint16_t s, unsigned short chan=0) |
| Calibration specific to the bias tuning DACs. | |
| void | SetVref (double v) |
| Method to change the DAC reference voltage value for calibration calculations. | |
Public Member Functions inherited from AD56x6 | |
| AD56x6 (NanoPi &np, int cs) | |
| Constructor. | |
| unsigned char * | AssembleWord (uint8_t cmd, uint8_t chan, uint16_t *data=NULL) |
| Assembles the SPI word from command, channel, and data. | |
| bool | Set (unsigned short chan, uint16_t setting, bool confirm=true) |
| Sets the selected DAC channel to a value, confirms with readback. | |
| bool | RampVoltage (unsigned short chan, uint16_t vset=-1, unsigned int steps=16, unsigned int tdelay=500) |
| Test method to ramp through voltage settings. | |
| void | PowerOn () |
| Send POWER_UP command to DAC. | |
| uint16_t | GetData () |
| Extract 16 bit setting from readback word. | |
| void | Readback (short ch=-1) |
| Read back DAC settings and write them to vector readback. | |
Additional Inherited Members | |
Public Attributes inherited from AD56x6 | |
| const uint16_t | vfull = 0xffff |
| Full scale output. | |
| const uint8_t | nbytes = 3 |
| Size of data word in bytes. | |
| std::vector< uint16_t > | readback |
| Read back DAC settings after Readback() was called. | |
Protected Member Functions inherited from AD56x6 | |
| virtual uint8_t | EncChan (uint8_t chan) |
| Format channel number for use in SPI word (3-bit number) | |
Protected Attributes inherited from AD56x6 | |
| uint32_t | bits = 0 |
| NanoPi * | nanoPi = NULL |
| const int | cselect |
| bool | verbose = false |
Class specific to the AD5676 DAC.
Used for the bias tuning DACs on the LoLX SiPM board.
|
virtual |
Calibration specific to the bias tuning DACs.
Implements AD56x6.
|
virtual |
Calibration specific to the bias tuning DACs.
Implements AD56x6.