Mario Bambagini / ssWi

Dependents:   rover_car rover_pc supervisor watering_unit ... more

Embed: (wiki syntax)

« Back to documentation index

ssWiPort Class Reference

ssWiPort Class Reference

Internal type which represents a logical flow. More...

#include <ssWiPort.hpp>

Public Member Functions

 ssWiPort ()
 constructor
PortValue getTXValue ()
 get the value to be sent
void setTXValue (PortValue tmp)
 write a value to be sent
bool isModified ()
 true if there is a value to be sent
PortValue getRXValue ()
 Read the last received value.
void setRXValue (PortValue tmp)
 Write the last received value.

Detailed Description

Internal type which represents a logical flow.

Ports are used internally to model a virtual memory are of the network. Note that a port is a dual gate memory area which means that if you write on it, the reading operation does not read that value but the one received through the network

Definition at line 22 of file ssWiPort.hpp.


Constructor & Destructor Documentation

ssWiPort (  )

constructor

Definition at line 36 of file ssWiPort.hpp.


Member Function Documentation

PortValue getRXValue (  )

Read the last received value.

Definition at line 27 of file ssWiPort.cpp.

PortValue getTXValue (  )

get the value to be sent

Definition at line 9 of file ssWiPort.cpp.

bool isModified (  )

true if there is a value to be sent

Definition at line 22 of file ssWiPort.cpp.

void setRXValue ( PortValue  tmp )

Write the last received value.

Definition at line 32 of file ssWiPort.cpp.

void setTXValue ( PortValue  tmp )

write a value to be sent

Definition at line 16 of file ssWiPort.cpp.