LibDriver GT30L32S4W  1.0.0
GT30L32S4W full function driver
driver_gt30l32s4w.h File Reference

driver gt30l32s4w header file More...

#include <stdio.h>
#include <stdint.h>
#include <string.h>

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)   memset(HANDLE, 0, sizeof(STRUCTURE))
 initialize gt30l32s4w_handle_t structure More...
 
#define DRIVER_GT30L32S4W_LINK_SPI_INIT(HANDLE, FUC)   (HANDLE)->spi_init = FUC
 link spi_init function More...
 
#define DRIVER_GT30L32S4W_LINK_SPI_DEINIT(HANDLE, FUC)   (HANDLE)->spi_deinit = FUC
 link spi_deinit function More...
 
#define DRIVER_GT30L32S4W_LINK_SPI_WRITE_READ(HANDLE, FUC)   (HANDLE)->spi_write_read = FUC
 link spi_write_read function More...
 
#define DRIVER_GT30L32S4W_LINK_DELAY_MS(HANDLE, FUC)   (HANDLE)->delay_ms = FUC
 link delay_ms function More...
 
#define DRIVER_GT30L32S4W_LINK_DEBUG_PRINT(HANDLE, FUC)   (HANDLE)->debug_print = FUC
 link debug_print function More...
 

Typedefs

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

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 More...
 
uint8_t gt30l32s4w_set_mode (gt30l32s4w_handle_t *handle, gt30l32s4w_mode_t mode)
 set mode More...
 
uint8_t gt30l32s4w_get_mode (gt30l32s4w_handle_t *handle, gt30l32s4w_mode_t *mode)
 get mode More...
 
uint8_t gt30l32s4w_init (gt30l32s4w_handle_t *handle)
 initialize the chip More...
 
uint8_t gt30l32s4w_deinit (gt30l32s4w_handle_t *handle)
 close the chip More...
 
uint8_t gt30l32s4w_print_pattern (gt30l32s4w_handle_t *handle, gt30l32s4w_type_t type, uint8_t *buf, uint8_t len)
 print pattern More...
 
uint8_t gt30l32s4w_read_char_12x12 (gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[24])
 read char 12x12 More...
 
uint8_t gt30l32s4w_read_char_15x16 (gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[32])
 read char 15x16 More...
 
uint8_t gt30l32s4w_read_char_24x24 (gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[72])
 read char 24x24 More...
 
uint8_t gt30l32s4w_read_char_32x32 (gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[128])
 read char 32x32 More...
 
uint8_t gt30l32s4w_read_char_extend_6x12 (gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[12])
 read char extend 6x12 More...
 
uint8_t gt30l32s4w_read_char_extend_8x16 (gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[16])
 read char extend 8x16 More...
 
uint8_t gt30l32s4w_read_char_special_8x16 (gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[16])
 read char special 8x16 More...
 
uint8_t gt30l32s4w_read_char_extend_12x24 (gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[48])
 read char extend 12x24 More...
 
uint8_t gt30l32s4w_read_char_extend_16x32 (gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[64])
 read char extend 16x32 More...
 
uint8_t gt30l32s4w_read_ascii_5x7 (gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[8])
 read ascii 5x7 More...
 
uint8_t gt30l32s4w_read_ascii_7x8 (gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[8])
 read ascii 7x8 More...
 
uint8_t gt30l32s4w_read_ascii_6x12 (gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[12])
 read ascii 6x12 More...
 
uint8_t gt30l32s4w_read_ascii_8x16 (gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[16])
 read ascii 8x16 More...
 
uint8_t gt30l32s4w_read_ascii_12x24 (gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[48])
 read ascii 12x24 More...
 
uint8_t gt30l32s4w_read_ascii_16x32 (gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[64])
 read ascii 16x32 More...
 
uint8_t gt30l32s4w_read_ascii_arial_12 (gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[26])
 read ascii arial 12 More...
 
uint8_t gt30l32s4w_read_ascii_times_12 (gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[26])
 read ascii times 12 More...
 
uint8_t gt30l32s4w_read_ascii_arial_16 (gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[34])
 read ascii arial 16 More...
 
uint8_t gt30l32s4w_read_ascii_times_16 (gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[34])
 read ascii times 16 More...
 
uint8_t gt30l32s4w_read_ascii_arial_24 (gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[74])
 read ascii arial 24 More...
 
uint8_t gt30l32s4w_read_ascii_times_24 (gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[74])
 read ascii times 24 More...
 
uint8_t gt30l32s4w_read_ascii_arial_32 (gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[130])
 read ascii arial 32 More...
 
uint8_t gt30l32s4w_read_ascii_times_32 (gt30l32s4w_handle_t *handle, uint16_t ch, uint8_t buf[130])
 read ascii times 32 More...
 
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 More...
 

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.