innovative_dsp_hwi_dev Class Reference

#include <innovative_dsp_hwi.h>

Inheritance diagram for innovative_dsp_hwi_dev:

XSM_Hardware innovative_dsp_hwi_spa innovative_dsp_hwi_spm List of all members.

Public Member Functions

 innovative_dsp_hwi_dev (int ver=1)
virtual ~innovative_dsp_hwi_dev ()
virtual void StoreParameter (void)
virtual void RestoreParameter (void)
virtual void ExecCmd (int Cmd)
virtual int WaitExec (int data)
virtual long GetMaxPointsPerLine ()
virtual long GetMaxLines ()
virtual long GetMaxChannels ()
virtual void SetParameter (PARAMETER_SET &hps, int scanflg=FALSE)
virtual void GetParameter (PARAMETER_SET &hps)
virtual size_t ReadData (void *buf, size_t count)
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 ()

Protected Member Functions

gchar * get_DSP_softinfo ()
void EventCheckOn ()
void EventCheckOff ()

Static Protected Member Functions

static void Evchk ()
static void NoEvchk ()

Protected Attributes

int ScanningFlg
void(* EventCheck )()
int KillFlg

Private Member Functions

void wait_dsp ()
void lock_dsp ()
void release_dsp ()

Private Attributes

int dsp_cmd
int dsp_usr
int dsp_data
int in_use_count
PROBE_DATA_MODE prb_data_mode
SCAN_DATA_MODE scan_data_mode
long max_points_per_line

Detailed Description

Definition at line 41 of file innovative_dsp_hwi.h.


Constructor & Destructor Documentation

innovative_dsp_hwi_dev::innovative_dsp_hwi_dev int  ver = 1  ) 
 

Definition at line 57 of file innovative_dsp_hwi_dev.C.

References BYTSIZE, dsp_cmd, DSP_CTRL_REG_LEN, DSP_CTRL_REGION, dsp_data, DSP_DATA_REG_LEN, DSP_DATA_REGION, dsp_usr, DSP_USR_REG_LEN, DSP_USR_REGION, XSMRESOURCES::DSPDev, EventCheckOn(), get_DSP_softinfo(), in_use_count, XSM_Hardware::InfoString, PCDSP_GETMODID, PCDSP_MODID_PC31, PCDSP_MODID_PCI32, PCDSP_MODID_SIM, PCDSP_SEM1LEN, PCDSP_SEM1START, PCDSP_SEM2LEN, PCDSP_SEM2START, PCDSP_SEM3LEN, PCDSP_SEM3START, SEEK_SET, and xsmres.

innovative_dsp_hwi_dev::~innovative_dsp_hwi_dev  )  [virtual]
 

Definition at line 106 of file innovative_dsp_hwi_dev.C.

References dsp_cmd, dsp_data, and dsp_usr.


Member Function Documentation

void innovative_dsp_hwi_dev::Evchk  )  [static, protected]
 

Definition at line 131 of file innovative_dsp_hwi_dev.C.

References GnomeAppService::check_events(), and gapp.

Referenced by EventCheckOn(), and SetParameter().

void innovative_dsp_hwi_dev::EventCheckOff  )  [inline, protected, virtual]
 

Reimplemented from XSM_Hardware.

Definition at line 69 of file innovative_dsp_hwi.h.

References EventCheck, and NoEvchk().

void innovative_dsp_hwi_dev::EventCheckOn  )  [inline, protected, virtual]
 

Reimplemented from XSM_Hardware.

Definition at line 68 of file innovative_dsp_hwi.h.

References Evchk(), and EventCheck.

Referenced by innovative_dsp_hwi_dev().

void innovative_dsp_hwi_dev::ExecCmd int  Cmd  )  [virtual]
 

Definition at line 112 of file innovative_dsp_hwi_dev.C.

References BYTSIZE, GnomeAppService::check_events(), dsp_cmd, DSP_CTRL_PARAM, DSP_TIMEOUT, gapp, N_, PCDSP_MBOX_WRITE_NOWAIT, timeout(), and XSM_SHOW_ALERT.

Referenced by innovative_dsp_hwi_spa::ScanLineM().

gchar * innovative_dsp_hwi_dev::get_DSP_softinfo  )  [protected]
 

Definition at line 264 of file innovative_dsp_hwi_dev.C.

References PARAMETER_SET::Cmd, DBG_L2, DSP_CMD_GETINFO, DSP_DATA_REG_LEN, FALSE, PARAMETER_SET::hp, max_points_per_line, MIN, PARAMETER_SET::N, prb_data_mode, PRB_SHORT, ReadData(), scan_data_mode, SCAN_DATA_SWAP_SHORT, SetParameter(), TMPSIZE, HARDWARE_PARAMETER::value, XSM_DEBUG, and XSM_DEBUG_PLAIN.

Referenced by innovative_dsp_hwi_dev().

virtual gchar* innovative_dsp_hwi_dev::get_info  )  [inline, virtual]
 

Reimplemented from XSM_Hardware.

Definition at line 61 of file innovative_dsp_hwi.h.

virtual long innovative_dsp_hwi_dev::GetMaxChannels  )  [inline, virtual]
 

Reimplemented from XSM_Hardware.

Definition at line 54 of file innovative_dsp_hwi.h.

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

Reimplemented from XSM_Hardware.

Definition at line 53 of file innovative_dsp_hwi.h.

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

Reimplemented from XSM_Hardware.

Reimplemented in innovative_dsp_hwi_spa.

Definition at line 52 of file innovative_dsp_hwi.h.

References max_points_per_line.

void innovative_dsp_hwi_dev::GetParameter PARAMETER_SET hps  )  [virtual]
 

Definition at line 250 of file innovative_dsp_hwi_dev.C.

References GnomeAppService::alert(), BYTSIZE, dsp_cmd, DSP_CTRL_PARAM, DSP_CTRL_REG_LEN, gapp, PARAMETER_SET::hp, PARAMETER_SET::N, and HARDWARE_PARAMETER::value.

void innovative_dsp_hwi_dev::lock_dsp  )  [inline, private]
 

Definition at line 75 of file innovative_dsp_hwi.h.

References in_use_count.

void innovative_dsp_hwi_dev::NoEvchk  )  [static, protected]
 

Definition at line 133 of file innovative_dsp_hwi_dev.C.

Referenced by EventCheckOff(), and SetParameter().

size_t innovative_dsp_hwi_dev::ReadData void *  buf,
size_t  count
[virtual]
 

Reimplemented from XSM_Hardware.

Definition at line 343 of file innovative_dsp_hwi_dev.C.

References dsp_data.

Referenced by get_DSP_softinfo(), ReadProbeData(), ReadScanData(), and innovative_dsp_hwi_spa::ScanLineM().

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

Reimplemented from XSM_Hardware.

Definition at line 421 of file innovative_dsp_hwi_dev.C.

References DSP_DATA_REG_LEN, prb_data_mode, PRB_FLOAT, PRB_SHORT, Mem2d::PutDataPkt(), ReadData(), and SHT.

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

Reimplemented from XSM_Hardware.

Definition at line 348 of file innovative_dsp_hwi_dev.C.

References PARAMETER_SET::Cmd, DSP_CMD_MOVE_DATA2DPRAM, DSP_DATA_REG_LEN, DSP_LSSRCS, DSP_MVD_CMD_LEN, DSP_MVD_CMD_START, PARAMETER_SET::hp, PARAMETER_SET::N, ReadData(), scan_data_mode, SCAN_DATA_MOVE2DPRAM_SHORT, SetParameter(), SHT, TRUE, and HARDWARE_PARAMETER::value.

Referenced by innovative_dsp_hwi_spm::ScanLineM().

void innovative_dsp_hwi_dev::release_dsp  )  [inline, private]
 

Definition at line 76 of file innovative_dsp_hwi.h.

References in_use_count.

virtual void innovative_dsp_hwi_dev::RestoreParameter void   )  [inline, virtual]
 

Reimplemented in innovative_dsp_hwi_spa.

Definition at line 47 of file innovative_dsp_hwi.h.

void innovative_dsp_hwi_dev::SetParameter PARAMETER_SET hps,
int  scanflg = FALSE
[virtual]
 

Definition at line 137 of file innovative_dsp_hwi_dev.C.

References BYTSIZE, XSM_Hardware::CallIdleFunc(), CHECK_ERR_DTIME, PARAMETER_SET::Cmd, DBG_L2, dsp_cmd, DSP_CTRL_CMD, DSP_CTRL_PARAM, DSP_CTRL_REG_LEN, DSP_TIMEOUT, Evchk(), EventCheck, FALSE, PARAMETER_SET::hp, KillFlg, PARAMETER_SET::N, N_, NoEvchk(), PCDSP_MBOX_EMPTY, PCDSP_MBOX_WRITE_NOWAIT, SHOW_MSG, timeout(), HARDWARE_PARAMETER::value, and XSM_DEBUG.

Referenced by innovative_dsp_hwi_spm::DSP_FbWerte(), innovative_dsp_hwi_spm::DSP_SetAppWerte(), innovative_dsp_hwi_spm::DSP_SetMoveParam(), innovative_dsp_hwi_spm::DSP_SetRotParam(), innovative_dsp_hwi_spm::DSP_SetTransferFkt(), innovative_dsp_hwi_spa::DSP_SpaWerte(), get_DSP_softinfo(), innovative_dsp_hwi_spm::MovetoXY(), ReadScanData(), innovative_dsp_hwi_spm::ScanLineM(), and innovative_dsp_hwi_spa::ScanLineM().

virtual void innovative_dsp_hwi_dev::StoreParameter void   )  [inline, virtual]
 

Reimplemented in innovative_dsp_hwi_spa.

Definition at line 46 of file innovative_dsp_hwi.h.

void innovative_dsp_hwi_dev::wait_dsp  )  [inline, private]
 

Definition at line 74 of file innovative_dsp_hwi.h.

int innovative_dsp_hwi_dev::WaitExec int  data  )  [virtual]
 

Definition at line 127 of file innovative_dsp_hwi_dev.C.


Member Data Documentation

int innovative_dsp_hwi_dev::dsp_cmd [private]
 

Definition at line 76 of file innovative_dsp_hwi.h.

Referenced by ExecCmd(), GetParameter(), innovative_dsp_hwi_dev(), SetParameter(), and ~innovative_dsp_hwi_dev().

int innovative_dsp_hwi_dev::dsp_data [private]
 

Definition at line 76 of file innovative_dsp_hwi.h.

Referenced by innovative_dsp_hwi_dev(), ReadData(), and ~innovative_dsp_hwi_dev().

int innovative_dsp_hwi_dev::dsp_usr [private]
 

Definition at line 76 of file innovative_dsp_hwi.h.

Referenced by innovative_dsp_hwi_dev(), and ~innovative_dsp_hwi_dev().

void(* innovative_dsp_hwi_dev::EventCheck)() [protected]
 

Referenced by EventCheckOff(), EventCheckOn(), and SetParameter().

int innovative_dsp_hwi_dev::in_use_count [private]
 

Definition at line 78 of file innovative_dsp_hwi.h.

Referenced by innovative_dsp_hwi_dev(), lock_dsp(), and release_dsp().

int innovative_dsp_hwi_dev::KillFlg [protected]
 

Definition at line 71 of file innovative_dsp_hwi.h.

Referenced by innovative_dsp_hwi_spa::KillScan2D(), innovative_dsp_hwi_spm::KillScan2D(), SetParameter(), innovative_dsp_hwi_spm::StartScan2D(), and innovative_dsp_hwi_spa::StartScan2D().

long innovative_dsp_hwi_dev::max_points_per_line [private]
 

Definition at line 82 of file innovative_dsp_hwi.h.

Referenced by get_DSP_softinfo(), and GetMaxPointsPerLine().

PROBE_DATA_MODE innovative_dsp_hwi_dev::prb_data_mode [private]
 

Definition at line 80 of file innovative_dsp_hwi.h.

Referenced by get_DSP_softinfo(), and ReadProbeData().

SCAN_DATA_MODE innovative_dsp_hwi_dev::scan_data_mode [private]
 

Definition at line 81 of file innovative_dsp_hwi.h.

Referenced by get_DSP_softinfo(), and ReadScanData().

int innovative_dsp_hwi_dev::ScanningFlg [protected]
 

Definition at line 61 of file innovative_dsp_hwi.h.

Referenced by innovative_dsp_hwi_spm::EndScan2D(), innovative_dsp_hwi_spa::EndScan2D(), innovative_dsp_hwi_spa::innovative_dsp_hwi_spa(), innovative_dsp_hwi_spm::innovative_dsp_hwi_spm(), innovative_dsp_hwi_spm::PauseScan2D(), innovative_dsp_hwi_spm::PutParameter(), innovative_dsp_hwi_spa::PutParameter(), innovative_dsp_hwi_spm::ResumeScan2D(), innovative_dsp_hwi_spm::ScanLineM(), innovative_dsp_hwi_spm::StartScan2D(), and innovative_dsp_hwi_spa::StartScan2D().


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