19#ifndef _LAST_NEURON_SELECTION_IMPL_H_
20#define _LAST_NEURON_SELECTION_IMPL_H_
62 uint32_t time, uint32_t *restrict population_id,
63 uint32_t *restrict sub_population_id, uint32_t *restrict neuron_id,
64 spike_t *restrict spike, uint32_t *restrict m_pop_index) {
75 population_id, sub_population_id, m_pop_index);
uint32_t time
The current timer tick value.
static circular_buffer buffer
Buffer for quickly taking spikes received by a fast interrupt and queueing them for later processing ...
uint32_t last_spikes_buffer_size
Size of each sub-array within last_spikes_buffer.
uint32_t last_time
The time of the most recently-considered spike.
spike_t * last_spikes_buffer[2]
Spike accumulation buffers.
uint32_t n_spikes[2]
Spike buffer counters.
static void partner_spike_received(uint32_t time, spike_t spike)
Notifies the rule that a spike has been received.
static bool potential_presynaptic_partner(uint32_t time, uint32_t *restrict population_id, uint32_t *restrict sub_population_id, uint32_t *restrict neuron_id, spike_t *restrict spike, uint32_t *restrict m_pop_index)
Choose the potential (remote) synaptic partner.
uint32_t spike_t
The type of a spike.
Partner selection rule common API.
static uint32_t rand_int(uint32_t max, mars_kiss64_seed_t seed)
static bool sp_structs_find_by_spike(const pre_pop_info_table_t *pre_pop_info_table, spike_t spike, uint32_t *restrict neuron_id, uint32_t *restrict population_id, uint32_t *restrict sub_population_id, uint32_t *restrict m_pop_index)
unpack the spike into key and identifying information for the neuron; Identify pop,...
table of individual pre-synaptic information
parameters of the synaptic rewiring model
rewiring_data_t rewiring_data
the instantiation of the rewiring data
pre_pop_info_table_t pre_info
pre-population information table