#[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 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
Trait Implementations§
impl Copy for SieCtrl
impl Eq for SieCtrl
impl StructuralPartialEq for SieCtrl
Auto Trait Implementations§
impl Freeze for SieCtrl
impl RefUnwindSafe for SieCtrl
impl Send for SieCtrl
impl Sync for SieCtrl
impl Unpin for SieCtrl
impl UnwindSafe for SieCtrl
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)