LibDriver CH9121X
Loading...
Searching...
No Matches
ch9121x_handle_s Struct Reference

ch9121x handle structure definition More...

#include <driver_ch9121x.h>

Data Fields

uint8_t(* uart_init )(void)
uint8_t(* uart_deinit )(void)
uint16_t(* uart_read )(uint8_t *buf, uint16_t len)
uint8_t(* uart_flush )(void)
uint8_t(* uart_write )(uint8_t *buf, uint16_t len)
uint8_t(* reset_gpio_init )(void)
uint8_t(* reset_gpio_deinit )(void)
uint8_t(* reset_gpio_write )(uint8_t data)
uint8_t(* cfg_gpio_init )(void)
uint8_t(* cfg_gpio_deinit )(void)
uint8_t(* cfg_gpio_write )(uint8_t data)
void(* delay_ms )(uint32_t ms)
void(* debug_print )(const char *const fmt,...)
uint8_t inited
uint8_t buf [128]

Detailed Description

ch9121x handle structure definition

Definition at line 141 of file driver_ch9121x.h.

Field Documentation

◆ buf

uint8_t buf[128]

inner buffer

Definition at line 157 of file driver_ch9121x.h.

◆ cfg_gpio_deinit

uint8_t(* cfg_gpio_deinit) (void)

point to a cfg_gpio_deinit function address

Definition at line 152 of file driver_ch9121x.h.

◆ cfg_gpio_init

uint8_t(* cfg_gpio_init) (void)

point to a cfg_gpio_init function address

Definition at line 151 of file driver_ch9121x.h.

◆ cfg_gpio_write

uint8_t(* cfg_gpio_write) (uint8_t data)

point to a cfg_gpio_write function address

Definition at line 153 of file driver_ch9121x.h.

◆ debug_print

void(* debug_print) (const char *const fmt,...)

point to a debug_print function address

Definition at line 155 of file driver_ch9121x.h.

◆ delay_ms

void(* delay_ms) (uint32_t ms)

point to a delay_ms function address

Definition at line 154 of file driver_ch9121x.h.

◆ inited

uint8_t inited

inited flag

Definition at line 156 of file driver_ch9121x.h.

◆ reset_gpio_deinit

uint8_t(* reset_gpio_deinit) (void)

point to a reset_gpio_deinit function address

Definition at line 149 of file driver_ch9121x.h.

◆ reset_gpio_init

uint8_t(* reset_gpio_init) (void)

point to a reset_gpio_init function address

Definition at line 148 of file driver_ch9121x.h.

◆ reset_gpio_write

uint8_t(* reset_gpio_write) (uint8_t data)

point to a reset_gpio_write function address

Definition at line 150 of file driver_ch9121x.h.

◆ uart_deinit

uint8_t(* uart_deinit) (void)

point to an uart_deinit function address

Definition at line 144 of file driver_ch9121x.h.

◆ uart_flush

uint8_t(* uart_flush) (void)

point to an uart_flush function address

Definition at line 146 of file driver_ch9121x.h.

◆ uart_init

uint8_t(* uart_init) (void)

point to an uart_init function address

Definition at line 143 of file driver_ch9121x.h.

◆ uart_read

uint16_t(* uart_read) (uint8_t *buf, uint16_t len)

point to an uart_read function address

Definition at line 145 of file driver_ch9121x.h.

◆ uart_write

uint8_t(* uart_write) (uint8_t *buf, uint16_t len)

point to an uart_write function address

Definition at line 147 of file driver_ch9121x.h.


The documentation for this struct was generated from the following file: