mirror of
https://github.com/nasa/fprime.git
synced 2025-12-11 13:04:17 -06:00
31 lines
899 B
C++
31 lines
899 B
C++
/*
|
|
* TestCommand1Impl.hpp
|
|
*
|
|
* Created on: Mar 28, 2014
|
|
* Author: tcanham
|
|
*/
|
|
|
|
#ifndef TESTCOMMANDSOURCEIMPL_HPP_
|
|
#define TESTCOMMANDSOURCEIMPL_HPP_
|
|
|
|
#include <Autocoders/Python/test/command_tester/CommandTestComponentAc.hpp>
|
|
|
|
class TestCommandSourceImpl: public Cmd::CommandTesterComponentBase {
|
|
public:
|
|
#if FW_OBJECT_NAMES == 1
|
|
TestCommandSourceImpl(const char* compName);
|
|
#else
|
|
TestCommandSourceImpl();
|
|
#endif
|
|
virtual ~TestCommandSourceImpl();
|
|
void init(void);
|
|
void test_TEST_CMD_1(I32 arg1, F32 arg2, U8 arg3);
|
|
protected:
|
|
void cmdStatusPort_handler(NATIVE_INT_TYPE portNum, FwOpcodeType opCode, U32 cmdSeq, Fw::CommandResponse response);
|
|
void cmdRegPort_handler(NATIVE_INT_TYPE portNum, FwOpcodeType opCode);
|
|
private:
|
|
void printStatus(Fw::CommandResponse response);
|
|
};
|
|
|
|
#endif /* TESTCOMMANDSOURCEIMPL_HPP_ */
|