initial commit

This commit is contained in:
chi
2025-01-07 16:08:02 +09:00
parent 9e657e2558
commit 0a93a54a6f
268 changed files with 50767 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Project.Device
{
public class CFlag : COMM.Flag
{
public CFlag() : base(64)
{
}
public bool get(EFlag flag)
{
return Get((int)flag);
}
public void set(EFlag flag, bool value)
{
var idx = (int)flag;
Set(idx, value);
}
public void Toggle(EFlag flag)
{
int idx = (int)flag;
var curValue = Get(idx);
Set(idx, !curValue);
}
public void Toggle(int idx)
{
var curValue = Get(idx);
Set(idx, !curValue);
}
}
}