thermferm/devices.h@48cc8868f9f4
thermferm/devices.h
Sun, 07 Apr 2024 20:26:37 +0200
- author
- Michiel Broek <mbroek@mbse.eu>
- date
- Sun, 07 Apr 2024 20:26:37 +0200
- changeset 666
- 48cc8868f9f4
- parent 654
-
e981d0185485
- child 684
-
b2265c7e5707
- permissions
- -rw-r--r--
Added commandline switch --foreground, the --debug now only activates extra debug logging. No more console output. The thermferm process uses a state table, this makes the code more readable and have less large functions.
#ifndef MY_DEVICES_H
#define MY_DEVICES_H
int read_w1(char *address, char *file);
int write_w1(char *address, char *file, uint8_t val);
int device_out(char *uuid, int value);
int device_in(char *uuid, int *value);
int devices_detect(void);
void *my_devices_loop(void *);
#endif