Type Alias xmc4300::usb0::dcfg::NZSTS_OUTHSHK_R

source ·
pub type NZSTS_OUTHSHK_R = BitReader<NZSTS_OUTHSHK_A>;
Expand description

Field NZStsOUTHShk reader - Non-Zero-Length Status OUT Handshake

Aliased Type§

struct NZSTS_OUTHSHK_R { /* private fields */ }

Implementations§

source§

impl NZSTS_OUTHSHK_R

source

pub const fn variant(&self) -> NZSTS_OUTHSHK_A

Get enumerated values variant

source

pub fn is_value1(&self) -> bool

Send a STALL handshake on a nonzero-length status OUT transaction and do not send the received OUT packet to the application.

source

pub fn is_value2(&self) -> bool

Send the received OUT packet to the application (zero-length or nonzero-length) and send a handshake based on the NAK and STALL bits for the endpoint in the Device Endpoint Control register.