F´ Flight Software - C/C++ Documentation NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
Loading...
Searching...
No Matches
BufferRepeater.hpp
Go to the documentation of this file.
1// ======================================================================
2// \title BufferRepeater.hpp
3// \author lestarch
4// \brief hpp file for GenericRepeater component implementation class
5//
6// \copyright
7// Copyright 2009-2015, by the California Institute of Technology.
8// ALL RIGHTS RESERVED. United States Government Sponsorship
9// acknowledged.
10//
11// ======================================================================
12
13#ifndef BufferRepeater_HPP
14#define BufferRepeater_HPP
15
16#include "Svc/BufferRepeater/BufferRepeaterComponentAc.hpp"
17
18namespace Svc {
19
20class BufferRepeater : public BufferRepeaterComponentBase {
21 public:
30 };
31 // ----------------------------------------------------------------------
32 // Construction, initialization, and destruction
33 // ----------------------------------------------------------------------
34
37 BufferRepeater(const char* const compName
38 );
39
42 void init(const NATIVE_INT_TYPE instance = 0
43 );
44
48
53 void configure(BufferRepeaterFailureOption allocation_failure_response);
54
55 private:
56 // ----------------------------------------------------------------------
57 // Helper functions
58 // ----------------------------------------------------------------------
59
67 bool check_allocation(FwIndexType index, const Fw::Buffer& new_allocation, const Fw::Buffer& incoming_buffer);
68
69 private:
70 // ----------------------------------------------------------------------
71 // Handler implementations for user-defined serial input ports
72 // ----------------------------------------------------------------------
73
76 void portIn_handler(NATIVE_INT_TYPE portNum,
77 Fw::Buffer& Buffer
78 );
79
80 BufferRepeaterFailureOption m_allocation_failure_response;
81};
82
83} // end namespace Svc
84
85#endif
PlatformIntType NATIVE_INT_TYPE
Definition BasicTypes.h:51
PlatformIndexType FwIndexType
Definition FpConfig.h:15
void init(const NATIVE_INT_TYPE instance=0)
void configure(BufferRepeaterFailureOption allocation_failure_response)