pub type R = R<EPX_CONTROL_SPEC>;
Expand description

Register EPX_CONTROL reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

source§

impl R

source

pub fn buffer_address(&self) -> BUFFER_ADDRESS_R

Bits 0:15 - 64 byte aligned buffer address for this EP (bits 0-5 are ignored). Relative to the start of the DPRAM.

source

pub fn interrupt_on_nak(&self) -> INTERRUPT_ON_NAK_R

Bit 16 - Trigger an interrupt if a NAK is sent. Intended for debug only.

source

pub fn interrupt_on_stall(&self) -> INTERRUPT_ON_STALL_R

Bit 17 - Trigger an interrupt if a STALL is sent. Intended for debug only.

source

pub fn endpoint_type(&self) -> ENDPOINT_TYPE_R

Bits 26:27

source

pub fn interrupt_per_double_buff(&self) -> INTERRUPT_PER_DOUBLE_BUFF_R

Bit 28 - Trigger an interrupt each time both buffers are done. Only valid in double buffered mode.

source

pub fn interrupt_per_buff(&self) -> INTERRUPT_PER_BUFF_R

Bit 29 - Trigger an interrupt each time a buffer is done.

source

pub fn double_buffered(&self) -> DOUBLE_BUFFERED_R

Bit 30 - This endpoint is double buffered.

source

pub fn enable(&self) -> ENABLE_R

Bit 31 - Enable this endpoint. The device will not reply to any packets for this endpoint if this bit is not set.