analog_out_impl.h
Go to the documentation of this file.00001 // -*-c++-*- 00002 //---------------------------< /-/ CLARAty /-/ >------------------------------ 00003 /** 00004 * @file analog_out_impl.h 00005 * 00006 * Analog output implementation. 00007 * 00008 * <br>@b Designer(s): Issa Nesnas, 00009 * Won Kim 00010 * <br>@b Author(s): Won Kim, 00011 * Issa Nesnas 00012 * <br>@b Date: August 16, 2002 00013 * 00014 * <b>Software License:</b><br> 00015 * <code> http://claraty.jpl.nasa.gov/license/open_src/ or 00016 * file: license/open_src.txt </code> 00017 * 00018 * © 2006, Jet Propulsion Laboratory, California Institute of Technology<br> 00019 * 00020 * $Revision: 1.3 $ 00021 */ 00022 //----------------------------------------------------------------------------- 00023 00024 #if !defined (__ANALOG_OUT_IMPL_H) 00025 #define __ANALOG_OUT_IMPL_H 00026 00027 // Changed common_defs.h to share.h on Feb 26, 2007 00028 #include "claraty/share.h" 00029 00030 namespace claraty { 00031 00032 //------------------------------------------------------------------------- 00033 //---------------<< analaog_out_impl Class >>---------------------- 00034 //------------------------------------------------------------------------- 00035 00036 class AO_impl { 00037 00038 public: 00039 // AO_impl (); // use default constructor 00040 00041 virtual int output(int channel, int data) = 0; // pure virual; 00042 // data in digital number 00043 00044 virtual float get_gain_for_V(int channel) {return 0.;} // unit in V 00045 virtual float get_offset_for_V(int channel) {return 0.;} // unit in V 00046 00047 // set_unipolar(), set_bipolar() 00048 // set_single_ended, set_differential() 00049 // set_unbuffered(), set_half_buffered(), set_full_buffered() 00050 00051 }; 00052 //------------------------------------------------------------------------- 00053 00054 } // namespace claraty 00055 00056 #endif // __ANALOG_OUT_IMPL_H