SIMULINK_ADC  1.0
Приём данных от АЦП
Public Member Functions | Private Attributes | List of all members
TF_SourceImit Class Reference

Имитатор данных More...

#include <TF_SourceImit.h>

Inheritance diagram for TF_SourceImit:
TF_BaseSource

Public Member Functions

 TF_SourceImit (int argc, BRDCHAR **argv)
 
virtual ~TF_SourceImit ()
 
virtual int Prepare (int count)
 Prepare function. More...
 
virtual void ReStartSession (void)
 Start new session of process data. More...
 
virtual void EventStartCycle (void)
 Start of new data cycle. More...
 
virtual int GetData (U32 **ptr)
 Get buffer of data. More...
 
- Public Member Functions inherited from TF_BaseSource
 TF_BaseSource (int argc, BRDCHAR **argv)
 
virtual ~TF_BaseSource ()
 

Private Attributes

TF_SourceImit_TaskDatatd
 Internal data of TF_SourceImit. More...
 

Detailed Description

Имитатор данных

Класс формирует синусоиду. Класс предназначен для проверки взаимодействия с Simulink

Definition at line 18 of file TF_SourceImit.h.

Constructor & Destructor Documentation

◆ TF_SourceImit()

TF_SourceImit::TF_SourceImit ( int  argc,
BRDCHAR **  argv 
)

Definition at line 34 of file TF_SourceImit.cpp.

References td.

◆ ~TF_SourceImit()

TF_SourceImit::~TF_SourceImit ( )
virtual

Definition at line 41 of file TF_SourceImit.cpp.

References td.

Member Function Documentation

◆ EventStartCycle()

void TF_SourceImit::EventStartCycle ( void  )
virtual

Start of new data cycle.

Reimplemented from TF_BaseSource.

Definition at line 63 of file TF_SourceImit.cpp.

◆ GetData()

int TF_SourceImit::GetData ( U32 **  ptr)
virtual

Get buffer of data.

Parameters
ptrpointer of pointer of data, output
Returns
1 - set new pointer to ptr

Reimplemented from TF_BaseSource.

Definition at line 72 of file TF_SourceImit.cpp.

References TF_SourceImit_TaskData::data, TF_SourceImit_TaskData::data_out_size, TF_SourceImit_TaskData::index, TF_SourceImit_TaskData::period, and td.

◆ Prepare()

int TF_SourceImit::Prepare ( int  count)
virtual

Prepare function.

Reimplemented from TF_BaseSource.

Definition at line 47 of file TF_SourceImit.cpp.

◆ ReStartSession()

void TF_SourceImit::ReStartSession ( void  )
virtual

Start new session of process data.

Reimplemented from TF_BaseSource.

Definition at line 58 of file TF_SourceImit.cpp.

Member Data Documentation

◆ td

TF_SourceImit_TaskData* TF_SourceImit::td
private

Internal data of TF_SourceImit.

Definition at line 22 of file TF_SourceImit.h.

Referenced by GetData(), TF_SourceImit(), and ~TF_SourceImit().


The documentation for this class was generated from the following files: