-
-
Notifications
You must be signed in to change notification settings - Fork 109
/
Copy pathGainLevel.cs
35 lines (30 loc) · 970 Bytes
/
GainLevel.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
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace Iot.Device.Hx711
{
/// <summary>
/// Defines the available gain factors available.
/// </summary>
public enum GainLevel : byte
{
// developer note:
// the enum value corresponds to the number of CLK cycles that have to be sent to device to configure the gain factor
// (this is coming from the device datasheet)
/// <summary>
/// Gain factor not set.
/// </summary>
None = 0,
/// <summary>
/// Gain factor of 32. Channel B.
/// </summary>
GainB32 = 0b1010_0000,
/// <summary>
/// Gain factor of 64. Channel A.
/// </summary>
GainA64 = 0b1010_1000,
/// <summary>
/// Gain factor of 128. Channel A.
/// </summary>
GainA128 = 0b1000_0000
}
}