Enum stm32_hal2::sai::Protocol
source · [−]#[repr(u8)]
pub enum Protocol {
Free,
Spdif,
Ac97,
}
Expand description
Select the audio protocol to use. xCR1 register, PRTCFG field.
Variants
Free
Free protocol. Free protocol allows to use the powerful configuration of the audio block to address a specific audio protocol (such as I2S, LSB/MSB justified, TDM, PCM/DSP…) by setting most of the configuration register bits as well as frame configuration register.
Spdif
SPDIF protocol
Ac97
AC’97 protocol
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Protocol
impl Send for Protocol
impl Sync for Protocol
impl Unpin for Protocol
impl UnwindSafe for Protocol
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more