5 #define ENUMERATE_READER_COMMANDS \
6 X(0x40, read, "Read unchanged") \
7 X(0x21, read_normal_1, "Read normal i" ) \
8 X(0x01, read_normal_2, "Read normal ii") \
9 X(0x24, read_mixed_1, "Read mixed i" ) \
10 X(0x04, read_mixed_2, "Read mixed ii" ) \
11 X(0x20, read_binary, "Read binary" ) \
12 X(0xa1, put_normal_1, "Put normal i" ) \
13 X(0x81, put_normal_2, "Put normal ii" ) \
14 X(0xa4, put_mixed_1, "Put mixed i" ) \
15 X(0x84, put_mixed_2, "Put mixed ii" ) \
16 X(0xa0, put_binary, "Put binary" ) \
17 X(0xac, put_manual, "Put manual" ) \
18 X(0x48, card_reject, "Card_reject" ) \
19 X(0x0c, no_function, "No function" )
23 uint8_t command =
ge->
rRE;
27 #define X(cmd, name, desc) case cmd: ge_log(LOG_READER, " Command: %02x - %s\n", cmd, desc ); break;
74 " wanting to send char: %02x\n",
158 uint8_t command =
ge->
rRE;
161 #define X(cmd, namex, desc) case cmd: ge_log(LOG_READER, " connector %s got: %02x - %s\n", conn->name, cmd, desc ); break;
void ge_log(ge_log_type type, const char *format,...)
Log message.
@ LOG_READER
Integrated Reader.
void reader_setup_to_send(struct ge *ge, uint8_t data, uint8_t end)
uint8_t reader_get_LUPO1(struct ge *ge)
uint8_t connector_get_TE30(struct ge_connector *conn)
uint8_t reader_get_LU08(struct ge *ge)
uint8_t connector_get_MARE(struct ge_connector *conn)
void connector_clear_sending(struct ge_connector *conn)
void reader_clear_sending(struct ge *ge)
void reader_send_tu10(struct ge *ge)
uint8_t reader_get_FINI1(struct ge *ge)
void connector_send_tu00(struct ge *ge, struct ge_connector *conn)
void connector_setup_to_send(struct ge *ge, struct ge_connector *conn, uint8_t data, uint8_t end)
uint8_t connector_get_TE10(struct ge_connector *conn)
uint8_t connector_get_TE20(struct ge_connector *conn)
void reader_send_tu00(struct ge *ge)
#define ENUMERATE_READER_COMMANDS
uint8_t connector_get_FINE(struct ge_connector *conn)
The entire state of the emulated system, including registers, memory, peripherals and timings.
struct ge_integrated_reader integrated_reader
The I/O interface for the integrated reader (RI)
uint8_t RIG1
End from controller 1.