2 #ifndef BASIC_DEMO6_SSP_HELPERS_H 3 #define BASIC_DEMO6_SSP_HELPERS_H 6 #include "port_win32_ssp.h" 8 #include "port_linux.h" 13 #define SSP_CMD_RUN_CALIBRATION 0x48 14 #define SSP_CMD_SET_COINMECH_INHIBITS 0x40 15 #define SSP_CMD_PAYOUT_NOTE 0x42 16 #define SSP_CMD_STACK_NOTE 0x43 17 #define SSP_CMD_PAYOUT_VALUE 0x33 21 #define SSP_POLL_CALIBRATION_FAIL 0x83 22 #define SSP_POLL_SMART_EMPTYING 0xB3 23 #define SSP_POLL_SMART_EMPTIED 0xB4 24 #define SSP_POLL_STORED 0xDB 25 #define SSP_POLL_DISPENSING 0xDA 26 #define SSP_POLL_DISPENSED 0xD2 27 #define SSP_POLL_JAMMED 0xD5 28 #define SSP_POLL_HALTED 0xD6 29 #define SSP_POLL_FLOATING 0xD7 30 #define SSP_POLL_FLOATED 0xD8 31 #define SSP_POLL_TIMEOUT 0xD9 32 #define SSP_POLL_CASHBOX_PAID 0xDE 33 #define SSP_POLL_COIN_CREDIT 0xDF 36 #define SSP6_OPTION_BYTE_TEST 0x19 37 #define SSP6_OPTION_BYTE_DO 0x58 41 #define PRINT_CMD(_sspC) do { \ 44 for (_i=0; _i<_sspC->CommandDataLength; _i++) \ 45 printf ("0x%02x ", _sspC->CommandData[_i]); \ 48 #define PRINT_RSP(_sspC) do { \ 51 for (_i=0; _i<_sspC->ResponseDataLength; _i++) \ 52 printf ("0x%02x ", _sspC->ResponseData[_i]);\ 66 unsigned char event_count;
70 unsigned char security;
76 unsigned char UnitType;
77 char FirmwareVersion[5];
80 unsigned int NumberOfChannels;
82 unsigned long RealValueMultiplier;
83 unsigned char ProtocolVersion;
86 enum calibration_failures {
103 SSP_RESPONSE_ENUM ssp6_payout(
SSP_COMMAND *sspC,
const int value,
const char *cc,
const char option);
104 SSP_RESPONSE_ENUM ssp6_set_route(
SSP_COMMAND *sspC,
const int value,
const char *cc,
const char route);
106 SSP_RESPONSE_ENUM ssp6_setup_encryption(
SSP_COMMAND *sspC,
const unsigned long long fixedkey);
107 SSP_RESPONSE_ENUM ssp6_host_protocol(
SSP_COMMAND *sspC,
const unsigned char host_protocol);
110 SSP_RESPONSE_ENUM ssp6_enable_payout(
SSP_COMMAND *sspC,
const char type);
111 SSP_RESPONSE_ENUM ssp6_set_inhibits(
SSP_COMMAND *sspC,
const unsigned char lowchannels,
const unsigned char highchannels);
114 SSP_RESPONSE_ENUM ssp6_disable_payout(
SSP_COMMAND *sspC);
116 SSP_RESPONSE_ENUM ssp6_stack_note(
SSP_COMMAND *sspC);
117 SSP_RESPONSE_ENUM ssp6_payout_note(
SSP_COMMAND *sspC);
118 SSP_RESPONSE_ENUM ssp6_run_calibration(
SSP_COMMAND *sspC);
119 SSP_RESPONSE_ENUM ssp6_set_coinmech_inhibits(
SSP_COMMAND *sspC,
unsigned int value,
const char *cc,
enum channel_state state);
Definition: port_win32_ssp.h:35
Definition: ssp_commands.h:75
Definition: ssp_commands.h:64
Definition: ssp_commands.h:57
Definition: ssp_commands.h:69