Type Alias d1_pac::i2s_pcm::i2s_pcm_fctl::RXOM_R

source ·
pub type RXOM_R = FieldReader<u8, RXOM_A>;
Expand description

Field rxom reader - RXFIFO Output Mode

Example for 20-bit received audio sample:

Mode 0: APB_RDATA[31:0] = {RXFIFO[31:12], 12’h0}

Mode 1: APB_RDATA[31:0] = {12{RXFIFO[31]}, RXFIFO[31:12]}

Mode 2: APB_RDATA [31:0] = {RXFIFO[31:16], 16’h0}

Mode 3: APB_RDATA[31:0] = {16{RXFIFO[31], RXFIFO[31:16]}

Aliased Type§

struct RXOM_R { /* private fields */ }

Implementations§

source§

impl RXOM_R

source

pub fn variant(&self) -> RXOM_A

Get enumerated values variant

source

pub fn is_mode0(&self) -> bool

Checks if the value of the field is MODE0

source

pub fn is_mode1(&self) -> bool

Checks if the value of the field is MODE1

source

pub fn is_mode2(&self) -> bool

Checks if the value of the field is MODE2

source

pub fn is_mode3(&self) -> bool

Checks if the value of the field is MODE3