sPyNNaker neural_modelling 7.1.1
Loading...
Searching...
No Matches
partner.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2017 The University of Manchester
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * https://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
21#ifndef _PARTNER_SELECTION_H_
22#define _PARTNER_SELECTION_H_
23
24#include <neuron/synapses.h>
25
26// MARS KISS 64 (RNG)
27#include <random.h>
28// Bit manipulation after RNG
29#include <stdfix-full-iso.h>
30
32
34#define INVALID_SELECTION ((spike_t) - 1)
35
40void partner_init(uint8_t **data);
41
46static inline void partner_spike_received(uint32_t time, spike_t spike);
47
58 uint32_t time, uint32_t *restrict population_id,
59 uint32_t *restrict sub_population_id,
60 uint32_t *restrict neuron_id, spike_t *restrict spike,
61 uint32_t *restrict m_pop_index);
62
63#endif // _PARTNER_H_
uint32_t spike_t
The type of a spike.
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.
Miscellaneous structures.
Operations on synapses.