hw functions for the SOLID slow control

Dependents:   S_SCTRL_e_test SPItest sscm

Revision:
13:3d82f8e27414
Parent:
12:467def75b457
Child:
14:ee02872b282b
--- a/S_SCTRL_SM1_hwfunct.h	Thu Oct 23 17:25:45 2014 +0000
+++ b/S_SCTRL_SM1_hwfunct.h	Wed Nov 19 23:17:57 2014 +0000
@@ -2,14 +2,14 @@
 #define S_SCTRL_SM1_hwfunct_H
 
 
-#define HW_LIB_HDR_VERSION "1.31"
+#define HW_LIB_HDR_VERSION "1.32"
 
 /* hardware functions 
  * ver 1.0  
  * ver 1.1x   connectors signal working   
  * ver 1.20   added serialnr read
  * ver 1.31   added CAL line lvl  function   
- 
+ * ver 1.32  added bias2dac voltage  and dac2bias
  
  */
 typedef struct  {
@@ -66,6 +66,7 @@
 // @PARAM calline  , 0 fire both ( processor minimum delay , 1 for CAL signal 1& 3, 2 for CAL signal 2&4
 // @PARAM level   if level = 1 CAL signal is set to active else set to deactive 
 void set_cal_line(HWlines  hwl, int calline ,int level );
-
-    
+// calculates the value of the DAC voltage given a bias voltage
+float Bias2Dac(float biasvolt);
+float Dac2Bias(float dacvolt);
 #endif    
\ No newline at end of file