40 #define printf ::nanoprintf::tfp_printf 44 static void _putc(
void *p,
char c)
68 printf(
"GNSS not initialized");
81 printf(
"fix: %s\tt: %d\tlla: %d, %d, %d\tvel: %d, %d, %d\n",
fix_names[full.fixType].c_str(), full.iTOW, full.lat,
82 full.lon, full.height, full.velN, full.velE, full.velD);
void init(const uart_hardware_struct_t *conf, uint32_t baudrate_, uart_mode_t mode=MODE_8N1)
void init(GPIO_TypeDef *gpio_port, uint16_t pin)
virtual void put_byte(uint8_t ch)=0
const std::string fix_names[6]
const uart_hardware_struct_t uart_config[NUM_UART]
static void _putc(void *p, char c)
const NAV_PVT_t & read_full()
void check_connection_status()
void init_printf(void *putp, void(*putf)(void *, char))