Setup the search to find the device type 'family_code' on the next call to search(*newAddr) if it is present.
| 338 | // to search(*newAddr) if it is present. |
| 339 | // |
| 340 | void 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 |
nothing calls this directly
no outgoing calls
no test coverage detected