TTEthernet Model for INET Framework
|
Base class for a TTEthernet-Application based on the TTEthernet-API. More...
#include <TTEAPIApplicationBase.h>
Public Member Functions | |
virtual void | registerTask (unsigned int actionTime, void(*functionPointer)(void *), void *setFunctionArg) |
registers a task that is periodically scheduled. More... | |
virtual int32_t | tte_get_ct_output_buf (const uint8_t ctrl_id, const uint16_t ct_id, tte_buffer_t *const buf) |
implementation of the TTEthernet-API method. More... | |
virtual int32_t | tte_get_bg_output_buf (const uint8_t ctrl_id, const uint8_t channel, tte_buffer_t *const buf) |
implementation of the TTEthernet-API method. More... | |
virtual int32_t | tte_get_bg_input_buf (const uint8_t ctrl_id, const uint8_t channel, tte_buffer_t *const buf) |
implementation of the TTEthernet-API method. More... | |
virtual int32_t | tte_get_ct_input_buf (const uint8_t ctrl_id, const uint16_t ct_id, tte_buffer_t *const buf) |
implementation of the TTEthernet-API method. More... | |
virtual 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) |
implementation of the TTEthernet-API method. More... | |
virtual int32_t | tte_open_output_buf (tte_buffer_t *const buf, tte_frame_t *const frame) |
implementation of the TTEthernet-API method. More... | |
virtual int32_t | tte_open_input_buf (tte_buffer_t *const buf, tte_frame_t *const frame, tte_buf_status_t *const status) |
implementation of the TTEthernet-API method. More... | |
virtual int32_t | tte_close_output_buf (tte_buffer_t *const buf) |
implementation of the TTEthernet-API method. More... | |
virtual int32_t | tte_close_input_buf (tte_buffer_t *const buf) |
implementation of the TTEthernet-API method. More... | |
virtual 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) |
implementation of the TTEthernet-API method. More... | |
virtual 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) |
implementation of the TTEthernet-API method. More... | |
![]() | |
virtual void | executeCallback (Callback *cb) |
executes the given Callback in the context of the Application More... | |
virtual void | handleParameterChange (const char *parname) |
Indicates a parameter has changed. More... | |
Protected Member Functions | |
virtual void | startApplication () |
Does nothing in this application. More... | |
Private Member Functions | |
virtual void | initialize () |
initializes the module. More... | |
virtual void | handleMessage (cMessage *msg) |
Handles incoming START_APPLICATION or Scheduler messages. More... | |
Private Attributes | |
bool | synchronized |
Additional Inherited Members | |
![]() | |
std::map< uint16_t, std::list < Buffer * > > | buffers |
Map of critical traffic identifies with their corresponding Buffers. More... | |
Base class for a TTEthernet-Application based on the TTEthernet-API.
The class contains the wrappers for the C to C++ Mapping.
Definition at line 71 of file TTEAPIApplicationBase.h.
|
privatevirtual |
Handles incoming START_APPLICATION or Scheduler messages.
The module receives START_APPLICATION messages that trigger startApplication() or messages via schedulerIn that contain Tasks to be executed.
msg | the incoming message |
Definition at line 42 of file TTEAPIApplicationBase.cc.
|
privatevirtual |
initializes the module.
Registeres a START_APPLICATION self-message that triggers the application start
Definition at line 37 of file TTEAPIApplicationBase.cc.
|
virtual |
registers a task that is periodically scheduled.
actionTime | the time in ticks in each cycle the tasks is executed |
functionPointer | the function to execute |
Definition at line 71 of file TTEAPIApplicationBase.cc.
|
protectedvirtual |
Does nothing in this application.
Must be overwritten with actual application behavior.
Reimplemented in TTEthernetModel::TTEAPITestApplication.
Definition at line 66 of file TTEAPIApplicationBase.cc.
Referenced by handleMessage().
|
virtual |
implementation of the TTEthernet-API method.
see TTEthernet-API documentation for further information
Definition at line 408 of file TTEAPIApplicationBase.cc.
Referenced by TTEthernetModel::tte_close_input_buf().
|
virtual |
implementation of the TTEthernet-API method.
see TTEthernet-API documentation for further information
Definition at line 380 of file TTEAPIApplicationBase.cc.
Referenced by TTEthernetModel::tte_close_output_buf().
|
virtual |
implementation of the TTEthernet-API method.
see TTEthernet-API documentation for further information
Definition at line 144 of file TTEAPIApplicationBase.cc.
Referenced by TTEthernetModel::tte_get_bg_input_buf().
|
virtual |
implementation of the TTEthernet-API method.
see TTEthernet-API documentation for further information
Definition at line 125 of file TTEAPIApplicationBase.cc.
Referenced by TTEthernetModel::tte_get_bg_output_buf().
|
virtual |
implementation of the TTEthernet-API method.
see TTEthernet-API documentation for further information
Definition at line 468 of file TTEAPIApplicationBase.cc.
Referenced by TTEthernetModel::tte_get_buf_var().
|
virtual |
implementation of the TTEthernet-API method.
see TTEthernet-API documentation for further information
Definition at line 163 of file TTEAPIApplicationBase.cc.
Referenced by TTEthernetModel::tte_get_ct_input_buf().
|
virtual |
implementation of the TTEthernet-API method.
see TTEthernet-API documentation for further information
Definition at line 87 of file TTEAPIApplicationBase.cc.
Referenced by TTEthernetModel::tte_get_ct_output_buf().
|
virtual |
implementation of the TTEthernet-API method.
see TTEthernet-API documentation for further information
Definition at line 201 of file TTEAPIApplicationBase.cc.
Referenced by TTEthernetModel::tte_get_var().
|
virtual |
implementation of the TTEthernet-API method.
see TTEthernet-API documentation for further information
Definition at line 340 of file TTEAPIApplicationBase.cc.
Referenced by TTEthernetModel::tte_open_input_buf().
|
virtual |
implementation of the TTEthernet-API method.
see TTEthernet-API documentation for further information
Definition at line 292 of file TTEAPIApplicationBase.cc.
Referenced by TTEthernetModel::tte_open_output_buf().
|
virtual |
implementation of the TTEthernet-API method.
see TTEthernet-API documentation for further information
Definition at line 423 of file TTEAPIApplicationBase.cc.
Referenced by TTEthernetModel::tte_set_buf_var().
|
private |
Definition at line 74 of file TTEAPIApplicationBase.h.