sPyNNaker neural_modelling  development
synapse_structure.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 
27 #ifndef _SYNAPSE_STRUCTURE_H_
28 #define _SYNAPSE_STRUCTURE_H_
29 
31 
37  plastic_synapse_t synaptic_word, index_t synapse_type);
38 
43  update_state_t state);
44 
49  final_state_t final_state);
50 
55  final_state_t final_state);
56 
61 
65 static weight_t synapse_structure_get_weight(plastic_synapse_t synaptic_word);
66 
71 static void synapse_structure_decay_weight(update_state_t *state, uint32_t decay);
72 
77 
78 #endif // _SYNAPSE_STRUCTURE_H_
#define decay(x, d)
This is a type-generic decay "function".
Definition: decay.h:118
static plastic_synapse_t synapse_structure_get_final_synaptic_word(final_state_t final_state)
Get the final plastic synapse data from the final state.
static accum synapse_structure_get_update_weight(update_state_t state)
Get the current synaptic weight stored in the update state.
static void synapse_structure_decay_weight(update_state_t *state, uint32_t decay)
Decay the synaptic weight value stored by multiplication.
static plastic_synapse_t synapse_structure_create_synapse(weight_t weight)
Create the initial plastic synapse data.
static update_state_t synapse_structure_get_update_state(plastic_synapse_t synaptic_word, index_t synapse_type)
Get the update state from the synapse structure.
static weight_t synapse_structure_get_final_weight(final_state_t final_state)
Get the final weight from the final state.
static final_state_t synapse_structure_get_final_state(update_state_t state)
Get the final state from the update state.
static weight_t synapse_structure_get_weight(plastic_synapse_t synaptic_word)
Get the current synaptic weight from the plastic synapse data.
Plastic synapse contains normal 16-bit weight and an accumulator.
interface for different weight implementations for the weight half of a STDP rule.