-
-
Notifications
You must be signed in to change notification settings - Fork 114
/
Copy pathCommand.cs
51 lines (43 loc) · 1.11 KB
/
Command.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
49
50
51
// 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.Nrf24l01
{
/// <summary>
/// nRF24L01 Command
/// </summary>
internal enum Command : byte
{
/// <summary>
/// Read Register Command
/// </summary>
NRF_R_REGISTER = 0x00,
/// <summary>
/// Write Register Command
/// </summary>
NRF_W_REGISTER = 0x20,
/// <summary>
/// Read RX Payload
/// </summary>
NRF_R_RX_PAYLOAD = 0x61,
/// <summary>
/// Write TX Payload
/// </summary>
NRF_W_TX_PAYLOAD = 0xA0,
/// <summary>
/// Flush TX FIFO
/// </summary>
NRF_FLUSH_TX = 0xE1,
/// <summary>
/// Flush RX FIFO
/// </summary>
NRF_FLUSH_RX = 0xE2,
/// <summary>
/// Reuse Last Transmitted Payload
/// </summary>
NRF_REUSE_TX_PL = 0xE3,
/// <summary>
/// No Operation
/// </summary>
NRF_NOP = 0xFF,
}
}