mirror of
https://github.com/nasa/fprime.git
synced 2025-12-11 04:35:25 -06:00
* lestarch: adding logical types implementation into Linux/StandardTypes.hpp * lestarch: removing VxWorks StandardTypes from repository * updated fprime types for correct compilation with vxworks and baremetal * lestarch: refactoring types and configuration header w.r.t type design * lestarch: replacing usages of AssertArg with FwAssertArgType * lestarch: missspelled configuration * lestarch: minor compilation fixes * lestarch: renaming StandardTypes.hpp -> PlatformTypes.hpp * lestarch: updating PRI tokens * lestarch: replacing BasicTypes.hpp includes with FpConfig.hpp * lestarch: UT and compilation fixes for types refactor * lestarch: sp * lestarch: fixing RPI issues in PassiveConsoleTextLogger * lestarch: converting RPI build to debug * lestarch: removing duplicate config imports * lestarch: fixing documentation * lestarch: fixing up multiple definitions and RPI compilation problems * lestarch: reverting debug build * lestarch: reverting platform types to class-based constants * lestarch: reworking basic types * lestarch: configured types refactor into classes * lestarch: fixing bugs with static constants in classes * lestarch: fixing platform types spelling and documentation * lestarch: adding include guards to types headers Co-authored-by: Kevin F Ortega <kevin.f.ortega@jpl.nasa.gov>
91 lines
2.2 KiB
C++
91 lines
2.2 KiB
C++
// ======================================================================
|
|
// \title Test1Impl.cpp
|
|
// \author tcanham
|
|
// \brief cpp file for Test1 component implementation class
|
|
//
|
|
// \copyright
|
|
// Copyright 2009-2015, by the California Institute of Technology.
|
|
// ALL RIGHTS RESERVED. United States Government Sponsorship
|
|
// acknowledged.
|
|
//
|
|
// ======================================================================
|
|
|
|
|
|
#include <Autocoders/Python/test/command_res/Test1ComponentImpl.hpp>
|
|
#include <FpConfig.hpp>
|
|
|
|
namespace Cmd {
|
|
|
|
// ----------------------------------------------------------------------
|
|
// Construction, initialization, and destruction
|
|
// ----------------------------------------------------------------------
|
|
|
|
Test1ComponentImpl ::
|
|
Test1ComponentImpl(
|
|
const char *const compName
|
|
) :
|
|
Test1ComponentBase(compName)
|
|
{
|
|
|
|
}
|
|
|
|
void Test1ComponentImpl ::
|
|
init(
|
|
const NATIVE_INT_TYPE queueDepth,
|
|
const NATIVE_INT_TYPE instance
|
|
)
|
|
{
|
|
Test1ComponentBase::init(queueDepth, instance);
|
|
}
|
|
|
|
Test1ComponentImpl ::
|
|
~Test1ComponentImpl()
|
|
{
|
|
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
// Handler implementations for user-defined typed input ports
|
|
// ----------------------------------------------------------------------
|
|
|
|
void Test1ComponentImpl ::
|
|
aport_handler(
|
|
const NATIVE_INT_TYPE portNum,
|
|
I32 arg4,
|
|
F32 arg5,
|
|
U8 arg6
|
|
)
|
|
{
|
|
// TODO
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
// Command handler implementations
|
|
// ----------------------------------------------------------------------
|
|
|
|
void Test1ComponentImpl ::
|
|
TEST_CMD_1_cmdHandler(
|
|
const FwOpcodeType opCode,
|
|
const U32 cmdSeq,
|
|
I32 arg1,
|
|
F32 arg2,
|
|
U8 arg3
|
|
)
|
|
{
|
|
this->cmdResponse_out(opCode,cmdSeq,Fw::CmdResponse::OK);
|
|
}
|
|
|
|
void Test1ComponentImpl ::
|
|
TEST_CMD_2_cmdHandler(
|
|
const FwOpcodeType opCode,
|
|
const U32 cmdSeq,
|
|
U32 arg1,
|
|
U16 arg2,
|
|
U8 arg3
|
|
)
|
|
{
|
|
this->cmdResponse_out(opCode,cmdSeq,Fw::CmdResponse::OK);
|
|
}
|
|
|
|
} // end namespace Cmd
|