forked from nanoframework/nanoFramework.IoT.Device
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Doublet.cs
32 lines (29 loc) · 876 Bytes
/
Doublet.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
// 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.Pn5180
{
/// <summary>
/// Doublet containing the number of available bytes and valid bits
/// </summary>
public class Doublet
{
/// <summary>
/// Constructor
/// </summary>
/// <param name="bytes">Available bytes</param>
/// <param name="validBits">Number of valid bits</param>
public Doublet(int bytes, int validBits)
{
Bytes = bytes;
ValidBits = validBits;
}
/// <summary>
/// Available bytes
/// </summary>
public int Bytes { get; set; }
/// <summary>
/// Number of valid bits
/// </summary>
public int ValidBits { get; set; }
}
}