thermferm/devices.h

Tue, 02 Apr 2024 15:03:12 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Tue, 02 Apr 2024 15:03:12 +0200
changeset 654
e981d0185485
parent 648
62c5ed1b9cfd
child 684
b2265c7e5707
permissions
-rw-r--r--

Added one-wire thread and some old state table macro's. The state machine first state scans new one-wire devices and stores them in a linked list.

#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

mercurial