LibDriver HCSR04
Loading...
Searching...
No Matches
hcsr04_handle_s Struct Reference

hcsr04 handle structure definition More...

#include <driver_hcsr04.h>

Data Fields

uint8_t(* trig_init )(void)
uint8_t(* trig_deinit )(void)
uint8_t(* trig_write )(uint8_t value)
uint8_t(* echo_init )(void)
uint8_t(* echo_deinit )(void)
uint8_t(* echo_read )(uint8_t *value)
uint8_t(* timestamp_read )(hcsr04_time_t *time)
void(* delay_us )(uint32_t ms)
void(* delay_ms )(uint32_t ms)
void(* debug_print )(const char *const fmt,...)
uint8_t inited

Detailed Description

hcsr04 handle structure definition

Definition at line 80 of file driver_hcsr04.h.

Field Documentation

◆ debug_print

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

point to a debug_print function address

Definition at line 91 of file driver_hcsr04.h.

◆ delay_ms

void(* delay_ms) (uint32_t ms)

point to a delay_ms function address

Definition at line 90 of file driver_hcsr04.h.

◆ delay_us

void(* delay_us) (uint32_t ms)

point to a delay_us function address

Definition at line 89 of file driver_hcsr04.h.

◆ echo_deinit

uint8_t(* echo_deinit) (void)

point to an echo_deinit function address

Definition at line 86 of file driver_hcsr04.h.

◆ echo_init

uint8_t(* echo_init) (void)

point to an echo_init function address

Definition at line 85 of file driver_hcsr04.h.

◆ echo_read

uint8_t(* echo_read) (uint8_t *value)

point to an echo_read function address

Definition at line 87 of file driver_hcsr04.h.

◆ inited

uint8_t inited

inited flag

Definition at line 92 of file driver_hcsr04.h.

◆ timestamp_read

uint8_t(* timestamp_read) (hcsr04_time_t *time)

point to a timestamp_read function address

Definition at line 88 of file driver_hcsr04.h.

◆ trig_deinit

uint8_t(* trig_deinit) (void)

point to a trig_deinit function address

Definition at line 83 of file driver_hcsr04.h.

◆ trig_init

uint8_t(* trig_init) (void)

point to a trig_init function address

Definition at line 82 of file driver_hcsr04.h.

◆ trig_write

uint8_t(* trig_write) (uint8_t value)

point to a trig_write function address

Definition at line 84 of file driver_hcsr04.h.


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