classofdevice.cs
来自「蓝牙传输控件,用于蓝牙文件上传和下载。芯片只要选用crs」· CS 代码 · 共 42 行
CS
42 行
using System;
using bluetoothX;
namespace bluetoothX
{
public class ClassOfDevice
{
private uint cod;
internal ClassOfDevice(uint cod)
{
this.cod = cod;
}
public DeviceClass Device
{
get
{
return (DeviceClass)(cod & 0x001ffc);
}
}
public ServiceClass Service
{
get
{
return (ServiceClass)(cod >> 13);
}
}
public override int GetHashCode()
{
return Convert.ToInt32(cod);
}
public override string ToString()
{
return cod.ToString("X");
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?