Types
AddrTypeEx {.pure.} = enum Public = 0, RandomNonResolvPrivate = 1, RandomResolvPrivate = 65, RandomStatic = 193
AdType {.pure.} = enum Flags = 1, ShortName = 8, CompleteName = 9, ManufacturerSpecific = 255
AdvertisingReport = object eventType*: EventType peer*: PeerAddr rawdata*: string name*: Option[string] manufacturerData*: Option[string] flags*: Option[uint8] data*: Table[uint8, string] rssi*: int8
AdvFilterPolicy {.pure.} = enum All = 0, ConnAllScanWhite = 1, ConnWhiteScanAll = 2, WhiteOnly = 3
AdvType {.pure.} = enum IND = 0, DIRECT_IND = 1, SCAN_IND = 2, NONCONN_IND = 3, DIRECT_IND_LOW = 4
BleChannel = enum ch37 = 1, ch38 = 2, ch39 = 4, chAll = 7
ChannelSelAlgorithmReport = object conHandle*: uint16 alg*: ChannSelAlgorithm
ChannSelAlgorithm {.pure.} = enum alg0 = (0, "LE Channel Selection Algorithm #1"), alg1 = (1, "LE Channel Selection Algorithm #2")
ClockAccuracy = enum acc500ppm = (0, "500ppm"), acc250ppm = (1, "250ppm"), acc150ppm = (2, "150ppm"), acc100ppm = (3, "100ppm"), acc75ppm = (4, "75ppm"), acc50ppm = (5, "50ppm"), acc30ppm = (6, "30ppm"), acc25ppm = (7, "25ppm")
ConnectionCompleteEvent = object hciStatus*: HciStatus conHandle*: uint16 role*: Role peer*: PeerAddr conInterval*: uint16 conLatency*: uint16 supervisionTImeout*: uint16 masterClockAccuracy*: ClockAccuracy
ConnectionUpdateEvent = object hciStatus*: HciStatus conHandle*: uint16 conInterval*: uint16 conLatency*: uint16 supervisionTImeout*: uint16
DisconnectionCompleteEvent = object hciStatus*: HciStatus conHandle*: uint16 reason*: HciStatus
DuplicateFilter {.pure.} = enum Disable = 0, Enable = 1
EncryptionChangeEvent = object hciStatus*: HciStatus conHandle*: uint16 encryptionEnabled*: bool
EnhConnectionCompleteEvent = object hciStatus*: HciStatus conHandle*: uint16 role*: Role peer*: PeerAddr localPrivateAddr*: uint64 remotePrivateAddr*: uint64 conInterval*: uint16 conLatency*: uint16 supervisionTImeout*: uint16 masterClockAccuracy*: ClockAccuracy
EventType {.pure.} = enum IND = 0, DIRECT_IND = 1, SCAN_IND = 2, NONCONN_IND = 3, SCAN_RSP = 4
RandomAddrType {.pure.} = enum NonResolvPrivate = 0, ResolvPrivate = 64, Static = 192
RemoteUsedFeatures = object hciStatus*: HciStatus conHandle*: uint16 features*: uint64
Role {.pure.} = enum Central = 0, Peripheral = 1, Error = 255
Scan {.pure.} = enum Disable = 0, Enable = 1
ScanFilterPolicy {.pure.} = enum AcceptAllExceptDirected = 0, WhitelistOnly = 1, AcceptAllExceptNotDirected = 2, AcceptAllExceptWhitelistAndNotDirected = 3
ScanType {.pure.} = enum Passive = 0, Active = 1