pub struct ScratchampHeadphoneProtocol;
Expand description
The protocol implementation for headphone output of Scratchamp.
Trait Implementations§
Source§impl AvcLevelOperation for ScratchampHeadphoneProtocol
impl AvcLevelOperation for ScratchampHeadphoneProtocol
Source§const LEVEL_STEP: i16 = 256i16
const LEVEL_STEP: i16 = 256i16
The step value of signal level.
Source§fn create_level_parameters() -> AvcLevelParameters
fn create_level_parameters() -> AvcLevelParameters
Instantiate parameters.
Source§fn cache_levels(
avc: &BebobAvc,
params: &mut AvcLevelParameters,
timeout_ms: u32,
) -> Result<(), Error>
fn cache_levels( avc: &BebobAvc, params: &mut AvcLevelParameters, timeout_ms: u32, ) -> Result<(), Error>
Cache state of hardware to the parameters.
Source§fn update_levels(
avc: &BebobAvc,
params: &AvcLevelParameters,
old: &mut AvcLevelParameters,
timeout_ms: u32,
) -> Result<(), Error>
fn update_levels( avc: &BebobAvc, params: &AvcLevelParameters, old: &mut AvcLevelParameters, timeout_ms: u32, ) -> Result<(), Error>
Update the hardware when detecting any changes in the parameters.
Source§impl Debug for ScratchampHeadphoneProtocol
impl Debug for ScratchampHeadphoneProtocol
Source§impl Default for ScratchampHeadphoneProtocol
impl Default for ScratchampHeadphoneProtocol
Source§fn default() -> ScratchampHeadphoneProtocol
fn default() -> ScratchampHeadphoneProtocol
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ScratchampHeadphoneProtocol
impl RefUnwindSafe for ScratchampHeadphoneProtocol
impl Send for ScratchampHeadphoneProtocol
impl Sync for ScratchampHeadphoneProtocol
impl Unpin for ScratchampHeadphoneProtocol
impl UnwindSafe for ScratchampHeadphoneProtocol
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