-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathSelfTestAndAudit.h
61 lines (50 loc) · 2.32 KB
/
SelfTestAndAudit.h
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/**************************************************************************
* This file is part of the Bally/Stern OS for Arduino Project.
I, Dick Hamill, the author of this program disclaim all copyright
in order to make this program freely available in perpetuity to
anyone who would like to use it. Dick Hamill, 6/1/2020
BallySternOS is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
BallySternOS is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
See <https://www.gnu.org/licenses/>.
*/
#ifndef SELF_TEST_H
#define MACHINE_STATE_TEST_LIGHTS -1
#define MACHINE_STATE_TEST_DISPLAYS -2
#define MACHINE_STATE_TEST_SOLENOIDS -3
#define MACHINE_STATE_TEST_SWITCHES -4
#define MACHINE_STATE_TEST_SOUNDS -5
#define MACHINE_STATE_TEST_SCORE_LEVEL_1 -6
#define MACHINE_STATE_TEST_SCORE_LEVEL_2 -7
#define MACHINE_STATE_TEST_SCORE_LEVEL_3 -8
#define MACHINE_STATE_TEST_HISCR -9
#define MACHINE_STATE_TEST_CREDITS -10
#define MACHINE_STATE_TEST_TOTAL_PLAYS -11
#define MACHINE_STATE_TEST_TOTAL_REPLAYS -12
#define MACHINE_STATE_TEST_HISCR_BEAT -13
#define MACHINE_STATE_TEST_CHUTE_2_COINS -14
#define MACHINE_STATE_TEST_CHUTE_1_COINS -15
#define MACHINE_STATE_TEST_CHUTE_3_COINS -16
#define MACHINE_STATE_ADJUST_CPC_CHUTE_1 -17
#define MACHINE_STATE_ADJUST_CPC_CHUTE_2 -18
#define MACHINE_STATE_ADJUST_CPC_CHUTE_3 -19
#ifdef ENABLE_CPC_SETTINGS
#define MACHINE_STATE_TEST_DONE -19
#else
#define MACHINE_STATE_TEST_DONE -16
#endif
unsigned long GetLastSelfTestChangedTime();
void SetLastSelfTestChangedTime(unsigned long setSelfTestChange);
int RunBaseSelfTest(int curState, boolean curStateChanged, unsigned long CurrentTime, byte resetSwitch, byte slamSwitch=0xFF);
unsigned long GetAwardScore(byte level);
#ifdef ENABLE_CPC_SETTINGS
byte GetCPCSelection(byte chuteNumber);
byte GetCPCCoins(byte cpcSelection);
byte GetCPCCredits(byte cpcSelection);
#endif
#endif