Proyecto Final – Medición de Inclinación 0.0.1
Este proyecto utiliza la placa NUCLEO-STM32F446RE y permite detectar y visualizar en tiempo real la inclinación mediante el sensor MPU-6050.
|
This file contains all the function prototypes for the usart.c file. Más...
#include "stm32f4xx_hal.h"
#include <stdbool.h>
#include <string.h>
#include <stdio.h>
Ir al código fuente de este archivo.
defines | |
#define | UART_TIMEOUT_MS 2000 |
#define | UART_TX_MAX_SIZE 512 |
Funciones | |
bool | uartInit () |
Inicializa la UART. | |
bool | uartDeInit () |
Desinicializa la UART. | |
void | uartSendString (uint8_t *pstring) |
Envía una cadena de bytes por UART finalizada en '\0'. | |
void | uartSendStringSize (uint8_t *pstring, uint16_t size) |
Envía una cantidad específica de bytes por UART. | |
void | uartReceiveStringSize (uint8_t *pstring, uint16_t size) |
Recibe una cantidad de bytes por UART. |
This file contains all the function prototypes for the usart.c file.
Copyright (c) 2025 STMicroelectronics. All rights reserved.
This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
bool uartDeInit | ( | ) |
Desinicializa la UART.
bool uartInit | ( | ) |
Inicializa la UART.
void uartReceiveStringSize | ( | uint8_t * | pstring, |
uint16_t | size ) |
Recibe una cantidad de bytes por UART.
pstring | Puntero al buffer donde se guardarán los datos. |
size | Cantidad de bytes a recibir. |
void uartSendString | ( | uint8_t * | pstring | ) |
Envía una cadena de bytes por UART finalizada en '\0'.
pstring | Puntero a la cadena a enviar. |
void uartSendStringSize | ( | uint8_t * | pstring, |
uint16_t | size ) |
Envía una cantidad específica de bytes por UART.
pstring | Puntero al buffer de datos. |
size | Cantidad de bytes a enviar. |