firmware-nucleo/App/Inc/ds18b20.h (492B)
1 /* 2 * Copyright (c) 2026 Martin Javier Klöckner <mklockner@fi.uba.ar> 3 * 4 * See file `LICENSE` for full details 5 */ 6 7 #ifndef _DS18B20_H_ 8 #define _DS18B20_H_ 9 10 #ifdef __cplusplus 11 extern "C" { 12 #endif 13 14 extern bool b_ds18b20_dma_tx_done; 15 extern bool b_ds18b20_dma_rx_done; 16 17 void ds18b20_init(void); 18 void ds18b20_async_tick(void); 19 void ds18b20_async_read_temp(void); 20 bool ds18b20_async_temp_ready(void); 21 int16_t ds18b20_async_get_temp(void); 22 23 #ifdef __cplusplus 24 } 25 #endif 26 27 #endif /* _DS18B20_H_ */
