components/esp32-owb/include/owb_rmt_bus_timings.h

Tue, 26 Sep 2023 14:57:18 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Tue, 26 Sep 2023 14:57:18 +0200
changeset 72
acc1904cd70d
permissions
-rw-r--r--

Migrated to isp-idf v5.1

72
acc1904cd70d Migrated to isp-idf v5.1
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
1 // onewire bus master timings
acc1904cd70d Migrated to isp-idf v5.1
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
2
acc1904cd70d Migrated to isp-idf v5.1
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
3 // standard rate master timings recommended in the 1-Wire specification
acc1904cd70d Migrated to isp-idf v5.1
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
4 // the values below are the ones recommended by the specification.
acc1904cd70d Migrated to isp-idf v5.1
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
5
acc1904cd70d Migrated to isp-idf v5.1
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
6 // for the meaning of each parameter, see the following document:
acc1904cd70d Migrated to isp-idf v5.1
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
7 // https://www.analog.com/en/technical-articles/1wire-communication-through-software.html
acc1904cd70d Migrated to isp-idf v5.1
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
8
acc1904cd70d Migrated to isp-idf v5.1
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
9 // all values in microsec
acc1904cd70d Migrated to isp-idf v5.1
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
10 #define OWB_TIMING_PARAM_A 6
acc1904cd70d Migrated to isp-idf v5.1
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
11 #define OWB_TIMING_PARAM_B 64
acc1904cd70d Migrated to isp-idf v5.1
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
12 #define OWB_TIMING_PARAM_C 60
acc1904cd70d Migrated to isp-idf v5.1
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
13 #define OWB_TIMING_PARAM_D 10
acc1904cd70d Migrated to isp-idf v5.1
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
14 #define OWB_TIMING_PARAM_E 9
acc1904cd70d Migrated to isp-idf v5.1
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
15 #define OWB_TIMING_PARAM_F 55
acc1904cd70d Migrated to isp-idf v5.1
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
16 #define OWB_TIMING_PARAM_G 0
acc1904cd70d Migrated to isp-idf v5.1
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
17 #define OWB_TIMING_PARAM_H 480
acc1904cd70d Migrated to isp-idf v5.1
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
18 #define OWB_TIMING_PARAM_I 70
acc1904cd70d Migrated to isp-idf v5.1
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
19 #define OWB_TIMING_PARAM_J 410
acc1904cd70d Migrated to isp-idf v5.1
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
20

mercurial