Package-level declarations

Types

Link copied to clipboard

Constants and helper functions for BLE operations specific to Electric Unicycles.

Link copied to clipboard
object ByteUtils

Utility class for byte operations commonly used in BLE protocols

Link copied to clipboard
interface EucClock

Time source injected into protocols, so that decoding stays deterministic in tests and portable across Kotlin targets without depending on a particular platform clock.

Link copied to clipboard
object EucCrc32

IEEE CRC-32 (polynomial 0xEDB88320), with the same initial/final XOR as standard CRC32.

Link copied to clipboard
data class EucDateTime(val year: Int, val month: Int, val dayOfMonth: Int, val hour: Int, val minute: Int, val second: Int)

Local wall-clock date and time, as needed by wheel commands that embed the current time (for example the LeaperKim lock frame).

Link copied to clipboard
fun interface EucRandom

Randomness source injected into protocols that need it (for example KingSong unlock tokens).

Link copied to clipboard
class EucUuid

Canonical UUID value usable by platform-neutral protocol and GATT-fingerprint code.

Link copied to clipboard
@RequiresOptIn(message = "Internal euc-ble API intended for platform connectors only.", level = RequiresOptIn.Level.ERROR)
annotation class InternalEucBleApi

Marks core declarations that exist for platform connectors (e.g. euc-ble-android) and are not part of the stable public API. They may change without notice.

Link copied to clipboard
interface Logger

Simple logging interface to avoid external dependencies

Link copied to clipboard

No-op logger for testing or environments without logging

Link copied to clipboard
Link copied to clipboard
data class TrafficEvent(val sequence: Long, val timestampMs: Long, val direction: TrafficDirection, val characteristicUuid: EucUuid, val bytes: ByteArray)

One BLE notification chunk (RX) or write accepted by Android (TX), without reassembly. TX does not confirm delivery to, or execution by, the wheel.