forked from dotnet/iot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FrequencyMode.cs
48 lines (41 loc) · 1.32 KB
/
FrequencyMode.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Iot.Device.Arduino
{
/// <summary>
/// Defines on which events the frequency counter should increase.
/// </summary>
public enum FrequencyMode
{
/// <summary>
/// Don't change the value
/// </summary>
NoChange = 0,
/// <summary>
/// Trigger when the value is low.
/// Use with care: This triggers an internal interrupt AS LONG AS the value on the pin is low, which may completely lock up the board.
/// </summary>
Low = 1,
/// <summary>
/// Trigger when the value is high. This mode is only supported on some boards.
/// </summary>
High = 2,
/// <summary>
/// Trigger on a rising edge
/// </summary>
Rising = 3,
/// <summary>
/// Trigger on a falling edge
/// </summary>
Falling = 4,
/// <summary>
/// Trigger on both edges. Note that this will typically result in a frequency reported twice as high as it actually is.
/// </summary>
Change = 5,
}
}