F´ Flight Software - C/C++ Documentation  devel
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 ::
18  invalidReceiveMode(const Fw::FilePacket::Type packetType)
19  {
20  this->m_fileUplink->log_WARNING_HI_InvalidReceiveMode(
21  static_cast<U32>(packetType),
22  static_cast<U32>(m_fileUplink->m_receiveMode)
23  );
24  this->warning();
25  }
26 
27  void FileUplink::Warnings ::
28  fileOpen(Fw::LogStringArg& fileName)
29  {
30  this->m_fileUplink->log_WARNING_HI_FileOpenError(fileName);
31  this->warning();
32  }
33 
34  void FileUplink::Warnings ::
35  packetOutOfBounds(
36  const U32 sequenceIndex,
37  Fw::LogStringArg& fileName
38  )
39  {
40  this->m_fileUplink->log_WARNING_HI_PacketOutOfBounds(
41  sequenceIndex,
42  fileName
43  );
44  this->warning();
45  }
46 
47  void FileUplink::Warnings ::
48  packetOutOfOrder(
49  const U32 sequenceIndex,
50  const U32 lastSequenceIndex
51  )
52  {
53  this->m_fileUplink->log_WARNING_HI_PacketOutOfOrder(
54  sequenceIndex,
55  lastSequenceIndex
56  );
57  this->warning();
58  }
59 
60  void FileUplink::Warnings ::
61  packetDuplicate(
62  const U32 sequenceIndex
63  )
64  {
65  this->m_fileUplink->log_WARNING_HI_PacketDuplicate(
66  sequenceIndex
67  );
68  this->warning();
69  }
70 
71  void FileUplink::Warnings ::
72  fileWrite(Fw::LogStringArg& fileName)
73  {
74  this->m_fileUplink->log_WARNING_HI_FileWriteError(fileName);
75  this->warning();
76  }
77 
78  void FileUplink::Warnings ::
79  badChecksum(
80  const U32 computed,
81  const U32 read
82  )
83  {
84  this->m_fileUplink->log_WARNING_HI_BadChecksum(
85  this->m_fileUplink->m_file.name,
86  computed,
87  read
88  );
89  this->warning();
90  }
91 
92 }
Type
Packet type.
Definition: FilePacket.hpp:36