LibDriver GP2Y1051AU0F  1.0.0
GP2Y1051AU0F full-featured driver
gp2y1051au0f_handle_s Struct Reference

gp2y1051au0f handle structure definition More...

#include <driver_gp2y1051au0f.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)
 
void(* delay_ms )(uint32_t ms)
 
void(* debug_print )(const char *const fmt,...)
 
uint8_t inited
 

Detailed Description

gp2y1051au0f handle structure definition

Definition at line 62 of file driver_gp2y1051au0f.h.

Field Documentation

◆ debug_print

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

point to a debug_print function address

Definition at line 69 of file driver_gp2y1051au0f.h.

◆ delay_ms

void(* delay_ms) (uint32_t ms)

point to a delay_ms function address

Definition at line 68 of file driver_gp2y1051au0f.h.

◆ inited

uint8_t inited

inited flag

Definition at line 70 of file driver_gp2y1051au0f.h.

◆ uart_deinit

uint8_t(* uart_deinit) (void)

point to a uart_deinit function address

Definition at line 65 of file driver_gp2y1051au0f.h.

◆ uart_flush

uint8_t(* uart_flush) (void)

point to a uart_flush function address

Definition at line 67 of file driver_gp2y1051au0f.h.

◆ uart_init

uint8_t(* uart_init) (void)

point to a uart_init function address

Definition at line 64 of file driver_gp2y1051au0f.h.

◆ uart_read

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

point to a uart_read function address

Definition at line 66 of file driver_gp2y1051au0f.h.


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