spynnaker.pyNN.protocols package¶
Submodules¶
spynnaker.pyNN.protocols.munich_io_ethernet_protocol module¶
spynnaker.pyNN.protocols.munich_io_spinnaker_link_protocol module¶
-
spynnaker.pyNN.protocols.munich_io_spinnaker_link_protocol.
GET_RETINA_PAYLOAD_VALUE
(payload)[source]¶
-
class
spynnaker.pyNN.protocols.munich_io_spinnaker_link_protocol.
MunichIoSpiNNakerLinkProtocol
(mode, instance_key=None, uart_id=0)[source]¶ Bases:
object
Provides Multicast commands for the Munich SpiNNaker-Link protocol
Parameters: - mode – The mode of operation of the protocol
- instance_key – The optional instance key to use
- uart_id – The ID of the UART when needed
-
class
MODES
[source]¶ Bases:
enum.Enum
types of modes supported by this protocol
-
BALL_BALANCER
= 3¶
-
FREE
= 5¶
-
MY_ORO_BOTICS
= 4¶
-
PUSH_BOT
= 1¶
-
RESET_TO_DEFAULT
= 0¶
-
SPOMNIBOT
= 2¶
-
-
add_payload_logic_to_current_output_key
¶
-
bias_values_key
¶
-
configure_master_key_key
¶
-
disable_retina_key
¶
-
enable_disable_motor_key
¶
-
generic_motor0_raw_output_leak_to_0_key
¶
-
generic_motor0_raw_output_permanent_key
¶
-
generic_motor1_raw_output_leak_to_0_key
¶
-
generic_motor1_raw_output_permanent_key
¶
-
generic_motor_total_period_key
¶
-
instance_key
¶ The key of this instance of the protocol
-
master_slave_key
¶
-
mode
¶
-
poll_individual_sensor_continuously_key
¶
-
poll_sensors_once_key
¶
-
protocol_instance
= 0¶
-
push_bot_laser_config_active_time_key
¶
-
push_bot_laser_config_total_period_key
¶
-
push_bot_laser_set_frequency_key
¶
-
push_bot_led_back_active_time_key
¶
-
push_bot_led_front_active_time_key
¶
-
push_bot_led_set_frequency_key
¶
-
push_bot_led_total_period_key
¶
-
push_bot_motor_0_leaking_towards_zero_key
¶
-
push_bot_motor_0_permanent_key
¶
-
push_bot_motor_1_leaking_towards_zero_key
¶
-
push_bot_motor_1_permanent_key
¶
-
push_bot_speaker_config_active_time_key
¶
-
push_bot_speaker_config_total_period_key
¶
-
push_bot_speaker_set_melody_key
¶
-
push_bot_speaker_set_tone_key
¶
-
pwm_pin_output_timer_a_channel_0_ratio_key
¶
-
pwm_pin_output_timer_a_channel_1_ratio_key
¶
-
pwm_pin_output_timer_a_duration_key
¶
-
pwm_pin_output_timer_b_channel_1_ratio_key
¶
-
pwm_pin_output_timer_b_duration_key
¶
-
pwm_pin_output_timer_c_channel_0_ratio_key
¶
-
pwm_pin_output_timer_c_duration_key
¶
-
query_state_of_io_lines_key
¶
-
remove_payload_logic_to_current_output_key
¶
-
reset_retina_key
¶
-
static
sent_mode_command
()[source]¶ True if the mode command has ever been requested by any instance
-
set_mode_key
¶
-
set_output_pattern_for_payload_key
¶
-
set_payload_pins_to_high_impedance_key
¶
-
set_retina_key_key
¶
-
set_retina_transmission
(retina_key=<RetinaKey.NATIVE_128_X_128: 67108864>, retina_payload=None, time=None)[source]¶ Set the retina transmission key
Parameters: - retina_key – the new key for the retina
- retina_payload (enum or None) – the new payload for the set retina key command packet
- time – when to transmit this packet
Returns: the command to send
Return type: spinn_front_end_common.utility_models.multi_cast_command.MultiCastCommand
-
set_retina_transmission_key
¶
-
turn_off_sensor_reporting_key
¶
-
uart_id
¶
-
class
spynnaker.pyNN.protocols.munich_io_spinnaker_link_protocol.
RetinaKey
(value, pixels, bits_per_coordinate)[source]¶ Bases:
enum.Enum
An enumeration.
-
DOWNSAMPLE_16_X_16
= 268435456¶
-
DOWNSAMPLE_32_X_32
= 201326592¶
-
DOWNSAMPLE_64_X_64
= 134217728¶
-
FIXED_KEY
= 0¶
-
NATIVE_128_X_128
= 67108864¶
-
bits_per_coordinate
¶
-
n_neurons
¶
-
pixels
¶
-
-
class
spynnaker.pyNN.protocols.munich_io_spinnaker_link_protocol.
RetinaPayload
(value, n_payload_bytes)[source]¶ Bases:
enum.Enum
An enumeration.
-
ABSOLUTE_2_BYTE_TIMESTAMPS
= 1073741824¶
-
ABSOLUTE_3_BYTE_TIMESTAMPS
= 1610612736¶
-
ABSOLUTE_4_BYTE_TIMESTAMPS
= 2147483648¶
-
DELTA_TIMESTAMPS
= 536870912¶
-
EVENTS_IN_PAYLOAD
= 0¶
-
NO_PAYLOAD
= 0¶
-
n_payload_bytes
¶
-
Module contents¶
-
class
spynnaker.pyNN.protocols.
MunichIoSpiNNakerLinkProtocol
(mode, instance_key=None, uart_id=0)[source]¶ Bases:
object
Provides Multicast commands for the Munich SpiNNaker-Link protocol
Parameters: - mode – The mode of operation of the protocol
- instance_key – The optional instance key to use
- uart_id – The ID of the UART when needed
-
class
MODES
[source]¶ Bases:
enum.Enum
types of modes supported by this protocol
-
BALL_BALANCER
= 3¶
-
FREE
= 5¶
-
MY_ORO_BOTICS
= 4¶
-
PUSH_BOT
= 1¶
-
RESET_TO_DEFAULT
= 0¶
-
SPOMNIBOT
= 2¶
-
-
add_payload_logic_to_current_output_key
¶
-
bias_values_key
¶
-
configure_master_key_key
¶
-
disable_retina_key
¶
-
enable_disable_motor_key
¶
-
generic_motor0_raw_output_leak_to_0_key
¶
-
generic_motor0_raw_output_permanent_key
¶
-
generic_motor1_raw_output_leak_to_0_key
¶
-
generic_motor1_raw_output_permanent_key
¶
-
generic_motor_total_period_key
¶
-
instance_key
¶ The key of this instance of the protocol
-
master_slave_key
¶
-
mode
¶
-
poll_individual_sensor_continuously_key
¶
-
poll_sensors_once_key
¶
-
protocol_instance
= 0¶
-
push_bot_laser_config_active_time_key
¶
-
push_bot_laser_config_total_period_key
¶
-
push_bot_laser_set_frequency_key
¶
-
push_bot_led_back_active_time_key
¶
-
push_bot_led_front_active_time_key
¶
-
push_bot_led_set_frequency_key
¶
-
push_bot_led_total_period_key
¶
-
push_bot_motor_0_leaking_towards_zero_key
¶
-
push_bot_motor_0_permanent_key
¶
-
push_bot_motor_1_leaking_towards_zero_key
¶
-
push_bot_motor_1_permanent_key
¶
-
push_bot_speaker_config_active_time_key
¶
-
push_bot_speaker_config_total_period_key
¶
-
push_bot_speaker_set_melody_key
¶
-
push_bot_speaker_set_tone_key
¶
-
pwm_pin_output_timer_a_channel_0_ratio_key
¶
-
pwm_pin_output_timer_a_channel_1_ratio_key
¶
-
pwm_pin_output_timer_a_duration_key
¶
-
pwm_pin_output_timer_b_channel_1_ratio_key
¶
-
pwm_pin_output_timer_b_duration_key
¶
-
pwm_pin_output_timer_c_channel_0_ratio_key
¶
-
pwm_pin_output_timer_c_duration_key
¶
-
query_state_of_io_lines_key
¶
-
remove_payload_logic_to_current_output_key
¶
-
reset_retina_key
¶
-
static
sent_mode_command
()[source]¶ True if the mode command has ever been requested by any instance
-
set_mode_key
¶
-
set_output_pattern_for_payload_key
¶
-
set_payload_pins_to_high_impedance_key
¶
-
set_retina_key_key
¶
-
set_retina_transmission
(retina_key=<RetinaKey.NATIVE_128_X_128: 67108864>, retina_payload=None, time=None)[source]¶ Set the retina transmission key
Parameters: - retina_key – the new key for the retina
- retina_payload (enum or None) – the new payload for the set retina key command packet
- time – when to transmit this packet
Returns: the command to send
Return type: spinn_front_end_common.utility_models.multi_cast_command.MultiCastCommand
-
set_retina_transmission_key
¶
-
turn_off_sensor_reporting_key
¶
-
uart_id
¶
-
class
spynnaker.pyNN.protocols.
RetinaKey
(value, pixels, bits_per_coordinate)[source]¶ Bases:
enum.Enum
An enumeration.
-
DOWNSAMPLE_16_X_16
= 268435456¶
-
DOWNSAMPLE_32_X_32
= 201326592¶
-
DOWNSAMPLE_64_X_64
= 134217728¶
-
FIXED_KEY
= 0¶
-
NATIVE_128_X_128
= 67108864¶
-
bits_per_coordinate
¶
-
n_neurons
¶
-
pixels
¶
-
-
class
spynnaker.pyNN.protocols.
RetinaPayload
(value, n_payload_bytes)[source]¶ Bases:
enum.Enum
An enumeration.
-
ABSOLUTE_2_BYTE_TIMESTAMPS
= 1073741824¶
-
ABSOLUTE_3_BYTE_TIMESTAMPS
= 1610612736¶
-
ABSOLUTE_4_BYTE_TIMESTAMPS
= 2147483648¶
-
DELTA_TIMESTAMPS
= 536870912¶
-
EVENTS_IN_PAYLOAD
= 0¶
-
NO_PAYLOAD
= 0¶
-
n_payload_bytes
¶
-