-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathBillValidator.h
More file actions
46 lines (35 loc) · 833 Bytes
/
BillValidator.h
File metadata and controls
46 lines (35 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#pragma once
#include "MDBDevice.h"
class BillValidator : public MDBDevice
{
public:
BillValidator(MDBSerial &mdb);
bool Update(unsigned long cc_change);
bool Reset();
void Print();
inline unsigned long GetCredit() { return m_credit; }
inline void ClearCredit() { m_credit = 0; }
private:
bool init();
int poll();
bool setup(int it = 0);
void security(int it = 0);
void type(int bills[], int it = 0);
void stacker(int it = 0);
void escrow(bool accept, int it = 0);
int ADDRESS;
int SECURITY;
int ESCROW;
int STACKER;
unsigned long m_change;
unsigned long m_credit;
bool m_full;
int m_bills_in_stacker;
bool m_bill_in_escrow;
char m_bill_scaling_factor;
char m_decimal_places;
unsigned int m_stacker_capacity;
unsigned int m_security_levels;
char m_can_escrow;
char m_bill_type_credit[16];
};