#[repr(transparent)]pub struct Status(pub u32);Tuple Fields§
§0: u32Implementations§
Source§impl Status
impl Status
Sourcepub const fn seq_res(&self) -> SequenceResult
pub const fn seq_res(&self) -> SequenceResult
Result 2 means a charging port; CDP/DCP interpretation depends on sequence status. The result prose uses status values 0/1 for incomplete/complete charger type detection, conflicting with the status encoding and interrupt phase tables (2/3). Do not decode 2 unconditionally as CDP.
Sourcepub const fn set_seq_res(&mut self, val: SequenceResult)
pub const fn set_seq_res(&mut self, val: SequenceResult)
Result 2 means a charging port; CDP/DCP interpretation depends on sequence status. The result prose uses status values 0/1 for incomplete/complete charger type detection, conflicting with the status encoding and interrupt phase tables (2/3). Do not decode 2 unconditionally as CDP.
pub const fn seq_stat(&self) -> SequenceStatus
pub const fn set_seq_stat(&mut self, val: SequenceStatus)
pub const fn err(&self) -> bool
pub const fn set_err(&mut self, val: bool)
Sourcepub const fn to(&self) -> bool
pub const fn to(&self) -> bool
Timeout does not stop the sequence; assess ERR and sequence state.
Sourcepub const fn set_to(&mut self, val: bool)
pub const fn set_to(&mut self, val: bool)
Timeout does not stop the sequence; assess ERR and sequence state.
Sourcepub const fn active(&self) -> bool
pub const fn active(&self) -> bool
Raw bit values: false (0) = SeqNotRunning: The sequence is not running.; true (1) = SeqRunning: The sequence is running.
Sourcepub const fn set_active(&mut self, val: bool)
pub const fn set_active(&mut self, val: bool)
Raw bit values: false (0) = SeqNotRunning: The sequence is not running.; true (1) = SeqRunning: The sequence is running.