CTRE Phoenix C++ 5.33.1
IInvertable.h
Go to the documentation of this file.
1/* Copyright (C) Cross The Road Electronics 2024 */
2#pragma once
3
4namespace ctre {
5namespace phoenix {
6/** signals namespace */
7namespace signals {
8
9/**
10 * Interface for invertable objects
11 */
13public:
14 virtual ~IInvertable(){}
15 /**
16 * Inverts the output of the object
17 *
18 * @param invert
19 * Invert state to set.
20 */
21 virtual void SetInverted(bool invert) = 0;
22 /**
23 * @return invert setting of output.
24 */
25 virtual bool GetInverted() const = 0;
26};
27
28} // namespace Signals
29} // namespace phoenix
30} // namespace ctre
Interface for invertable objects.
Definition: IInvertable.h:12
virtual bool GetInverted() const =0
virtual ~IInvertable()
Definition: IInvertable.h:14
virtual void SetInverted(bool invert)=0
Inverts the output of the object.
namespace ctre
Definition: paramEnum.h:5