| LibDriver GT30L32S4W 1.0.0 GT30L32S4W full function driver

driver_gt30l32s4w_basic.h
Go to the documentation of this file.
1
37 #ifndef DRIVER_GT30L32S4W_BASIC_H
38 #define DRIVER_GT30L32S4W_BASIC_H
39
40 #include "driver_gt30l32s4w_interface.h"
41
42 #ifdef __cplusplus
43 extern "C"{
44 #endif
45
56 #define GT30L32S4W_BASIC_DEFAULT_MODE GT30L32S4W_MODE_READ
61 typedef enum
62 {
63 GT30L32S4W_BASIC_TYPE_ARIAL = 0x00,
64 GT30L32S4W_BASIC_TYPE_TIMES = 0x01,
65 } gt30l32s4w_basic_type_t;
66
74 uint8_t gt30l32s4w_basic_init(void);
75
83 uint8_t gt30l32s4w_basic_deinit(void);
84
95 uint8_t gt30l32s4w_basic_print_pattern(gt30l32s4w_type_t type, uint8_t *buf, uint8_t len);
96
107 uint8_t gt30l32s4w_basic_read_12(uint16_t ch, uint8_t buf[24], uint8_t *len);
108
119 uint8_t gt30l32s4w_basic_read_16(uint16_t ch, uint8_t buf[32], uint8_t *len);
120
131 uint8_t gt30l32s4w_basic_read_24(uint16_t ch, uint8_t buf[72], uint8_t *len);
132
143 uint8_t gt30l32s4w_basic_read_32(uint16_t ch, uint8_t buf[128], uint8_t *len);
144
154 uint8_t gt30l32s4w_basic_read_ascii_7(uint16_t ch, uint8_t buf[8]);
155
165 uint8_t gt30l32s4w_basic_read_ascii_8(uint16_t ch, uint8_t buf[8]);
166
177 uint8_t gt30l32s4w_basic_read_ascii_12_with_length(gt30l32s4w_basic_type_t type, uint16_t ch, uint8_t buf[26]);
178
189 uint8_t gt30l32s4w_basic_read_ascii_16_with_length(gt30l32s4w_basic_type_t type, uint16_t ch, uint8_t buf[34]);
190
201 uint8_t gt30l32s4w_basic_read_ascii_24_with_length(gt30l32s4w_basic_type_t type, uint16_t ch, uint8_t buf[74]);
202
213 uint8_t gt30l32s4w_basic_read_ascii_32_with_length(gt30l32s4w_basic_type_t type, uint16_t ch, uint8_t buf[130]);
214
219 #ifdef __cplusplus
220 }
221 #endif
222
223 #endif
driver_gt30l32s4w_interface.h
driver gt30l32s4w interface header file
gt30l32s4w_type_t
gt30l32s4w_type_t
gt30l32s4w type enumeration definition
Definition: driver_gt30l32s4w.h:72
gt30l32s4w_basic_read_16
uint8_t gt30l32s4w_basic_read_16(uint16_t ch, uint8_t buf[32], uint8_t *len)
basic example read 16
Definition: driver_gt30l32s4w_basic.c:191
gt30l32s4w_basic_read_ascii_8
uint8_t gt30l32s4w_basic_read_ascii_8(uint16_t ch, uint8_t buf[8])
read ascii 8
Definition: driver_gt30l32s4w_basic.c:401
gt30l32s4w_basic_read_ascii_24_with_length
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
Definition: driver_gt30l32s4w_basic.c:490
gt30l32s4w_basic_type_t
gt30l32s4w_basic_type_t
gt30l32s4w basic type enumeration definition
Definition: driver_gt30l32s4w_basic.h:62
gt30l32s4w_basic_read_ascii_16_with_length
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
Definition: driver_gt30l32s4w_basic.c:456
gt30l32s4w_basic_deinit
uint8_t gt30l32s4w_basic_deinit(void)
basic example deinit
Definition: driver_gt30l32s4w_basic.c:89
gt30l32s4w_basic_read_32
uint8_t gt30l32s4w_basic_read_32(uint16_t ch, uint8_t buf[128], uint8_t *len)
basic example read 32
Definition: driver_gt30l32s4w_basic.c:322
gt30l32s4w_basic_read_ascii_7
uint8_t gt30l32s4w_basic_read_ascii_7(uint16_t ch, uint8_t buf[8])
read ascii 7
Definition: driver_gt30l32s4w_basic.c:381
gt30l32s4w_basic_read_ascii_32_with_length
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
Definition: driver_gt30l32s4w_basic.c:524
gt30l32s4w_basic_init
uint8_t gt30l32s4w_basic_init(void)
basic example init
Definition: driver_gt30l32s4w_basic.c:48
gt30l32s4w_basic_print_pattern
uint8_t gt30l32s4w_basic_print_pattern(gt30l32s4w_type_t type, uint8_t *buf, uint8_t len)
basic example print pattern
Definition: driver_gt30l32s4w_basic.c:110
gt30l32s4w_basic_read_ascii_12_with_length
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
Definition: driver_gt30l32s4w_basic.c:422
gt30l32s4w_basic_read_12
uint8_t gt30l32s4w_basic_read_12(uint16_t ch, uint8_t buf[24], uint8_t *len)
basic example read 12
Definition: driver_gt30l32s4w_basic.c:131
gt30l32s4w_basic_read_24
uint8_t gt30l32s4w_basic_read_24(uint16_t ch, uint8_t buf[72], uint8_t *len)
basic example read 24
Definition: driver_gt30l32s4w_basic.c:262
GT30L32S4W_BASIC_TYPE_ARIAL
@ GT30L32S4W_BASIC_TYPE_ARIAL
Definition: driver_gt30l32s4w_basic.h:63
GT30L32S4W_BASIC_TYPE_TIMES
@ GT30L32S4W_BASIC_TYPE_TIMES
Definition: driver_gt30l32s4w_basic.h:64