package anki const ( VehicleStateFullBattery = 1 << 4 VehicleStateLowBattery = 1 << 5 VehicleStateOnCharger = 1 << 6 ) type VehicleAdvInfo struct { VehicleAdvState uint8 // Battery Version uint16 Reserved [5]uint8 Name [13]byte // UTF8: 12 bytes + NULL } type VehicleAdvMfg struct { Identifier uint32 ModelID uint8 Reserved uint8 ProductID uint16 } type UUID [16]byte type VehicleAdv struct { Flags uint8 TXPower uint8 MfgData VehicleAdvMfg LocalName VehicleAdvInfo UUID UUID }