45 std::function<
void(
bool,
bool)> callback);
60 std::function<
void(
bool,
bool)> callback);
75 std::function<
void(
bool,
bool)> callback);
88 template <
typename Callable,
typename Arg,
typename... Args>
93 std::forward<Args>(args)...)) {}
106 template <
typename Callable,
typename Arg,
typename... Args>
111 std::forward<Args>(args)...)) {}
124 template <
typename Callable,
typename Arg,
typename... Args>
126 Arg&&
arg, Args&&... args)
129 std::forward<Args>(args)...)) {}
175 std::atomic_bool m_keepRunning{
false};
176 std::thread m_thread;
178 std::function<void(
bool,
bool)> m_callback;
and restrictions which apply to each piece of software is included later in this file and or inside of the individual applicable source files The disclaimer of warranty in the WPILib license above applies to all code in and nothing in any of the other licenses gives permission to use the names of FIRST nor the names of the WPILib contributors to endorse or promote products derived from this software The following pieces of software have additional or alternate and or Google Inc All rights reserved Redistribution and use in source and binary with or without are permitted provided that the following conditions are this list of conditions and the following disclaimer *Redistributions in binary form must reproduce the above copyright this list of conditions and the following disclaimer in the documentation and or other materials provided with the distribution *Neither the name of Google Inc nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND ANY EXPRESS OR IMPLIED BUT NOT LIMITED THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY OR CONSEQUENTIAL WHETHER IN STRICT OR EVEN IF ADVISED OF THE POSSIBILITY OF SUCH January AND DISTRIBUTION Definitions License shall mean the terms and conditions for and distribution as defined by Sections through of this document Licensor shall mean the copyright owner or entity authorized by the copyright owner that is granting the License Legal Entity shall mean the union of the acting entity and all other entities that control are controlled by or are under common control with that entity For the purposes of this definition control direct or to cause the direction or management of such whether by contract or including but not limited to software source documentation source
Definition: ThirdPartyNotices.txt:111
Class for handling asynchronous interrupts using a callback thread.
Definition: AsynchronousInterrupt.h:30
AsynchronousInterrupt(DigitalSource &source, std::function< void(bool, bool)> callback)
Construct an Asynchronous Interrupt from a Digital Source.
AsynchronousInterrupt(DigitalSource *source, std::function< void(bool, bool)> callback)
Construct an Asynchronous Interrupt from a Digital Source.
AsynchronousInterrupt(std::shared_ptr< DigitalSource > source, std::function< void(bool, bool)> callback)
Construct an Asynchronous Interrupt from a Digital Source.
void Disable()
Disables interrupt callbacks.
AsynchronousInterrupt(DigitalSource *source, Callable &&f, Arg &&arg, Args &&... args)
Construct an Asynchronous Interrupt from a Digital Source.
Definition: AsynchronousInterrupt.h:107
AsynchronousInterrupt(DigitalSource &source, Callable &&f, Arg &&arg, Args &&... args)
Construct an Asynchronous Interrupt from a Digital Source.
Definition: AsynchronousInterrupt.h:89
units::second_t GetRisingTimestamp()
Get the timestamp of the last rising edge.
void Enable()
Enables interrupt callbacks.
void SetInterruptEdges(bool risingEdge, bool fallingEdge)
Set which edges to trigger the interrupt on.
AsynchronousInterrupt(std::shared_ptr< DigitalSource > source, Callable &&f, Arg &&arg, Args &&... args)
Construct an Asynchronous Interrupt from a Digital Source.
Definition: AsynchronousInterrupt.h:125
units::second_t GetFallingTimestamp()
Get the timestamp of the last falling edge.
DigitalSource Interface.
Definition: DigitalSource.h:22
Class for handling synchronous (blocking) interrupts.
Definition: SynchronousInterrupt.h:22
auto arg(const Char *name, const T &arg) -> detail::named_arg< Char, T >
\rst Returns a named argument to be used in a formatting function.
Definition: core.h:1841
Definition: AprilTagPoseEstimator.h:15