sPyNNaker neural_modelling  development
Typedefs | Functions
synapse_structure_weight_impl.h File Reference

Synapses just hold weight. More...

#include "synapse_structure.h"

Go to the source code of this file.

Typedefs

typedef weight_t plastic_synapse_t
 Plastic synapse types are just weights;.
 
typedef weight_state_t update_state_t
 The update state is purely a weight state.
 
typedef weight_t final_state_t
 Both the weight and the synaptic word.
 

Functions

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. More...
 
static final_state_t synapse_structure_get_final_state (update_state_t state)
 Get the final state from the update state. More...
 
static weight_t synapse_structure_get_final_weight (final_state_t final_state)
 Get the final weight from the final state. More...
 
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. More...
 
static plastic_synapse_t synapse_structure_create_synapse (weight_t weight)
 Create the initial plastic synapse data. More...
 
static weight_t synapse_structure_get_weight (plastic_synapse_t synaptic_word)
 Get the current synaptic weight from the plastic synapse data. More...
 
static void synapse_structure_decay_weight (update_state_t *state, uint32_t decay)
 
static accum synapse_structure_get_update_weight (update_state_t state)
 

Detailed Description

Synapses just hold weight.

Definition in file synapse_structure_weight_impl.h.

Function Documentation

◆ synapse_structure_get_update_state()

static update_state_t synapse_structure_get_update_state ( plastic_synapse_t  synaptic_word,
index_t  synapse_type 
)
inlinestatic

Get the update state from the synapse structure.

Parameters
[in]synaptic_wordThe plastic synapse data
[in]synapse_typeWhat (supported) type of synapse is this?
Returns
The update state

Definition at line 44 of file synapse_structure_weight_impl.h.

◆ synapse_structure_get_final_state()

static final_state_t synapse_structure_get_final_state ( update_state_t  state)
inlinestatic

Get the final state from the update state.

Parameters
[in]statethe update state
Returns
the final state

Definition at line 53 of file synapse_structure_weight_impl.h.

◆ synapse_structure_get_final_weight()

static weight_t synapse_structure_get_final_weight ( final_state_t  final_state)
inlinestatic

Get the final weight from the final state.

Parameters
[in]final_statethe final state
Returns
the final weight

Definition at line 62 of file synapse_structure_weight_impl.h.

◆ synapse_structure_get_final_synaptic_word()

static plastic_synapse_t synapse_structure_get_final_synaptic_word ( final_state_t  final_state)
inlinestatic

Get the final plastic synapse data from the final state.

Parameters
[in]final_statethe final state
Returns
the final plastic synapse data, ready to be stored

Definition at line 71 of file synapse_structure_weight_impl.h.

◆ synapse_structure_create_synapse()

static plastic_synapse_t synapse_structure_create_synapse ( weight_t  weight)
inlinestatic

Create the initial plastic synapse data.

Parameters
[in]weightthe initial synaptic weight
Returns
the plastic synapse data

Definition at line 80 of file synapse_structure_weight_impl.h.

◆ synapse_structure_get_weight()

static weight_t synapse_structure_get_weight ( plastic_synapse_t  synaptic_word)
inlinestatic

Get the current synaptic weight from the plastic synapse data.

Parameters
[in]synaptic_wordthe plastic synapse data
Returns
the current synaptic weight

Definition at line 89 of file synapse_structure_weight_impl.h.