mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-05-12 17:25:35 +02:00
8f07d2a464
Build on RHEL9 / build (push) Successful in 3m46s
Run Simulator Tests on local RHEL9 / build (push) Failing after 3m51s
Build on RHEL8 / build (push) Successful in 5m15s
Run Simulator Tests on local RHEL8 / build (push) Failing after 5m31s
Build on local RHEL8 / build (push) Failing after 3m31s
Build on local RHEL9 / build (push) Failing after 1m25s
* wip * wip * wip. xilinx left * wip. xilinx * wip * wip. compiles * fixed eiger test * more fixes * fixed virtual m3 * fix typos and bugs * setting power to 0 * set power fixed * updated server binaries * minor * refactoring * get vchip refactoring * eiger: unnecessary check for setsettings undefined * retval pointer for printout * eiger.wip, mV in boolean * wip. gotthard2 and m3 * wip. jungfrau * moench.wip * compiles.wip * fix eiger * m3 fix vthresh * fix ctband xilinx * default pwr index = pwr_io * minor:fn name and highvoltage to local var * refactor funcs * minor * minor * check dac voltage only for normal dacs and not for power dacs as the dac voltage range is different for ctb and xilinx ctb, also throw for -1 in set for set_dac in client itself. in the server its not clear if its set or get with a -1 * minor * updated versioning * review changes: removing validateDACValue and other minor stuff * binaries in * wip * refactored m3 vth * minor review * minor review * m3 serverdac index fix * minor
50 lines
1008 B
C
50 lines
1008 B
C
// SPDX-License-Identifier: LGPL-3.0-or-other
|
|
// Copyright (C) 2021 Contributors to the SLS Detector Package
|
|
#pragma once
|
|
|
|
#include <inttypes.h>
|
|
#include <stdbool.h>
|
|
|
|
#ifdef JUNGFRAUD
|
|
void AD9257_Set_Jungfrau_Hardware_Version_1_0(int val);
|
|
#endif
|
|
|
|
/**
|
|
* Set Defines
|
|
* @param reg spi register
|
|
* @param cmsk chip select mask
|
|
* @param clkmsk clock output mask
|
|
* @param dmsk digital output mask
|
|
* @param dofst digital output offset
|
|
*/
|
|
void AD9257_SetDefines(uint32_t reg, uint32_t cmsk, uint32_t clkmsk,
|
|
uint32_t dmsk, int dofst);
|
|
|
|
/**
|
|
* Disable SPI
|
|
*/
|
|
void AD9257_Disable();
|
|
|
|
/**
|
|
* Get vref voltage
|
|
*/
|
|
int AD9257_GetVrefVoltage(bool mV);
|
|
|
|
/**
|
|
* Set vref voltage
|
|
* @param val voltage to be set (0 for 1.0V, 1 for 1.14V, 2 for 1.33V, 3
|
|
* for 1.6V, 4 for 2.0V
|
|
* @returns ok or fail
|
|
*/
|
|
int AD9257_SetVrefVoltage(int val, bool mV);
|
|
|
|
/**
|
|
* Set SPI reg value
|
|
* @param codata value to be set
|
|
*/
|
|
void AD9257_Set(int addr, int val);
|
|
|
|
/**
|
|
* Configure
|
|
*/
|
|
void AD9257_Configure(); |