sPyNNaker neural_modelling  7.4.2
neuron.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 
31 #ifndef _NEURON_H_
32 #define _NEURON_H_
33 
34 #include "synapse_row.h"
35 #include <common/neuron-typedefs.h>
36 #include <spin1_api.h>
37 
53  void *core_params_address, void *neuron_params_address,
54  void *current_sources_address, void *recording_address,
55  void *initial_values_address, uint32_t *n_rec_regions_used);
56 
61 void neuron_do_timestep_update(timer_t time, uint timer_count);
62 
66 bool neuron_resume(uint32_t time);
67 
70 void neuron_pause(void);
71 
75 void neuron_transfer(weight_t *syns);
76 
77 #if LOG_LEVEL >= LOG_DEBUG
80 void neuron_print_inputs(void);
81 
85 
90 const char *neuron_get_synapse_type_char(uint32_t synapse_type);
91 #endif
92 
93 #endif // _NEURON_H_
static uint32_t time
Simulation time.
Data type definitions for SpiNNaker Neuron-modelling.
void neuron_pause(void)
Perform steps needed before pausing a simulation.
Definition: neuron.c:184
bool neuron_initialise(void *core_params_address, void *neuron_params_address, void *current_sources_address, void *recording_address, void *initial_values_address, uint32_t *n_rec_regions_used)
translate the data stored in the NEURON_PARAMS data region in SDRAM and convert it into c based objec...
Definition: neuron.c:105
void neuron_print_synapse_parameters(void)
Print the neurons' synapse parameters.
Definition: neuron.c:234
void neuron_print_inputs(void)
Print the inputs to the neurons.
Definition: neuron.c:230
const char * neuron_get_synapse_type_char(uint32_t synapse_type)
Get the synapse type description character.
Definition: neuron.c:238
bool neuron_resume(uint32_t time)
Prepare to resume simulation of the neurons.
Definition: neuron.c:93
void neuron_transfer(weight_t *syns)
Add inputs to the neurons.
Definition: neuron.c:204
void neuron_do_timestep_update(timer_t time, uint timer_count)
executes all the updates to neural parameters when a given timer period has occurred.
Definition: neuron.c:190
implementation for handling the processing of synapse rows.