repo_name
stringclasses
10 values
file_path
stringlengths
29
222
content
stringlengths
24
926k
extention
stringclasses
5 values
fprime
data/projects/fprime/RPI/Main.cpp
#include <cstdio> #include <cstdlib> #include <ctype.h> #include <getopt.h> #include <signal.h> #include <RPI/Top/RPITopologyAc.hpp> RPI::TopologyState state; // Enable the console logging provided by Os::Log Os::Log logger; void print_usage(const char* app) { (void) printf("Usage: ./%s [options]\n-p\tport_numbe...
cpp
fprime
data/projects/fprime/RPI/Top/RPITopologyDefs.hpp
#ifndef RPITopologyDefs_HPP #define RPITopologyDefs_HPP #include "Fw/Types/MallocAllocator.hpp" #include "Os/Log.hpp" #include "RPI/Top/FppConstantsAc.hpp" #include "Svc/FramingProtocol/FprimeProtocol.hpp" #include "Svc/LinuxTimer/LinuxTimer.hpp" namespace RPI { namespace Allocation { // Malloc allocator for ...
hpp
fprime
data/projects/fprime/RPI/Top/Topology.cpp
#include <Components.hpp> #include <Fw/Types/Assert.hpp> #include <Os/Task.hpp> #include <Os/Log.hpp> #include <Os/File.hpp> #include <Os/TaskString.hpp> #include <Fw/Types/MallocAllocator.hpp> #include <RPI/Top/RpiSchedContexts.hpp> #include <Svc/FramingProtocol/FprimeProtocol.hpp> enum { UPLINK_BUFFER_STORE_SIZ...
cpp
fprime
data/projects/fprime/RPI/Top/RPITopologyDefs.cpp
#include "RPI/Top/RPITopologyDefs.hpp" namespace RPI { namespace Allocation { Fw::MallocAllocator mallocator; } namespace Init { bool status = true; } }
cpp
fprime
data/projects/fprime/RPI/Top/Components.hpp
#ifndef __RPI_COMPONENTS_HEADER__ #define __RPI_COMPONENTS_HEADER__ #include <Svc/ActiveRateGroup/ActiveRateGroupImpl.hpp> #include <Svc/RateGroupDriver/RateGroupDriverImpl.hpp> #include <Svc/CmdDispatcher/CommandDispatcherImpl.hpp> #include <Svc/CmdSequencer/CmdSequencerImpl.hpp> #include <Svc/PassiveConsoleTextLogg...
hpp
fprime
data/projects/fprime/RPI/RpiDemo/RpiDemoComponentImplCfg.hpp
/* * RpiDemoComponentImplCfg.hpp * * Created on: Mar 5, 2018 * Author: tim */ #ifndef RPI_RPIDEMO_RPIDEMOCOMPONENTIMPLCFG_HPP_ #define RPI_RPIDEMO_RPIDEMOCOMPONENTIMPLCFG_HPP_ namespace RPI { // configuration values enum { NUM_RPI_UART_BUFFERS = 5, RPI_UART_READ_BUFF_SIZE = 40 }...
hpp
fprime
data/projects/fprime/RPI/RpiDemo/RpiDemoComponentImpl.hpp
// ====================================================================== // \title RpiDemoImpl.hpp // \author tcanham // \brief hpp file for RpiDemo component implementation class // // \copyright // Copyright 2009-2015, by the California Institute of Technology. // ALL RIGHTS RESERVED. United States Government Spo...
hpp
fprime
data/projects/fprime/RPI/RpiDemo/RpiDemo.hpp
// ====================================================================== // RpiDemo.hpp // Standardization header for RpiDemo // ====================================================================== #ifndef RPI_RpiDemo_HPP #define RPI_RpiDemo_HPP #include "RPI/RpiDemo/RpiDemoComponentImpl.hpp" namespace RPI { u...
hpp
fprime
data/projects/fprime/RPI/RpiDemo/RpiDemoComponentImpl.cpp
// ====================================================================== // \title RpiDemoImpl.cpp // \author tcanham // \brief cpp file for RpiDemo component implementation class // // \copyright // Copyright 2009-2015, by the California Institute of Technology. // ALL RIGHTS RESERVED. United States Government Spo...
cpp
fprime
data/projects/fprime/Fw/Deprecate.hpp
// deprecate.hpp: // // A minor implementation of compile-time deprecation for the fprime framework. #ifndef FW_DEPRECATE_HPP #define FW_DEPRECATE_HPP #ifndef DEPRECATED #ifdef __GNUC__ #define DEPRECATED(func, message) func __attribute__ ((deprecated(message))) #else #warning "No implementation of DEPRECATED ...
hpp
fprime
data/projects/fprime/Fw/Obj/SimpleObjRegistry.cpp
#include <Fw/Logger/Logger.hpp> #include <Fw/Obj/SimpleObjRegistry.hpp> #include <FpConfig.hpp> #include <Fw/Types/Assert.hpp> #include <cstdio> #include <cstring> #if FW_OBJECT_REGISTRATION == 1 namespace Fw { SimpleObjRegistry::SimpleObjRegistry() { ObjBase::setObjRegistry(this); this->m_numEnt...
cpp
fprime
data/projects/fprime/Fw/Obj/ObjBase.hpp
/** * \file * \author T. Canham * \brief Declarations for Fw::ObjBase and Fw::ObjRegistry * * \copyright * Copyright 2016, by the California Institute of Technology. * ALL RIGHTS RESERVED. United States Government Sponsorship * acknowledged. * */ #ifndef FW_OBJ_BASE_HPP #define FW_OBJ_BASE_HPP #include <Fp...
hpp
fprime
data/projects/fprime/Fw/Obj/ObjBase.cpp
#include <FpConfig.hpp> #include <Fw/Obj/ObjBase.hpp> #include <cstring> #include <cstdio> #include <Fw/Types/Assert.hpp> namespace Fw { #if FW_OBJECT_REGISTRATION == 1 ObjRegistry* ObjBase::s_objRegistry = nullptr; #endif #if FW_OBJECT_NAMES == 1 ObjBase::ObjBase(const char* objName) { if (nullptr =...
cpp
fprime
data/projects/fprime/Fw/Obj/SimpleObjRegistry.hpp
/** * \file * \author T. Canham * \brief Class declaration for a simple object registry * * The simple object registry is meant to give a default implementation * and an example of an object registry. When the registry is instantiated, * it registers itself with the object base class static function * setObjReg...
hpp
fprime
data/projects/fprime/Fw/FilePacket/Header.cpp
// ====================================================================== // \title Header.cpp // \author bocchino // \brief cpp file for FilePacket::Header // // \copyright // Copyright 2009-2016, by the California Institute of Technology. // ALL RIGHTS RESERVED. United States Government Sponsorship // acknowledged...
cpp
fprime
data/projects/fprime/Fw/FilePacket/FilePacket.cpp
// ====================================================================== // \title FilePacket.cpp // \author bocchino // \brief cpp file for FilePacket // // \copyright // Copyright 2009-2016, by the California Institute of Technology. // ALL RIGHTS RESERVED. United States Government Sponsorship // acknowledged. //...
cpp
fprime
data/projects/fprime/Fw/FilePacket/PathName.cpp
// ====================================================================== // \title PathName.cpp // \author bocchino // \brief cpp file for FilePacket::PathName // // \copyright // Copyright 2009-2016, by the California Institute of Technology. // ALL RIGHTS RESERVED. United States Government Sponsorship // acknowle...
cpp
fprime
data/projects/fprime/Fw/FilePacket/CancelPacket.cpp
// ====================================================================== // \title CancelPacket.cpp // \author bocchino // \brief cpp file for FilePacket::CancelPacket // // \copyright // Copyright 2009-2016, by the California Institute of Technology. // ALL RIGHTS RESERVED. United States Government Sponsorship // ...
cpp
fprime
data/projects/fprime/Fw/FilePacket/DataPacket.cpp
// ====================================================================== // \title DataPacket.cpp // \author bocchino // \brief cpp file for FilePacket::DataPacket // // \copyright // Copyright 2009-2016, by the California Institute of Technology. // ALL RIGHTS RESERVED. United States Government Sponsorship // ackn...
cpp
fprime
data/projects/fprime/Fw/FilePacket/StartPacket.cpp
// ====================================================================== // \title StartPacket.cpp // \author bocchino // \brief cpp file for FilePacket::StartPacket // // \copyright // Copyright 2009-2016, by the California Institute of Technology. // ALL RIGHTS RESERVED. United States Government Sponsorship // ac...
cpp
fprime
data/projects/fprime/Fw/FilePacket/EndPacket.cpp
// ====================================================================== // \title EndPacket.cpp // \author bocchino // \brief cpp file for FilePacket::EndPacket // // \copyright // Copyright 2009-2016, by the California Institute of Technology. // ALL RIGHTS RESERVED. United States Government Sponsorship // acknow...
cpp
fprime
data/projects/fprime/Fw/FilePacket/FilePacket.hpp
// ====================================================================== // \title FilePacket.hpp // \author bocchino // \brief hpp file for FilePacket // // \copyright // Copyright 2009-2016, by the California Institute of Technology. // ALL RIGHTS RESERVED. United States Government Sponsorship // acknowledged. //...
hpp
fprime
data/projects/fprime/Fw/FilePacket/GTest/Header.cpp
// ====================================================================== // \title Fw/FilePacket/GTest/Header.cpp // \author bocchino // \brief Test utilities for file packet headers // // \copyright // Copyright (C) 2016, California Institute of Technology. // ALL RIGHTS RESERVED. United States Government Sponsors...
cpp
fprime
data/projects/fprime/Fw/FilePacket/GTest/FilePackets.hpp
// ====================================================================== // \title Fw/FilePacket/GTest/FilePackets.hpp // \author bocchino // \brief hpp file for File Packet testing utilities // // \copyright // Copyright (C) 2016 California Institute of Technology. // ALL RIGHTS RESERVED. United States Government...
hpp
fprime
data/projects/fprime/Fw/FilePacket/GTest/PathName.cpp
// ====================================================================== // \title Fw/FilePacket/GTest/PathName.cpp // \author bocchino // \brief Test utilities for start file packets // // \copyright // Copyright (C) 2016, California Institute of Technology. // ALL RIGHTS RESERVED. United States Government Sponsor...
cpp
fprime
data/projects/fprime/Fw/FilePacket/GTest/CancelPacket.cpp
// ====================================================================== // \title Fw/FilePacket/GTest/CancelPacket.cpp // \author bocchino // \brief Test utilities for data file packets // // \copyright // Copyright (C) 2016, California Institute of Technology. // ALL RIGHTS RESERVED. United States Government Spon...
cpp
fprime
data/projects/fprime/Fw/FilePacket/GTest/DataPacket.cpp
// ====================================================================== // \title Fw/FilePacket/GTest/DataPacket.cpp // \author bocchino // \brief Test utilities for data file packets // // \copyright // Copyright (C) 2016, California Institute of Technology. // ALL RIGHTS RESERVED. United States Government Sponso...
cpp
fprime
data/projects/fprime/Fw/FilePacket/GTest/StartPacket.cpp
// ====================================================================== // \title Fw/FilePacket/GTest/StartPacket.cpp // \author bocchino // \brief Test utilities for start file packets // // \copyright // Copyright (C) 2016, California Institute of Technology. // ALL RIGHTS RESERVED. United States Government Spon...
cpp
fprime
data/projects/fprime/Fw/FilePacket/GTest/EndPacket.cpp
// ====================================================================== // \title Fw/FilePacket/GTest/EndPacket.cpp // \author bocchino // \brief Test utilities for data file packets // // \copyright // Copyright (C) 2016, California Institute of Technology. // ALL RIGHTS RESERVED. United States Government Sponsor...
cpp
fprime
data/projects/fprime/Fw/FilePacket/test/ut/FilePacketMain.cpp
// ---------------------------------------------------------------------- // Main.cpp // ---------------------------------------------------------------------- #include <gtest/gtest.h> #include <Fw/Buffer/Buffer.hpp> #include <Fw/FilePacket/FilePacket.hpp> #include <Fw/FilePacket/GTest/FilePackets.hpp> #include <Fw/...
cpp
fprime
data/projects/fprime/Fw/Com/ComPacket.cpp
/* * ComPacket.cpp * * Created on: May 24, 2014 * Author: Timothy Canham */ #include <Fw/Com/ComPacket.hpp> namespace Fw { ComPacket::ComPacket() : m_type(FW_PACKET_UNKNOWN) { } ComPacket::~ComPacket() { } SerializeStatus ComPacket::serializeBase(SerializeBufferBase& buffer) const { ...
cpp
fprime
data/projects/fprime/Fw/Com/ComBuffer.cpp
#include <Fw/Com/ComBuffer.hpp> #include <Fw/Types/Assert.hpp> namespace Fw { ComBuffer::ComBuffer(const U8 *args, NATIVE_UINT_TYPE size) { SerializeStatus stat = SerializeBufferBase::setBuff(args,size); FW_ASSERT(FW_SERIALIZE_OK == stat,static_cast<NATIVE_INT_TYPE>(stat)); } ComBuffer::C...
cpp
fprime
data/projects/fprime/Fw/Com/ComBuffer.hpp
/* * FwComBuffer.hpp * * Created on: May 24, 2014 * Author: tcanham */ /* * Description: * This object contains the ComBuffer type, used for sending and receiving packets from the ground */ #ifndef FW_COM_BUFFER_HPP #define FW_COM_BUFFER_HPP #include <FpConfig.hpp> #include <Fw/Types/Serializable.hpp> ...
hpp
fprime
data/projects/fprime/Fw/Com/ComPacket.hpp
/* * ComPacket.hpp * * Created on: May 24, 2014 * Author: Timothy Canham */ #ifndef COMPACKET_HPP_ #define COMPACKET_HPP_ #include <Fw/Types/Serializable.hpp> // Packet format: // |32-bit packet type|packet type-specific data| namespace Fw { class ComPacket: public Serializable { public: ...
hpp
fprime
data/projects/fprime/Fw/Prm/ParamBuffer.hpp
// Work around inconsistent spelling #include "PrmBuffer.hpp"
hpp
fprime
data/projects/fprime/Fw/Prm/PrmString.cpp
#include <Fw/Prm/PrmString.hpp> #include <Fw/Types/StringUtils.hpp> namespace Fw { ParamString::ParamString(const char* src) : StringBase() { (void) Fw::StringUtils::string_copy(this->m_buf, src, sizeof(this->m_buf)); } ParamString::ParamString(const StringBase& src) : StringBase() { (v...
cpp
fprime
data/projects/fprime/Fw/Prm/PrmBuffer.cpp
#include <Fw/Prm/PrmBuffer.hpp> #include <Fw/Types/Assert.hpp> namespace Fw { ParamBuffer::ParamBuffer(const U8 *args, NATIVE_UINT_TYPE size) { SerializeStatus stat = SerializeBufferBase::setBuff(args,size); FW_ASSERT(FW_SERIALIZE_OK == stat,static_cast<NATIVE_INT_TYPE>(stat)); } ParamBuffer::Para...
cpp
fprime
data/projects/fprime/Fw/Prm/PrmString.hpp
#ifndef FW_PRM_STRING_TYPE_HPP #define FW_PRM_STRING_TYPE_HPP #include <FpConfig.hpp> #include <Fw/Types/StringType.hpp> #include <Fw/Cfg/SerIds.hpp> namespace Fw { class ParamString : public Fw::StringBase { public: enum { SERIALIZED_TYPE_ID = FW_TYPEID_PRM_STR, ...
hpp
fprime
data/projects/fprime/Fw/Prm/PrmBuffer.hpp
/* * Cmd.hpp * * Created on: Sep 10, 2012 * Author: ppandian */ /* * Description: * This object contains the ParamBuffer type, used for storing parameters */ #ifndef FW_PRM_BUFFER_HPP #define FW_PRM_BUFFER_HPP #include <FpConfig.hpp> #include <Fw/Types/Serializable.hpp> #include <Fw/Cfg/SerIds.hpp> nam...
hpp
fprime
data/projects/fprime/Fw/SerializableFile/SerializableFile.hpp
// ====================================================================== // \title SerializableFile.hpp // \author dinkel // \brief hpp file for SerializableFile // // \copyright // Copyright 2009-2016, by the California Institute of Technology. // ALL RIGHTS RESERVED. United States Government Sponsorship // acknow...
hpp
fprime
data/projects/fprime/Fw/SerializableFile/SerializableFile.cpp
// ====================================================================== // \title SerializableFile.cpp // \author dinkel // \brief cpp file for SerializableFile // // \copyright // Copyright 2009-2016, by the California Institute of Technology. // ALL RIGHTS RESERVED. United States Government Sponsorship // acknow...
cpp
fprime
data/projects/fprime/Fw/SerializableFile/test/ut/Test.cpp
// ---------------------------------------------------------------------- // Main.cpp // ---------------------------------------------------------------------- #include <cstring> #include <cstdio> #include <FpConfig.hpp> #include <Fw/Types/Assert.hpp> #include <Fw/Types/MallocAllocator.hpp> #include <Fw/SerializableF...
cpp
fprime
data/projects/fprime/Fw/Test/String.cpp
#include <Fw/Test/String.hpp> #include <Fw/Types/StringUtils.hpp> namespace Test { String::String(const char* src) : StringBase() { (void) Fw::StringUtils::string_copy(this->m_buf, src, sizeof(this->m_buf)); } String::String(const StringBase& src) : StringBase() { (void) Fw::StringUtils::...
cpp
fprime
data/projects/fprime/Fw/Test/String.hpp
#ifndef TEST_STRING_TYPE_HPP #define TEST_STRING_TYPE_HPP #include <FpConfig.hpp> #include <Fw/Types/StringType.hpp> #include <Fw/Cfg/SerIds.hpp> namespace Test { //! A longer string for testing class String : public Fw::StringBase { public: enum { STRING_SIZE = 256, //!<...
hpp
fprime
data/projects/fprime/Fw/Test/UnitTest.hpp
/** * \file * \author T. Canham * \brief * * This contains macros used to document test cases and requirements in unit tests. * Borrowed from Insight. * * \copyright * Copyright 2009-2015, by the California Institute of Technology. * ALL RIGHTS RESERVED. United States Government Sponsorship * acknowledged. ...
hpp
fprime
data/projects/fprime/Fw/Test/UnitTestAssert.hpp
/* * UnitTestAssert.hpp * * Created on: Feb 8, 2016 * Author: tcanham * Revised July 2020 * Author: bocchino */ #ifndef TEST_UNITTESTASSERT_HPP_ #define TEST_UNITTESTASSERT_HPP_ #include <Fw/Test/String.hpp> #include <Fw/Types/Assert.hpp> namespace Test { class UnitTestAssert: public Fw::Asse...
hpp
fprime
data/projects/fprime/Fw/Test/UnitTestAssert.cpp
/* * UnitTestAssert.cpp * * Created on: Feb 8, 2016 * Author: tcanham * Revised July 2020 * Author: bocchino */ #include <Fw/Test/UnitTestAssert.hpp> #include <cstdio> #include <cstring> namespace Test { #if FW_ASSERT_LEVEL == FW_FILEID_ASSERT const UnitTestAssert::File UnitTestAssert::fileIni...
cpp
fprime
data/projects/fprime/Fw/Cfg/ConfigCheck.cpp
/** * \file * \author T. Canham * \brief Configuration checks for ISF configuration macros * * \copyright * Copyright 2009-2016, by the California Institute of Technology. * ALL RIGHTS RESERVED. United States Government Sponsorship * acknowledged. * */ #include <FpConfig.hpp> #include <limits> // Check tha...
cpp
fprime
data/projects/fprime/Fw/Cfg/SerIds.hpp
/** * \file * \author T. Canham * \brief Definitions for ISF type serial IDs * * NOTE: Not currently being used * * \copyright * Copyright 2009-2015, by the California Institute of Technology. * ALL RIGHTS RESERVED. United States Government Sponsorship * acknowledged. * <br /><br /> */ #ifndef _FW_SER_IDS_...
hpp
fprime
data/projects/fprime/Fw/Cmd/CmdPacket.cpp
/* * CmdPacket.cpp * * Created on: May 24, 2014 * Author: Timothy Canham */ #include <Fw/Cmd/CmdPacket.hpp> #include <Fw/Types/Assert.hpp> #include <cstdio> namespace Fw { CmdPacket::CmdPacket() : m_opcode(0) { this->m_type = FW_PACKET_COMMAND; } CmdPacket::~CmdPacket() { } S...
cpp
fprime
data/projects/fprime/Fw/Cmd/CmdPacket.hpp
/* * CmdPacket.hpp * * Created on: May 24, 2014 * Author: Timothy Canham */ #ifndef CMDPACKET_HPP_ #define CMDPACKET_HPP_ #include <Fw/Com/ComPacket.hpp> #include <Fw/Cmd/CmdArgBuffer.hpp> namespace Fw { class CmdPacket : public ComPacket { public: CmdPacket(); virtua...
hpp
fprime
data/projects/fprime/Fw/Cmd/CmdString.cpp
#include <Fw/Cmd/CmdString.hpp> #include <Fw/Types/StringUtils.hpp> namespace Fw { CmdStringArg::CmdStringArg(const char* src) : StringBase() { (void) Fw::StringUtils::string_copy(this->m_buf, src, sizeof(this->m_buf)); } CmdStringArg::CmdStringArg(const StringBase& src) : StringBase() { ...
cpp
fprime
data/projects/fprime/Fw/Cmd/CmdString.hpp
#ifndef FW_CMD_STRING_TYPE_HPP #define FW_CMD_STRING_TYPE_HPP #include <FpConfig.hpp> #include <Fw/Types/StringType.hpp> #include <Fw/Cfg/SerIds.hpp> namespace Fw { class CmdStringArg : public Fw::StringBase { public: enum { SERIALIZED_TYPE_ID = FW_TYPEID_CMD_STR, ...
hpp
fprime
data/projects/fprime/Fw/Cmd/CmdArgBuffer.hpp
/* * * * Created on: March 1, 2014 * Author: T. Canham */ /* * Description: * This object contains the CmdARgBuffer type, used for holding the serialized arguments of commands */ #ifndef FW_CMD_ARG_BUFFER_HPP #define FW_CMD_ARG_BUFFER_HPP #include <FpConfig.hpp> #include <Fw/Types/Serializable.hpp> #inc...
hpp
fprime
data/projects/fprime/Fw/Cmd/CmdArgBuffer.cpp
#include <Fw/Cmd/CmdArgBuffer.hpp> #include <Fw/Types/Assert.hpp> namespace Fw { CmdArgBuffer::CmdArgBuffer(const U8 *args, NATIVE_UINT_TYPE size) { SerializeStatus stat = this->setBuff(args,size); FW_ASSERT(FW_SERIALIZE_OK == stat,static_cast<NATIVE_INT_TYPE>(stat)); } CmdArgBuffer::CmdA...
cpp
fprime
data/projects/fprime/Fw/Logger/LogAssert.hpp
/* * LogAssert.hpp * * Created on: Sep 9, 2016 * Author: tcanham * Note: this file was originally a log assert file, under Fw::Types. It now made generic * to log asserts to Fw::Logger */ #ifndef LOGGER_LOGASSERT_HPP_ #define LOGGER_LOGASSERT_HPP_ #include <Fw/Types/Assert.hpp> namespace Fw { clas...
hpp
fprime
data/projects/fprime/Fw/Logger/Logger.hpp
/** * File: Logger.hpp * Description: Framework logging support * Author: mstarch * * This file adds in support to the core 'Fw' package, to separate it from Os and other loggers, and * allow the architect of the system to select which core framework logging should be used. */ #ifndef _Fw_Logger_hpp_ #define _F...
hpp
fprime
data/projects/fprime/Fw/Logger/LogAssert.cpp
/* * LogAssert.cpp * * Created on: Sep 9, 2016 * Author: tcanham * Note: this file was originally a log assert file, under Fw::Types. It now made generic * to log asserts to Fw::Logger */ #include <Fw/Logger/LogAssert.hpp> #include <Fw/Logger/Logger.hpp> #if FW_ASSERT_LEVEL == FW_NO_ASSERT #else #if F...
cpp
fprime
data/projects/fprime/Fw/Logger/Logger.cpp
/** * File: Logger.cpp * Description: Framework logging implementation * Author: mstarch * * This file adds in support to the core 'Fw' package, to separate it from Os and other loggers, and * allow the architect of the system to select which core framework logging should be used. */ #include <Fw/Logger/Logger...
cpp
fprime
data/projects/fprime/Fw/Logger/test/ut/LoggerMain.cpp
/** * Main.cpp: * * Setup the GTests for rules-based testing of Fw::Logger and runs these tests. * * Created on: May 23, 2019 * Author: mstarch */ #include <STest/Scenario/Scenario.hpp> #include <STest/Scenario/RandomScenario.hpp> #include <STest/Scenario/BoundedScenario.hpp> #include <Fw/Test/UnitTest.hp...
cpp
fprime
data/projects/fprime/Fw/Logger/test/ut/FakeLogger.hpp
/** * FakeLogger.hpp: * * Setup a fake logger for use with the testing. This allows for the capture of messages from the system and ensure that * the proper log messages are coming through as expected. * * @author mstarch */ #include <FpConfig.hpp> #include <Fw/Logger/Logger.hpp> #ifndef FPRIME_FAKELOGGER_HPP ...
hpp
fprime
data/projects/fprime/Fw/Logger/test/ut/LoggerRules.hpp
/** * LoggerRules.hpp: * * This file specifies Rule classes for testing of the Fw::Logger. These rules can then be used by the main testing * program to test the code. * * Logging rules: * * 1. a logger can be registered at any time. * 2. NULL loggers discard log calls * 3. if a valid logger is registered, th...
hpp
fprime
data/projects/fprime/Fw/Logger/test/ut/LoggerRules.cpp
/** * LoggerRules.cpp: * * This file specifies Rule classes for testing of the Fw::Logger. These rules can then be used by the main testing * program to test the code. * * Logging rules: * * 1. a logger can be registered at any time. * 2. NULL loggers discard log calls * 3. if a valid logger is registered, th...
cpp
fprime
data/projects/fprime/Fw/Logger/test/ut/FakeLogger.cpp
/** * FakeLogger.cpp: * * Setup a fake logger for use with the testing. This allows for the capture of messages from the system and ensure that * the proper log messages are coming through as expected. * * @author mstarch */ #include <gtest/gtest.h> #include <Fw/Logger/test/ut/FakeLogger.hpp> namespace MockLogg...
cpp
fprime
data/projects/fprime/Fw/Trap/TrapHandler.hpp
#ifndef FW_TRAP_HPP #define FW_TRAP_HPP #include <FpConfig.hpp> namespace Fw { /** * TrapHandler: * A framework class used to handle traps that occur during the execution of the * the F' framework. Must be registered with a trap register. The user should * inherit from this class and ensure t...
hpp
fprime
data/projects/fprime/Fw/Dp/DpContainer.hpp
// ====================================================================== // \title DpContainer.hpp // \author bocchino // \brief hpp file for DpContainer // ====================================================================== #ifndef Fw_DpContainer_HPP #define Fw_DpContainer_HPP #include "Fw/Buffer/Buffer.hpp" #...
hpp
fprime
data/projects/fprime/Fw/Dp/DpContainer.cpp
// ====================================================================== // \title DpContainer.cpp // \author bocchino // \brief cpp file for DpContainer // ====================================================================== #include <cstring> #include "Fw/Com/ComPacket.hpp" #include "Fw/Dp/DpContainer.hpp" #in...
cpp
fprime
data/projects/fprime/Fw/Dp/test/util/DpContainerHeader.hpp
// ====================================================================== // \title DpContainerHeader.hpp // \author bocchino // \brief hpp file for DpContainer header test utility // ====================================================================== #ifndef Fw_TestUtil_DpContainerHeader_HPP #define Fw_TestUtil_...
hpp
fprime
data/projects/fprime/Fw/Dp/test/ut/TestMain.cpp
// ---------------------------------------------------------------------- // TestMain.cpp // ---------------------------------------------------------------------- #include <cstring> #include <limits> #include "gtest/gtest.h" #include "Fw/Dp/DpContainer.hpp" #include "Fw/Dp/test/util/DpContainerHeader.hpp" #include ...
cpp
fprime
data/projects/fprime/Fw/Tlm/TlmString.cpp
#include <Fw/Tlm/TlmString.hpp> #include <Fw/Types/StringUtils.hpp> namespace Fw { TlmString::TlmString(const char* src) : StringBase() { (void) Fw::StringUtils::string_copy(this->m_buf, src, sizeof(this->m_buf)); } TlmString::TlmString(const StringBase& src) : StringBase() { (void) Fw::...
cpp
fprime
data/projects/fprime/Fw/Tlm/TlmBuffer.cpp
#include <Fw/Tlm/TlmBuffer.hpp> #include <Fw/Types/Assert.hpp> namespace Fw { TlmBuffer::TlmBuffer(const U8 *args, NATIVE_UINT_TYPE size) { SerializeStatus stat = SerializeBufferBase::setBuff(args,size); FW_ASSERT(FW_SERIALIZE_OK == stat,static_cast<NATIVE_INT_TYPE>(stat)); } TlmBuffer::T...
cpp
fprime
data/projects/fprime/Fw/Tlm/TlmPacket.cpp
/* * TlmPacket.cpp * * Created on: May 24, 2014 * Author: Timothy Canham */ #include <Fw/Types/Serializable.hpp> #include <Fw/Tlm/TlmPacket.hpp> #include <Fw/Types/Assert.hpp> namespace Fw { TlmPacket::TlmPacket() : m_numEntries(0) { this->m_type = FW_PACKET_TELEM; this->m_tlmBuffer.res...
cpp
fprime
data/projects/fprime/Fw/Tlm/TlmPacket.hpp
/* * TlmPacket.hpp * * Created on: May 24, 2014 * Author: Timothy Canham */ #ifndef TLMPACKET_HPP_ #define TLMPACKET_HPP_ #include <Fw/Com/ComPacket.hpp> #include <Fw/Tlm/TlmBuffer.hpp> #include <Fw/Com/ComBuffer.hpp> #include <Fw/Time/Time.hpp> namespace Fw { class TlmPacket : public ComPacket { ...
hpp
fprime
data/projects/fprime/Fw/Tlm/TlmString.hpp
#ifndef FW_TLM_STRING_TYPE_HPP #define FW_TLM_STRING_TYPE_HPP #include <FpConfig.hpp> #include <Fw/Types/StringType.hpp> #include <Fw/Cfg/SerIds.hpp> namespace Fw { class TlmString : public Fw::StringBase { public: enum { SERIALIZED_TYPE_ID = FW_TYPEID_TLM_STR, ...
hpp
fprime
data/projects/fprime/Fw/Tlm/TlmBuffer.hpp
/* * TlmBuffer.hpp * * Author: tcanham */ /* * Description: * This object contains the TlmBuffer type, used for storing telemetry */ #ifndef FW_TLM_BUFFER_HPP #define FW_TLM_BUFFER_HPP #include <FpConfig.hpp> #include <Fw/Types/Serializable.hpp> #include <Fw/Cfg/SerIds.hpp> namespace Fw { class TlmB...
hpp
fprime
data/projects/fprime/Fw/Tlm/test/ut/TlmTest.cpp
#include <gtest/gtest.h> #include <Fw/Tlm/TlmPacket.hpp> #include <Fw/Com/ComBuffer.hpp> TEST(FwTlmTest,TlmPacketSerializeSingle) { // Serialize data Fw::TlmPacket pktIn; Fw::TlmBuffer buffIn; ASSERT_EQ(Fw::FW_SERIALIZE_OK,buffIn.serialize(static_cast<U32>(12))); Fw::Time timeIn(TB_WORKSTATION_TI...
cpp
fprime
data/projects/fprime/Fw/Types/MemAllocator.cpp
/** * \file * \author * \brief * * \copyright * Copyright 2009-2016, by the California Institute of Technology. * ALL RIGHTS RESERVED. United States Government Sponsorship * acknowledged. * */ #include <Fw/Types/MemAllocator.hpp> namespace Fw { MemAllocator::MemAllocator() { } MemAllocator::~...
cpp
fprime
data/projects/fprime/Fw/Types/ObjectName.hpp
#ifndef FW_OBJECT_NAME_TYPE_HPP #define FW_OBJECT_NAME_TYPE_HPP #include <FpConfig.hpp> #include <Fw/Types/StringType.hpp> #include <Fw/Cfg/SerIds.hpp> namespace Fw { class ObjectName : public Fw::StringBase { public: enum { SERIALIZED_TYPE_ID = FW_TYPEID_OBJECT_NAME, //!< ty...
hpp
fprime
data/projects/fprime/Fw/Types/CAssert.h
/* * FwCAssert.hpp * * Created on: Jun 8, 2014 * Author: tcanham */ #ifndef FWCASSERT_HPP_ #define FWCASSERT_HPP_ #include <FpConfig.h> #if FW_ASSERT_LEVEL == FW_NO_ASSERT #define FW_CASSERT(...) #else // ASSERT is defined #if FW_ASSERT_LEVEL == FW_FILEID_ASSERT #define FILE_NAME_ARG NATIVE_UINT_TYPE ...
h
fprime
data/projects/fprime/Fw/Types/BasicTypes.hpp
/** * \file: BasicTypes.hpp * \author mstarch * \brief C++ header for working with basic fprime types * * \copyright * Copyright 2009-2016, by the California Institute of Technology. * ALL RIGHTS RESERVED. United States Government Sponsorship * acknowledged. */ #include <limits> // Use C linkage for the basic...
hpp
fprime
data/projects/fprime/Fw/Types/ConstByteArray.hpp
// ====================================================================== // \title ConstByteArray.hpp // \author bocchino // \brief hpp file for ConstByteArray type // // \copyright // Copyright (C) 2016 California Institute of Technology. // ALL RIGHTS RESERVED. United States Government Sponsorship // acknowledge...
hpp
fprime
data/projects/fprime/Fw/Types/String.cpp
#include <Fw/Types/String.hpp> #include <Fw/Types/StringUtils.hpp> namespace Fw { String::String(const char* src) : StringBase() { (void) Fw::StringUtils::string_copy(this->m_buf, src, sizeof(this->m_buf)); } String::String(const StringBase& src) : StringBase() { (void) Fw::StringUtils::s...
cpp
fprime
data/projects/fprime/Fw/Types/EightyCharString.cpp
#include <Fw/Types/EightyCharString.hpp> #include <Fw/Types/StringUtils.hpp> namespace Fw { EightyCharString::EightyCharString(const char* src) : StringBase() { (void) Fw::StringUtils::string_copy(this->m_buf, src, sizeof(this->m_buf)); } EightyCharString::EightyCharString(const StringBase& src) ...
cpp
fprime
data/projects/fprime/Fw/Types/Assert.cpp
#include <FpConfig.hpp> #include <Fw/Types/Assert.hpp> #include <cassert> #include <cstdio> #define FW_ASSERT_DFL_MSG_LEN 256 #if FW_ASSERT_LEVEL == FW_FILEID_ASSERT #define fileIdFs "Assert: 0x%08" PRIx32 ":%" PRI_PlatformUIntType #else #define fileIdFs "Assert: \"%s:%" PRI_PlatformUIntType "\"" #endif namespace Fw...
cpp
fprime
data/projects/fprime/Fw/Types/InternalInterfaceString.cpp
#include <Fw/Types/InternalInterfaceString.hpp> #include <Fw/Types/StringUtils.hpp> namespace Fw { InternalInterfaceString::InternalInterfaceString(const char* src) : StringBase() { (void) Fw::StringUtils::string_copy(this->m_buf, src, sizeof(this->m_buf)); } InternalInterfaceString::InternalInt...
cpp
fprime
data/projects/fprime/Fw/Types/MallocAllocator.hpp
/** * \file * \author T. Canham * \brief A MemAllocator implementation class that uses malloc. * * \copyright * Copyright 2009-2016, by the California Institute of Technology. * ALL RIGHTS RESERVED. United States Government Sponsorship * acknowledged. * */ #ifndef TYPES_MALLOCALLOCATOR_HPP_ #define TYPES_MA...
hpp
fprime
data/projects/fprime/Fw/Types/MmapAllocator.cpp
/** * \file * \author Gene Merewether * \brief Implementation of mmap based allocator * * \copyright * Copyright 2009-2016, by the California Institute of Technology. * ALL RIGHTS RESERVED. United States Government Sponsorship * acknowledged. * */ #include <Fw/Types/MmapAllocator.hpp> #include <cstdlib> #in...
cpp
fprime
data/projects/fprime/Fw/Types/EightyCharString.hpp
#ifndef FW_EIGHTY_CHAR_STRING_TYPE_HPP #define FW_EIGHTY_CHAR_STRING_TYPE_HPP #include <FpConfig.hpp> #include <Fw/Types/StringType.hpp> #include <Fw/Cfg/SerIds.hpp> namespace Fw { class EightyCharString : public Fw::StringBase { public: enum { SERIALIZED_TYPE_ID = FW_TYPEID_...
hpp
fprime
data/projects/fprime/Fw/Types/StringType.cpp
/** * \file * \author T. Canham * \brief Implements ISF string base class * * \copyright * Copyright 2009-2016, by the California Institute of Technology. * ALL RIGHTS RESERVED. United States Government Sponsorship * acknowledged. * */ #include <Fw/Types/StringType.hpp> #include <Fw/Types/Assert.hpp> #inclu...
cpp
fprime
data/projects/fprime/Fw/Types/InternalInterfaceString.hpp
#ifndef FW_INTERNAL_INTERFACE_STRING_TYPE_HPP #define FW_INTERNAL_INTERFACE_STRING_TYPE_HPP #include <FpConfig.hpp> #include <Fw/Types/StringType.hpp> #include <Fw/Cfg/SerIds.hpp> namespace Fw { class InternalInterfaceString : public Fw::StringBase { public: enum { SERIALIZED...
hpp
fprime
data/projects/fprime/Fw/Types/MallocAllocator.cpp
/** * \file * \author T. Canham * \brief Implementation of malloc based allocator * * \copyright * Copyright 2009-2016, by the California Institute of Technology. * ALL RIGHTS RESERVED. United States Government Sponsorship * acknowledged. * */ #include <Fw/Types/MallocAllocator.hpp> #include <cstdlib> name...
cpp
fprime
data/projects/fprime/Fw/Types/MmapAllocator.hpp
/** * \file * \author Gene Merewether * \brief A MemAllocator implementation class that uses mmap. * * \copyright * Copyright 2009-2016, by the California Institute of Technology. * ALL RIGHTS RESERVED. United States Government Sponsorship * acknowledged. * */ #ifndef TYPES_MMAPALLOCATOR_HPP_ #define TYPES_...
hpp
fprime
data/projects/fprime/Fw/Types/StringUtils.hpp
#ifndef FW_STRINGUTILS_HPP #define FW_STRINGUTILS_HPP #include <FpConfig.hpp> namespace Fw { namespace StringUtils { /** * \brief copy string with null-termination guaranteed * * Standard implementations of strncpy fail to guarantee the termination of a * string with the null terminator. This implementation guara...
hpp
fprime
data/projects/fprime/Fw/Types/StringType.hpp
/** * \file * \author T. Canham * \brief Declares ISF string base class * * \copyright * Copyright 2009-2016, by the California Institute of Technology. * ALL RIGHTS RESERVED. United States Government Sponsorship * acknowledged. * */ #ifndef FW_STRING_TYPE_HPP #define FW_STRING_TYPE_HPP #include <FpConfig....
hpp
fprime
data/projects/fprime/Fw/Types/SerialBuffer.cpp
// ====================================================================== // \title SerialBuffer.cpp // \author bocchino // \brief cpp file for SerialBuffer type // // \copyright // Copyright (C) 2016 California Institute of Technology. // ALL RIGHTS RESERVED. United States Government Sponsorship // acknowledged. //...
cpp
fprime
data/projects/fprime/Fw/Types/ObjectName.cpp
#include <Fw/Types/ObjectName.hpp> #include <Fw/Types/StringUtils.hpp> namespace Fw { ObjectName::ObjectName(const CHAR* src) : StringBase() { (void) Fw::StringUtils::string_copy(this->m_buf, src, sizeof(this->m_buf)); } ObjectName::ObjectName(const StringBase& src) : StringBase() { (void...
cpp
fprime
data/projects/fprime/Fw/Types/String.hpp
#ifndef FW_FIXED_LENGTH_STRING_TYPE_HPP #define FW_FIXED_LENGTH_STRING_TYPE_HPP #include <FpConfig.hpp> #include <Fw/Types/StringType.hpp> #include <Fw/Cfg/SerIds.hpp> namespace Fw { class String : public Fw::StringBase { public: enum { SERIALIZED_TYPE_ID = FW_TYPEID_FIXED_LE...
hpp
fprime
data/projects/fprime/Fw/Types/Serializable.hpp
#ifndef SERIALIZABLE_HPP #define SERIALIZABLE_HPP #ifdef BUILD_UT #include <iostream> #endif #include <FpConfig.hpp> #include "Fw/Deprecate.hpp" namespace Fw { class StringBase; //!< forward declaration for string typedef enum { FW_SERIALIZE_OK, //!< Serialization/Deserialization operation was succe...
hpp
fprime
data/projects/fprime/Fw/Types/Assert.hpp
#ifndef FW_ASSERT_HPP #define FW_ASSERT_HPP #include <FpConfig.hpp> // Return only the first argument passed to the macro. #define FW_ASSERT_FIRST_ARG(ARG_0, ...) ARG_0 // Return all the arguments of the macro, but the first one #define FW_ASSERT_NO_FIRST_ARG(ARG_0, ...) __VA_ARGS__ #if FW_ASSERT_LEVEL == FW_NO_ASSE...
hpp
fprime
data/projects/fprime/Fw/Types/BasicTypes.h
/** * \file: BasicType.h * \author mstarch * \brief Declares fprime basic types for usage within C language files * * \copyright * Copyright 2009-2016, by the California Institute of Technology. * ALL RIGHTS RESERVED. United States Government Sponsorship * acknowledged. * */ #include <PlatformTypes.h> #ifnde...
h