F´ Flight Software - C/C++ Documentation
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
17
18namespace Svc {
19
21 public:
31 // ----------------------------------------------------------------------
32 // Construction, initialization, and destruction
33 // ----------------------------------------------------------------------
34
37 BufferRepeater(const char* const compName
38 );
39
43
48 void configure(BufferRepeaterFailureOption allocation_failure_response);
49
50 private:
51 // ----------------------------------------------------------------------
52 // Helper functions
53 // ----------------------------------------------------------------------
54
62 bool check_allocation(FwIndexType index, const Fw::Buffer& new_allocation, const Fw::Buffer& incoming_buffer);
63
64 private:
65 // ----------------------------------------------------------------------
66 // Handler implementations for user-defined serial input ports
67 // ----------------------------------------------------------------------
68
71 void portIn_handler(NATIVE_INT_TYPE portNum,
72 Fw::Buffer& Buffer
73 );
74
75 BufferRepeaterFailureOption m_allocation_failure_response;
76};
77
78} // end namespace Svc
79
80#endif
PlatformIntType NATIVE_INT_TYPE
Definition BasicTypes.h:55
PlatformIndexType FwIndexType
Definition FpConfig.h:25
Auto-generated base for BufferRepeater component.
void configure(BufferRepeaterFailureOption allocation_failure_response)