mirror of
https://github.com/nasa/fprime.git
synced 2025-12-15 05:43:54 -06:00
41 lines
887 B
C++
41 lines
887 B
C++
/*
|
|
* TestCommand1Impl.cpp
|
|
*
|
|
* Created on: Mar 28, 2014
|
|
* Author: tcanham
|
|
*/
|
|
|
|
#include <Autocoders/Python/test/param_multi_inst/TestPrmImpl.hpp>
|
|
#include <cstdio>
|
|
|
|
#if FW_OBJECT_NAMES == 1
|
|
TestPrmImpl::TestPrmImpl(const char* name) : Prm::TestPrmComponentBase(name)
|
|
#else
|
|
TestPrmImpl::TestPrmImpl() : Prm::TestPrmComponentBase()
|
|
#endif
|
|
{
|
|
}
|
|
|
|
TestPrmImpl::~TestPrmImpl() {
|
|
}
|
|
|
|
void TestPrmImpl::init() {
|
|
Prm::TestPrmComponentBase::init();
|
|
}
|
|
|
|
void TestPrmImpl::aport_handler(NATIVE_INT_TYPE portNum, I32 arg4, F32 arg5, U8 arg6) {
|
|
|
|
}
|
|
|
|
void TestPrmImpl::printParam() {
|
|
Fw::ParamValid valid = Fw::ParamValid::INVALID;
|
|
const U32& prmRef = this->paramGet_someparam(valid);
|
|
|
|
printf("Parameter is: %d %s\n",prmRef,valid==Fw::ParamValid::VALID?"VALID":"INVALID");
|
|
}
|
|
|
|
void TestPrmImpl::parameterUpdated(FwPrmIdType id)
|
|
{
|
|
printf("Parameter %d was updated\n", id);
|
|
}
|