Skip to content
Snippets Groups Projects
Commit 46d49e51 authored by athatheocsd's avatar athatheocsd
Browse files

Reformatted code

parent e998fbf2
No related branches found
No related tags found
No related merge requests found
...@@ -8,11 +8,13 @@ ...@@ -8,11 +8,13 @@
*/ */
#define CSS_EVENTS_MAX_COUNT 16 #define CSS_EVENTS_MAX_COUNT 16
#define ECSS_EVENTS_BITS 16 #define ECSS_EVENTS_BITS 16
class EventReportService: public Service {
class EventReportService : public Service {
public: public:
EventReportService(){ EventReportService() {
serviceType = 5; serviceType = 5;
} }
/** /**
* TM[5,1] informative event report * TM[5,1] informative event report
* Send report to inform the respective recipients about an event * Send report to inform the respective recipients about an event
...@@ -62,4 +64,5 @@ public: ...@@ -62,4 +64,5 @@ public:
void highSeverityAnomalyReport(uint16_t eventID, const uint8_t *data, uint8_t length); void highSeverityAnomalyReport(uint16_t eventID, const uint8_t *data, uint8_t length);
}; };
#endif //ECSS_SERVICES_EVENTREPORTSERVICE_HPP #endif //ECSS_SERVICES_EVENTREPORTSERVICE_HPP
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
*/ */
void EventReportService::informativeEventReport(uint16_t eventID, const uint8_t *data, void EventReportService::informativeEventReport(uint16_t eventID, const uint8_t *data,
uint8_t length){ uint8_t length) {
// TM[5,1] // TM[5,1]
Message report = createTM(1); Message report = createTM(1);
report.appendEnum16(eventID); report.appendEnum16(eventID);
...@@ -21,7 +21,7 @@ void EventReportService::informativeEventReport(uint16_t eventID, const uint8_t ...@@ -21,7 +21,7 @@ void EventReportService::informativeEventReport(uint16_t eventID, const uint8_t
} }
void EventReportService::lowSeverityAnomalyReport(uint16_t eventID, const uint8_t *data, void EventReportService::lowSeverityAnomalyReport(uint16_t eventID, const uint8_t *data,
uint8_t length ){ uint8_t length) {
// TM[5,2] // TM[5,2]
Message report = createTM(2); Message report = createTM(2);
report.appendEnum16(eventID); report.appendEnum16(eventID);
...@@ -31,7 +31,7 @@ void EventReportService::lowSeverityAnomalyReport(uint16_t eventID, const uint8_ ...@@ -31,7 +31,7 @@ void EventReportService::lowSeverityAnomalyReport(uint16_t eventID, const uint8_
} }
void EventReportService::mediumSeverityAnomalyReport(uint16_t eventID, const uint8_t *data, void EventReportService::mediumSeverityAnomalyReport(uint16_t eventID, const uint8_t *data,
uint8_t length){ uint8_t length) {
// TM[5,3] // TM[5,3]
Message report = createTM(3); Message report = createTM(3);
report.appendEnum16(eventID); report.appendEnum16(eventID);
...@@ -41,7 +41,7 @@ void EventReportService::mediumSeverityAnomalyReport(uint16_t eventID, const uin ...@@ -41,7 +41,7 @@ void EventReportService::mediumSeverityAnomalyReport(uint16_t eventID, const uin
} }
void EventReportService::highSeverityAnomalyReport(uint16_t eventID, const uint8_t *data, void EventReportService::highSeverityAnomalyReport(uint16_t eventID, const uint8_t *data,
uint8_t length){ uint8_t length) {
// TM[5,4] // TM[5,4]
Message report = createTM(4); Message report = createTM(4);
report.appendEnum16(eventID); report.appendEnum16(eventID);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment