---
name: "enum_w1_commands"
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/enum_w1_commands"
---

# enum\_w1\_commands(9)

commands available for master or slave operations

## NAME

enum\_w1\_commands - commands available for master or slave operations

## SYNOPSIS

```
enum w1_commands {
  W1_CMD_READ,
  W1_CMD_WRITE,
  W1_CMD_SEARCH,
  W1_CMD_ALARM_SEARCH,
  W1_CMD_TOUCH,
  W1_CMD_RESET,
  W1_CMD_SLAVE_ADD,
  W1_CMD_SLAVE_REMOVE,
  W1_CMD_LIST_SLAVES,
  W1_CMD_MAX
};
```

## CONSTANTS

W1\_CMD\_READ

read len bytes

W1\_CMD\_WRITE

write len bytes

W1\_CMD\_SEARCH

initiate a standard search, returns only the slave devices found during that search

W1\_CMD\_ALARM\_SEARCH

search for devices that are currently alarming

W1\_CMD\_TOUCH

Touches a series of bytes.

W1\_CMD\_RESET

sends a bus reset on the given master

W1\_CMD\_SLAVE\_ADD

adds a slave to the given master, 8 byte slave id at data\[0\]

W1\_CMD\_SLAVE\_REMOVE

removes a slave to the given master, 8 byte slave id at data\[0\]

W1\_CMD\_LIST\_SLAVES

list of slaves registered on this master

W1\_CMD\_MAX

number of available commands

## AUTHOR

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

Author.

## COPYRIGHT
