FlightGear next
|
Flip flop implementation for a RS flip flop with dominant SET. More...
Inherits FGXMLAutopilot::RSFlipFlopImplementation.
Public Member Functions | |
SRFlipFlopImplementation () | |
![]() | |
RSFlipFlopImplementation (bool rIsDominant=true) | |
virtual bool | getState (double dt, DigitalComponent::InputMap input, bool &q) |
evaluates the output state from the input lines | |
![]() | |
virtual | ~FlipFlopImplementation () |
bool | configure (SGPropertyNode &prop_root, SGPropertyNode &cfg) |
configure this component from a property node. | |
virtual bool | isConfigProperty (const std::string &cfg_name) const |
Additional Inherited Members | |
![]() | |
virtual bool | configure (SGPropertyNode &cfg_node, const std::string &cfg_name, SGPropertyNode &prop_root) |
configure this component from a property node. | |
![]() | |
bool | _rIsDominant |
Flip flop implementation for a RS flip flop with dominant SET.
SR (set-reset) flip flops act as a fundamental latch. It has two input lines, S (set) and R (reset). Activating the set input sets the output while activating the reset input resets the output. If both inputs are activated, the output is activated, too. This is why the SET line is called dominant. Use a RSFlipFlopImplementation for a dominant RESET line.
Logictable | ||
S | R | Q |
false | false | unchanged |
false | true | false |
true | false | true |
true | true | true |
Definition at line 102 of file flipflop.cxx.
|
inline |
Definition at line 104 of file flipflop.cxx.