Logo SoCRocket

Transaction-Level Modeling Framework for Space Applications

Public Types | Public Member Functions | List of all members
sr_signal::signal_inout< TYPE, MODULE > Class Template Reference

#include <sr_signal_inout.h>

Inheritance diagram for sr_signal::signal_inout< TYPE, MODULE >:
Collaboration diagram for sr_signal::signal_inout< TYPE, MODULE >:

Public Types

typedef void(MODULE::* t_callback )(const TYPE &value, const sc_core::sc_time &time)
 
- Public Types inherited from sr_signal::signal_in< TYPE, MODULE >
typedef void(MODULE::* t_callback )(const TYPE &value, const sc_core::sc_time &time)
 

Public Member Functions

 signal_inout (sc_core::sc_module_name mn=NULL)
 
 signal_inout (t_callback callback, sc_core::sc_module_name mn=NULL)
 
virtual ~signal_inout ()
 Virtual destructor. More...
 
- Public Member Functions inherited from sr_signal::signal_out< TYPE, MODULE >
 signal_out (sc_core::sc_module_name mn=NULL)
 
virtual ~signal_out ()
 Virtual destructor. More...
 
virtual signal_out_bind_if
< TYPE > * 
bind (signal_in_if< TYPE > &receiver, const uint32_t &channel=0)
 
virtual void write (const TYPE &value, const sc_core::sc_time &time=sc_core::SC_ZERO_TIME)
 
void operator() (signal_in_if< TYPE > &receiver)
 
TYPE operator= (const TYPE &t)
 Set the value and call updates on all receivern. More...
 
TYPE operator= (const signal_if< TYPE > &t)
 Sets the value from another signal. More...
 
- Public Member Functions inherited from sr_signal::signal_base< TYPE, MODULE >
 signal_base (sc_core::sc_module_name mn=NULL)
 Default constructor. More...
 
virtual ~signal_base ()
 
- Public Member Functions inherited from sr_signal::signal_out_if< TYPE >
virtual ~signal_out_if ()
 Virtual destructor. More...
 
- Public Member Functions inherited from sr_signal::signal_if< TYPE >
virtual ~signal_if ()
 Virtual destructor. More...
 
virtual const TYPE & read ()
 Read the current signal value. More...
 
 operator TYPE () const
 Call operator to get the current signal value. More...
 
bool operator== (const TYPE &t) const
 Comparing the current signal value with a variable of the same type TYPE. More...
 
- Public Member Functions inherited from sr_signal::signal_out_bind_if< TYPE >
virtual ~signal_out_bind_if ()
 Virtual destructor. More...
 
- Public Member Functions inherited from sr_signal::signal_in< TYPE, MODULE >
 signal_in (sc_core::sc_module_name mn=NULL)
 
 signal_in (t_callback callback, sc_core::sc_module_name mn=NULL)
 
virtual ~signal_in ()
 Virtual destructor. More...
 
virtual void bind (signal_out_bind_if< TYPE > &sender, const uint32_t &channel=0)
 
virtual void update (signal_out_if< TYPE > *sender, const sc_core::sc_time &time)
 
virtual operator TYPE () const
 Gets the current signal value. More...
 
virtual void operator() (signal_out_bind_if< TYPE > &sender)
 
- Public Member Functions inherited from sr_signal::signal_in_if< TYPE >
virtual ~signal_in_if ()
 Virtual destructor. More...
 

Additional Inherited Members

- Protected Types inherited from sr_signal::signal_out< TYPE, MODULE >
typedef std::vector
< signal_in_if< TYPE > * > 
t_receiver
 Type of a list of receivers. More...
 
- Protected Member Functions inherited from sr_signal::signal_base< TYPE, MODULE >
virtual MODULE * get_module ()
 
- Protected Attributes inherited from sr_signal::signal_out< TYPE, MODULE >
t_receiver m_receiver
 List of receivers. More...
 
- Protected Attributes inherited from sr_signal::signal_if< TYPE >
TYPE m_value
 The signal value. More...
 

Detailed Description

template<class TYPE, class MODULE>
class sr_signal::signal_inout< TYPE, MODULE >

sr_signal input output signal. This class implements a TLM Signal abstraction of an bidirectional signal. The signal stores the value and can execute a callback.

Member Typedef Documentation

template<class TYPE , class MODULE >
typedef void(MODULE::* sr_signal::signal_inout< TYPE, MODULE >::t_callback)(const TYPE &value, const sc_core::sc_time &time)

Inout signal callback type. The callback has two parameter.

Parameters
valueThe new value of the signal.
timeThe delay from sc_timestamp() of the propagation.

Constructor & Destructor Documentation

template<class TYPE , class MODULE >
sr_signal::signal_inout< TYPE, MODULE >::signal_inout ( sc_core::sc_module_name  mn = NULL)
inline

Constructor without callback.

Parameters
mnSignal name.
template<class TYPE , class MODULE >
sr_signal::signal_inout< TYPE, MODULE >::signal_inout ( t_callback  callback,
sc_core::sc_module_name  mn = NULL 
)
inline

Constructor with callback.

Parameters
callbackA base class function which gets executed every time the value is chaned.
mnSignal name.
template<class TYPE , class MODULE >
virtual sr_signal::signal_inout< TYPE, MODULE >::~signal_inout ( )
inlinevirtual

Virtual destructor.


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