#[repr(transparent)]pub struct SieCtrl(pub u32);
Expand description
SIE control register
Tuple Fields§
§0: u32
Implementations§
Source§impl SieCtrl
impl SieCtrl
Sourcepub const fn start_trans(&self) -> bool
pub const fn start_trans(&self) -> bool
Host: Start transaction
Sourcepub fn set_start_trans(&mut self, val: bool)
pub fn set_start_trans(&mut self, val: bool)
Host: Start transaction
Sourcepub const fn send_setup(&self) -> bool
pub const fn send_setup(&self) -> bool
Host: Send Setup packet
Sourcepub fn set_send_setup(&mut self, val: bool)
pub fn set_send_setup(&mut self, val: bool)
Host: Send Setup packet
Sourcepub fn set_send_data(&mut self, val: bool)
pub fn set_send_data(&mut self, val: bool)
Host: Send transaction (OUT from host)
Sourcepub const fn receive_data(&self) -> bool
pub const fn receive_data(&self) -> bool
Host: Receive transaction (IN to host)
Sourcepub fn set_receive_data(&mut self, val: bool)
pub fn set_receive_data(&mut self, val: bool)
Host: Receive transaction (IN to host)
Sourcepub const fn stop_trans(&self) -> bool
pub const fn stop_trans(&self) -> bool
Host: Stop transaction
Sourcepub fn set_stop_trans(&mut self, val: bool)
pub fn set_stop_trans(&mut self, val: bool)
Host: Stop transaction
Sourcepub const fn preamble_en(&self) -> bool
pub const fn preamble_en(&self) -> bool
Host: Preable enable for LS device on FS hub
Sourcepub fn set_preamble_en(&mut self, val: bool)
pub fn set_preamble_en(&mut self, val: bool)
Host: Preable enable for LS device on FS hub
Sourcepub fn set_sof_sync(&mut self, val: bool)
pub fn set_sof_sync(&mut self, val: bool)
Host: Delay packet(s) until after SOF
Sourcepub fn set_sof_en(&mut self, val: bool)
pub fn set_sof_en(&mut self, val: bool)
Host: Enable SOF generation (for full speed bus)
Sourcepub const fn keep_alive_en(&self) -> bool
pub const fn keep_alive_en(&self) -> bool
Host: Enable keep alive packet (for low speed bus)
Sourcepub fn set_keep_alive_en(&mut self, val: bool)
pub fn set_keep_alive_en(&mut self, val: bool)
Host: Enable keep alive packet (for low speed bus)
Sourcepub fn set_vbus_en(&mut self, val: bool)
pub fn set_vbus_en(&mut self, val: bool)
Host: Enable VBUS
Sourcepub const fn resume(&self) -> bool
pub const fn resume(&self) -> bool
Device: Remote wakeup. Device can initiate its own resume after suspend.
Sourcepub fn set_resume(&mut self, val: bool)
pub fn set_resume(&mut self, val: bool)
Device: Remote wakeup. Device can initiate its own resume after suspend.
Sourcepub fn set_reset_bus(&mut self, val: bool)
pub fn set_reset_bus(&mut self, val: bool)
Host: Reset bus
Sourcepub const fn pulldown_en(&self) -> bool
pub const fn pulldown_en(&self) -> bool
Host: Enable pull down resistors
Sourcepub fn set_pulldown_en(&mut self, val: bool)
pub fn set_pulldown_en(&mut self, val: bool)
Host: Enable pull down resistors
Sourcepub fn set_pullup_en(&mut self, val: bool)
pub fn set_pullup_en(&mut self, val: bool)
Device: Enable pull up resistor
Sourcepub fn set_rpu_opt(&mut self, val: bool)
pub fn set_rpu_opt(&mut self, val: bool)
Device: Pull-up strength (0=1K2, 1=2k3)
Sourcepub const fn transceiver_pd(&self) -> bool
pub const fn transceiver_pd(&self) -> bool
Power down bus transceiver
Sourcepub fn set_transceiver_pd(&mut self, val: bool)
pub fn set_transceiver_pd(&mut self, val: bool)
Power down bus transceiver
Sourcepub const fn ep0_stop_on_short_packet(&self) -> bool
pub const fn ep0_stop_on_short_packet(&self) -> bool
Device: Stop EP0 on a short packet.
Sourcepub fn set_ep0_stop_on_short_packet(&mut self, val: bool)
pub fn set_ep0_stop_on_short_packet(&mut self, val: bool)
Device: Stop EP0 on a short packet.
Sourcepub fn set_direct_dm(&mut self, val: bool)
pub fn set_direct_dm(&mut self, val: bool)
Direct control of DM
Sourcepub fn set_direct_dp(&mut self, val: bool)
pub fn set_direct_dp(&mut self, val: bool)
Direct control of DP
Sourcepub fn set_direct_en(&mut self, val: bool)
pub fn set_direct_en(&mut self, val: bool)
Direct bus drive enable
Sourcepub const fn ep0_int_nak(&self) -> bool
pub const fn ep0_int_nak(&self) -> bool
Device: Set bit in EP_STATUS_STALL_NAK when EP0 sends a NAK
Sourcepub fn set_ep0_int_nak(&mut self, val: bool)
pub fn set_ep0_int_nak(&mut self, val: bool)
Device: Set bit in EP_STATUS_STALL_NAK when EP0 sends a NAK
Sourcepub const fn ep0_int_2buf(&self) -> bool
pub const fn ep0_int_2buf(&self) -> bool
Device: Set bit in BUFF_STATUS for every 2 buffers completed on EP0
Sourcepub fn set_ep0_int_2buf(&mut self, val: bool)
pub fn set_ep0_int_2buf(&mut self, val: bool)
Device: Set bit in BUFF_STATUS for every 2 buffers completed on EP0
Sourcepub const fn ep0_int_1buf(&self) -> bool
pub const fn ep0_int_1buf(&self) -> bool
Device: Set bit in BUFF_STATUS for every buffer completed on EP0
Sourcepub fn set_ep0_int_1buf(&mut self, val: bool)
pub fn set_ep0_int_1buf(&mut self, val: bool)
Device: Set bit in BUFF_STATUS for every buffer completed on EP0
Sourcepub const fn ep0_double_buf(&self) -> bool
pub const fn ep0_double_buf(&self) -> bool
Device: EP0 single buffered = 0, double buffered = 1
Sourcepub fn set_ep0_double_buf(&mut self, val: bool)
pub fn set_ep0_double_buf(&mut self, val: bool)
Device: EP0 single buffered = 0, double buffered = 1
Sourcepub const fn ep0_int_stall(&self) -> bool
pub const fn ep0_int_stall(&self) -> bool
Device: Set bit in EP_STATUS_STALL_NAK when EP0 sends a STALL
Sourcepub fn set_ep0_int_stall(&mut self, val: bool)
pub fn set_ep0_int_stall(&mut self, val: bool)
Device: Set bit in EP_STATUS_STALL_NAK when EP0 sends a STALL