---
name: "w1_triplet"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/w1_triplet"
---

# w1\_triplet(9)

\* Does a triplet - used for searching ROM addresses.

## NAME

w1\_triplet - \* Does a triplet - used for searching ROM addresses.

## SYNOPSIS

**u8 w1\_triplet(struct w1\_master \*** *dev***, int** *bdir***);**

## ARGUMENTS

*dev*

the master device

*bdir*

the bit to write if both id\_bit and comp\_bit are 0

## DESCRIPTION

Return bits: bit 0 = id\_bit bit 1 = comp\_bit bit 2 = dir\_taken If both bits 0 & 1 are set, the search should be restarted.

## RETURN

bit fields - see above

## AUTHOR

**David Fries** \<David@Fries.net\>

Author.

## COPYRIGHT
