]>
git.ipfire.org Git - thirdparty/u-boot.git/blob - include/w1.h
1 /* SPDX-License-Identifier: GPL-2.0+
3 * Copyright (c) 2015 Free Electrons
4 * Copyright (c) 2015 NextThing Co
13 #define W1_FAMILY_DS24B33 0x23
14 #define W1_FAMILY_DS2431 0x2d
21 u8 (*read_byte
)(struct udevice
*dev
);
22 bool (*reset
)(struct udevice
*dev
);
23 u8 (*triplet
)(struct udevice
*dev
, bool bdir
);
24 void (*write_byte
)(struct udevice
*dev
, u8 byte
);
27 int w1_get_bus(int busnum
, struct udevice
**busp
);
28 u8
w1_get_device_family(struct udevice
*dev
);
30 int w1_read_buf(struct udevice
*dev
, u8
*buf
, unsigned int count
);
31 int w1_read_byte(struct udevice
*dev
);
32 int w1_reset_select(struct udevice
*dev
);
33 int w1_write_buf(struct udevice
*dev
, u8
*buf
, unsigned int count
);
34 int w1_write_byte(struct udevice
*dev
, u8 byte
);