spynnaker.pyNN.protocols package¶
Module contents¶
- class spynnaker.pyNN.protocols.MUNICH_MODES(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)¶
Bases:
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¶
- class spynnaker.pyNN.protocols.MunichIoEthernetProtocol¶
Bases:
object
Implementation of the Munich robot IO protocol, communicating over Ethernet.
- class spynnaker.pyNN.protocols.MunichIoSpiNNakerLinkProtocol(mode, instance_key=None, uart_id=0)¶
Bases:
object
Provides Multicast commands for the Munich SpiNNaker-Link protocol.
- Parameters:
mode (MUNICH_MODES) – The mode of operation of the protocol
instance_key (int or None) – The optional instance key to use
uart_id (int) – The ID of the UART when needed
- property add_payload_logic_to_current_output_key¶
- property bias_values_key¶
- property configure_master_key_key¶
- property disable_retina_key¶
- property enable_disable_motor_key¶
- property generic_motor0_raw_output_leak_to_0_key¶
- property generic_motor0_raw_output_permanent_key¶
- property generic_motor1_raw_output_leak_to_0_key¶
- property generic_motor1_raw_output_permanent_key¶
- property generic_motor_total_period_key¶
- property master_slave_key¶
- property mode¶
- Return type:
- property poll_individual_sensor_continuously_key¶
- property poll_sensors_once_key¶
- protocol_instance = 0¶
- property push_bot_laser_config_active_time_key¶
- property push_bot_laser_config_total_period_key¶
- property push_bot_laser_set_frequency_key¶
- property push_bot_led_back_active_time_key¶
- property push_bot_led_front_active_time_key¶
- property push_bot_led_set_frequency_key¶
- property push_bot_led_total_period_key¶
- property push_bot_motor_0_leaking_towards_zero_key¶
- property push_bot_motor_0_permanent_key¶
- property push_bot_motor_1_leaking_towards_zero_key¶
- property push_bot_motor_1_permanent_key¶
- property push_bot_speaker_config_active_time_key¶
- property push_bot_speaker_config_total_period_key¶
- property push_bot_speaker_set_melody_key¶
- property push_bot_speaker_set_tone_key¶
- property pwm_pin_output_timer_a_channel_0_ratio_key¶
- property pwm_pin_output_timer_a_channel_1_ratio_key¶
- property pwm_pin_output_timer_a_duration_key¶
- property pwm_pin_output_timer_b_channel_0_ratio_key¶
- property pwm_pin_output_timer_b_channel_1_ratio_key¶
- property pwm_pin_output_timer_b_duration_key¶
- property pwm_pin_output_timer_c_channel_0_ratio_key¶
- property pwm_pin_output_timer_c_channel_1_ratio_key¶
- property pwm_pin_output_timer_c_duration_key¶
- property query_state_of_io_lines_key¶
- property remove_payload_logic_to_current_output_key¶
- property reset_retina_key¶
- static sent_mode_command()[source]¶
True if the mode command has ever been requested by any instance.
- property set_mode_key¶
- property set_output_pattern_for_payload_key¶
- property set_payload_pins_to_high_impedance_key¶
- property set_retina_key_key¶
- set_retina_transmission(retina_key=RetinaKey.NATIVE_128_X_128, retina_payload=None, time=None)[source]¶
Set the retina transmission key.
- Parameters:
retina_key (RetinaKey) – the new key for the retina
retina_payload (RetinaPayload or None) – the new payload for the set retina key command packet
- Returns:
the command to send
- Return type:
- property set_retina_transmission_key¶
- property turn_off_sensor_reporting_key¶
- class spynnaker.pyNN.protocols.RetinaKey(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)¶
Bases:
Enum
- DOWNSAMPLE_16_X_16 = 268435456¶
- DOWNSAMPLE_32_X_32 = 201326592¶
- DOWNSAMPLE_64_X_64 = 134217728¶
- FIXED_KEY = 0¶
- NATIVE_128_X_128 = 67108864¶
- property bits_per_coordinate¶
- property n_neurons¶
- property pixels¶
- class spynnaker.pyNN.protocols.RetinaPayload(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)¶
Bases:
Enum
- 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¶
- property n_payload_bytes¶