LibDriver CH9121
Loading...
Searching...
No Matches
ch9121_handle_s Struct Reference

ch9121 handle structure definition More...

#include <driver_ch9121.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

ch9121 handle structure definition

Definition at line 119 of file driver_ch9121.h.

Field Documentation

◆ buf

uint8_t buf[128]

inner buffer

Definition at line 135 of file driver_ch9121.h.

◆ cfg_gpio_deinit

uint8_t(* cfg_gpio_deinit) (void)

point to a cfg_gpio_deinit function address

Definition at line 130 of file driver_ch9121.h.

◆ cfg_gpio_init

uint8_t(* cfg_gpio_init) (void)

point to a cfg_gpio_init function address

Definition at line 129 of file driver_ch9121.h.

◆ cfg_gpio_write

uint8_t(* cfg_gpio_write) (uint8_t data)

point to a cfg_gpio_write function address

Definition at line 131 of file driver_ch9121.h.

◆ debug_print

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

point to a debug_print function address

Definition at line 133 of file driver_ch9121.h.

◆ delay_ms

void(* delay_ms) (uint32_t ms)

point to a delay_ms function address

Definition at line 132 of file driver_ch9121.h.

◆ inited

uint8_t inited

inited flag

Definition at line 134 of file driver_ch9121.h.

◆ reset_gpio_deinit

uint8_t(* reset_gpio_deinit) (void)

point to a reset_gpio_deinit function address

Definition at line 127 of file driver_ch9121.h.

◆ reset_gpio_init

uint8_t(* reset_gpio_init) (void)

point to a reset_gpio_init function address

Definition at line 126 of file driver_ch9121.h.

◆ reset_gpio_write

uint8_t(* reset_gpio_write) (uint8_t data)

point to a reset_gpio_write function address

Definition at line 128 of file driver_ch9121.h.

◆ uart_deinit

uint8_t(* uart_deinit) (void)

point to a uart_deinit function address

Definition at line 122 of file driver_ch9121.h.

◆ uart_flush

uint8_t(* uart_flush) (void)

point to a uart_flush function address

Definition at line 124 of file driver_ch9121.h.

◆ uart_init

uint8_t(* uart_init) (void)

point to a uart_init function address

Definition at line 121 of file driver_ch9121.h.

◆ uart_read

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

point to a uart_read function address

Definition at line 123 of file driver_ch9121.h.

◆ uart_write

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

point to a uart_write function address

Definition at line 125 of file driver_ch9121.h.


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