sPyNNaker neural_modelling  development
additional_input_none_impl.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 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 _ADDITIONAL_INPUT_TYPE_NONE_H_
20 #define _ADDITIONAL_INPUT_TYPE_NONE_H_
21 
22 #include "additional_input.h"
23 
26 
27 };
28 
30 struct additional_input_t {
31 };
32 
33 static inline void additional_input_initialise(
35  UNUSED uint32_t n_steps_per_timestep) {
36 }
37 
38 static inline void additional_input_save_state(UNUSED additional_input_t *state,
40 }
41 
50  UNUSED additional_input_t *additional_input,
51  UNUSED state_t membrane_voltage) {
52  return 0;
53 }
54 
55 #ifndef SOMETIMES_UNUSED
56 #define SOMETIMES_UNUSED __attribute__((unused))
57 #endif // !SOMETIMES_UNUSED
58 
59 SOMETIMES_UNUSED // Marked unused as only used sometimes
64 static inline void additional_input_has_spiked(
65  UNUSED additional_input_t *additional_input) {
66 }
67 
68 #endif // _ADDITIONAL_INPUT_TYPE_NONE_H_
API for additional inputs.
static void additional_input_initialise(additional_input_t *state, additional_input_params_t *params, uint32_t n_steps_per_timestep)
initialise the structure from the parameters
static void additional_input_save_state(additional_input_t *state, additional_input_params_t *params)
save parameters and state back to SDRAM for reading by host and recovery on restart
static input_t additional_input_get_input_value_as_current(additional_input_t *additional_input, state_t membrane_voltage)
Gets the value of current provided by the additional input this timestep.
static void additional_input_has_spiked(additional_input_t *additional_input)
Notifies the additional input type that the neuron has spiked.
The additional input is due to calcium ions.
The additional input is due to calcium ions.
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.