#[repr(u8)]pub enum COMP {
NoCompanding = 0,
MuLaw = 2,
Alaw = 3,
}Expand description
Companding mode. These bits are set and cleared by software. The -Law and the A-Law log are a part of the CCITT G.711 recommendation, the type of complement that is used depends on CPL bit. The data expansion or data compression are determined by the state of bit MODE[0]. The data compression is applied if the audio block is configured as a transmitter. The data expansion is automatically applied when the audio block is configured as a receiver. Refer to for more details. Note: Companding mode is applicable only when Free protocol mode is selected.
Value on reset: 0
Variants§
NoCompanding = 0
0: No companding algorithm
MuLaw = 2
2: μ-Law algorithm
Alaw = 3
3: A-Law algorithm
Trait Implementations§
impl Copy for COMP
impl Eq for COMP
impl IsEnum for COMP
impl StructuralPartialEq for COMP
Auto Trait Implementations§
impl Freeze for COMP
impl RefUnwindSafe for COMP
impl Send for COMP
impl Sync for COMP
impl Unpin for COMP
impl UnwindSafe for COMP
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