F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
Warnings.cpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title Warnings.cpp
3 // \author bocchino
4 // \brief cpp file for FileUplink::Warnings
5 //
6 // \copyright
7 // Copyright 2009-2016, by the California Institute of Technology.
8 // ALL RIGHTS RESERVED. United States Government Sponsorship
9 // acknowledged.
10 //
11 // ======================================================================
12 
14 
15 namespace Svc {
16 
17 void FileUplink::Warnings ::invalidReceiveMode(const Fw::FilePacket::Type packetType) {
18  this->m_fileUplink->log_WARNING_HI_InvalidReceiveMode(static_cast<FwPacketDescriptorType>(packetType),
19  static_cast<U32>(m_fileUplink->m_receiveMode));
20  this->warning();
21 }
22 
23 void FileUplink::Warnings ::fileOpen(Fw::LogStringArg& fileName) {
24  this->m_fileUplink->log_WARNING_HI_FileOpenError(fileName);
25  this->warning();
26 }
27 
28 void FileUplink::Warnings ::packetOutOfBounds(const U32 sequenceIndex, Fw::LogStringArg& fileName) {
29  this->m_fileUplink->log_WARNING_HI_PacketOutOfBounds(sequenceIndex, fileName);
30  this->warning();
31 }
32 
33 void FileUplink::Warnings ::packetOutOfOrder(const U32 sequenceIndex, const U32 lastSequenceIndex) {
34  this->m_fileUplink->log_WARNING_HI_PacketOutOfOrder(sequenceIndex, lastSequenceIndex);
35  this->warning();
36 }
37 
38 void FileUplink::Warnings ::packetDuplicate(const U32 sequenceIndex) {
39  this->m_fileUplink->log_WARNING_HI_PacketDuplicate(sequenceIndex);
40  this->warning();
41 }
42 
43 void FileUplink::Warnings ::fileWrite(Fw::LogStringArg& fileName) {
44  this->m_fileUplink->log_WARNING_HI_FileWriteError(fileName);
45  this->warning();
46 }
47 
48 void FileUplink::Warnings ::badChecksum(const U32 computed, const U32 read) {
49  this->m_fileUplink->log_WARNING_HI_BadChecksum(this->m_fileUplink->m_file.name, computed, read);
50  this->warning();
51 }
52 
53 } // namespace Svc
Type
Packet type.
Definition: FilePacket.hpp:40
RateGroupDivider component implementation.