Skip to content

Commit

Permalink
Updated diagram for bpod start
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Mão de Ferro committed Jan 20, 2017
1 parent a8d1add commit 44e0dc4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
Binary file modified docs/source/_images/sd_bpod_start.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions pybpodapi/com/hardware_info_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ def __init__(self):
self.n_global_counters = None # type: int
self.n_conditions = None # type: int
self.n_inputs = None # type: int
self.inputs = None
self.inputs = None # type: list(str)
self.n_outputs = None # type: int
self.outputs = None
self.outputs = None # type: list(str)
self.sync_channel = None # type: int
self.sync_mode = None # type: int
20 changes: 10 additions & 10 deletions pybpodapi/com/message_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,34 +84,34 @@ def hardware_description(self, hardware_info):
logger.debug("Requesting hardware description (%s)...", SendMessageHeader.HARDWARE_DESCRIPTION)
self._arcom.write_char(SendMessageHeader.HARDWARE_DESCRIPTION)

hardware_info.max_states = self._arcom.read_uint16()
hardware_info.max_states = self._arcom.read_uint16() # type: int
logger.debug("Read max states: %s", hardware_info.max_states)

hardware_info.cycle_period = self._arcom.read_uint16()
hardware_info.cycle_period = self._arcom.read_uint16() # type: int
logger.debug("Read cycle period: %s", hardware_info.cycle_period)

hardware_info.n_events_per_serial_channel = self._arcom.read_uint8()
hardware_info.n_events_per_serial_channel = self._arcom.read_uint8() # type: int
logger.debug("Read number of events per serial channel: %s", hardware_info.n_events_per_serial_channel)

hardware_info.n_global_timers = self._arcom.read_uint8()
hardware_info.n_global_timers = self._arcom.read_uint8() # type: int
logger.debug("Read number of global timers: %s", hardware_info.n_global_timers)

hardware_info.n_global_counters = self._arcom.read_uint8()
hardware_info.n_global_counters = self._arcom.read_uint8() # type: int
logger.debug("Read number of global counters: %s", hardware_info.n_global_counters)

hardware_info.n_conditions = self._arcom.read_uint8()
hardware_info.n_conditions = self._arcom.read_uint8() # type: int
logger.debug("Read number of conditions: %s", hardware_info.n_conditions)

hardware_info.n_inputs = self._arcom.read_uint8()
hardware_info.n_inputs = self._arcom.read_uint8() # type: int
logger.debug("Read number of inputs: %s", hardware_info.n_inputs)

hardware_info.inputs = self._arcom.read_char_array(array_len=hardware_info.n_inputs)
hardware_info.inputs = self._arcom.read_char_array(array_len=hardware_info.n_inputs) # type: list(str)
logger.debug("Read inputs: %s", hardware_info.inputs)

hardware_info.n_outputs = self._arcom.read_uint8()
hardware_info.n_outputs = self._arcom.read_uint8() # type: int
logger.debug("Read number of outputs: %s", hardware_info.n_outputs)

hardware_info.outputs = self._arcom.read_char_array(array_len=hardware_info.n_outputs)
hardware_info.outputs = self._arcom.read_char_array(array_len=hardware_info.n_outputs) # type: list(str)
logger.debug("Read outputs: %s", hardware_info.outputs)

def enable_ports(self, inputs_enabled):
Expand Down

0 comments on commit 44e0dc4

Please sign in to comment.