App sync code, handles button presses from mixer and syncs changes from VM. Included python code from the mixer. Some other PCB changes, but still needs improvements
This commit is contained in:
75
HidSliders.Hid/MixerButton.cs
Normal file
75
HidSliders.Hid/MixerButton.cs
Normal file
@@ -0,0 +1,75 @@
|
||||
namespace HidSliders.Hid;
|
||||
|
||||
[Flags]
|
||||
public enum MixerButton : long
|
||||
{
|
||||
Button1 = 1L << 0, // 1
|
||||
Button2 = 1L << 1, // 2
|
||||
Button3 = 1L << 2, // 4
|
||||
Button4 = 1L << 3, // 8
|
||||
Button5 = 1L << 4, // 16
|
||||
Button6 = 1L << 5, // 32
|
||||
Button7 = 1L << 6, // 64
|
||||
Button8 = 1L << 7, // 128
|
||||
Button9 = 1L << 8, // 256
|
||||
Button10 = 1L << 9, // 512
|
||||
Button11 = 1L << 10, // 1024
|
||||
Button12 = 1L << 11, // 2048
|
||||
Button13 = 1L << 12, // 4096
|
||||
Button14 = 1L << 13, // 8192
|
||||
Button15 = 1L << 14, // 16384
|
||||
Button16 = 1L << 15, // 32768
|
||||
Button17 = 1L << 16, // 65536
|
||||
Button18 = 1L << 17, // 131072
|
||||
Button19 = 1L << 18, // 262144
|
||||
Button20 = 1L << 19, // 524288
|
||||
Button21 = 1L << 20, // 1048576
|
||||
Button22 = 1L << 21, // 2097152
|
||||
Button23 = 1L << 22, // 4194304
|
||||
Button24 = 1L << 23, // 8388608
|
||||
Button25 = 1L << 24, // 16777216
|
||||
Button26 = 1L << 25, // 33554432
|
||||
Button27 = 1L << 26, // 67108864
|
||||
Button28 = 1L << 27, // 134217728
|
||||
Button29 = 1L << 28, // 268435456
|
||||
Button30 = 1L << 29, // 536870912
|
||||
Button31 = 1L << 30, // 1073741824
|
||||
Button32 = 1L << 31, // 2147483648
|
||||
Button33 = 1L << 32, // 4294967296
|
||||
Button34 = 1L << 33, // 8589934592
|
||||
Button35 = 1L << 34, // 17179869184
|
||||
Button36 = 1L << 35, // 34359738368
|
||||
Button37 = 1L << 36, // 68719476736
|
||||
Button38 = 1L << 37, // 137438953472
|
||||
Button39 = 1L << 38, // 274877906944
|
||||
Button40 = 1L << 39, // 549755813888
|
||||
Button41 = 1L << 40, // 1099511627776
|
||||
Button42 = 1L << 41, // 2199023255552
|
||||
Button43 = 1L << 42, // 4398046511104
|
||||
Button44 = 1L << 43, // 8796093022208
|
||||
Button45 = 1L << 44 // 17592186044416
|
||||
}
|
||||
|
||||
[Flags]
|
||||
public enum ButtonGroups : long
|
||||
{
|
||||
Channel1 = 0b00001_00000000_00000000_00000000_00000000_11111111,
|
||||
Channel2 = 0b00010_00000000_00000000_00000000_11111111_00000000,
|
||||
Channel3 = 0b00100_00000000_00000000_11111111_00000000_00000000,
|
||||
Channel4 = 0b01000_00000000_11111111_00000000_00000000_00000000,
|
||||
Channel5 = 0b10000_11111111_00000000_00000000_00000000_00000000,
|
||||
}
|
||||
|
||||
[Flags]
|
||||
public enum ChannelButton
|
||||
{
|
||||
ChannelA1 = 1 << 0,
|
||||
ChannelA2 = 1 << 1,
|
||||
ChannelA3 = 1 << 2,
|
||||
ChannelA4 = 1 << 3,
|
||||
ChannelA5 = 1 << 4,
|
||||
ChannelB1 = 1 << 5,
|
||||
ChannelB2 = 1 << 6,
|
||||
ChannelB3 = 1 << 7,
|
||||
ChannelMute = 1 << 8,
|
||||
}
|
||||
Reference in New Issue
Block a user