137 msb = (ch >> 8) & 0xFF;
138 lsb = (ch >> 0) & 0xFF;
141 if ((ch >= 0x20) && (ch <= 0x7E))
152 else if (((msb >= 0xA1) && (msb <= 0xA9) && (lsb >= 0xA1)) ||
153 ((msb >= 0xB0) && (msb <= 0xF7) && (lsb >= 0xA1)))
164 else if (((ch >= 0xAAA1U) && (ch <= 0xAAFEU)) ||
165 ((ch >= 0xABA1U) && (ch <= 0xABC0U)))
197 msb = (ch >> 8) & 0xFF;
198 lsb = (ch >> 0) & 0xFF;
201 if ((ch >= 0x20) && (ch <= 0x7E))
212 else if (((msb >= 0xA1) && (msb <= 0xA9) && (lsb >= 0xA1)) ||
213 ((msb >= 0xB0) && (msb <= 0xF7) && (lsb >= 0xA1)))
224 else if (((ch >= 0xAAA1U) && (ch <= 0xAAFEU)) ||
225 ((ch >= 0xABA1U) && (ch <= 0xABC0U)))
236 else if ((ch >= 0xACA1U) && (ch <= 0xACDFU))
268 msb = (ch >> 8) & 0xFF;
269 lsb = (ch >> 0) & 0xFF;
272 if ((ch >= 0x20) && (ch <= 0x7E))
283 else if (((msb >= 0xA1) && (msb <= 0xA9) && (lsb >= 0xA1)) ||
284 ((msb >= 0xB0) && (msb <= 0xF7) && (lsb >= 0xA1)))
295 else if (((ch >= 0xAAA1U) && (ch <= 0xAAFEU)) ||
296 ((ch >= 0xABA1U) && (ch <= 0xABC0U)))
328 msb = (ch >> 8) & 0xFF;
329 lsb = (ch >> 0) & 0xFF;
332 if ((ch >= 0x20) && (ch <= 0x7E))
343 else if (((msb >= 0xA1) && (msb <= 0xA9) && (lsb >= 0xA1)) ||
344 ((msb >= 0xB0) && (msb <= 0xF7) && (lsb >= 0xA1)))
355 else if (((ch >= 0xAAA1U) && (ch <= 0xAAFEU)) ||
356 ((ch >= 0xABA1U) && (ch <= 0xABC0U)))
driver gt30l32s4w basic header file
uint8_t gt30l32s4w_read_char_extend_8x16(gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[16])
read char extend 8x16
uint8_t gt30l32s4w_read_ascii_5x7(gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[8])
read ascii 5x7
uint8_t gt30l32s4w_read_ascii_arial_24(gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[74])
read ascii arial 24
uint8_t gt30l32s4w_read_ascii_times_12(gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[26])
read ascii times 12
uint8_t gt30l32s4w_read_ascii_arial_32(gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[130])
read ascii arial 32
uint8_t gt30l32s4w_read_char_12x12(gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[24])
read char 12x12
uint8_t gt30l32s4w_read_char_24x24(gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[72])
read char 24x24
uint8_t gt30l32s4w_set_mode(gt30l32s4w_handle_t *handle, gt30l32s4w_mode_t mode)
set mode
uint8_t gt30l32s4w_read_char_extend_12x24(gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[48])
read char extend 12x24
uint8_t gt30l32s4w_read_ascii_times_32(gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[130])
read ascii times 32
uint8_t gt30l32s4w_init(gt30l32s4w_handle_t *handle)
initialize the chip
uint8_t gt30l32s4w_read_char_extend_6x12(gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[12])
read char extend 6x12
uint8_t gt30l32s4w_read_ascii_16x32(gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[64])
read ascii 16x32
uint8_t gt30l32s4w_deinit(gt30l32s4w_handle_t *handle)
close the chip
uint8_t gt30l32s4w_read_char_extend_16x32(gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[64])
read char extend 16x32
uint8_t gt30l32s4w_read_ascii_times_24(gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[74])
read ascii times 24
uint8_t gt30l32s4w_read_ascii_12x24(gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[48])
read ascii 12x24
uint8_t gt30l32s4w_print_pattern(gt30l32s4w_handle_t *handle, gt30l32s4w_type_t type, uint8_t *buf, uint8_t len)
print pattern
uint8_t gt30l32s4w_read_char_15x16(gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[32])
read char 15x16
uint8_t gt30l32s4w_read_char_special_8x16(gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[16])
read char special 8x16
uint8_t gt30l32s4w_read_ascii_6x12(gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[12])
read ascii 6x12
uint8_t gt30l32s4w_read_ascii_arial_16(gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[34])
read ascii arial 16
uint8_t gt30l32s4w_read_ascii_7x8(gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[8])
read ascii 7x8
gt30l32s4w_type_t
gt30l32s4w type enumeration definition
struct gt30l32s4w_handle_s gt30l32s4w_handle_t
gt30l32s4w handle structure definition
uint8_t gt30l32s4w_read_ascii_times_16(gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[34])
read ascii times 16
uint8_t gt30l32s4w_read_ascii_arial_12(gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[26])
read ascii arial 12
uint8_t gt30l32s4w_read_ascii_8x16(gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[16])
read ascii 8x16
uint8_t gt30l32s4w_read_char_32x32(gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[128])
read char 32x32
uint8_t gt30l32s4w_basic_read_16(uint16_t ch, uint8_t buf[32], uint8_t *len)
basic example read 16
#define GT30L32S4W_BASIC_DEFAULT_MODE
gt30l32s4w basic example default definition
uint8_t gt30l32s4w_basic_read_ascii_8(uint16_t ch, uint8_t buf[8])
read ascii 8
uint8_t gt30l32s4w_basic_read_ascii_24_with_length(gt30l32s4w_basic_type_t type, uint16_t ch, uint8_t buf[74])
read ascii 24 with length
gt30l32s4w_basic_type_t
gt30l32s4w basic type enumeration definition
uint8_t gt30l32s4w_basic_read_ascii_16_with_length(gt30l32s4w_basic_type_t type, uint16_t ch, uint8_t buf[34])
read ascii 16 with length
uint8_t gt30l32s4w_basic_deinit(void)
basic example deinit
uint8_t gt30l32s4w_basic_read_32(uint16_t ch, uint8_t buf[128], uint8_t *len)
basic example read 32
uint8_t gt30l32s4w_basic_read_ascii_7(uint16_t ch, uint8_t buf[8])
read ascii 7
uint8_t gt30l32s4w_basic_read_ascii_32_with_length(gt30l32s4w_basic_type_t type, uint16_t ch, uint8_t buf[130])
read ascii 32 with length
uint8_t gt30l32s4w_basic_init(void)
basic example init
uint8_t gt30l32s4w_basic_print_pattern(gt30l32s4w_type_t type, uint8_t *buf, uint8_t len)
basic example print pattern
uint8_t gt30l32s4w_basic_read_ascii_12_with_length(gt30l32s4w_basic_type_t type, uint16_t ch, uint8_t buf[26])
read ascii 12 with length
uint8_t gt30l32s4w_basic_read_12(uint16_t ch, uint8_t buf[24], uint8_t *len)
basic example read 12
uint8_t gt30l32s4w_basic_read_24(uint16_t ch, uint8_t buf[72], uint8_t *len)
basic example read 24
@ GT30L32S4W_BASIC_TYPE_ARIAL
uint8_t gt30l32s4w_interface_spi_deinit(void)
interface spi bus deinit
void gt30l32s4w_interface_debug_print(const char *const fmt,...)
interface print format data
uint8_t gt30l32s4w_interface_spi_init(void)
interface spi bus init
void gt30l32s4w_interface_delay_ms(uint32_t ms)
interface delay ms
uint8_t gt30l32s4w_interface_spi_write_read(uint8_t *in_buf, uint32_t in_len, uint8_t *out_buf, uint32_t out_len)
interface spi bus write read
#define DRIVER_GT30L32S4W_LINK_DELAY_MS(HANDLE, FUC)
link delay_ms function
#define DRIVER_GT30L32S4W_LINK_SPI_DEINIT(HANDLE, FUC)
link spi_deinit function
#define DRIVER_GT30L32S4W_LINK_SPI_WRITE_READ(HANDLE, FUC)
link spi_write_read function
#define DRIVER_GT30L32S4W_LINK_DEBUG_PRINT(HANDLE, FUC)
link debug_print function
#define DRIVER_GT30L32S4W_LINK_INIT(HANDLE, STRUCTURE)
initialize gt30l32s4w_handle_t structure
#define DRIVER_GT30L32S4W_LINK_SPI_INIT(HANDLE, FUC)
link spi_init function