|
#define | PRMS_THRS_MIN_MV 800 |
| Minimal output of threshold DAC in milliVolt.
|
|
#define | PRMS_THRS_MAX_MV 2400 |
| Maximum output of threshold DAC in milliVolt.
|
|
#define | PRMS_HV_MIN_V -700 |
| Minimal value of HV DAC in volt.
|
|
#define | PRMS_HV_MAX_V -1500 |
| Maximum value of HV DAC in volt.
|
|
#define | E_PRMS_ID_FAULT ( E_PRMS + 1 ) |
| PROMiS ID is not consistent.
|
|
#define | E_PRMS_ID_FAULT_DESCR "PROMiS ID inconsistent" |
|
#define | PRMS_THRS_MV2DAC(MV) RESCALE(MV, PRMS_THRS_MIN_MV, PRMS_THRS_MAX_MV, 0, 255) |
| Converts a threshold value in milliVolts to the DAC value. More...
|
|
#define | PRMS_THRS_DAC2MV(BYTE) RESCALE(BYTE, 0, 255, PRMS_THRS_MIN_MV, PRMS_THRS_MAX_MV) |
| Converts the threshold DAC byte value into milliVolts. More...
|
|
#define | PRMS_HV_V2DAC(V) RESCALE(V, PRMS_HV_MIN_V, PRMS_HV_MAX_V, 0, 255) |
| Converts the high voltage value into the high voltage DAC byte value. More...
|
|
#define | PRMS_HV_DAC2V(V) RESCALE(V, 0, 255, PRMS_HV_MIN_V, PRMS_HV_MAX_V) |
| Converts the high voltage DAC byte value into volts. More...
|
|
|
bool | prmsID (I2C_Device *dev, uint8_t addr, uint8_t *id) |
| Returns the burned ID of the PROMiS device. More...
|
|
bool | prmsSetConfig (I2C_Device *dev, uint8_t addr, PrmsConfig *cfg) |
| Sets the configuration on the PROMiS device. More...
|
|
bool | prmsGetConfig (I2C_Device *dev, uint8_t addr, PrmsConfig *cfg) |
| Gets the configuration from the PROMiS device. More...
|
|
bool | prmsHighVolt (I2C_Device *dev, uint8_t addr, bool enable) |
| Enables/Disables the high voltage. More...
|
|
bool | prmsChainTest (I2C_Device *dev, uint8_t addr) |
| Executes a chain test. More...
|
|
bool | prmsStatus (I2C_Device *dev, uint8_t addr, PrmsStatus *status) |
| Returns the status of the PROMiS device. More...
|
|
This driver interfaces with the PROMiS PMT ASIC.
Definition in file promis.h.