36 const uint32_t trig_pin;
41 const uint32_t echo_pin;
53 inline bool send_trig () {
return send_trig(
true); }
63 static volatile unsigned long prev_echo_micros;
68 static const uint32_t MIN_UTS_QUERY_SEPARATION_MICROS;
77 bool send_trig (
bool wait_min_separation);
135 virtual bool begin ();
virtual bool begin()
Activates this ultrasonic sensor.
Definition Uts_gpio.cpp:55
bool actual_begin()
Activates this ultrasonic sensor.
Definition Uts_gpio.cpp:39
uint32_t get_echo_pin()
Gets the echo pin connected to this ultrasonic sensor.
Definition Uts_gpio.h:98
virtual void end()
Deactivates this ultrasonic sensor.
Definition Uts_gpio.cpp:63
uint8_t get_port()
Gets the port connected to this ultrasonic sensor.
Definition Uts_gpio.h:84
virtual uint16_t read_dist_mm()
Reads the distance between this ultrasonic sensor and the obstacle in front of it.
Definition Uts_gpio.cpp:93
Uts_gpio(const uint8_t init_port)
Creates a new Uts_gpio object.
Definition Uts_gpio.cpp:12
uint32_t get_trig_pin()
Gets the trigger pin connected to this ultrasonic sensor.
Definition Uts_gpio.h:91
void actual_end()
Deactivates this ultrasonic sensor.
Definition Uts_gpio.cpp:50
Ultrasonic Sensor Driver (TRIG-ECHO Input-Capture) for XRCU.
Definition Uts_tic.h:25
Uts_togglable()
Constructor for a togglable ultrasonic sensor driver.
Definition Uts_togglable.cpp:8