61 lines
1.4 KiB
C#
61 lines
1.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Runtime.InteropServices;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Assets.Scripts.Ble.Win.CPPBridge
|
|
{
|
|
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
|
internal struct GattCharacteristic
|
|
{
|
|
// Token: 0x04001350 RID: 4944
|
|
[MarshalAs(UnmanagedType.U2)]
|
|
public ushort ServiceHandle;
|
|
|
|
// Token: 0x04001351 RID: 4945
|
|
public GattUuid Uuid;
|
|
|
|
// Token: 0x04001352 RID: 4946
|
|
[MarshalAs(UnmanagedType.U2)]
|
|
public ushort Handle;
|
|
|
|
// Token: 0x04001353 RID: 4947
|
|
[MarshalAs(UnmanagedType.U2)]
|
|
public ushort ValueHandle;
|
|
|
|
// Token: 0x04001354 RID: 4948
|
|
[MarshalAs(UnmanagedType.Bool)]
|
|
public bool IsBroadcastable;
|
|
|
|
// Token: 0x04001355 RID: 4949
|
|
[MarshalAs(UnmanagedType.Bool)]
|
|
public bool IsReadable;
|
|
|
|
// Token: 0x04001356 RID: 4950
|
|
[MarshalAs(UnmanagedType.Bool)]
|
|
public bool IsWritable;
|
|
|
|
// Token: 0x04001357 RID: 4951
|
|
[MarshalAs(UnmanagedType.Bool)]
|
|
public bool IsWritableWithoutResponse;
|
|
|
|
// Token: 0x04001358 RID: 4952
|
|
[MarshalAs(UnmanagedType.Bool)]
|
|
public bool IsSignedWritable;
|
|
|
|
// Token: 0x04001359 RID: 4953
|
|
[MarshalAs(UnmanagedType.Bool)]
|
|
public bool IsNotifiable;
|
|
|
|
// Token: 0x0400135A RID: 4954
|
|
[MarshalAs(UnmanagedType.Bool)]
|
|
public bool IsIndicatable;
|
|
|
|
// Token: 0x0400135B RID: 4955
|
|
[MarshalAs(UnmanagedType.Bool)]
|
|
public bool HasExtendedProperties;
|
|
}
|
|
}
|