Type Alias gd32e1::gd32e103::usbfs_global::grstctl::R

source ·
pub type R = R<GrstctlSpec>;
Expand description

Register GRSTCTL reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

source§

impl R

source

pub fn csrst(&self) -> CsrstR

Bit 0 - Core soft reset

source

pub fn hcsrst(&self) -> HcsrstR

Bit 1 - HCLK soft reset

source

pub fn hfcrst(&self) -> HfcrstR

Bit 2 - Host frame counter reset

source

pub fn rxff(&self) -> RxffR

Bit 4 - RxFIFO flush

source

pub fn txff(&self) -> TxffR

Bit 5 - TxFIFO flush

source

pub fn txfnum(&self) -> TxfnumR

Bits 6:10 - TxFIFO number