Urbanite: Parking aid system
stm32f4_ultrasound.h File Reference

Header for stm32f4_ultrasound.c file. More...

#include <stdint.h>
#include "stm32f4xx.h"

Macros

#define STM32F4_REAR_PARKING_SENSOR_TRIGGER_GPIO
 
#define STM32F4_REAR_PARKING_SENSOR_TRIGGER_PIN
 
#define STM32F4_REAR_PARKING_SENSOR_ECHO_GPIO
 
#define STM32F4_REAR_PARKING_SENSOR_ECHO_PIN
 

Functions

void stm32f4_ultrasound_set_new_trigger_gpio (uint32_t ultrasound_id, GPIO_TypeDef *p_port, uint8_t pin)
 Auxiliary function to change the GPIO and pin of the trigger pin of an ultrasound transceiver. This function is used for testing purposes mainly although it can be used in the final implementation if needed. More...
 
void stm32f4_ultrasound_set_new_echo_gpio (uint32_t ultrasound_id, GPIO_TypeDef *p_port, uint8_t pin)
 Auxiliary function to change the GPIO and pin of the echo pin of an ultrasound transceiver. This function is used for testing purposes mainly although it can be used in the final implementation if needed. More...
 

Detailed Description

Header for stm32f4_ultrasound.c file.

Author
Sistemas Digitales II
Date
2025-01-01

Macro Definition Documentation

◆ STM32F4_REAR_PARKING_SENSOR_ECHO_GPIO

#define STM32F4_REAR_PARKING_SENSOR_ECHO_GPIO

Ultrasound echo signal GPIO port

◆ STM32F4_REAR_PARKING_SENSOR_ECHO_PIN

#define STM32F4_REAR_PARKING_SENSOR_ECHO_PIN

Ultrasound echo signal GPIO pin

◆ STM32F4_REAR_PARKING_SENSOR_TRIGGER_GPIO

#define STM32F4_REAR_PARKING_SENSOR_TRIGGER_GPIO

Ultrasound trigger signal GPIO port

◆ STM32F4_REAR_PARKING_SENSOR_TRIGGER_PIN

#define STM32F4_REAR_PARKING_SENSOR_TRIGGER_PIN

Ultrasound trigger signal GPIO pin

Function Documentation

◆ stm32f4_ultrasound_set_new_echo_gpio()

void stm32f4_ultrasound_set_new_echo_gpio ( uint32_t  ultrasound_id,
GPIO_TypeDef *  p_port,
uint8_t  pin 
)

Auxiliary function to change the GPIO and pin of the echo pin of an ultrasound transceiver. This function is used for testing purposes mainly although it can be used in the final implementation if needed.

Parameters
ultrasound_idID of the echo signal to change.
p_portNew GPIO port for the echo signal.
pinNew GPIO pin for the echo signal.

◆ stm32f4_ultrasound_set_new_trigger_gpio()

void stm32f4_ultrasound_set_new_trigger_gpio ( uint32_t  ultrasound_id,
GPIO_TypeDef *  p_port,
uint8_t  pin 
)

Auxiliary function to change the GPIO and pin of the trigger pin of an ultrasound transceiver. This function is used for testing purposes mainly although it can be used in the final implementation if needed.

Parameters
ultrasound_idID of the trigger signal to change.
p_portNew GPIO port for the trigger signal.
pinNew GPIO pin for the trigger signal.