mirror of
https://github.com/clockworkpi/DevTerm.git
synced 2025-12-12 18:28:50 +01:00
49 lines
1.1 KiB
C
49 lines
1.1 KiB
C
#ifndef PRINTER_H
|
|
#define PRINTER_H
|
|
|
|
#include "config.h"
|
|
|
|
//#define PRINT_SPLIT 6 // max points printed at the same time,
|
|
//384/PRINT_SPLIT==96 #define MAX_PRINT_PTS 2
|
|
|
|
void printer_send_data8(uint8_t);
|
|
|
|
void clear_printer_buffer();
|
|
uint8_t IsPaper();
|
|
|
|
uint8_t header_init();
|
|
uint8_t header_init1();
|
|
|
|
void motor_stepper_pos1(uint8_t Position);
|
|
|
|
void motor_stepper_pos2(uint8_t Position);
|
|
|
|
uint8_t feed_pitch1(uint64_t lines, uint8_t forward_backward);
|
|
|
|
uint8_t bits_number(uint8_t n);
|
|
|
|
void print_dots_8bit_split(CONFIG *cfg, uint8_t *Array, uint8_t characters);
|
|
|
|
void print_dots_8bit(CONFIG *cfg, uint8_t *Array, uint8_t characters,
|
|
uint8_t feed_num);
|
|
|
|
uint16_t read_adc(char *);
|
|
uint16_t temperature();
|
|
int glob_file(char *);
|
|
uint16_t get_serial_cache_font_width(CONFIG *);
|
|
uint8_t print_lines_ft(CONFIG *,int ,int);
|
|
uint8_t print_lines8(CONFIG *,int,int);
|
|
|
|
uint8_t invert_bit(uint8_t a);
|
|
|
|
uint8_t print_image8(CONFIG *);
|
|
void print_cut_line(CONFIG *);
|
|
|
|
void printer_set_font_mode(CONFIG *cfg, int);
|
|
void printer_set_font(CONFIG *cfg, uint8_t fnbits);
|
|
void parse_serial_stream(CONFIG *cfg, uint8_t input_ch);
|
|
|
|
void reset_cmd();
|
|
|
|
#endif
|