17 #include <pia/clone/clone_definitions.h> 18 #include <pia/clone/clone_CloneBase.h> 55 return GetStationIndex();
75 virtual void Trace(u64 flag)
const;
84 bool IsReceiving()
const 94 bool IsRequest()
const 96 return m_RequestCommandToken.IsInList();
104 static Type GetTypeStatic()
110 return CloneBase::ToKey(TYPE_RECEIVE, stationId,
id);
112 virtual Type GetTypeVirtual()
const 114 return GetTypeStatic();
118 virtual void OnStartup();
119 virtual void OnCleanup();
120 virtual void OnEnd();
121 virtual bool OnCheckEnd();
125 virtual void OnDisconnect(
StationIndex stationId,
bool isValid);
126 virtual void OnRegister();
129 virtual u32 GetDestBitmap()
const;
130 virtual bool IsInRequest()
const 132 return m_RequestCommandToken.IsInList();
135 virtual u8 GetLocalRegisterCount()
const 137 return m_LocalRegisterCount;
139 virtual bool IsMatchLocalRegisterCount(u64 registerCountAll)
const;
140 void IncrementLocalRegisterCount();
143 bool ReceiveAnnounce();
150 class RequestCommandToken :
public ClockCommandToken
157 virtual CommandType GetType()
const 159 return COMMAND_REQUEST;
161 virtual u32 GetDestStationBitmap()
const 163 return (0x1 << (static_cast<const ReceiveClone*>(GetClone())->GetStationIndex()));
179 RequestCommandToken m_RequestCommandToken;
182 u8 m_LocalRegisterCount;
185 template <
int TEST_ID,
typename Arg>
186 static void Test(
const ReceiveClone& obj, Arg* pArg = NULL);
virtual void Trace(u64 flag) const
Prints information that is useful for debugging.
ReceiveClone()
Instantiates the object with default parameters (default constructor).
u32 ClockValue
Defines a type that holds a clock value.
Definition: clone_definitions.h:44
bool IsConnected() const
Determines whether there is a SendClone that sends to this ReceiveClone.
Definition: clone_ReceiveClone.h:64
StationIndex
Enumerates StationIndex values.
Definition: platformCtr.h:44
virtual ~ReceiveClone()
Destructor.
bool IsActive() const
Determines whether this object is active.
Definition: clone_CloneBase.h:154
This is the base class for managing sending and receiving. .
Definition: clone_CloneBase.h:38
static const ClockValue INVALID_CLOCK
Specifies an invalid clock value.
Definition: clone_definitions.h:50
StationIndex GetSendStationIndex() const
Gets the StationIndex that was specified as the sender when registering this object with CloneProtoco...
Definition: clone_ReceiveClone.h:53
This class is a derivative of CloneBase and provides functionality for managing unidirectional receiv...
Definition: clone_ReceiveClone.h:34
u32 Id
Specifies the type of the ID for identifying clones.
Definition: clone_CloneBase.h:68