diff options
Diffstat (limited to 'device-functions.c')
-rw-r--r-- | device-functions.c | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/device-functions.c b/device-functions.c index df5b344..b52a6d5 100644 --- a/device-functions.c +++ b/device-functions.c @@ -14,6 +14,11 @@ #include <security/pam_appl.h> #include <security/pam_misc.h> + +static void start_gate_override (); +static void stop_gate_override (); + + void idn_string(gchar** response) { *response = g_strdup_printf ("AVTECH ELECTROSYSTEMS,%s,SN:%s,v%s", @@ -133,7 +138,7 @@ void Main_Rst (void) } -int set_dac(int dac, int word) +void set_dac(int dac, int word) { /* allows dacs to be disabled (using dac=-1, for example) */ if ((dac >= 0) && (dac < 8)) { @@ -771,7 +776,7 @@ void Ctrl_PRF_Limiter(int enable) } -int Set_Mux(int channel) +void Set_Mux(int channel) { int mux_out; @@ -1080,7 +1085,7 @@ int Set_Gate_Level(int channel,int mode) } -int start_gate_override () +static void start_gate_override () { /* just set gate bit high, if not already high */ int i; @@ -1091,7 +1096,7 @@ int start_gate_override () } -int stop_gate_override () +static void stop_gate_override () { /* release gate (if not in hold mode) */ int i; @@ -4030,7 +4035,7 @@ int go_cal(CalStruct *caldata) } -int cal_string(char *parameter, CalStruct *caldata) +void cal_string(char *parameter, CalStruct *caldata) { char string[max_output_length]; @@ -4128,9 +4133,12 @@ int do_full_self_cal(CalStruct *caldata) if (caldata->total_errors) { return SelfCalError; + } else { + return OK; } } + int I2C_Self_Cal(int channel, int meas_mode, float *meas, float target_time) { #define MAX_TRIES 35 |