#[repr(u32)]pub enum SelfTestMode {
Auto = 0,
Device = 1,
}Expand description
Defines how the BNR perform the self tests.
Integration recommendations:
If the device mode Device is used, the Host should send a self_test command at every time that internal tests and movements of the BNR can be allowed.
It is recommended to send self_test, after a present command to allow the BNR to refloat the recyclers.
Variants§
Auto = 0
This is the default and recommended mode. In this mode, the BNR does self tests automatically. After reset or present, the BNR refloats the Recyclers from the Loader, when necessary.
Device = 1
In this mode, the BNR doesn’t do anything automatically, but waits for a self_test command to do all self test actions.
Implementations§
Source§impl SelfTestMode
impl SelfTestMode
Sourcepub const fn new() -> SelfTestMode
pub const fn new() -> SelfTestMode
Creates a new SelfTestMode.
Sourcepub const fn create(val: u32) -> SelfTestMode
pub const fn create(val: u32) -> SelfTestMode
Creates a new SelfTestMode from the provided parameter.
Source§impl SelfTestMode
impl SelfTestMode
Trait Implementations§
Source§impl Clone for SelfTestMode
impl Clone for SelfTestMode
Source§fn clone(&self) -> SelfTestMode
fn clone(&self) -> SelfTestMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SelfTestMode
impl Debug for SelfTestMode
Source§impl Default for SelfTestMode
impl Default for SelfTestMode
Source§fn default() -> SelfTestMode
fn default() -> SelfTestMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SelfTestMode
impl<'de> Deserialize<'de> for SelfTestMode
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SelfTestMode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SelfTestMode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SelfTestMode
impl Display for SelfTestMode
Source§impl From<&SelfTestMode> for &'static str
impl From<&SelfTestMode> for &'static str
Source§fn from(val: &SelfTestMode) -> &'static str
fn from(val: &SelfTestMode) -> &'static str
Converts to this type from the input type.
Source§impl From<&SelfTestMode> for XfsMember
impl From<&SelfTestMode> for XfsMember
Source§fn from(val: &SelfTestMode) -> XfsMember
fn from(val: &SelfTestMode) -> XfsMember
Converts to this type from the input type.
Source§impl From<&SelfTestMode> for XfsValue
impl From<&SelfTestMode> for XfsValue
Source§fn from(val: &SelfTestMode) -> XfsValue
fn from(val: &SelfTestMode) -> XfsValue
Converts to this type from the input type.
Source§impl From<&i32> for SelfTestMode
impl From<&i32> for SelfTestMode
Source§fn from(val: &i32) -> SelfTestMode
fn from(val: &i32) -> SelfTestMode
Converts to this type from the input type.
Source§impl From<&u32> for SelfTestMode
impl From<&u32> for SelfTestMode
Source§fn from(val: &u32) -> SelfTestMode
fn from(val: &u32) -> SelfTestMode
Converts to this type from the input type.
Source§impl From<SelfTestMode> for &'static str
impl From<SelfTestMode> for &'static str
Source§fn from(val: SelfTestMode) -> &'static str
fn from(val: SelfTestMode) -> &'static str
Converts to this type from the input type.
Source§impl From<SelfTestMode> for XfsMember
impl From<SelfTestMode> for XfsMember
Source§fn from(val: SelfTestMode) -> XfsMember
fn from(val: SelfTestMode) -> XfsMember
Converts to this type from the input type.
Source§impl From<SelfTestMode> for XfsValue
impl From<SelfTestMode> for XfsValue
Source§fn from(val: SelfTestMode) -> XfsValue
fn from(val: SelfTestMode) -> XfsValue
Converts to this type from the input type.
Source§impl From<i32> for SelfTestMode
impl From<i32> for SelfTestMode
Source§fn from(val: i32) -> SelfTestMode
fn from(val: i32) -> SelfTestMode
Converts to this type from the input type.
Source§impl From<u32> for SelfTestMode
impl From<u32> for SelfTestMode
Source§fn from(val: u32) -> SelfTestMode
fn from(val: u32) -> SelfTestMode
Converts to this type from the input type.
Source§impl PartialEq for SelfTestMode
impl PartialEq for SelfTestMode
Source§impl Serialize for SelfTestMode
impl Serialize for SelfTestMode
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<&XfsMember> for SelfTestMode
impl TryFrom<&XfsMember> for SelfTestMode
Source§impl TryFrom<&XfsValue> for SelfTestMode
impl TryFrom<&XfsValue> for SelfTestMode
Source§impl TryFrom<XfsMember> for SelfTestMode
impl TryFrom<XfsMember> for SelfTestMode
Source§impl TryFrom<XfsValue> for SelfTestMode
impl TryFrom<XfsValue> for SelfTestMode
impl Copy for SelfTestMode
impl StructuralPartialEq for SelfTestMode
Auto Trait Implementations§
impl Freeze for SelfTestMode
impl RefUnwindSafe for SelfTestMode
impl Send for SelfTestMode
impl Sync for SelfTestMode
impl Unpin for SelfTestMode
impl UnwindSafe for SelfTestMode
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
Mutably borrows from an owned value. Read more