sranger_hwi_dev Class Reference

#include <sranger_hwi.h>

Inheritance diagram for sranger_hwi_dev:

XSM_Hardware sranger_hwi_spm List of all members.

Public Member Functions

 sranger_hwi_dev ()
virtual ~sranger_hwi_dev ()
virtual long GetMaxPointsPerLine ()
virtual long GetMaxLines ()
virtual int ReadScanData (int y_index, int num_srcs, Mem2d *m[MAX_SRCS_CHANNELS])
virtual int ReadProbeData (int nsrcs, int nprobe, int kx, int ky, Mem2d *m, double scale=1.)
virtual gchar * get_info ()
virtual gint RTQuery (gchar *property, double &val)
virtual gint RTQuery (gchar *property, double &val1, double &val2)
virtual gint RTQuery (gchar *property, double &val1, double &val2, double &val3)
virtual gint RTQuery (gchar *property, gchar **val)
virtual void ExecCmd (int Cmd)
void swap (unsigned short *addr)
void swap (short *addr)
void swap (long *addr)
void check_and_swap (short &data)
void check_and_swap (unsigned short &data)
void check_and_swap (long &data)
int float_2_sranger_q15 (double x)
int int_2_sranger_int (int x)
long long_2_sranger_long (long x)
int is_scanning ()
int start_fifo_read (int y_start, int num_srcs0, int num_srcs1, int num_srcs2, int num_srcs3, Mem2d **Mob0, Mem2d **Mob1, Mem2d **Mob2, Mem2d **Mob3)
int ReadLineFromFifo (int y_index)
int ReadProbeFifo (int dspdev, int control=0)

Public Attributes

int probe_fifo_thread_active
int probe_time_estimate
int fifo_data_y_index
int fifo_data_num_srcs [4]
Mem2d ** fifo_data_Mobp [4]
int probe_thread_dsp

Protected Attributes

int ScanningFlg
int KillFlg
int dsp
int dsp_alternative
int thread_dsp
SPM_MAGIC_DATA_LOCATIONS magic_data
int swap_flg

Private Member Functions

int FifoRead (int start, int end, int &xi, int num_srcs, int len, short *buffer, short *fifo)
int FifoRead (int start, int end, int &xi, int num_srcs, int len, long *buffer, long *fifo)

Private Attributes

GThread * fifo_read_thread
GThread * probe_fifo_read_thread
gchar * productid
int AIC_max_points

Friends

class DSPControl

Detailed Description

Definition at line 41 of file sranger_hwi.h.


Constructor & Destructor Documentation

sranger_hwi_dev::sranger_hwi_dev  ) 
 

Definition at line 124 of file sranger_hwi_dev.C.

References AIC_max_points, GnomeAppService::alert(), dsp, dsp_alternative, XSMRESOURCES::DSPDev, FALSE, FB_SPM_MAGIC, FB_SPM_MAGIC_ADR, FB_SPM_SOFT_ID, FB_SPM_VERSION, fifo_read_thread, gapp, SPM_MAGIC_DATA_LOCATIONS::magic, magic_data, N_, probe_fifo_read_thread, probe_fifo_thread_active, probe_thread_dsp, productid, SRANGER_DEBUG, SRANGER_ERROR, SRANGER_IOCTL_PRODUCT, SRANGER_IOCTL_VENDOR, SRANGER_SEEK_DATA_SPACE, swap(), swap_flg, thread_dsp, and xsmres.

sranger_hwi_dev::~sranger_hwi_dev  )  [virtual]
 

Definition at line 300 of file sranger_hwi_dev.C.

References dsp, dsp_alternative, probe_thread_dsp, SRANGER_DEBUG, and thread_dsp.


Member Function Documentation

void sranger_hwi_dev::check_and_swap long &  data  )  [inline]
 

Definition at line 86 of file sranger_hwi.h.

References swap(), and swap_flg.

void sranger_hwi_dev::check_and_swap unsigned short &  data  )  [inline]
 

Definition at line 82 of file sranger_hwi.h.

References swap(), and swap_flg.

void sranger_hwi_dev::check_and_swap short &  data  )  [inline]
 

Definition at line 78 of file sranger_hwi.h.

References swap(), and swap_flg.

Referenced by ReadProbeFifo().

virtual void sranger_hwi_dev::ExecCmd int  Cmd  )  [inline, virtual]
 

Reimplemented in sranger_hwi_spm.

Definition at line 72 of file sranger_hwi.h.

int sranger_hwi_dev::FifoRead int  start,
int  end,
int &  xi,
int  num_srcs,
int  len,
long *  buffer,
long *  fifo
[private]
 

Definition at line 580 of file sranger_hwi_dev.C.

References DATAFIFO_LENGTH, DATAFIFO_MASK, swap(), and swap_flg.

int sranger_hwi_dev::FifoRead int  start,
int  end,
int &  xi,
int  num_srcs,
int  len,
short *  buffer,
short *  fifo
[private]
 

Definition at line 555 of file sranger_hwi_dev.C.

References DATAFIFO_LENGTH, DATAFIFO_MASK, swap(), and swap_flg.

int sranger_hwi_dev::float_2_sranger_q15 double  x  ) 
 

Definition at line 333 of file sranger_hwi_dev.C.

Referenced by DSPControl::write_dsp_feedback().

gchar * sranger_hwi_dev::get_info  )  [virtual]
 

Reimplemented from XSM_Hardware.

Definition at line 1111 of file sranger_hwi_dev.C.

References SPM_MAGIC_DATA_LOCATIONS::analog, SPM_MAGIC_DATA_LOCATIONS::autoapproach, SPM_MAGIC_DATA_LOCATIONS::datafifo, SPM_MAGIC_DATA_LOCATIONS::dfm_fuzzymix, SPM_MAGIC_DATA_LOCATIONS::dsp_soft_id, FB_SPM_FEATURES, FB_SPM_SOFT_ID, FB_SPM_VERSION, SPM_MAGIC_DATA_LOCATIONS::feedback, SPM_MAGIC_DATA_LOCATIONS::magic, magic_data, SPM_MAGIC_DATA_LOCATIONS::mmdd, SPM_MAGIC_DATA_LOCATIONS::move, SPM_MAGIC_DATA_LOCATIONS::probe, SPM_MAGIC_DATA_LOCATIONS::probedatafifo, productid, SPM_MAGIC_DATA_LOCATIONS::scan, SPM_MAGIC_DATA_LOCATIONS::statemachine, SPM_MAGIC_DATA_LOCATIONS::version, and SPM_MAGIC_DATA_LOCATIONS::year.

Referenced by DSPControl::save_values().

virtual long sranger_hwi_dev::GetMaxLines  )  [inline, virtual]
 

Reimplemented from XSM_Hardware.

Definition at line 51 of file sranger_hwi.h.

References AIC_max_points.

virtual long sranger_hwi_dev::GetMaxPointsPerLine  )  [inline, virtual]
 

Reimplemented from XSM_Hardware.

Definition at line 50 of file sranger_hwi.h.

References AIC_max_points.

int sranger_hwi_dev::int_2_sranger_int int  x  ) 
 

Definition at line 342 of file sranger_hwi_dev.C.

References swap(), and swap_flg.

Referenced by DSPMoverControl::create_waveform(), sranger_hwi_spm::EndScan2D(), sranger_hwi_spm::ExecCmd(), sranger_hwi_spm::ScanLineM(), and sranger_hwi_spm::SetOffset().

int sranger_hwi_dev::is_scanning  )  [inline]
 

Definition at line 94 of file sranger_hwi.h.

References ScanningFlg.

Referenced by ProbeFifoReadFunction(), and ProbeFifoReadThread().

long sranger_hwi_dev::long_2_sranger_long long  x  ) 
 

Definition at line 349 of file sranger_hwi_dev.C.

References swap(), and swap_flg.

Referenced by sranger_hwi_spm::EndScan2D(), sranger_hwi_spm::ScanLineM(), and sranger_hwi_spm::SetOffset().

int sranger_hwi_dev::ReadLineFromFifo int  y_index  ) 
 

Definition at line 426 of file sranger_hwi_dev.C.

References DSPControlClass, DSPControl::probe_trigger_raster_points, ProbeFifoReadFunction(), SR_EMPTY_PROBE_FIFO, SR_READFIFO_RESET, and thread_dsp.

Referenced by FifoReadThread().

int sranger_hwi_dev::ReadProbeData int  nsrcs,
int  nprobe,
int  kx,
int  ky,
Mem2d m,
double  scale = 1.
[virtual]
 

Reimplemented from XSM_Hardware.

Definition at line 1102 of file sranger_hwi_dev.C.

int sranger_hwi_dev::ReadProbeFifo int  dspdev,
int  control = 0
 

Definition at line 733 of file sranger_hwi_dev.C.

References check_and_swap(), DSPControlClass, EXTERN_PROBEDATAFIFO_LENGTH, FR_FIFO_FORCE_RESET, FR_FINISH, FR_INIT, FR_NO, FR_YES, DSPControl::init_probedata_arrays(), LOGMSGS, LOGMSGS0, LOGMSGS2, magic_data, DATA_FIFO_EXTERN_PCOPY::p_buffer_base, SPM_MAGIC_DATA_LOCATIONS::probedatafifo, DATA_FIFO_EXTERN_PCOPY::r_position, RET_FR_OK, RET_FR_WAIT, SRANGER_SEEK_DATA_SPACE, and DATA_FIFO_EXTERN_PCOPY::w_position.

Referenced by ProbeFifoReadFunction(), ProbeFifoReadThread(), and start_fifo_read().

int sranger_hwi_dev::ReadScanData int  y_index,
int  num_srcs,
Mem2d m[MAX_SRCS_CHANNELS]
[virtual]
 

Reimplemented from XSM_Hardware.

Definition at line 1098 of file sranger_hwi_dev.C.

virtual gint sranger_hwi_dev::RTQuery gchar *  property,
gchar **  val
[inline, virtual]
 

Reimplemented from XSM_Hardware.

Reimplemented in sranger_hwi_spm.

Definition at line 70 of file sranger_hwi.h.

References FALSE.

virtual gint sranger_hwi_dev::RTQuery gchar *  property,
double &  val1,
double &  val2,
double &  val3
[inline, virtual]
 

Reimplemented from XSM_Hardware.

Reimplemented in sranger_hwi_spm.

Definition at line 69 of file sranger_hwi.h.

References FALSE.

virtual gint sranger_hwi_dev::RTQuery gchar *  property,
double &  val1,
double &  val2
[inline, virtual]
 

Reimplemented from XSM_Hardware.

Reimplemented in sranger_hwi_spm.

Definition at line 68 of file sranger_hwi.h.

References FALSE.

virtual gint sranger_hwi_dev::RTQuery gchar *  property,
double &  val
[inline, virtual]
 

Reimplemented from XSM_Hardware.

Reimplemented in sranger_hwi_spm.

Definition at line 67 of file sranger_hwi.h.

References FALSE.

int sranger_hwi_dev::start_fifo_read int  y_start,
int  num_srcs0,
int  num_srcs1,
int  num_srcs2,
int  num_srcs3,
Mem2d **  Mob0,
Mem2d **  Mob1,
Mem2d **  Mob2,
Mem2d **  Mob3
 

Definition at line 364 of file sranger_hwi_dev.C.

References DSPControlClass, FALSE, fifo_data_Mobp, fifo_data_num_srcs, fifo_data_y_index, fifo_read_thread, FifoReadThread(), FR_INIT, probe_fifo_read_thread, DSPControl::probe_trigger_raster_points, DSPControl::probe_trigger_single_shot, ProbeFifoReadThread(), ReadProbeFifo(), DSPControl::Source, and thread_dsp.

Referenced by DSPControl::LockIn_exec_callback(), DSPControl::Probing_exec_FZ_callback(), DSPControl::Probing_exec_IV_callback(), DSPControl::Probing_exec_LM_callback(), DSPControl::Probing_exec_PL_callback(), DSPControl::Probing_exec_RF_callback(), and sranger_hwi_spm::ScanLineM().

void sranger_hwi_dev::swap long *  addr  ) 
 

Definition at line 322 of file sranger_hwi_dev.C.

void sranger_hwi_dev::swap short *  addr  ) 
 

Definition at line 316 of file sranger_hwi_dev.C.

void sranger_hwi_dev::swap unsigned short *  addr  ) 
 

Definition at line 310 of file sranger_hwi_dev.C.

Referenced by check_and_swap(), FifoRead(), int_2_sranger_int(), long_2_sranger_long(), and sranger_hwi_dev().


Friends And Related Function Documentation

friend class DSPControl [friend]
 

Definition at line 44 of file sranger_hwi.h.


Member Data Documentation

int sranger_hwi_dev::AIC_max_points [private]
 

Definition at line 126 of file sranger_hwi.h.

Referenced by GetMaxLines(), GetMaxPointsPerLine(), and sranger_hwi_dev().

int sranger_hwi_dev::dsp [protected]
 

Definition at line 113 of file sranger_hwi.h.

Referenced by sranger_hwi_spm::EndScan2D(), sranger_hwi_spm::ExecCmd(), DSPControl::read_dsp_analog(), DSPControl::read_dsp_feedback(), DSPControl::read_dsp_probe(), DSPControl::read_dsp_scan(), DSPControl::read_dsp_state(), DSPControl::read_dsp_vector(), sranger_hwi_spm::ScanLineM(), sranger_hwi_spm::SetOffset(), sranger_hwi_dev(), DSPControl::write_dsp_analog(), DSPControl::write_dsp_feedback(), DSPControl::write_dsp_probe(), DSPControl::write_dsp_scan(), DSPControl::write_dsp_vector(), and ~sranger_hwi_dev().

int sranger_hwi_dev::dsp_alternative [protected]
 

Definition at line 114 of file sranger_hwi.h.

Referenced by DSPControl::add_user_event_now(), sranger_hwi_spm::RTQuery(), sranger_hwi_dev(), and ~sranger_hwi_dev().

Mem2d** sranger_hwi_dev::fifo_data_Mobp[4]
 

Definition at line 107 of file sranger_hwi.h.

Referenced by FifoReadThread(), and start_fifo_read().

int sranger_hwi_dev::fifo_data_num_srcs[4]
 

Definition at line 106 of file sranger_hwi.h.

Referenced by FifoReadThread(), and start_fifo_read().

int sranger_hwi_dev::fifo_data_y_index
 

Definition at line 105 of file sranger_hwi.h.

Referenced by FifoReadThread(), sranger_hwi_spm::ScanLineM(), and start_fifo_read().

GThread* sranger_hwi_dev::fifo_read_thread [private]
 

Definition at line 121 of file sranger_hwi.h.

Referenced by sranger_hwi_dev(), and start_fifo_read().

int sranger_hwi_dev::KillFlg [protected]
 

Definition at line 112 of file sranger_hwi.h.

Referenced by sranger_hwi_spm::KillScan2D(), and sranger_hwi_spm::StartScan2D().

SPM_MAGIC_DATA_LOCATIONS sranger_hwi_dev::magic_data [protected]
 

Definition at line 117 of file sranger_hwi.h.

Referenced by DSPControl::add_user_event_now(), sranger_hwi_spm::EndScan2D(), sranger_hwi_spm::ExecCmd(), get_info(), DSPControl::read_dsp_analog(), DSPControl::read_dsp_feedback(), DSPControl::read_dsp_probe(), DSPControl::read_dsp_scan(), DSPControl::read_dsp_state(), DSPControl::read_dsp_vector(), ReadProbeFifo(), sranger_hwi_spm::RTQuery(), sranger_hwi_spm::ScanLineM(), sranger_hwi_spm::SetOffset(), sranger_hwi_dev(), DSPControl::write_dsp_analog(), DSPControl::write_dsp_feedback(), DSPControl::write_dsp_probe(), DSPControl::write_dsp_scan(), and DSPControl::write_dsp_vector().

GThread* sranger_hwi_dev::probe_fifo_read_thread [private]
 

Definition at line 122 of file sranger_hwi.h.

Referenced by sranger_hwi_dev(), and start_fifo_read().

int sranger_hwi_dev::probe_fifo_thread_active
 

Definition at line 103 of file sranger_hwi.h.

Referenced by ProbeFifoReadThread(), and sranger_hwi_dev().

int sranger_hwi_dev::probe_thread_dsp
 

Definition at line 109 of file sranger_hwi.h.

Referenced by ProbeFifoReadThread(), sranger_hwi_dev(), and ~sranger_hwi_dev().

int sranger_hwi_dev::probe_time_estimate
 

Definition at line 104 of file sranger_hwi.h.

Referenced by ProbeFifoReadThread(), and DSPControl::write_dsp_probe().

gchar* sranger_hwi_dev::productid [private]
 

Definition at line 125 of file sranger_hwi.h.

Referenced by get_info(), and sranger_hwi_dev().

int sranger_hwi_dev::ScanningFlg [protected]
 

Definition at line 111 of file sranger_hwi.h.

Referenced by sranger_hwi_spm::EndScan2D(), is_scanning(), sranger_hwi_spm::PauseScan2D(), sranger_hwi_spm::ResumeScan2D(), sranger_hwi_spm::ScanLineM(), sranger_hwi_spm::sranger_hwi_spm(), and sranger_hwi_spm::StartScan2D().

int sranger_hwi_dev::swap_flg [protected]
 

Definition at line 118 of file sranger_hwi.h.

Referenced by check_and_swap(), FifoRead(), int_2_sranger_int(), long_2_sranger_long(), and sranger_hwi_dev().

int sranger_hwi_dev::thread_dsp [protected]
 

Definition at line 115 of file sranger_hwi.h.

Referenced by ReadLineFromFifo(), sranger_hwi_dev(), start_fifo_read(), and ~sranger_hwi_dev().


The documentation for this class was generated from the following files:
Generated on Sat Apr 1 09:06:26 2006 for GXSM by  doxygen 1.4.6