Added PSU DS messages
Signed-off-by: Bernardo Carvalho <bernardo.carvalho@tecnico.ulisboa.pt>
This commit is contained in:
@@ -434,6 +434,22 @@ bool PSUCommunicatorTX::Synchronise() {
|
||||
return ok;
|
||||
}
|
||||
// Messages
|
||||
ErrorManagement::ErrorType PSUCommunicatorTX::GoOnlineIdle() {
|
||||
ErrorManagement::ErrorType err;
|
||||
REPORT_ERROR(ErrorManagement::Information,
|
||||
"PSUCommunicatorTX::GoOnlineIdle. Got Message!");
|
||||
communicatorOnlineStage = FA_COMMUNICATOR_ONLINE_IDLE;
|
||||
|
||||
return err;
|
||||
}
|
||||
ErrorManagement::ErrorType PSUCommunicatorTX::GoWaitTrigger() {
|
||||
ErrorManagement::ErrorType err;
|
||||
REPORT_ERROR(ErrorManagement::Information,
|
||||
"PSUCommunicatorTX::GoWaitTrigger. Got Message!");
|
||||
communicatorOnlineStage = FA_COMMUNICATOR_ONLINE_WAIT_CODAC_TRIGGER;
|
||||
|
||||
return err;
|
||||
}
|
||||
ErrorManagement::ErrorType PSUCommunicatorTX::TriggerPSU() {
|
||||
ErrorManagement::ErrorType err;
|
||||
REPORT_ERROR(ErrorManagement::Information,
|
||||
@@ -442,17 +458,10 @@ ErrorManagement::ErrorType PSUCommunicatorTX::TriggerPSU() {
|
||||
|
||||
return err;
|
||||
}
|
||||
ErrorManagement::ErrorType PSUCommunicatorTX::GoOnline() {
|
||||
ErrorManagement::ErrorType err;
|
||||
REPORT_ERROR(ErrorManagement::Information,
|
||||
"PSUCommunicatorTX::GoOnline. Got Message!");
|
||||
communicatorOnlineStage = FA_COMMUNICATOR_ONLINE_WAIT_CODAC_TRIGGER;
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
CLASS_REGISTER(PSUCommunicatorTX, "1.0")
|
||||
CLASS_METHOD_REGISTER(PSUCommunicatorTX, GoOnlineIdle)
|
||||
CLASS_METHOD_REGISTER(PSUCommunicatorTX, GoWaitTrigger)
|
||||
CLASS_METHOD_REGISTER(PSUCommunicatorTX, TriggerPSU)
|
||||
CLASS_METHOD_REGISTER(PSUCommunicatorTX, GoOnline)
|
||||
} // namespace MARTe
|
||||
// vim: syntax=cpp ts=2 sw=2 sts=2 sr et
|
||||
|
||||
@@ -203,8 +203,9 @@ public:
|
||||
* It can be called within a
|
||||
* MARTe message.
|
||||
*/
|
||||
ErrorManagement::ErrorType GoOnlineIdle();
|
||||
ErrorManagement::ErrorType GoWaitTrigger();
|
||||
ErrorManagement::ErrorType TriggerPSU();
|
||||
ErrorManagement::ErrorType GoOnline();
|
||||
|
||||
private:
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user