From 72b0d17a33ae25c8ab1c995b05a974ffbca803f9 Mon Sep 17 00:00:00 2001 From: Markus Rosenstihl Date: Thu, 2 Feb 2017 08:15:23 +0100 Subject: [PATCH] forgot to git add header --- drivers/DAC-AD5791/AD5791.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/DAC-AD5791/AD5791.h b/drivers/DAC-AD5791/AD5791.h index f562790..454bc97 100644 --- a/drivers/DAC-AD5791/AD5791.h +++ b/drivers/DAC-AD5791/AD5791.h @@ -15,6 +15,8 @@ class AD5791: public GenericDAC { protected: /// The channel for the latch signal int latch_bit; + int clock_bit; + int data_bit; public: int id; @@ -23,7 +25,9 @@ public: virtual void set_dac(signed dw); // virtual void set_dac_ttls(signed value); - void set_latch_bit(int le_bit); + void set_latch_bit(int bit); + void set_clock_bit(int bit); + void set_data_bit(int bit); /** inserts necessary serial data transmission to set the dac, at the end of experiment reset the dac @@ -42,6 +46,10 @@ public: void set_dac_control(state_sequent* exp_sequence, state::iterator where, int input_shift_register); state_sequent *tx_bit(unsigned int bit); + + state_sequent *select_input_shift_register(unsigned int register_address); + + state_sequent *write_serial_register(unsigned int register_value); }; /*class pfg_exception: public std::string {