13#include <HardwareTimer.h>
30 volatile unsigned long echo_rise_ticks;
35 volatile unsigned long echo_fall_ticks;
40 HardwareTimer *
volatile ic_timer;
45 volatile uint8_t ic_channel;
69 uint32_t get_ic_echo_pin ();
87 Uts_tic (
const uint8_t init_port);
Uts_gpio(const uint8_t init_port)
Creates a new Uts_gpio object.
Definition Uts_gpio.cpp:12
Ultrasonic Sensor Driver (TRIG-ECHO Input-Capture) for XRCU.
Definition Uts_tic.h:25
uint16_t read_dist_mm()
Reads the distance between this ultrasonic sensor and the obstacle in front of it.
Definition Uts_tic.cpp:188
friend void uts_tic_tim9_overflow_callback()
Friend for timer 9 OVerFlow callback.
Definition Uts_tic.cpp:282
Uts_tic(const uint8_t init_port)
Creates a new Uts_tic object.
Definition Uts_tic.cpp:84
friend void uts_tic_tim8_overflow_callback()
Friend for timer 8 OVerFlow callback.
Definition Uts_tic.cpp:258
~Uts_tic()
Destroys this object.
Definition Uts_tic.cpp:92
bool begin()
Activates this ultrasonic sensor.
Definition Uts_tic.cpp:96
void end()
Deactivates this ultrasonic sensor.
Definition Uts_tic.cpp:161