Home
last modified time | relevance | path

Searched refs:relay_position (Results 1 – 6 of 6) sorted by relevance

/tools/test/connectivity/acts/framework/acts/controllers/relay_lib/
Dsain_smart_board.py114 def get_relay_status(self, relay_position): argument
118 return self.status_dict[relay_position]
120 def set(self, relay_position, value): argument
124 self._load_page(self._get_relay_url_code(relay_position, value))
125 self.status_dict[relay_position] = value
128 def _get_relay_url_code(relay_position, no_or_nc): argument
134 return '{:02d}'.format(relay_position * 2 + on_modifier)
Dsain_smart_8_channel_usb_relay_board.py68 def set(self, relay_position, value): argument
80 bb.port &= ~(self.address[relay_position])
82 bb.port |= self.address[relay_position]
83 self.status_dict[relay_position] = value
Drdl_relay_board.py23 def set(self, relay_position, value): argument
32 bb.port |= self.address[relay_position]
34 bb.port &= ~(self.address[relay_position])
35 self.status_dict[relay_position] = value
Dusb_relay_board_base.py86 def get_relay_status(self, relay_position): argument
96 self.status_dict[relay_position] = self._get_relay_state(
97 bb.port, relay_position)
98 return self.status_dict[relay_position]
100 def set(self, relay_position, value): argument
Drelay_board.py46 def set(self, relay_position, state): argument
/tools/test/connectivity/acts/framework/tests/
Dacts_relay_controller_test.py55 def get_relay_status(self, relay_position): argument
56 if relay_position not in self.relay_states:
57 self.relay_states[relay_position] = RelayState.NO
58 self.relay_previous_states[relay_position] = RelayState.NO
59 return self.relay_states[relay_position]
61 def set(self, relay_position, state): argument
62 self.relay_previous_states[relay_position] = self.get_relay_status(
63 relay_position)
64 self.relay_states[relay_position] = state
758 def press_button_success(self, relay_position): argument
[all …]