MCPcopy Create free account
hub / github.com/DanielOgorchock/ST_Anything / target_search

Method target_search

Arduino/libraries/OneWire/OneWire.cpp:340–349  ·  view source on GitHub ↗

Setup the search to find the device type 'family_code' on the next call to search(*newAddr) if it is present.

Source from the content-addressed store, hash-verified

338// to search(*newAddr) if it is present.
339//
340void OneWire::target_search(uint8_t family_code)
341{
342 // set the search state to find SearchFamily type devices
343 ROM_NO[0] = family_code;
344 for (uint8_t i = 1; i < 8; i++)
345 ROM_NO[i] = 0;
346 LastDiscrepancy = 64;
347 LastFamilyDiscrepancy = 0;
348 LastDeviceFlag = FALSE;
349}
350
351//
352// Perform a search. If this function returns a '1' then it has

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected