32 Serial.print(F(
"read_rom:"));
38 Serial.print(F(
"skip_rom:res="));
44 Serial.print(F(
"match_rom:res="));
51 memset(ROM, 0,
sizeof(ROM));
54 if (last == owi.
ERROR)
break;
58 Serial.print(F(
"search_rom["));
62 Serial.print(F(
":label_rom:label="));
65 }
while (last != owi.
LAST);
70 memset(ROM, 0,
sizeof(ROM));
73 if (last == owi.
ERROR)
break;
76 Serial.print(F(
"alarm_search["));
80 Serial.print(F(
":read_label:label="));
82 }
while (last != owi.
LAST);
87 Serial.print(F(
"match_label:res="));
98 if (rom[0] < 0x10)
Serial.print(
'0');
102 if (rom[i] < 0x10)
Serial.print(
'0');
103 Serial.print(rom[i], HEX);
104 if (i < OWI::ROM_MAX - 2)
Serial.print(
',');
107 uint8_t crc = rom[OWI::ROM_MAX - 1];
108 if (crc < 0x10)
Serial.print(
'0');
virtual uint8_t read(uint8_t bits=CHARBITS)
int8_t alarm_search(uint8_t *code, int8_t last=FIRST)
bool match_label(uint8_t label)
virtual void write(uint8_t value, uint8_t bits=CHARBITS)
int8_t search_rom(uint8_t family, uint8_t *code, int8_t last=FIRST)
Software::Serial< BOARD::D0 > Serial
Software::OWI< BOARD::D7 > owi
bool read_rom(uint8_t *code)
Last position, search completed.
bool match_rom(uint8_t *code)
Start position of search.
static const size_t ROM_MAX