Files
yocto_rpi/sandbox_c/include/temperature.h
T
druppy ba41deb9ec
Build RPi image / build (push) Successful in 10s
Sandbox - ephemeral runner + shared cache / cargo (push) Successful in 1m27s
Sandbox - cmake + ccache on the pool / build (push) Successful in 10s
Add sandbox_c cmake project + ccache workflow for pool testing
2026-10-24 22:54:55 +02:00

13 lines
353 B
C

#ifndef TEMPSENSE_H
#define TEMPSENSE_H
#include <stddef.h>
typedef struct { char sensor[32]; double celsius; } Reading;
double to_fahrenheit(double celsius);
int parse_reading(const char *json, Reading *out); /* 0 on success */
int format_reading(const Reading *in, char *buf, size_t len);
double clamp_to_absolute_zero(double celsius);
#endif