mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-20 00:37:12 +02:00
format slsdetectorservers
This commit is contained in:
19
slsDetectorServers/slsDetectorServer/include/LTC2620.h
Executable file → Normal file
19
slsDetectorServers/slsDetectorServer/include/LTC2620.h
Executable file → Normal file
@ -9,11 +9,13 @@
|
||||
* @param clkmsk clock output mask
|
||||
* @param dmsk digital output mask
|
||||
* @param dofst digital output offset
|
||||
* @param nd total number of dacs for this board (for dac channel and daisy chain chip id)
|
||||
* @param nd total number of dacs for this board (for dac channel and daisy
|
||||
* chain chip id)
|
||||
* @param minMV minimum voltage determined by hardware
|
||||
* @param maxMV maximum voltage determined by hardware
|
||||
*/
|
||||
void LTC2620_SetDefines(uint32_t reg, uint32_t cmsk, uint32_t clkmsk, uint32_t dmsk, int dofst, int nd, int minMV, int maxMV);
|
||||
void LTC2620_SetDefines(uint32_t reg, uint32_t cmsk, uint32_t clkmsk,
|
||||
uint32_t dmsk, int dofst, int nd, int minMV, int maxMV);
|
||||
|
||||
/**
|
||||
* Disable SPI
|
||||
@ -46,7 +48,7 @@ int LTC2620_GetMaxNumSteps();
|
||||
* @param dacval pointer to value converted to dac units
|
||||
* @returns FAIL when voltage outside limits, OK if conversion successful
|
||||
*/
|
||||
int LTC2620_VoltageToDac(int voltage, int* dacval);
|
||||
int LTC2620_VoltageToDac(int voltage, int *dacval);
|
||||
|
||||
/**
|
||||
* Convert dac units to voltage
|
||||
@ -54,7 +56,7 @@ int LTC2620_VoltageToDac(int voltage, int* dacval);
|
||||
* @param voltage pointer to value converted to mV
|
||||
* @returns FAIL when voltage outside limits, OK if conversion successful
|
||||
*/
|
||||
int LTC2620_DacToVoltage(int dacval, int* voltage);
|
||||
int LTC2620_DacToVoltage(int dacval, int *voltage);
|
||||
|
||||
/**
|
||||
* Set a single chip (all non ctb detectors use this)
|
||||
@ -70,7 +72,7 @@ void LTC2620_SetSingle(int cmd, int data, int dacaddr);
|
||||
* @param valw current value of register while bit banging
|
||||
* @param val data to be sent (data, dac addr and command)
|
||||
*/
|
||||
void LTC2620_SendDaisyData(uint32_t* valw, uint32_t val);
|
||||
void LTC2620_SendDaisyData(uint32_t *valw, uint32_t val);
|
||||
|
||||
/**
|
||||
* Set a single chip (all non ctb detectors use this)
|
||||
@ -84,7 +86,8 @@ void LTC2620_SetDaisy(int cmd, int data, int dacaddr, int chipIndex);
|
||||
|
||||
/**
|
||||
* Sets a single chip (LTC2620_SetSingle) or multiple chip (LTC2620_SetDaisy)
|
||||
* multiple chip is only for ctb where the multiple chips are connected in daisy fashion
|
||||
* multiple chip is only for ctb where the multiple chips are connected in daisy
|
||||
* fashion
|
||||
* @param cmd command to send
|
||||
* @param data dac value to be set
|
||||
* @param dacaddr dac channel number for the chip
|
||||
@ -102,7 +105,7 @@ void LTC2620_Configure();
|
||||
* @param dacnum dac number
|
||||
* @param data dac value to set
|
||||
*/
|
||||
void LTC2620_SetDAC (int dacnum, int data);
|
||||
void LTC2620_SetDAC(int dacnum, int data);
|
||||
|
||||
/**
|
||||
* Set dac in dac units or mV
|
||||
@ -112,4 +115,4 @@ void LTC2620_SetDAC (int dacnum, int data);
|
||||
* @param dacval pointer to value in dac units
|
||||
* @returns OK or FAIL for success of operation
|
||||
*/
|
||||
int LTC2620_SetDACValue (int dacnum, int val, int mV, int* dacval);
|
||||
int LTC2620_SetDACValue(int dacnum, int val, int mV, int *dacval);
|
Reference in New Issue
Block a user