Searched refs:relay_position (Results 1 – 5 of 5) sorted by relevance
/tools/test/connectivity/acts/framework/acts/controllers/relay_lib/ |
D | sain_smart_board.py | 114 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)
|
D | sain_smart_8_channel_usb_relay_board.py | 68 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
|
D | rdl_relay_board.py | 23 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
|
D | usb_relay_board_base.py | 86 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
|
/tools/test/connectivity/acts/framework/tests/ |
D | acts_relay_controller_test.py | 46 def get_relay_status(self, relay_position): argument 47 if relay_position not in self.relay_states: 48 self.relay_states[relay_position] = RelayState.NO 49 self.relay_previous_states[relay_position] = RelayState.NO 50 return self.relay_states[relay_position] 52 def set(self, relay_position, state): argument 53 self.relay_previous_states[relay_position] = self.get_relay_status( 54 relay_position) 55 self.relay_states[relay_position] = state 755 def press_button_success(self, relay_position): argument [all …]
|