26#ifndef _SYNAPSE_TYPES_DELTA_IMPL_H_
27#define _SYNAPSE_TYPES_DELTA_IMPL_H_
34#define SYNAPSE_TYPE_BITS 1
37#define SYNAPSE_TYPE_COUNT 2
40#define NUM_EXCITATORY_RECEPTORS 1
42#define NUM_INHIBITORY_RECEPTORS 1
106 switch (synapse_type_index) {
108 parameters->
exc += input;
111 parameters->
inh += input;
123 excitatory_response[0] = parameters->
exc;
124 return &excitatory_response[0];
134 inhibitory_response[0] = parameters->
inh;
135 return &inhibitory_response[0];
145 switch (synapse_type_index) {
151 log_debug(
"did not recognise synapse type %i", synapse_type_index);
163 parameters->
exc, parameters->
inh);
void log_debug(const char *message,...)
Data type definitions for SpiNNaker Neuron-modelling.
REAL input_t
The type of an input.
static uint n_steps_per_timestep
The number of steps to run per timestep.
void io_printf(char *stream, char *format,...)
static stdp_params params
Configuration parameters.
API for synaptic behaviour types (see also src/neuron/input_types)
static const char * synapse_types_get_type_char(index_t synapse_type_index)
returns a human readable character for the type of synapse. examples would be X = excitatory types,...
static input_t * synapse_types_get_excitatory_input(input_t *excitatory_response, synapse_types_t *parameters)
extracts the excitatory input buffers from the buffers available for a given parameter set
static void synapse_types_add_neuron_input(index_t synapse_type_index, synapse_types_t *parameters, input_t input)
adds the inputs for a give timer period to a given neuron that is being simulated by this model
static void synapse_types_print_input(synapse_types_t *parameters)
prints the input for a neuron ID given the available inputs currently only executed when the models a...
static void synapse_types_print_parameters(synapse_types_t *parameters)
printer call
static void synapse_types_shape_input(synapse_types_t *parameters)
decays the stuff thats sitting in the input buffers as these have not yet been processed and applied ...
static input_t * synapse_types_get_inhibitory_input(input_t *inhibitory_response, synapse_types_t *parameters)
extracts the inhibitory input buffers from the buffers available for a given parameter set
synapse_delta_input_buffer_regions
The supported synapse type indices.
@ INHIBITORY
Inhibitory synaptic input.
@ EXCITATORY
Excitatory synaptic input.
alpha_state_t inh
Inhibitory synaptic input.
alpha_params_t exc
First excitatory synaptic input.
input_t inh
Inhibitory synaptic input.
alpha_state_t exc
Excitatory synaptic input.
input_t exc
Excitatory synaptic input.
Delta synapses support just a single excitatory and inhibitory input each.