sPyNNaker neural_modelling 7.1.1
Loading...
Searching...
No Matches
Data Structures | Functions | Variables
current_source.h File Reference

General API of a current source implementation. More...

#include <common/neuron-typedefs.h>

Go to the source code of this file.

Data Structures

struct  cs_id_index_t
 
struct  neuron_current_source_t
 

Functions

static bool current_source_initialise (address_t cs_address, uint32_t n_neurons)
 Initialise the particular implementation of the data.
 
static bool current_source_load_parameters (address_t cs_address)
 Load the data into the allocated array structures.
 
static REAL current_source_get_offset (uint32_t time, uint32_t neuron_index)
 Calculate the current offset from all injected current sources.
 

Variables

static uint32_t n_current_sources
 
static uint32_t n_dc_sources
 
static uint32_t n_ac_sources
 
static uint32_t n_step_sources
 
static uint32_t n_noisy_sources
 
static uint32_t n_neurons_on_core
 
static neuron_current_source_t ** neuron_current_source
 

Detailed Description

General API of a current source implementation.

Definition in file current_source.h.


Data Structure Documentation

◆ cs_id_index_t

struct cs_id_index_t

Definition at line 27 of file current_source.h.

Data Fields
uint32_t cs_id
uint32_t cs_index

◆ neuron_current_source_t

struct neuron_current_source_t

Definition at line 33 of file current_source.h.

Data Fields
uint32_t n_current_sources
cs_id_index_t cs_id_index_list[]

Function Documentation

◆ current_source_initialise()

static bool current_source_initialise ( address_t  cs_address,
uint32_t  n_neurons 
)
static

Initialise the particular implementation of the data.

Parameters
[in]cs_addressThe address to start reading data from
[in]n_neuronsThe number of neurons to initialise data for
Returns
True if successful

Definition at line 58 of file current_source.h.

◆ current_source_load_parameters()

static bool current_source_load_parameters ( address_t  cs_address)
static

Load the data into the allocated array structures.

Parameters
[in]cs_addressThe address to start reading data from
Returns
True if successful

Definition at line 149 of file current_source.h.

◆ current_source_get_offset()

static REAL current_source_get_offset ( uint32_t  time,
uint32_t  neuron_index 
)
inlinestatic

Calculate the current offset from all injected current sources.

Parameters
[in]timeThe current time
[in]neuron_indexThe neuron index to calculate the value for
Returns
True if successful

Definition at line 207 of file current_source.h.

Variable Documentation

◆ n_current_sources

uint32_t n_current_sources
static

Definition at line 39 of file current_source.h.

◆ n_dc_sources

uint32_t n_dc_sources
static

Definition at line 40 of file current_source.h.

◆ n_ac_sources

uint32_t n_ac_sources
static

Definition at line 41 of file current_source.h.

◆ n_step_sources

uint32_t n_step_sources
static

Definition at line 42 of file current_source.h.

◆ n_noisy_sources

uint32_t n_noisy_sources
static

Definition at line 43 of file current_source.h.

◆ n_neurons_on_core

uint32_t n_neurons_on_core
static

Definition at line 45 of file current_source.h.

◆ neuron_current_source

neuron_current_source_t** neuron_current_source
static

Definition at line 47 of file current_source.h.