Urbanite: Parking aid system
stm32f4_ultrasound_hw_t Struct Reference

Structure to define the HW dependencies of aN ultrasound sensor. More...

Data Fields

GPIO_TypeDef * p_trigger_port
 
GPIO_TypeDef * p_echo_port
 
uint8_t trigger_pin
 
uint8_t echo_pin
 
uint8_t echo_alt_fun
 
bool trigger_ready
 
bool trigger_end
 
bool echo_received
 
uint32_t echo_init_tick
 
uint32_t echo_end_tick
 
uint32_t echo_overflows
 

Detailed Description

Structure to define the HW dependencies of aN ultrasound sensor.

Field Documentation

◆ echo_alt_fun

uint8_t stm32f4_ultrasound_hw_t::echo_alt_fun

Alternate function for the echo signal

◆ echo_end_tick

uint32_t stm32f4_ultrasound_hw_t::echo_end_tick

Tick time when the echo signal was received

◆ echo_init_tick

uint32_t stm32f4_ultrasound_hw_t::echo_init_tick

Tick time when the echo signal was received

◆ echo_overflows

uint32_t stm32f4_ultrasound_hw_t::echo_overflows

Number of overflows of the timer during the echo signal

◆ echo_pin

uint8_t stm32f4_ultrasound_hw_t::echo_pin

Pin/line where the echo signal is connected

◆ echo_received

bool stm32f4_ultrasound_hw_t::echo_received

Flag to indicate that the echo signal has been received

◆ p_echo_port

GPIO_TypeDef* stm32f4_ultrasound_hw_t::p_echo_port

GPIO where the echo signal is connected

◆ p_trigger_port

GPIO_TypeDef* stm32f4_ultrasound_hw_t::p_trigger_port

GPIO where the trigger signal is connected

◆ trigger_end

bool stm32f4_ultrasound_hw_t::trigger_end

Flag to indicate that the trigger signal has been sent

◆ trigger_pin

uint8_t stm32f4_ultrasound_hw_t::trigger_pin

Pin/line where the trigger signal is connected

◆ trigger_ready

bool stm32f4_ultrasound_hw_t::trigger_ready

Flag to indicate that a new measurement can be started


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