mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-23 06:50:02 +02:00
31 lines
782 B
C
31 lines
782 B
C
// SPDX-License-Identifier: LGPL-3.0-or-other
|
|
// Copyright (C) 2021 Contributors to the SLS Detector Package
|
|
#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 (value is updated to correct range)
|
|
* @param val pointer to value to set
|
|
* @return OK or FAIL
|
|
*/
|
|
int MAX1932_Set(int *val);
|