#include "printer.h"
#include <stdlib.h>
#include <string.h>
#include "log.h"
#include "gecode.h"
Go to the source code of this file.
|
| static void | store16 (struct ge *ge, uint16_t addr, uint16_t value) |
| |
| static void | printer_capture_char (struct ge_integrated_printer *p, char c) |
| |
| static void | printer_capture_breaks (struct ge_integrated_printer *p, int count) |
| |
| static void | printer_capture_control (struct ge_integrated_printer *p, uint8_t cmd) |
| |
| static int | kbd_ready (const struct ge_integrated_printer *p) |
| |
| static int | kbd_has_complete_line (const struct ge_integrated_printer *p) |
| |
| static uint8_t | kbd_pop (struct ge_integrated_printer *p) |
| |
| static int | service_input_line (struct ge *ge, uint16_t buf, int len) |
| |
| static int | service_input_char (struct ge *ge, uint16_t buf, int len) |
| |
| static int | input_order_ready (struct ge *ge, uint8_t cmd) |
| |
| static int | in_channel2_print_wait (struct ge *ge) |
| |
| static int | printer_on_clock (struct ge *ge, void *opaque) |
| |
| static int | printer_deinit (struct ge *ge, void *opaque) |
| |
| static void | printer_sink (struct ge *ge, struct ge_channel *ch, uint8_t c) |
| |
| int | printer_register (struct ge *ge) |
| |
| void | printer_begin_output (struct ge *ge, uint16_t buffer, int length, int line_mode) |
| |
| void | printer_feed_key (struct ge *ge, uint8_t c) |
| |
| int | printer_output_len (struct ge *ge) |
| |
| const char * | printer_output (struct ge *ge) |
| |
| void | printer_output_clear (struct ge *ge) |
| |
◆ IS_OUTPUT_CMD
◆ KBD_CMD_CHAR
| #define KBD_CMD_CHAR 0x41 |
◆ KBD_CMD_LINE
| #define KBD_CMD_LINE 0x40 |
◆ LP_CMD_SINGLE_SPACE
| #define LP_CMD_SINGLE_SPACE 0x2E |
◆ LP_CMD_TRIPLE_SPACE
| #define LP_CMD_TRIPLE_SPACE 0x5A |
◆ LP_CMD_WRITE
| #define LP_CMD_WRITE 0x42 |
◆ PRINT_CMD_IS_PUT
| #define PRINT_CMD_IS_PUT |
( |
|
cmd | ) |
((cmd) & 0x80) |
◆ PRINT_LEN_MAX
| #define PRINT_LEN_MAX 256 |
◆ STALL_THRESHOLD
| #define STALL_THRESHOLD 256 |
◆ STDIO_COUNT_ADDR
| #define STDIO_COUNT_ADDR 0x0032 |
◆ STDIO_STATUS_ADDR
| #define STDIO_STATUS_ADDR 0x0030 |
◆ in_channel2_print_wait()
| static int in_channel2_print_wait |
( |
struct ge * |
ge | ) |
|
|
static |
◆ input_order_ready()
| static int input_order_ready |
( |
struct ge * |
ge, |
|
|
uint8_t |
cmd |
|
) |
| |
|
static |
◆ kbd_has_complete_line()
| static int kbd_has_complete_line |
( |
const struct ge_integrated_printer * |
p | ) |
|
|
static |
◆ kbd_pop()
| static uint8_t kbd_pop |
( |
struct ge_integrated_printer * |
p | ) |
|
|
static |
◆ kbd_ready()
| static int kbd_ready |
( |
const struct ge_integrated_printer * |
p | ) |
|
|
static |
◆ printer_begin_output()
| void printer_begin_output |
( |
struct ge * |
ge, |
|
|
uint16_t |
buffer, |
|
|
int |
length, |
|
|
int |
line_mode |
|
) |
| |
◆ printer_capture_breaks()
| static void printer_capture_breaks |
( |
struct ge_integrated_printer * |
p, |
|
|
int |
count |
|
) |
| |
|
static |
◆ printer_capture_char()
| static void printer_capture_char |
( |
struct ge_integrated_printer * |
p, |
|
|
char |
c |
|
) |
| |
|
static |
◆ printer_capture_control()
| static void printer_capture_control |
( |
struct ge_integrated_printer * |
p, |
|
|
uint8_t |
cmd |
|
) |
| |
|
static |
◆ printer_deinit()
| static int printer_deinit |
( |
struct ge * |
ge, |
|
|
void * |
opaque |
|
) |
| |
|
static |
◆ printer_feed_key()
| void printer_feed_key |
( |
struct ge * |
ge, |
|
|
uint8_t |
c |
|
) |
| |
◆ printer_on_clock()
| static int printer_on_clock |
( |
struct ge * |
ge, |
|
|
void * |
opaque |
|
) |
| |
|
static |
◆ printer_output()
| const char * printer_output |
( |
struct ge * |
ge | ) |
|
◆ printer_output_clear()
| void printer_output_clear |
( |
struct ge * |
ge | ) |
|
◆ printer_output_len()
| int printer_output_len |
( |
struct ge * |
ge | ) |
|
◆ printer_register()
| int printer_register |
( |
struct ge * |
ge | ) |
|
◆ printer_sink()
| static void printer_sink |
( |
struct ge * |
ge, |
|
|
struct ge_channel * |
ch, |
|
|
uint8_t |
c |
|
) |
| |
|
static |
◆ service_input_char()
| static int service_input_char |
( |
struct ge * |
ge, |
|
|
uint16_t |
buf, |
|
|
int |
len |
|
) |
| |
|
static |
◆ service_input_line()
| static int service_input_line |
( |
struct ge * |
ge, |
|
|
uint16_t |
buf, |
|
|
int |
len |
|
) |
| |
|
static |
◆ store16()
| static void store16 |
( |
struct ge * |
ge, |
|
|
uint16_t |
addr, |
|
|
uint16_t |
value |
|
) |
| |
|
static |