sPyNNaker neural_modelling 7.3.1
Loading...
Searching...
No Matches
input_type_none.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
19#ifndef _INPUT_TYPE_NONE_H_
20#define _INPUT_TYPE_NONE_H_
21
22#ifndef NUM_EXCITATORY_RECEPTORS
24#define NUM_EXCITATORY_RECEPTORS 0
25#endif
26#ifndef NUM_INHIBITORY_RECEPTORS
28#define NUM_INHIBITORY_RECEPTORS 0
29#endif
30
31#include "input_type.h"
32
34};
35
36struct input_type_t {
37};
38
39static inline void input_type_initialise(UNUSED input_type_t *state,
40 UNUSED input_type_params_t *params, UNUSED uint32_t n_steps_per_timestep) {
41}
42
43static inline void input_type_save_state(UNUSED input_type_t *state,
45}
46
57 UNUSED input_t *restrict value, UNUSED input_type_t *input_type,
58 UNUSED uint16_t num_receptors) {
59 return 0;
60}
61
70 UNUSED input_t *restrict exc_input,
71 UNUSED const input_type_t *input_type,
72 UNUSED state_t membrane_voltage) {
73}
74
83 UNUSED input_t *restrict inh_input,
84 UNUSED const input_type_t *input_type,
85 UNUSED state_t membrane_voltage) {
86}
87
88#endif // _INPUT_TYPE_NONE_H_
API for synaptic inputs (see also src/neuron/synapse_types)
static void input_type_convert_inhibitory_input_to_current(input_t *restrict inh_input, const input_type_t *input_type, state_t membrane_voltage)
Converts an inhibitory input into an inhibitory current.
static input_t * input_type_get_input_value(input_t *restrict value, input_type_t *input_type, uint16_t num_receptors)
Gets the actual input value. This allows any scaling to take place.
static void input_type_convert_excitatory_input_to_current(input_t *restrict exc_input, const input_type_t *input_type, state_t membrane_voltage)
Converts an excitatory input into an excitatory current.
Conductance input parameters.
Conductance state.
REAL state_t
The type of a state variable.
REAL input_t
The type of an input.
static uint n_steps_per_timestep
The number of steps to run per timestep.
static stdp_params params
Configuration parameters.