thermferm/devices.h

Wed, 03 Apr 2024 12:14:45 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Wed, 03 Apr 2024 12:14:45 +0200
changeset 656
ca47c742a25d
parent 654
e981d0185485
child 684
b2265c7e5707
permissions
-rw-r--r--

One-wire thread is now the first to start. The devices_detect() function now uses the detected one-wire linked list instead of scan the sysfs. Base code for ds2413 added in the state table, needs rework.

#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