From b25849c9b0a4d53cc07e639ee2d83a3c7b572bc3 Mon Sep 17 00:00:00 2001 From: Alexey Zholtikov Date: Fri, 31 May 2024 15:07:44 +0300 Subject: [PATCH] Added some comments --- zh_onewire.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zh_onewire.c b/zh_onewire.c index 38c182f..8ba8259 100644 --- a/zh_onewire.c +++ b/zh_onewire.c @@ -15,10 +15,10 @@ #define TIME_SLOT_DURATION 120 // Time slot. #define VALID_DATA_DURATION 15 // Valid data duration. -#define SKIP_ROM 0xCC -#define MATCH_ROM 0x55 -#define READ_ROM 0x33 -#define SEARCH_ROM 0xF0 +#define SKIP_ROM 0xCC // Skip ROM command to address all 1-Wire devices. +#define MATCH_ROM 0x55 // Match ROM command to address a specific 1-Wire device. +#define READ_ROM 0x33 // Read ROM command for read ROM on only one 1-Wire device. +#define SEARCH_ROM 0xF0 // Read ROM on all 1-Wire devices. #define pgm_read_byte(addr) (*(const uint8_t *)(addr)) /// \endcond