mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-19 18:40:01 +02:00

* WIP, ctb * WIP, eiger * WIP, gotthard * WIP, jungfrau * WIP, gotthard2 * WIP, mythen3 * WIP, moench * fixed gotthard apiversioning mismatch with gotthard2
32 lines
614 B
C
Executable File
32 lines
614 B
C
Executable File
#pragma once
|
|
|
|
#include <inttypes.h>
|
|
|
|
/**
|
|
* 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
|
|
* @param minMV minimum voltage determined by hardware
|
|
* @param maxMV maximum voltage determined by hardware
|
|
*/
|
|
void MAX1932_SetDefines(uint32_t reg, uint32_t cmsk, uint32_t clkmsk, uint32_t dmsk, int dofst,
|
|
int minMV, int maxMV);
|
|
|
|
/**
|
|
* Disable SPI
|
|
*/
|
|
void MAX1932_Disable();
|
|
|
|
/**
|
|
* Set value
|
|
* @param val value to set
|
|
* @return OK or FAIL
|
|
*/
|
|
int MAX1932_Set (int val) ;
|
|
|
|
|
|
|