-
Notifications
You must be signed in to change notification settings - Fork 75
/
Copy path_CorsairDeviceInfo.cs
49 lines (41 loc) · 1.72 KB
/
_CorsairDeviceInfo.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
#pragma warning disable 169 // Field 'x' is never used
#pragma warning disable 414 // Field 'x' is assigned but its value never used
#pragma warning disable 649 // Field 'x' is never assigned
#pragma warning disable IDE1006 // Naming Styles
using System.Runtime.InteropServices;
namespace RGB.NET.Devices.Corsair.Native;
// ReSharper disable once InconsistentNaming
/// <summary>
/// iCUE-SDK: contains information about device
/// </summary>
[StructLayout(LayoutKind.Sequential)]
internal struct _CorsairDeviceInfo
{
/// <summary>
/// iCUE-SDK: enum describing device type
/// </summary>
internal CorsairDeviceType type;
/// <summary>
/// iCUE-SDK: null terminated Unicode string that contains unique device identifier serial number. Can be empty, if serial number is not available for the device
/// </summary>
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = _CUESDK.CORSAIR_STRING_SIZE_M)]
internal string? id;
/// <summary>
/// iCUE-SDK: null terminated Unicode string that contains device serial number. Can be empty, if serial number is not available for the device
/// </summary>
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = _CUESDK.CORSAIR_STRING_SIZE_M)]
internal string? serial;
/// <summary>
/// iCUE-SDK: null terminated Unicode string that contains device model (like “K95RGB”)
/// </summary>
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = _CUESDK.CORSAIR_STRING_SIZE_M)]
internal string? model;
/// <summary>
/// iCUE-SDK: number of controllable LEDs on the device
/// </summary>
internal int ledCount;
/// <summary>
/// iCUE-SDK: number of channels controlled by the device
/// </summary>
internal int channelCount;
}