TTEthernet Model for INET Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
TTEthernetModel Namespace Reference

Classes

class  APIPayload
 Class generated from api/APIPayload.msg by opp_msgc. More...
 
class  Callback
 Class representing a Callback. More...
 
class  APICallback
 Class representing a Callback especially for API callbacks. More...
 
class  Task
 Class representing a Task. More...
 
class  APITask
 Class representing a Task especially for API. More...
 
class  TTEAPIPriv
 Class that contains different pointers. More...
 
class  TTEAPIApplicationBase
 Base class for a TTEthernet-Application based on the TTEthernet-API. More...
 
class  TTEAPITestApplication
 Simple Test-Application based on the TTEthernet-API. More...
 
class  TTEApplicationBase
 Base class for a TTEthernet-Application. More...
 
class  TTETestApp
 Simple Test-Application. More...
 
class  RCTrafficSourceApp
 Simple Test-Application. More...
 
class  TrafficSourceAppBase
 Simple Test-Application. More...
 
class  TTTrafficSourceApp
 Simple Test-Application. More...
 
class  BGBuffer
 Base class for a background (best-effort) buffer class. More...
 
class  BGQueueBuffer
 Class for a queuing background (best-effort) buffer class. More...
 
class  Buffer
 Base class for all buffer classes. More...
 
class  CTBuffer
 Base class for all critical traffic buffer classes. More...
 
class  DoubleBuffer
 Base class for a double buffer class. More...
 
class  QueueBuffer
 Base class for a queuing buffer class. More...
 
class  RCBuffer
 Base class for a rate-constrained buffer class. More...
 
class  RCDoubleBuffer
 Rate-constrained double buffer class. More...
 
class  RCQueueBuffer
 Rate-constrained queue buffer class. More...
 
class  TTBuffer
 Base class for a time-triggered buffer class. More...
 
class  TTBufferEmpty
 Class generated from buffer/TTBufferEmpty.msg by opp_msgc. More...
 
class  TTDoubleBuffer
 Time-triggered double buffer class. More...
 
class  TTQueueBuffer
 Time-triggered queue buffer class. More...
 
class  BaseConfigurationManager
 Dummy module for a ConfigurationManager that has no configuration. More...
 
class  Incoming
 Base class for the critical traffic conformance check. More...
 
class  RCIncoming
 Class for the critical traffic conformance check of rate-constrained traffic. More...
 
class  TTIncoming
 Class for the critical traffic conformance check of time-triggered traffic. More...
 
class  BGTrafficHandle
 Implements a standard ETHERAPP that sends and receives best-effort Ethernet frames. More...
 
class  CTFrame
 Base class for the CTFrame message. More...
 
class  CTFrame_Base
 Class generated from linklayer/ethernet/CTFrame.msg by opp_msgc. More...
 
class  PCFrame
 Class generated from linklayer/ethernet/PCFrame.msg by opp_msgc. More...
 
class  RCFrame
 Class generated from linklayer/ethernet/RCFrame.msg by opp_msgc. More...
 
class  TTFrame
 Class generated from linklayer/ethernet/TTFrame.msg by opp_msgc. More...
 
class  TTEInput
 Represents the part of a port that receives messages (RX) More...
 
class  TTEOutput
 Represents the part of a port that sends messages (TX) More...
 
class  SchedulerEvent
 Redefines SchedulerEvent_Base and adds destinationGate. More...
 
class  SchedulerMessage
 Class generated from scheduler/SchedulerMessage.msg by opp_msgc. More...
 
class  SchedulerEvent_Base
 Class generated from scheduler/SchedulerMessage.msg by opp_msgc. More...
 
class  SchedulerActionTimeEvent
 Class generated from scheduler/SchedulerMessageEvents.msg by opp_msgc. More...
 
class  SchedulerTimerEvent
 Class generated from scheduler/SchedulerMessageEvents.msg by opp_msgc. More...
 
class  TTEScheduler
 Scheduler module. More...
 
class  DummySync
 Dummy sync module. More...
 
class  SyncBase
 Base for sync modules. More...
 
class  SyncNotification
 Class generated from synchronisation/base/SyncNotification.msg by opp_msgc. More...
 

Typedefs

typedef void(* cbFunc )(void *)
 

Enumerations

enum  TTEAPIApplicationMessageKind { START_APPLICATION }
 Message kinds for application control messages. More...
 
enum  SchedulerMessageKind { NEW_CYCLE = 0, ACTION_TIME_EVENT = 1, TIMER_EVENT = 2 }
 Enum generated from scheduler/SchedulerMessage.msg by opp_msgc. More...
 
enum  SyncNotificationKind { SYNC = 0, ASYNC = 1 }
 Enum generated from synchronisation/base/SyncNotification.msg by opp_msgc. More...
 

Functions

void doPacking (cCommBuffer *b, APIPayload &obj)
 
void doUnpacking (cCommBuffer *b, APIPayload &obj)
 
 Define_Module (TTEAPIApplicationBase)
 
int32_t tte_init (void)
 
int32_t tte_start (const uint8_t ctrl_id)
 
int32_t tte_stop (const uint8_t ctrl_id)
 
int32_t tte_exit (void)
 
int32_t tte_configure (const uint8_t ctrl_id, const tte_conf_t *const conf)
 
int32_t tte_set_var (const uint8_t ctrl_id, const tte_var_id_t var_id, const uint32_t var_size, const void *const value)
 
int32_t tte_get_var (const uint8_t ctrl_id, const tte_var_id_t var_id, const uint32_t var_size, void *const value)
 
int32_t tte_get_ct_input_buf (const uint8_t ctrl_id, const uint16_t ct_id, tte_buffer_t *const buf)
 
int32_t tte_get_ct_output_buf (const uint8_t ctrl_id, const uint16_t ct_id, tte_buffer_t *const buf)
 
int32_t tte_get_bg_input_buf (const uint8_t ctrl_id, const uint8_t channel, tte_buffer_t *const buf)
 
int32_t tte_get_bg_output_buf (const uint8_t ctrl_id, const uint8_t channel, tte_buffer_t *const buf)
 
int32_t tte_write_output_buf (tte_buffer_t *const buf, tte_frame_t *const frame)
 
int32_t tte_read_input_buf (tte_buffer_t *const buf, tte_frame_t *const frame, tte_buf_status_t *const status)
 
int32_t tte_open_input_buf (tte_buffer_t *const buf, tte_frame_t *const frame, tte_buf_status_t *const status)
 
int32_t tte_close_input_buf (tte_buffer_t *const buf)
 
int32_t tte_open_output_buf (tte_buffer_t *const buf, tte_frame_t *const frame)
 
int32_t tte_close_output_buf (tte_buffer_t *const buf)
 
int32_t tte_get_buf_var (const tte_buffer_t *const buf, const tte_buf_var_id_t var_id, const uint32_t var_size, void *const value)
 
int32_t tte_set_buf_var (tte_buffer_t *const buf, const tte_buf_var_id_t var_id, const uint32_t var_size, const void *const value)
 
int32_t tte_flush_buffers (const uint8_t ctrl_id)
 
int32_t tte_flush_tt_buffers (const uint8_t ctrl_id)
 
int32_t tte_flush_bg_buffers (const uint8_t ctrl_id, const uint8_t channel)
 
 Define_Module (TTEAPITestApplication)
 
void testCallback (void *arg)
 
unsigned int main ()
 
 Define_Module (TTEApplicationBase)
 
 Define_Module (TTETestApp)
 
 Define_Module (RCTrafficSourceApp)
 
 Define_Module (TrafficSourceAppBase)
 
 Define_Module (TTTrafficSourceApp)
 
 Define_Module (BGBuffer)
 
 Define_Module (RCBuffer)
 
void doPacking (cCommBuffer *b, TTBufferEmpty &obj)
 
void doUnpacking (cCommBuffer *b, TTBufferEmpty &obj)
 
 Define_Module (BaseConfigurationManager)
 
 Define_Module (Incoming)
 
 Define_Module (RCIncoming)
 
 Define_Module (TTIncoming)
 
 Define_Module (BGTrafficHandle)
 
void doPacking (cCommBuffer *b, PCFrame &obj)
 
void doUnpacking (cCommBuffer *b, PCFrame &obj)
 
void doPacking (cCommBuffer *b, RCFrame &obj)
 
void doUnpacking (cCommBuffer *b, RCFrame &obj)
 
void doPacking (cCommBuffer *b, TTFrame &obj)
 
void doUnpacking (cCommBuffer *b, TTFrame &obj)
 
 Register_Class (SchedulerEvent)
 
void doPacking (cCommBuffer *b, SchedulerMessage &obj)
 
void doUnpacking (cCommBuffer *b, SchedulerMessage &obj)
 
void doPacking (cCommBuffer *b, SchedulerActionTimeEvent &obj)
 
void doUnpacking (cCommBuffer *b, SchedulerActionTimeEvent &obj)
 
void doPacking (cCommBuffer *b, SchedulerTimerEvent &obj)
 
void doUnpacking (cCommBuffer *b, SchedulerTimerEvent &obj)
 
 Define_Module (TTEScheduler)
 
void doPacking (cCommBuffer *b, SyncNotification &obj)
 
void doUnpacking (cCommBuffer *b, SyncNotification &obj)
 

Typedef Documentation

typedef void(* TTEthernetModel::cbFunc)(void *)

Definition at line 18 of file Callback.h.

Enumeration Type Documentation

Enum generated from scheduler/SchedulerMessage.msg by opp_msgc.

enum SchedulerMessageKind {

NEW_CYCLE=0;

ACTION_TIME_EVENT=1;

TIMER_EVENT=2;

}

Enumerator
NEW_CYCLE 
ACTION_TIME_EVENT 
TIMER_EVENT 

Definition at line 32 of file SchedulerMessage_m.h.

32  {
33  NEW_CYCLE = 0,
35  TIMER_EVENT = 2
36 };

Enum generated from synchronisation/base/SyncNotification.msg by opp_msgc.

enum SyncNotificationKind {

SYNC=0;

ASYNC=1;

}

Enumerator
SYNC 
ASYNC 

Definition at line 30 of file SyncNotification_m.h.

30  {
31  SYNC = 0,
32  ASYNC = 1
33 };

Message kinds for application control messages.

Enumerator
START_APPLICATION 

Message to trigger the application start.

Definition at line 32 of file TTEAPIApplicationBase.h.

32  {
37 };

Function Documentation

TTEthernetModel::Define_Module ( BaseConfigurationManager  )
TTEthernetModel::Define_Module ( Incoming  )
TTEthernetModel::Define_Module ( TTETestApp  )
TTEthernetModel::Define_Module ( BGBuffer  )
TTEthernetModel::Define_Module ( TTTrafficSourceApp  )
TTEthernetModel::Define_Module ( RCIncoming  )
TTEthernetModel::Define_Module ( TTEApplicationBase  )
TTEthernetModel::Define_Module ( RCTrafficSourceApp  )
TTEthernetModel::Define_Module ( TTEScheduler  )
TTEthernetModel::Define_Module ( RCBuffer  )
TTEthernetModel::Define_Module ( TTIncoming  )
TTEthernetModel::Define_Module ( BGTrafficHandle  )
TTEthernetModel::Define_Module ( TTEAPITestApplication  )
TTEthernetModel::Define_Module ( TrafficSourceAppBase  )
TTEthernetModel::Define_Module ( TTEAPIApplicationBase  )
void TTEthernetModel::doPacking ( cCommBuffer *  b,
TTBufferEmpty &  obj 
)
inline

Definition at line 51 of file TTBufferEmpty_m.h.

51 {obj.parsimPack(b);}
void TTEthernetModel::doPacking ( cCommBuffer *  b,
TTFrame &  obj 
)
inline

Definition at line 58 of file TTFrame_m.h.

58 {obj.parsimPack(b);}
void TTEthernetModel::doPacking ( cCommBuffer *  b,
SchedulerActionTimeEvent &  obj 
)
inline

Definition at line 58 of file SchedulerMessageEvents_m.h.

58 {obj.parsimPack(b);}
void TTEthernetModel::doPacking ( cCommBuffer *  b,
RCFrame &  obj 
)
inline

Definition at line 59 of file RCFrame_m.h.

59 {obj.parsimPack(b);}
void TTEthernetModel::doPacking ( cCommBuffer *  b,
APIPayload &  obj 
)
inline

Definition at line 61 of file APIPayload_m.h.

61 {obj.parsimPack(b);}
void TTEthernetModel::doPacking ( cCommBuffer *  b,
SyncNotification &  obj 
)
inline

Definition at line 66 of file SyncNotification_m.h.

66 {obj.parsimPack(b);}
void TTEthernetModel::doPacking ( cCommBuffer *  b,
SchedulerMessage &  obj 
)
inline

Definition at line 68 of file SchedulerMessage_m.h.

68 {obj.parsimPack(b);}
void TTEthernetModel::doPacking ( cCommBuffer *  b,
SchedulerTimerEvent &  obj 
)
inline

Definition at line 96 of file SchedulerMessageEvents_m.h.

96 {obj.parsimPack(b);}
void TTEthernetModel::doPacking ( cCommBuffer *  b,
PCFrame &  obj 
)
inline

Definition at line 108 of file PCFrame_m.h.

108 {obj.parsimPack(b);}
void TTEthernetModel::doUnpacking ( cCommBuffer *  b,
TTBufferEmpty &  obj 
)
inline

Definition at line 52 of file TTBufferEmpty_m.h.

52 {obj.parsimUnpack(b);}
void TTEthernetModel::doUnpacking ( cCommBuffer *  b,
TTFrame &  obj 
)
inline

Definition at line 59 of file TTFrame_m.h.

59 {obj.parsimUnpack(b);}
void TTEthernetModel::doUnpacking ( cCommBuffer *  b,
SchedulerActionTimeEvent &  obj 
)
inline

Definition at line 59 of file SchedulerMessageEvents_m.h.

59 {obj.parsimUnpack(b);}
void TTEthernetModel::doUnpacking ( cCommBuffer *  b,
RCFrame &  obj 
)
inline

Definition at line 60 of file RCFrame_m.h.

60 {obj.parsimUnpack(b);}
void TTEthernetModel::doUnpacking ( cCommBuffer *  b,
APIPayload &  obj 
)
inline

Definition at line 62 of file APIPayload_m.h.

62 {obj.parsimUnpack(b);}
void TTEthernetModel::doUnpacking ( cCommBuffer *  b,
SyncNotification &  obj 
)
inline

Definition at line 67 of file SyncNotification_m.h.

67 {obj.parsimUnpack(b);}
void TTEthernetModel::doUnpacking ( cCommBuffer *  b,
SchedulerMessage &  obj 
)
inline

Definition at line 69 of file SchedulerMessage_m.h.

69 {obj.parsimUnpack(b);}
void TTEthernetModel::doUnpacking ( cCommBuffer *  b,
SchedulerTimerEvent &  obj 
)
inline

Definition at line 97 of file SchedulerMessageEvents_m.h.

97 {obj.parsimUnpack(b);}
void TTEthernetModel::doUnpacking ( cCommBuffer *  b,
PCFrame &  obj 
)
inline

Definition at line 109 of file PCFrame_m.h.

109 {obj.parsimUnpack(b);}
unsigned int TTEthernetModel::main ( )

Definition at line 30 of file TTEAPITestApplication.cc.

Referenced by TTEthernetModel::TTEAPITestApplication::startApplication().

30  {
31  //tte_init();
32  tte_buffer_t testbuffer;
33  if(tte_get_ct_output_buf(0, 100, &testbuffer) != ETT_SUCCESS){
34  ev << "MIST1!" << endl << endl;
35  return -1;
36  }
37 
38  ev << "tte_get_channel_cnt(): " << tte_get_controller_cnt() << endl << endl;
39 
40  uint8_t mac[6];
41 
42  tte_get_var(0, TTE_VAR_MAC_ADDRESS,sizeof(mac), mac);
43 
44  ev.printf("TTE_VAR_MAC_ADDRESS: %02x:%02x:%02x:%02x:%02x:%02x\n\n", mac[5], mac[4], mac[3], mac[2], mac[1], mac[0]);
45 
46  if(tte_set_buf_var(&testbuffer, TTE_BUFVAR_TRANSMIT_CB, sizeof(void(*)(void*)), (void*)&testCallback) != ETT_SUCCESS){
47  ev << "MIST21!" << endl << endl;
48  return -1;
49  }
50  if(tte_set_buf_var(&testbuffer, TTE_BUFVAR_CB_ARG, 5, "SENT") != ETT_SUCCESS){
51  ev << "MIST22!" << endl << endl;
52  return -1;
53  }
54 
55  tte_frame_t frame;
56  frame.length=46;
57 
58  frame.eth_hdr.src_mac[0] = 0x00;
59  frame.eth_hdr.src_mac[1] = 0x00;
60  frame.eth_hdr.src_mac[2] = 0x00;
61  frame.eth_hdr.src_mac[3] = 0x00;
62  frame.eth_hdr.src_mac[4] = 0x00;
63  frame.eth_hdr.src_mac[5] = 0x00;
64 
65  frame.eth_hdr.dst_mac[0] = 0x00;
66  frame.eth_hdr.dst_mac[1] = 0x00;
67  frame.eth_hdr.dst_mac[2] = 0x00;
68  frame.eth_hdr.dst_mac[3] = 0x00;
69  frame.eth_hdr.dst_mac[4] = 0x00;
70  frame.eth_hdr.dst_mac[5] = 0x00;
71 
72  if(tte_open_output_buf(&testbuffer, &frame) != ETT_SUCCESS){
73  ev << "MIST2!" << endl << endl;
74  return -1;
75  }
76  if(tte_close_output_buf(&testbuffer) != ETT_SUCCESS){
77  ev << "MIST3!" << endl << endl;
78  return -1;
79  }
80 
81  tte_buffer_t testbuffer2;
82  if(tte_get_ct_output_buf(0, 100, &testbuffer2) != ETT_SUCCESS){
83  ev << "MIST4!" << endl << endl;
84  return -1;
85  }
86  if(tte_set_buf_var(&testbuffer2, TTE_BUFVAR_RECEIVE_CB, sizeof(void(*)(void*)), (void*)&testCallback) != ETT_SUCCESS){
87  ev << "MIST41!" << endl << endl;
88  return -1;
89  }
90  if(tte_set_buf_var(&testbuffer2, TTE_BUFVAR_CB_ARG, 9, "RECEIVED") != ETT_SUCCESS){
91  ev << "MIST42!" << endl << endl;
92  return -1;
93  }
94 
95  return 0;
96 }
TTEthernetModel::Register_Class ( SchedulerEvent  )
void TTEthernetModel::testCallback ( void *  arg)

Definition at line 25 of file TTEAPITestApplication.cc.

Referenced by main().

25  {
26  std::string teststring = (const char *)arg;
27  ev << "CALLBACK EXECUTED! " << teststring << endl << endl;
28 }
int32_t TTEthernetModel::tte_close_input_buf ( tte_buffer_t *const  buf)

Definition at line 613 of file TTEAPIApplicationBase.cc.

613  {
614  TTEAPIApplicationBase *app = dynamic_cast<TTEAPIApplicationBase*>(cSimulation::getActiveSimulation()->getContext());
615  if(app != NULL)
616  return app->tte_close_input_buf(buf);
617  return ETT_NULLPTR;
618 }
int32_t TTEthernetModel::tte_close_output_buf ( tte_buffer_t *const  buf)

Definition at line 628 of file TTEAPIApplicationBase.cc.

Referenced by main().

628  {
629  TTEAPIApplicationBase *app = dynamic_cast<TTEAPIApplicationBase*>(cSimulation::getActiveSimulation()->getContext());
630  if(app != NULL)
631  return app->tte_close_output_buf(buf);
632  return ETT_NULLPTR;
633 }
int32_t TTEthernetModel::tte_configure ( const uint8_t  ctrl_id,
const tte_conf_t *const  conf 
)

Definition at line 533 of file TTEAPIApplicationBase.cc.

534  {
535  return ETT_NOTSUPPORTED;
536 }
int32_t TTEthernetModel::tte_exit ( void  )

Definition at line 529 of file TTEAPIApplicationBase.cc.

529  {
530  return ETT_NOTSUPPORTED;
531 }
int32_t TTEthernetModel::tte_flush_bg_buffers ( const uint8_t  ctrl_id,
const uint8_t  channel 
)

Definition at line 663 of file TTEAPIApplicationBase.cc.

663  {
664  return ETT_NOTSUPPORTED;
665 }
int32_t TTEthernetModel::tte_flush_buffers ( const uint8_t  ctrl_id)

Definition at line 655 of file TTEAPIApplicationBase.cc.

655  {
656  return ETT_NOTSUPPORTED;
657 }
int32_t TTEthernetModel::tte_flush_tt_buffers ( const uint8_t  ctrl_id)

Definition at line 659 of file TTEAPIApplicationBase.cc.

659  {
660  return ETT_NOTSUPPORTED;
661 }
int32_t TTEthernetModel::tte_get_bg_input_buf ( const uint8_t  ctrl_id,
const uint8_t  channel,
tte_buffer_t *const  buf 
)

Definition at line 573 of file TTEAPIApplicationBase.cc.

575  {
576  TTEAPIApplicationBase *app = dynamic_cast<TTEAPIApplicationBase*>(cSimulation::getActiveSimulation()->getContext());
577  if(app != NULL)
578  return app->tte_get_bg_input_buf(ctrl_id, channel, buf);
579  return ETT_NULLPTR;
580 }
int32_t TTEthernetModel::tte_get_bg_output_buf ( const uint8_t  ctrl_id,
const uint8_t  channel,
tte_buffer_t *const  buf 
)

Definition at line 582 of file TTEAPIApplicationBase.cc.

584  {
585  TTEAPIApplicationBase *app = dynamic_cast<TTEAPIApplicationBase*>(cSimulation::getActiveSimulation()->getContext());
586  if(app != NULL)
587  return app->tte_get_bg_output_buf(ctrl_id, channel, buf);
588  return ETT_NULLPTR;
589 }
int32_t TTEthernetModel::tte_get_buf_var ( const tte_buffer_t *const  buf,
const tte_buf_var_id_t  var_id,
const uint32_t  var_size,
void *const  value 
)

Definition at line 635 of file TTEAPIApplicationBase.cc.

638  {
639  TTEAPIApplicationBase *app = dynamic_cast<TTEAPIApplicationBase*>(cSimulation::getActiveSimulation()->getContext());
640  if(app != NULL)
641  return app->tte_get_buf_var(buf, var_id, var_size, value);
642  return ETT_NULLPTR;
643 }
int32_t TTEthernetModel::tte_get_ct_input_buf ( const uint8_t  ctrl_id,
const uint16_t  ct_id,
tte_buffer_t *const  buf 
)

Definition at line 555 of file TTEAPIApplicationBase.cc.

557  {
558  TTEAPIApplicationBase *app = dynamic_cast<TTEAPIApplicationBase*>(cSimulation::getActiveSimulation()->getContext());
559  if(app != NULL)
560  return app->tte_get_ct_input_buf(ctrl_id, ct_id, buf);
561  return ETT_NULLPTR;
562 }
int32_t TTEthernetModel::tte_get_ct_output_buf ( const uint8_t  ctrl_id,
const uint16_t  ct_id,
tte_buffer_t *const  buf 
)

Definition at line 564 of file TTEAPIApplicationBase.cc.

Referenced by main().

566  {
567  TTEAPIApplicationBase *app = dynamic_cast<TTEAPIApplicationBase*>(cSimulation::getActiveSimulation()->getContext());
568  if(app != NULL)
569  return app->tte_get_ct_output_buf(ctrl_id, ct_id, buf);
570  return ETT_NULLPTR;
571 }
int32_t TTEthernetModel::tte_get_var ( const uint8_t  ctrl_id,
const tte_var_id_t  var_id,
const uint32_t  var_size,
void *const  value 
)

Definition at line 545 of file TTEAPIApplicationBase.cc.

Referenced by main().

548  {
549  TTEAPIApplicationBase *app = dynamic_cast<TTEAPIApplicationBase*>(cSimulation::getActiveSimulation()->getContext());
550  if(app != NULL)
551  return app->tte_get_var(ctrl_id, var_id, var_size, value);
552  return ETT_NULLPTR;
553 }
int32_t TTEthernetModel::tte_init ( void  )

Definition at line 515 of file TTEAPIApplicationBase.cc.

515  {
516  return ETT_NOTSUPPORTED;
517 }
int32_t TTEthernetModel::tte_open_input_buf ( tte_buffer_t *const  buf,
tte_frame_t *const  frame,
tte_buf_status_t *const  status 
)

Definition at line 604 of file TTEAPIApplicationBase.cc.

606  {
607  TTEAPIApplicationBase *app = dynamic_cast<TTEAPIApplicationBase*>(cSimulation::getActiveSimulation()->getContext());
608  if(app != NULL)
609  return app->tte_open_input_buf(buf, frame, status);
610  return ETT_NULLPTR;
611 }
int32_t TTEthernetModel::tte_open_output_buf ( tte_buffer_t *const  buf,
tte_frame_t *const  frame 
)

Definition at line 620 of file TTEAPIApplicationBase.cc.

Referenced by main().

621  {
622  TTEAPIApplicationBase *app = dynamic_cast<TTEAPIApplicationBase*>(cSimulation::getActiveSimulation()->getContext());
623  if(app != NULL)
624  return app->tte_open_output_buf(buf, frame);
625  return ETT_NULLPTR;
626 }
int32_t TTEthernetModel::tte_read_input_buf ( tte_buffer_t *const  buf,
tte_frame_t *const  frame,
tte_buf_status_t *const  status 
)

Definition at line 597 of file TTEAPIApplicationBase.cc.

599  {
600  //TODO High prio
601  return ETT_NOTSUPPORTED;
602 }
int32_t TTEthernetModel::tte_set_buf_var ( tte_buffer_t *const  buf,
const tte_buf_var_id_t  var_id,
const uint32_t  var_size,
const void *const  value 
)

Definition at line 645 of file TTEAPIApplicationBase.cc.

Referenced by main().

648  {
649  TTEAPIApplicationBase *app = dynamic_cast<TTEAPIApplicationBase*>(cSimulation::getActiveSimulation()->getContext());
650  if(app != NULL)
651  return app->tte_set_buf_var(buf, var_id, var_size, value);
652  return ETT_NULLPTR;
653 }
int32_t TTEthernetModel::tte_set_var ( const uint8_t  ctrl_id,
const tte_var_id_t  var_id,
const uint32_t  var_size,
const void *const  value 
)

Definition at line 538 of file TTEAPIApplicationBase.cc.

541  {
542  return ETT_NOTSUPPORTED;
543 }
int32_t TTEthernetModel::tte_start ( const uint8_t  ctrl_id)

Definition at line 520 of file TTEAPIApplicationBase.cc.

520  {
521  return ETT_NOTSUPPORTED;
522 }
int32_t TTEthernetModel::tte_stop ( const uint8_t  ctrl_id)

Definition at line 524 of file TTEAPIApplicationBase.cc.

524  {
525  return ETT_NOTSUPPORTED;
526 }
int32_t TTEthernetModel::tte_write_output_buf ( tte_buffer_t *const  buf,
tte_frame_t *const  frame 
)

Definition at line 591 of file TTEAPIApplicationBase.cc.

592  {
593  //TODO High prio
594  return ETT_NOTSUPPORTED;
595 }