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  fileWrite(Fw::LogStringArg& fileName)
62  {
63  this->m_fileUplink->log_WARNING_HI_FileWriteError(fileName);
64  this->warning();
65  }
66 
67  void FileUplink::Warnings ::
68  badChecksum(
69  const U32 computed,
70  const U32 read
71  )
72  {
73  this->m_fileUplink->log_WARNING_HI_BadChecksum(
74  this->m_fileUplink->m_file.name,
75  computed,
76  read
77  );
78  this->warning();
79  }
80 
81 }
Type
Packet type.
Definition: FilePacket.hpp:36