pub struct FsmTimeout { /* private fields */ }unstable only.Expand description
When the FSM remains unchanged for more than the 2^ the given amount of bus clock cycles a timeout will be triggered.
The default value is 23 (2^23 clock cycles).
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Implementations§
Source§impl FsmTimeout
impl FsmTimeout
Sourcepub const fn new_const<const VALUE: u8>() -> Self
pub const fn new_const<const VALUE: u8>() -> Self
Creates a new timeout.
The meaning of the value and the allowed range of values is different for different chips.
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Sourcepub fn new(value: u8) -> Result<Self, ConfigError>
pub fn new(value: u8) -> Result<Self, ConfigError>
Creates a new timeout.
The meaning of the value and the allowed range of values is different for different chips.
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Trait Implementations§
Source§impl Clone for FsmTimeout
Available on soc_has_i2c0 or soc_has_i2c1 only.
impl Clone for FsmTimeout
soc_has_i2c0 or soc_has_i2c1 only.Source§fn clone(&self) -> FsmTimeout
fn clone(&self) -> FsmTimeout
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FsmTimeout
Available on soc_has_i2c0 or soc_has_i2c1 only.
impl Debug for FsmTimeout
soc_has_i2c0 or soc_has_i2c1 only.Source§impl Default for FsmTimeout
Available on (soc_has_i2c0 or soc_has_i2c1) and i2c_master_has_fsm_timeouts only.
impl Default for FsmTimeout
soc_has_i2c0 or soc_has_i2c1) and i2c_master_has_fsm_timeouts only.Source§impl Hash for FsmTimeout
Available on soc_has_i2c0 or soc_has_i2c1 only.
impl Hash for FsmTimeout
soc_has_i2c0 or soc_has_i2c1 only.Source§impl PartialEq for FsmTimeout
Available on soc_has_i2c0 or soc_has_i2c1 only.
impl PartialEq for FsmTimeout
soc_has_i2c0 or soc_has_i2c1 only.impl Copy for FsmTimeout
soc_has_i2c0 or soc_has_i2c1 only.impl Eq for FsmTimeout
soc_has_i2c0 or soc_has_i2c1 only.impl StructuralPartialEq for FsmTimeout
soc_has_i2c0 or soc_has_i2c1 only.Auto Trait Implementations§
impl Freeze for FsmTimeout
impl RefUnwindSafe for FsmTimeout
impl Send for FsmTimeout
impl Sync for FsmTimeout
impl Unpin for FsmTimeout
impl UnwindSafe for FsmTimeout
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)