pub struct VoiceFrame {
pub ambe: [u8; 9],
pub slow_data: [u8; 3],
}Expand description
A D-STAR voice data frame (9 bytes AMBE + 3 bytes slow data).
21 frames form one superframe. Frame 0 carries the sync pattern, frames 1-20 carry slow data. At 20 ms per frame, one superframe is 420 ms of audio.
Fields§
§ambe: [u8; 9]AMBE 3600x2450 codec voice data (9 bytes).
slow_data: [u8; 3]Slow data payload (3 bytes).
Implementations§
Source§impl VoiceFrame
impl VoiceFrame
Trait Implementations§
Source§impl Clone for VoiceFrame
impl Clone for VoiceFrame
Source§fn clone(&self) -> VoiceFrame
fn clone(&self) -> VoiceFrame
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VoiceFrame
impl Debug for VoiceFrame
Source§impl PartialEq for VoiceFrame
impl PartialEq for VoiceFrame
impl Copy for VoiceFrame
impl Eq for VoiceFrame
impl StructuralPartialEq for VoiceFrame
Auto Trait Implementations§
impl Freeze for VoiceFrame
impl RefUnwindSafe for VoiceFrame
impl Send for VoiceFrame
impl Sync for VoiceFrame
impl Unpin for VoiceFrame
impl UnwindSafe for VoiceFrame
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