#ifndef JETSON_UART_H
#define JETSON_UART_H

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

/* Initialize USART6 for Jetson communication (921600 baud) */
void jetson_uart_init(void);

/* Send data back to Jetson (telemetry, status) */
void jetson_uart_send(const uint8_t *data, uint16_t len);

/* Called from HAL_UART_RxCpltCallback — handles byte accumulation */
void jetson_uart_rx_callback(UART_HandleTypeDef *huart);

#endif /* JETSON_UART_H */
