LibDriver GT30L32S4W
Loading...
Searching...
No Matches
driver_gt30l32s4w.h File Reference

driver gt30l32s4w header file More...

#include <stdio.h>
#include <stdint.h>
#include <string.h>
Include dependency graph for driver_gt30l32s4w.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  gt30l32s4w_handle_s
 gt30l32s4w handle structure definition More...
struct  gt30l32s4w_info_s
 gt30l32s4w information structure definition More...

Macros

#define DRIVER_GT30L32S4W_LINK_INIT(HANDLE, STRUCTURE)
 initialize gt30l32s4w_handle_t structure
#define DRIVER_GT30L32S4W_LINK_SPI_INIT(HANDLE, FUC)
 link spi_init 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_DELAY_MS(HANDLE, FUC)
 link delay_ms function
#define DRIVER_GT30L32S4W_LINK_DEBUG_PRINT(HANDLE, FUC)
 link debug_print function

Typedefs

typedef struct gt30l32s4w_handle_s gt30l32s4w_handle_t
 gt30l32s4w handle structure definition
typedef struct gt30l32s4w_info_s gt30l32s4w_info_t
 gt30l32s4w information structure definition

Enumerations

enum  gt30l32s4w_mode_t { GT30L32S4W_MODE_READ = 0x03 , GT30L32S4W_MODE_FAST_MODE = 0x0B }
 gt30l32s4w mode enumeration definition More...
enum  gt30l32s4w_type_t {
  GT30L32S4W_TYPE_12X12_GB2312 = 0x01 , GT30L32S4W_TYPE_15X16_GB2312 = 0x02 , GT30L32S4W_TYPE_24X24_GB2312 = 0x03 , GT30L32S4W_TYPE_32X32_GB2312 = 0x04 ,
  GT30L32S4W_TYPE_6X12_GB2312_EX = 0x05 , GT30L32S4W_TYPE_6X12_ASCII = 0x06 , GT30L32S4W_TYPE_12_ARIAL_ASCII = 0x07 , GT30L32S4W_TYPE_12_TIMES_ASCII = 0x08 ,
  GT30L32S4W_TYPE_8X16_GB2312_EX = 0x09 , GT30L32S4W_TYPE_8X16_ASCII = 0x0A , GT30L32S4W_TYPE_5X7_ASCII = 0x0B , GT30L32S4W_TYPE_7X8_ASCII = 0x0C ,
  GT30L32S4W_TYPE_16_ARIAL_ASCII = 0x0D , GT30L32S4W_TYPE_16_TIMES_ASCII = 0x0E , GT30L32S4W_TYPE_12X24_GB2312_EX = 0x0F , GT30L32S4W_TYPE_12X24_ASCII = 0x10 ,
  GT30L32S4W_TYPE_24_ARIAL_ASCII = 0x11 , GT30L32S4W_TYPE_24_TIMES_ASCII = 0x12 , GT30L32S4W_TYPE_16X32_GB2312_EX = 0x13 , GT30L32S4W_TYPE_16X32_ASCII = 0x14 ,
  GT30L32S4W_TYPE_32_ARIAL_ASCII = 0x15 , GT30L32S4W_TYPE_32_TIMES_ASCII = 0x16 , GT30L32S4W_TYPE_8X16_GB2312_SP = 0x17
}
 gt30l32s4w type enumeration definition More...

Functions

uint8_t gt30l32s4w_info (gt30l32s4w_info_t *info)
 get chip's information
uint8_t gt30l32s4w_set_mode (gt30l32s4w_handle_t *handle, gt30l32s4w_mode_t mode)
 set mode
uint8_t gt30l32s4w_get_mode (gt30l32s4w_handle_t *handle, gt30l32s4w_mode_t *mode)
 get mode
uint8_t gt30l32s4w_init (gt30l32s4w_handle_t *handle)
 initialize the chip
uint8_t gt30l32s4w_deinit (gt30l32s4w_handle_t *handle)
 close the chip
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_12x12 (gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[24])
 read char 12x12
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_24x24 (gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[72])
 read char 24x24
uint8_t gt30l32s4w_read_char_32x32 (gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[128])
 read char 32x32
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_char_extend_8x16 (gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[16])
 read char extend 8x16
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_char_extend_12x24 (gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[48])
 read char extend 12x24
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_5x7 (gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[8])
 read ascii 5x7
uint8_t gt30l32s4w_read_ascii_7x8 (gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[8])
 read ascii 7x8
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_8x16 (gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[16])
 read ascii 8x16
uint8_t gt30l32s4w_read_ascii_12x24 (gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[48])
 read ascii 12x24
uint8_t gt30l32s4w_read_ascii_16x32 (gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[64])
 read ascii 16x32
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_times_12 (gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[26])
 read ascii times 12
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_times_16 (gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[34])
 read ascii times 16
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_24 (gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[74])
 read ascii times 24
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_ascii_times_32 (gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[130])
 read ascii times 32
uint8_t gt30l32s4w_get_reg (gt30l32s4w_handle_t *handle, uint8_t *in_buf, uint32_t in_len, uint8_t *out_buf, uint32_t out_len)
 get the chip register

Detailed Description

driver gt30l32s4w header file

Copyright (c) 2015 - present LibDriver All rights reserved

The MIT License (MIT)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Version
1.0.0
Author
Shifeng Li
Date
2023-09-15

history

Date Version Author Description
2023/09/15 1.0 Shifeng Li first upload

Definition in file driver_gt30l32s4w.h.