GattUuids

object GattUuids

GATT service / characteristic / descriptor UUIDs for BrainAccess devices.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

One byte, minutes: power off after this long switched on with no host connected. Default 20; 0 -> 1.

Link copied to clipboard
Link copied to clipboard

Output mode (read/write, one byte, firmware 3.7.0+; see OutputMode).

Link copied to clipboard

One byte, 0/1: keep the headset on (and connectable) while a charger is plugged in. Default 0.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Stream options (read/write, one byte, firmware 3.8.1+): a bit per option, bit 0 DIGITAL_INPUT (every packet of the next stream then ends with a digital-input block, see PacketCodec.decode). A host writes it after subscribing to the stream packets and right before STREAM_START; the device applies it to that start only and clears it at every start (even a failed one), at a subscribe to the packets and at a disconnect.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Stream status (read/notify): 0 not streaming, 1 streaming; firmware 3.7.0+ also reports 2 when it refused the last channel-config write (it then streams its defaults) and 3 when a STREAM_START could not configure the ADC (nothing will stream). 3 outranks 2, 2 outranks 0/1.

Link copied to clipboard

Time sync block (read, 20 bytes, firmware 3.8.0+): newest sample number, its DRDY time and the device clock.

Link copied to clipboard

Functions

Link copied to clipboard
fun nameOf(uuid: String): String

Human-readable name for uuid, or "Unknown UUID". Case-insensitive.