Lines Matching refs:TInterrupt
19 public class InterruptManager<TInterrupt> where TInterrupt : struct, IConvertible class
23 if(!typeof(TInterrupt).IsEnum) in InterruptManager()
29 activeInterrupts = new HashSet<TInterrupt>(); in InterruptManager()
30 enabledInterrupts = new HashSet<TInterrupt>(); in InterruptManager()
31 subvectors = new Dictionary<IGPIO, HashSet<TInterrupt>>(); in InterruptManager()
33 nonsettableInterrupts = new HashSet<TInterrupt>(); in InterruptManager()
34 enabledOnResetInterrupts = new HashSet<TInterrupt>(); in InterruptManager()
71 …foreach(var member in typeof(TInterrupt).GetFields().Where(x => !x.Attributes.HasFlag(FieldAttribu… in InterruptManager()
96 if(!subvectors.TryGetValue(gpio, out HashSet<TInterrupt> interrupts)) in InterruptManager()
98 interrupts = new HashSet<TInterrupt>(); in InterruptManager()
102 var interrupt = (TInterrupt)Enum.Parse(typeof(TInterrupt), member.Name); in InterruptManager()
129 …ic TRegister GetRegister<TRegister>(Func<TInterrupt, bool, bool> valueProviderCallback = null, Act…
142 foreach(TInterrupt interruptType in Enum.GetValues(typeof(TInterrupt)))
155 foreach(TInterrupt interruptType in Enum.GetValues(typeof(TInterrupt)))
167 foreach(TInterrupt interruptType in Enum.GetValues(typeof(TInterrupt)))
179 foreach(TInterrupt interruptType in Enum.GetValues(typeof(TInterrupt)))
192 foreach(TInterrupt interruptType in Enum.GetValues(typeof(TInterrupt)))
205 foreach(TInterrupt interruptType in Enum.GetValues(typeof(TInterrupt)))
218 foreach(TInterrupt interruptType in Enum.GetValues(typeof(TInterrupt)))
234 foreach(TInterrupt interruptType in Enum.GetValues(typeof(TInterrupt)))
247 public void EnableInterrupt(TInterrupt interrupt, bool status = true) in EnableInterrupt()
260 public void DisableInterrupt(TInterrupt interrupt) in DisableInterrupt()
265 public void SetInterrupt(TInterrupt interrupt, bool status = true) in SetInterrupt()
278 public bool IsSet(TInterrupt interrupt) in IsSet()
283 public bool IsEnabled(TInterrupt interrupt) in IsEnabled()
288 public void ClearInterrupt(TInterrupt interrupt) in ClearInterrupt()
321 private readonly HashSet<TInterrupt> enabledOnResetInterrupts;
322 private readonly HashSet<TInterrupt> nonsettableInterrupts;
324 private readonly Dictionary<IGPIO, HashSet<TInterrupt>> subvectors;
325 private readonly HashSet<TInterrupt> activeInterrupts;
326 private readonly HashSet<TInterrupt> enabledInterrupts;