Struct esp32::rmt::ch0status::R

source ·
pub struct R(_);
Expand description

Register CH0STATUS reader

Implementations§

source§

impl R

source

pub fn status(&self) -> STATUS_R

Bits 0:31 - The status for channel0

source

pub fn mem_waddr_ex(&self) -> MEM_WADDR_EX_R

Bits 0:9 - The current memory read address of channel0.

source

pub fn mem_raddr_ex(&self) -> MEM_RADDR_EX_R

Bits 12:21 - The current memory write address of channel0.

source

pub fn state(&self) -> STATE_R

Bits 24:26 - The channel0 state machine status register.3’h0 : idle, 3’h1 : send, 3’h2 : read memory, 3’h3 : receive, 3’h4 : wait.

source

pub fn mem_owner_err(&self) -> MEM_OWNER_ERR_R

Bit 27 - When channel0 is configured for receive mode, this bit will turn to high level if rmt_mem_owner register is not set to 1.

source

pub fn mem_full(&self) -> MEM_FULL_R

Bit 28 - The memory full status bit for channel0 turns to high level when mem_waddr_ex is greater than or equal to the configuration range.

source

pub fn mem_empty(&self) -> MEM_EMPTY_R

Bit 29 - The memory empty status bit for channel0. in acyclic mode, this bit turns to high level when mem_raddr_ex is greater than or equal to the configured range.

source

pub fn apb_mem_wr_err(&self) -> APB_MEM_WR_ERR_R

Bit 30 - The apb write memory status bit for channel0 turns to high level when the apb write address exceeds the configuration range.

source

pub fn apb_mem_rd_err(&self) -> APB_MEM_RD_ERR_R

Bit 31 - The apb read memory status bit for channel0 turns to high level when the apb read address exceeds the configuration range.

Methods from Deref<Target = R<CH0STATUS_SPEC>>§

source

pub fn bits(&self) -> REG::Ux

Reads raw bits from register.

Trait Implementations§

source§

impl Deref for R

§

type Target = R<CH0STATUS_SPEC>

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl From<R<CH0STATUS_SPEC>> for R

source§

fn from(reader: R<CH0STATUS_SPEC>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl RefUnwindSafe for R

§

impl Send for R

§

impl Sync for R

§

impl Unpin for R

§

impl UnwindSafe for R

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.