Enum stm32_hal2::sai::Protocol
source · #[repr(u8)]pub enum Protocol {
Free = 0,
Spdif = 1,
Ac97 = 2,
}
Expand description
Select the audio protocol to use. xCR1 register, PRTCFG field.
Variants§
Free = 0
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 = 1
SPDIF protocol
Ac97 = 2
AC’97 protocol
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Protocol
impl RefUnwindSafe for Protocol
impl Send for Protocol
impl Sync for Protocol
impl Unpin for Protocol
impl UnwindSafe for Protocol
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