pub enum SampleType {
U8,
I8,
U16,
I16,
F32,
F64,
}
Expand description
The type of samples in the SDR file You will have to look up what your SDR/software uses.
Variants§
U8
Samples stored as unsigned 8-bit integers
I8
Samples stored as signed 8-bit integers
U16
Samples stored as unsigned 16-bit integers
I16
Samples stored as signed 16-bit integers
F32
Samples stored as 32-bit floating point numbers
F64
Samples stored as 64-bit floating point numbers
Implementations§
Source§impl SampleType
impl SampleType
Sourcepub fn sample_len(&self) -> usize
pub fn sample_len(&self) -> usize
The number of bytes per sample. One sample has 2 values: I and Q. Therefore the total number of bytes per sample twice the length of the datatype.
Auto Trait Implementations§
impl Freeze for SampleType
impl RefUnwindSafe for SampleType
impl Send for SampleType
impl Sync for SampleType
impl Unpin for SampleType
impl UnwindSafe for SampleType
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