#[repr(u32)]pub enum ThresholdStatus {
Ok = 0,
Full = 1,
High = 2,
Low = 4,
Empty = 8,
Unknown = 16,
NotSupported = 32,
}Expand description
Filling status of a cash unit.
How the threshold status of a cash unit is determined, depends of the threshold mode :
@par SensorMode (default value): ThresholdStatus changes are determined by the sensors of the BNR (physical filling status).
CountMode: The management of these values depends of the physical cash unit type- Cashbox, Recycler and Bundler: Based on the Threshold levels, but if the physical limit of filling is reached before the threshold Full, then the ThresholdStatus is forced to Full anyway.
- Loader: Based on the Threshold levels, but if there is a lack of bills before the threshold Empty, the ThresholdStatus is forced to Empty anyway.
see [Threshold], [ThresholdMode], [PhysicalCashUnit].
Variants§
Ok = 0
The cash unit is neither empty nor full.
Full = 1
The cash unit is full. In CountMode, the cash unit count is higher or equal to its full threshold level.
High = 2
The cash unit is alomst full. In CountMode, the cash unit count is higher than its high threshold level.
Low = 4
The cash unit is almost empty. In CountMode, the cash unit count is lower than its low threshold level.
Empty = 8
The cash unit is empty. In CountMode, the cash unit count is lower or equal to its empty threshold level.
Unknown = 16
Threshold state cannot be determined.
NotSupported = 32
Threshold state is not supported.
Implementations§
Source§impl ThresholdStatus
impl ThresholdStatus
Sourcepub const fn new() -> ThresholdStatus
pub const fn new() -> ThresholdStatus
Creates a new ThresholdStatus.
Sourcepub const fn create(val: u32) -> ThresholdStatus
pub const fn create(val: u32) -> ThresholdStatus
Creates a new ThresholdStatus from the provided parameter.
Trait Implementations§
Source§impl Clone for ThresholdStatus
impl Clone for ThresholdStatus
Source§fn clone(&self) -> ThresholdStatus
fn clone(&self) -> ThresholdStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more