/*
 * Copyright (c) 2026 Martin Javier Klöckner <mklockner@fi.uba.ar>
 *
 * See file `LICENSE` for full details
 */

#ifndef _DS18B20_H_
#define _DS18B20_H_

#ifdef __cplusplus
extern "C" {
#endif

extern bool b_ds18b20_dma_tx_done;
extern bool b_ds18b20_dma_rx_done;

void ds18b20_init(void);
void ds18b20_async_tick(void);
void ds18b20_async_read_temp(void);
bool ds18b20_async_temp_ready(void);
int16_t ds18b20_async_get_temp(void);

#ifdef __cplusplus
}
#endif

#endif /* _DS18B20_H_ */
