PhysicalBoardChannel Class Reference

#include <physical_board_channel.h>

Inheritance diagram for PhysicalBoardChannel:

GenericBoardChannel V1724BoardChannel List of all members.

Public Member Functions

 PhysicalBoardChannel (GenericBoard *parent, int ch_index, cvt_board_data *p_data, void(*scope_refresh)(int, bool), wxMutex *p_data_mutex, AppSettings *p_app_settings)
virtual ~PhysicalBoardChannel (void)
virtual bool LoadConfig (wxConfigBase *p_config, const wxString &base_section)
virtual bool SaveConfig (wxConfigBase *p_config, const wxString &base_section)
double GetSampleVolt (int i)
int GetSample (int i)
UINT32 GetBufferCount (void)
void DrawTrigger (int scope_index, wxDC &dc)
virtual bool ReadSamplesCache (UINT32 num_samples)=0
virtual bool WriteDACOffset (void)=0
virtual bool WriteChannelTrigger (void)=0

Public Attributes

int m_DAC_offset_bit
double m_DAC_bit_2_volt
double m_DAC_volt_2_bit
double m_trigger_threshold_volt
int m_trigger_thr_sample

Protected Attributes

wxMutex m_samples_mutex
UINT16 * m_p_sample_buffer
UINT32 m_sample_buffer_size
UINT32 m_sample_buffer_count
UINT16 * m_p_tmp_sample_buffer
UINT32 m_tmp_sample_buffer_size
UINT32 m_tmp_sample_buffer_count
UINT32 m_tmp_record_sample_counter

Detailed Description

Includes

Definition at line 32 of file physical_board_channel.h.


Constructor & Destructor Documentation

PhysicalBoardChannel::PhysicalBoardChannel GenericBoard parent,
int  ch_index,
cvt_board_data *  p_data,
void(*)(int, bool)  scope_refresh,
wxMutex *  p_data_mutex,
AppSettings p_app_settings
 

Definition at line 34 of file physical_board_channel.cpp.

References m_p_sample_buffer, m_p_tmp_sample_buffer, m_sample_buffer_count, m_sample_buffer_size, m_tmp_sample_buffer_count, and m_tmp_sample_buffer_size.

PhysicalBoardChannel::~PhysicalBoardChannel void   )  [virtual]
 

Definition at line 47 of file physical_board_channel.cpp.

References m_p_sample_buffer, m_p_tmp_sample_buffer, m_sample_buffer_count, and m_tmp_sample_buffer_count.


Member Function Documentation

void PhysicalBoardChannel::DrawTrigger int  scope_index,
wxDC &  dc
[virtual]
 

Implements GenericBoardChannel.

Definition at line 123 of file physical_board_channel.cpp.

References AppSettings::FALLING_EDGE, GenericBoardChannel::m_div_2_pix_Y, AppSettings::m_offset_sec, GenericBoardChannel::m_offset_y, GenericBoardChannel::m_p_app_settings, DrawingCanvas::NUM_DIV_PER_SCREEN, GenericBoardChannel::PixY2Dc(), AppSettings::RAISING_EDGE, and GenericBoardChannel::Sample2Sec().

UINT32 PhysicalBoardChannel::GetBufferCount void   )  [inline, virtual]
 

Implements GenericBoardChannel.

Definition at line 52 of file physical_board_channel.h.

References m_sample_buffer_count.

int PhysicalBoardChannel::GetSample int  i  )  [inline, virtual]
 

Implements GenericBoardChannel.

Definition at line 51 of file physical_board_channel.h.

References m_p_sample_buffer.

Referenced by GetSampleVolt().

double PhysicalBoardChannel::GetSampleVolt int  i  )  [inline, virtual]
 

Implements GenericBoardChannel.

Definition at line 50 of file physical_board_channel.h.

References GetSample().

bool PhysicalBoardChannel::LoadConfig wxConfigBase *  p_config,
const wxString &  base_section
[virtual]
 

Reimplemented from GenericBoardChannel.

Definition at line 63 of file physical_board_channel.cpp.

References GenericBoardChannel::LoadConfig(), m_DAC_offset_bit, m_DAC_volt_2_bit, m_trigger_thr_sample, and m_trigger_threshold_volt.

virtual bool PhysicalBoardChannel::ReadSamplesCache UINT32  num_samples  )  [pure virtual]
 

Implemented in V1724BoardChannel.

bool PhysicalBoardChannel::SaveConfig wxConfigBase *  p_config,
const wxString &  base_section
[virtual]
 

Reimplemented from GenericBoardChannel.

Definition at line 97 of file physical_board_channel.cpp.

References GenericBoardChannel::SaveConfig().

virtual bool PhysicalBoardChannel::WriteChannelTrigger void   )  [pure virtual]
 

Implemented in V1724BoardChannel.

Referenced by CommonChControl::OnEnableTogglebuttonClick(), TriggerChControl::UpdateControls(), TriggerChControl::UpdateThreshold(), and TriggerChControl::UpdateThrSamples().

virtual bool PhysicalBoardChannel::WriteDACOffset void   )  [pure virtual]
 

Implemented in V1724BoardChannel.

Referenced by CommonChControl::UpdateDAC().


Member Data Documentation

double PhysicalBoardChannel::m_DAC_bit_2_volt
 

Definition at line 40 of file physical_board_channel.h.

int PhysicalBoardChannel::m_DAC_offset_bit
 

Definition at line 39 of file physical_board_channel.h.

Referenced by LoadConfig(), CommonChControl::UpdateDAC(), and V1724BoardChannel::WriteDACOffset().

double PhysicalBoardChannel::m_DAC_volt_2_bit
 

Definition at line 40 of file physical_board_channel.h.

Referenced by LoadConfig().

UINT16* PhysicalBoardChannel::m_p_sample_buffer [protected]
 

Definition at line 64 of file physical_board_channel.h.

Referenced by GetSample(), PhysicalBoardChannel(), and ~PhysicalBoardChannel().

UINT16* PhysicalBoardChannel::m_p_tmp_sample_buffer [protected]
 

Definition at line 66 of file physical_board_channel.h.

Referenced by PhysicalBoardChannel(), V1724BoardChannel::ReadSamplesCache(), and ~PhysicalBoardChannel().

UINT32 PhysicalBoardChannel::m_sample_buffer_count [protected]
 

Definition at line 65 of file physical_board_channel.h.

Referenced by GetBufferCount(), PhysicalBoardChannel(), V1724BoardChannel::ReadSamplesCache(), and ~PhysicalBoardChannel().

UINT32 PhysicalBoardChannel::m_sample_buffer_size [protected]
 

Definition at line 65 of file physical_board_channel.h.

Referenced by PhysicalBoardChannel().

wxMutex PhysicalBoardChannel::m_samples_mutex [protected]
 

Reimplemented from GenericBoardChannel.

Definition at line 62 of file physical_board_channel.h.

UINT32 PhysicalBoardChannel::m_tmp_record_sample_counter [protected]
 

Definition at line 67 of file physical_board_channel.h.

UINT32 PhysicalBoardChannel::m_tmp_sample_buffer_count [protected]
 

Definition at line 67 of file physical_board_channel.h.

Referenced by PhysicalBoardChannel(), V1724BoardChannel::ReadSamplesCache(), and ~PhysicalBoardChannel().

UINT32 PhysicalBoardChannel::m_tmp_sample_buffer_size [protected]
 

Definition at line 67 of file physical_board_channel.h.

Referenced by PhysicalBoardChannel(), and V1724BoardChannel::ReadSamplesCache().

int PhysicalBoardChannel::m_trigger_thr_sample
 

Definition at line 42 of file physical_board_channel.h.

Referenced by LoadConfig(), and TriggerChControl::UpdateThrSamples().

double PhysicalBoardChannel::m_trigger_threshold_volt
 

Definition at line 41 of file physical_board_channel.h.

Referenced by LoadConfig(), TriggerChControl::UpdateThreshold(), and V1724BoardChannel::WriteChannelTrigger().


The documentation for this class was generated from the following files:
Generated on Mon Mar 19 17:14:09 2007 for CAENScope by  doxygen 1.4.6-NO