Skip to main content

Crate elata_muse_proto

Crate elata_muse_proto 

Source
Expand description

Muse EEG Headband BLE Protocol

This crate provides constants and utilities for the Muse BLE protocol, enabling both real Muse device communication and synthetic emulation.

Modules§

athena
Muse S Athena (multiplexed BLE) protocol helpers.
characteristic
Muse characteristic UUIDs
classic
Classic Muse 2/S BLE Protocol
command
Muse control commands
spec
Muse device specifications
utils

Structs§

PpgFrame
Decoded PPG frame with 6 samples.

Enums§

MuseVariant
Muse device variant

Constants§

SERVICE_UUID
Muse BLE service UUID
SERVICE_UUID_U128

Functions§

decode_eeg_packet
Decode a 20-byte Muse EEG packet into samples (in microvolts)
decode_ppg_packet
Decode a 20-byte Muse PPG packet into a PpgFrame.
encode_eeg_packet
Encode 12 EEG samples (in microvolts) into a 20-byte Muse packet
encode_ppg_packet
Encode 6 24-bit PPG samples into a 20-byte Muse packet.