Partner selection rule common API.
More...
Go to the source code of this file.
|
void | partner_init (uint8_t **data) |
| Initialise the partner selection rule.
|
|
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.
|
|
Partner selection rule common API.
Definition in file partner.h.
◆ INVALID_SELECTION
#define INVALID_SELECTION ((spike_t) - 1) |
value to be returned when there is no valid partner selection
Definition at line 34 of file partner.h.
◆ partner_init()
void partner_init |
( |
uint8_t ** |
data | ) |
|
Initialise the partner selection rule.
- Parameters
-
[in,out] | data | A variable holding the location in SDRAM to configure the rule from. Will be updated to point to the first location after the configuration data. |
Definition at line 28 of file last_neuron_selection_impl.c.
◆ partner_spike_received()
static void partner_spike_received |
( |
uint32_t |
time, |
|
|
spike_t |
spike |
|
) |
| |
|
inlinestatic |
Notifies the rule that a spike has been received.
- Parameters
-
[in] | time | The time that the spike was received at |
[in] | spike | The spike that was received (includes the sending neuron ID) |
◆ potential_presynaptic_partner()
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 |
|
) |
| |
|
inlinestatic |
Choose the potential (remote) synaptic partner.
- Parameters
-
[in] | time | The current time |
[out] | population_id | The ID of the other population |
[out] | sub_population_id | The ID of the subpopulation (corresponds to remote SpiNNaker core handling the population) |
[out] | neuron_id | The ID of the neuron within the subpopulation |
[out] | spike | The spike that made this a meaningful choice |
[out] | m_pop_index | The master population table index |
- Returns
- True if a choice was made