| Line | Branch | Exec | Source |
|---|---|---|---|
| 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 | |||
| 13 | #include <Svc/FileUplink/FileUplink.hpp> | ||
| 14 | |||
| 15 | namespace Svc { | ||
| 16 | |||
| 17 | 2 | void FileUplink::Warnings::invalidReceiveMode(const Fw::FilePacket::Type packetType) { | |
| 18 | 2 | this->m_fileUplink->log_WARNING_HI_InvalidReceiveMode(static_cast<FwPacketDescriptorType>(packetType), | |
| 19 | 2 | static_cast<U32>(m_fileUplink->m_receiveMode)); | |
| 20 | 2 | this->warning(); | |
| 21 | 2 | } | |
| 22 | |||
| 23 | 1 | void FileUplink::Warnings::fileOpen(Fw::LogStringArg& fileName) { | |
| 24 | 1 | this->m_fileUplink->log_WARNING_HI_FileOpenError(fileName); | |
| 25 | 1 | this->warning(); | |
| 26 | 1 | } | |
| 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 | ||
| 54 |