|
3-phase PV router
|
The ROM search of onewire_search.h, on a simulated 1-Wire bus. More...

Go to the source code of this file.
Functions | |
| int | main () |
| void | setUp () |
| void | tearDown () |
| void | test_codes_differing_in_their_last_bit () |
| void | test_devices_unplugged_between_two_searches () |
| void | test_eight_devices () |
| void | test_four_devices_each_found_once () |
| void | test_no_device () |
| void | test_no_search_after_the_last_device () |
| void | test_one_device () |
| void | test_search_starts_over_after_a_reset_without_presence () |
| void | test_two_devices () |
The ROM search of onewire_search.h, on a simulated 1-Wire bus.
The simulated bus is wired-AND, as the real one: a device sends a 0 by pulling the line low, so the master reads 1 only if every device in the search sends 1. After each bit and its complement, the master writes the branch it takes: the devices with the other bit leave the search until the next reset.
Definition in file test_main.cpp.
| int main | ( | void | ) |
| void setUp | ( | void | ) |
Definition at line 141 of file test_main.cpp.
| void tearDown | ( | void | ) |
Definition at line 145 of file test_main.cpp.
| void test_codes_differing_in_their_last_bit | ( | ) |
| void test_devices_unplugged_between_two_searches | ( | ) |
| void test_eight_devices | ( | ) |
| void test_four_devices_each_found_once | ( | ) |
| void test_no_device | ( | ) |
| void test_no_search_after_the_last_device | ( | ) |
| void test_one_device | ( | ) |
| void test_search_starts_over_after_a_reset_without_presence | ( | ) |
| void test_two_devices | ( | ) |