#pragma once

#include <stm32h7a3xxq.h>
#include <stm32h7xx_ll_dma.h>

#include "UARTConfig.hpp"

extern "C" void DMA1_Stream4_IRQHandler(void);		//TODO is this really the right way use extern?
extern "C" void DMA1_Stream5_IRQHandler(void);
extern "C" void USART2_IRQHandler(void);

namespace usart2
{
	void init();
	bool startXfer(uint8_t* command, uint32_t commandSize);
	bool isXferDone();
	std::string getRXBuffer();
}
;