Enum jcm::MajorMinorStatus
source · #[repr(u16)]pub enum MajorMinorStatus {
Show 24 variants
PowerUp = 0,
PowerUpAcceptor = 1,
PowerUpStacker = 2,
PowerUpAcceptorAccepting = 17,
PowerUpStackerAccepting = 18,
Normal = 256,
NormalIdle = 257,
NormalActive = 258,
NormalEscrow = 259,
NormalVendValid = 260,
NormalRejected = 261,
NormalReturned = 262,
NormalCollected = 264,
NormalInsert = 266,
NormalConditionalVend = 267,
NormalPause = 268,
NormalResume = 269,
Abnormal = 512,
AbnormalOperationError = 513,
AbnormalFailure(FailureCode),
Warning = 768,
WarningNoteStay = 769,
WarningFunctionAbeyance = 770,
Reserved = 65_535,
}Expand description
Represents the major-minor status of the JCM device status.
Variants§
PowerUp = 0
Power up status: device is in normal power up status.
PowerUpAcceptor = 1
Power up status: device has returnable note on power up.
PowerUpStacker = 2
Power up status: device has non-returnable note on power up.
PowerUpAcceptorAccepting = 17
Power up status: device received note before power down, and has returnable note on power up.
PowerUpStackerAccepting = 18
Power up status: device received note before power down, and has non-returnable note on power up.
Normal = 256
Normal status: device is disabled
NormalIdle = 257
Normal status: acceptor function is in stand-by mode.
NormalActive = 258
Normal status: device is in operation.
NormalEscrow = 259
Normal status: inserted note passed validation check.
NormalVendValid = 260
Normal status: stacking the note is allowed.
NormalRejected = 261
Normal status:
common: note left in transport is removed duringPower Upacceptor: returning note beforeEscrow Statusis notified
NormalReturned = 262
Normal status: returning an inserted note after the Escrow Status is notified.
NormalCollected = 264
Normal status:
common: note left in transport is collected duringPower Upacceptor: collecting a scanned note completed
NormalInsert = 266
Normal status: note has been inserted.
NormalConditionalVend = 267
Normal status: Conditional Stacking is processing.
NormalPause = 268
Normal status: device has stopped.
NormalResume = 269
Normal status: device has resumed.
Abnormal = 512
Abnormal: controversial error has been resolved.
AbnormalOperationError = 513
Abnormal: unable to operate, Operation Message is not processed.
AbnormalFailure(FailureCode)
Abnormal: fatal error occurred.
Warning = 768
Warning status.
WarningNoteStay = 769
Warning status: note has stayed in the Insertion position for an extended period.
WarningFunctionAbeyance = 770
Warning status: mode enable by Function Mode is not functional.
Reserved = 65_535
Reserved function.
Implementations§
source§impl MajorMinorStatus
impl MajorMinorStatus
sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new MajorMinorStatus.
sourcepub const fn from_u8(val: u8) -> Self
pub const fn from_u8(val: u8) -> Self
Infallible conversion from a u8 into a MajorMinorStatus.
sourcepub const fn from_u16(val: u16) -> Self
pub const fn from_u16(val: u16) -> Self
Infallible conversion from a u16 into a MajorMinorStatus.
sourcepub const fn len() -> usize
pub const fn len() -> usize
Gets the length of the MajorMinorStatus.
sourcepub const fn is_empty(&self) -> bool
pub const fn is_empty(&self) -> bool
Gets whether the MajorMinorStatus contains a reserved variant.
Trait Implementations§
source§impl Clone for MajorMinorStatus
impl Clone for MajorMinorStatus
source§fn clone(&self) -> MajorMinorStatus
fn clone(&self) -> MajorMinorStatus
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for MajorMinorStatus
impl Debug for MajorMinorStatus
source§impl Default for MajorMinorStatus
impl Default for MajorMinorStatus
source§impl Display for MajorMinorStatus
impl Display for MajorMinorStatus
source§impl From<&MajorMinorStatus> for &'static str
impl From<&MajorMinorStatus> for &'static str
source§fn from(val: &MajorMinorStatus) -> Self
fn from(val: &MajorMinorStatus) -> Self
source§impl From<MajorMinorStatus> for &'static str
impl From<MajorMinorStatus> for &'static str
source§fn from(val: MajorMinorStatus) -> Self
fn from(val: MajorMinorStatus) -> Self
source§impl From<MajorMinorStatus> for u16
impl From<MajorMinorStatus> for u16
source§fn from(val: MajorMinorStatus) -> Self
fn from(val: MajorMinorStatus) -> Self
source§impl PartialEq for MajorMinorStatus
impl PartialEq for MajorMinorStatus
source§fn eq(&self, other: &MajorMinorStatus) -> bool
fn eq(&self, other: &MajorMinorStatus) -> bool
self and other values to be equal, and is used
by ==.