pub struct EegSample {
pub packet_index: u8,
pub sample_index: usize,
pub timestamp: f64,
pub channels: [f64; 8],
}Expand description
A multi-channel EEG sample from the ADS1299 ADC.
Each BLE notification carries multiple sample frames. This struct represents one frame — all 8 channels sampled at the same instant.
Voltage values are in microvolts (µV), converted from the raw 24-bit
signed ADC readings using crate::protocol::ads1299_to_microvolts.
Fields§
§packet_index: u8Packet index (0–127) that contained this sample.
sample_index: usizeSample index within the packet (0-based).
timestamp: f64Wall-clock timestamp in milliseconds since Unix epoch.
channels: [f64; 8]Voltage in µV for each of the 8 ADS1299 channels.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EegSample
impl RefUnwindSafe for EegSample
impl Send for EegSample
impl Sync for EegSample
impl Unpin for EegSample
impl UnsafeUnpin for EegSample
impl UnwindSafe for EegSample
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more