pub struct Tone {
pub modulation: u16,
pub modulation_divided_by_three: bool,
pub volume: u8,
pub duration: u16,
pub frequencies: Vec<u16>,
}Expand description
One tone report (RFC 4733 section 4.3.3, Figure 2).
Fields§
§modulation: u16The modulation frequency in Hz, 9 bits; 0 for none.
modulation_divided_by_three: boolWhether the modulation frequency is to be divided by three (the T bit).
volume: u8The power level in dBm0 with the sign dropped, 0 to 63.
duration: u16How long the tone lasts from the packet’s timestamp, in timestamp units. Never 0.
frequencies: Vec<u16>The frequencies added together, in Hz, 12 bits each; 0 is silence, none is a period of silence.
Implementations§
Trait Implementations§
impl Eq for Tone
impl StructuralPartialEq for Tone
Auto Trait Implementations§
impl Forget for Tone
impl Freeze for Tone
impl Move for Tone
impl RefUnwindSafe for Tone
impl Send for Tonewhere
RawVecInner: Send,
impl Sync for Tonewhere
RawVecInner: Sync,
impl Unpin for Tone
impl UnsafeUnpin for Tone
impl UnwindSafe for Tonewhere
RawVecInner: UnwindSafe,
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