[][src]Enum stm32f4xx_hal::stm32::sai::ch::cr1::PRTCFGR

pub enum PRTCFGR {
    FREE,
    SPDIF,
    AC97,
    _Reserved(u8),
}

Possible values of the field PRTCFG

Variants

FREE

Free protocol. Free protocol allows to use the powerful configuration of the audio block to address a specific audio protocol

SPDIF

SPDIF protocol

AC97

AC’97 protocol

_Reserved(u8)

Reserved

Methods

impl PRTCFGR[src]

pub fn bits(&self) -> u8[src]

Value of the field as raw bits

pub fn is_free(&self) -> bool[src]

Checks if the value of the field is FREE

pub fn is_spdif(&self) -> bool[src]

Checks if the value of the field is SPDIF

pub fn is_ac97(&self) -> bool[src]

Checks if the value of the field is AC97

Trait Implementations

impl PartialEq<PRTCFGR> for PRTCFGR[src]

impl Debug for PRTCFGR[src]

impl Clone for PRTCFGR[src]

impl Copy for PRTCFGR[src]

Auto Trait Implementations

impl Unpin for PRTCFGR

impl Send for PRTCFGR

impl Sync for PRTCFGR

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self