semf
externalinterrupt.h
Go to the documentation of this file.
1
10#ifndef SEMF_SYSTEM_EXTERNALINTERRUPT_H_
11#define SEMF_SYSTEM_EXTERNALINTERRUPT_H_
12
15
16namespace semf
17{
22{
23public:
26 {
27 None = 0, //<! EXTI is disabled.
28 RisingEdge, //<! EXTI is triggered by rising edge.
29 FallingEdge, //<! EXTI is triggered by falling edge.
30 RisingAndFallingEdge //<! EXTI is triggered by rising and falling edges.
31 };
32
33 virtual ~ExternalInterrupt() = default;
34
39 virtual void setTrigger(Trigger trigger) = 0;
40
45};
46} /* namespace semf */
47#endif // SEMF_SYSTEM_EXTERNALINTERRUPT_H_"
Interface for using a external interrupt.
virtual ~ExternalInterrupt()=default
virtual void setTrigger(Trigger trigger)=0
Sets the trigger condition of an EXTI.
Signal for lightweight signal/slot implementation. One signal can be connected to multiple slots and ...
Definition: signal.h:41