GE-115 Emulator
An Emulator of the General Electrics GE-115 computer
Macros | Functions
reader.c File Reference
#include "ge.h"
#include "log.h"
#include "signals.h"

Go to the source code of this file.

Macros

#define ENUMERATE_READER_COMMANDS
 
#define X(cmd, name, desc)   case cmd: ge_log(LOG_READER, " Command: %02x - %s\n", cmd, desc ); break;
 
#define X(cmd, namex, desc)   case cmd: ge_log(LOG_READER, " connector %s got: %02x - %s\n", conn->name, cmd, desc ); break;
 

Functions

void reader_send_tu00 (struct ge *ge)
 
void reader_setup_to_send (struct ge *ge, uint8_t data, uint8_t end)
 
void reader_clear_sending (struct ge *ge)
 
void reader_send_tu10 (struct ge *ge)
 
uint8_t reader_get_LU08 (struct ge *ge)
 
uint8_t reader_get_LUPO1 (struct ge *ge)
 
uint8_t reader_get_FINI1 (struct ge *ge)
 
uint8_t connector_get_MARE (struct ge_connector *conn)
 
uint8_t connector_get_TE10 (struct ge_connector *conn)
 
uint8_t connector_get_TE20 (struct ge_connector *conn)
 
uint8_t connector_get_TE30 (struct ge_connector *conn)
 
uint8_t connector_get_FINE (struct ge_connector *conn)
 
void connector_setup_to_send (struct ge *ge, struct ge_connector *conn, uint8_t data, uint8_t end)
 
void connector_clear_sending (struct ge_connector *conn)
 
void connector_send_tu00 (struct ge *ge, struct ge_connector *conn)
 

Macro Definition Documentation

◆ ENUMERATE_READER_COMMANDS

#define ENUMERATE_READER_COMMANDS
Value:
X(0x40, read, "Read unchanged") \
X(0x21, read_normal_1, "Read normal i" ) \
X(0x01, read_normal_2, "Read normal ii") \
X(0x24, read_mixed_1, "Read mixed i" ) \
X(0x04, read_mixed_2, "Read mixed ii" ) \
X(0x20, read_binary, "Read binary" ) \
X(0xa1, put_normal_1, "Put normal i" ) \
X(0x81, put_normal_2, "Put normal ii" ) \
X(0xa4, put_mixed_1, "Put mixed i" ) \
X(0x84, put_mixed_2, "Put mixed ii" ) \
X(0xa0, put_binary, "Put binary" ) \
X(0xac, put_manual, "Put manual" ) \
X(0x48, card_reject, "Card_reject" ) \
X(0x0c, no_function, "No function" )
#define X(cmd, name, desc)

Definition at line 5 of file reader.c.

◆ X [1/2]

#define X (   cmd,
  name,
  desc 
)    case cmd: ge_log(LOG_READER, " Command: %02x - %s\n", cmd, desc ); break;

◆ X [2/2]

#define X (   cmd,
  namex,
  desc 
)    case cmd: ge_log(LOG_READER, " connector %s got: %02x - %s\n", conn->name, cmd, desc ); break;

Function Documentation

◆ connector_clear_sending()

void connector_clear_sending ( struct ge_connector conn)

Definition at line 149 of file reader.c.

◆ connector_get_FINE()

uint8_t connector_get_FINE ( struct ge_connector conn)

Definition at line 117 of file reader.c.

◆ connector_get_MARE()

uint8_t connector_get_MARE ( struct ge_connector conn)

Definition at line 93 of file reader.c.

◆ connector_get_TE10()

uint8_t connector_get_TE10 ( struct ge_connector conn)

Definition at line 99 of file reader.c.

◆ connector_get_TE20()

uint8_t connector_get_TE20 ( struct ge_connector conn)

Definition at line 105 of file reader.c.

◆ connector_get_TE30()

uint8_t connector_get_TE30 ( struct ge_connector conn)

Definition at line 111 of file reader.c.

◆ connector_send_tu00()

void connector_send_tu00 ( struct ge ge,
struct ge_connector conn 
)

Definition at line 156 of file reader.c.

◆ connector_setup_to_send()

void connector_setup_to_send ( struct ge ge,
struct ge_connector conn,
uint8_t  data,
uint8_t  end 
)

Definition at line 123 of file reader.c.

◆ reader_clear_sending()

void reader_clear_sending ( struct ge ge)

Definition at line 56 of file reader.c.

◆ reader_get_FINI1()

uint8_t reader_get_FINI1 ( struct ge ge)

Definition at line 87 of file reader.c.

◆ reader_get_LU08()

uint8_t reader_get_LU08 ( struct ge ge)

Definition at line 68 of file reader.c.

◆ reader_get_LUPO1()

uint8_t reader_get_LUPO1 ( struct ge ge)

Definition at line 81 of file reader.c.

◆ reader_send_tu00()

void reader_send_tu00 ( struct ge ge)

Definition at line 21 of file reader.c.

◆ reader_send_tu10()

void reader_send_tu10 ( struct ge ge)

Definition at line 62 of file reader.c.

◆ reader_setup_to_send()

void reader_setup_to_send ( struct ge ge,
uint8_t  data,
uint8_t  end 
)

Definition at line 33 of file reader.c.