GCC Code Coverage Report


Directory: ./
File: build-fprime-automatic-native-ut/F-Prime/default/config/CommandDispatcherImplCfg.hpp
Date: 2026-09-03 21:13:48
Exec Total Coverage
Lines: 2 2 100.0%
Functions: 1 1 100.0%
Branches: 0 0 -%

Line Branch Exec Source
1 /*
2 * CmdDispatcherImplCfg.hpp
3 *
4 * Created on: May 6, 2015
5 * Author: tcanham
6 */
7
8 #ifndef CMDDISPATCHER_COMMANDDISPATCHERIMPLCFG_HPP_
9 #define CMDDISPATCHER_COMMANDDISPATCHERIMPLCFG_HPP_
10
11 #include <Fw/FPrimeBasicTypes.hpp>
12
13 // Define configuration values for dispatcher
14
15 enum {
16 CMD_DISPATCHER_DISPATCH_TABLE_SIZE = 150, // !< The size of the table holding opcodes to dispatch
17 CMD_DISPATCHER_SEQUENCER_TABLE_SIZE = 25, // !< The size of the table holding commands in progress
18 };
19
20 namespace Svc {
21 namespace CmdDispatcherCfg {
22
23 //! Include command opcodes in events when true.
24 //! When false, opcode fields are set to the maximum FwOpcodeType value.
25 constexpr bool IncludeCommandOpcodesInEvents = true;
26
27 254 constexpr FwOpcodeType getEventOpcode(const FwOpcodeType opcode) {
28 254 return IncludeCommandOpcodesInEvents ? opcode : std::numeric_limits<FwOpcodeType>::max();
29 }
30
31 } // namespace CmdDispatcherCfg
32 } // namespace Svc
33
34 #endif /* CMDDISPATCHER_COMMANDDISPATCHERIMPLCFG_HPP_ */
35