General API of a current source implementation.
More...
Go to the source code of this file.
General API of a current source implementation.
Definition in file current_source.h.
◆ 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 |
◆ 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_address | The address to start reading data from |
[in] | n_neurons | The 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_address | The 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] | time | The current time |
[in] | neuron_index | The neuron index to calculate the value for |
- Returns
- True if successful
Definition at line 207 of file current_source.h.
◆ n_current_sources
uint32_t n_current_sources |
|
static |
◆ n_dc_sources
◆ n_ac_sources
◆ n_step_sources
◆ n_noisy_sources
◆ n_neurons_on_core
uint32_t n_neurons_on_core |
|
static |
◆ neuron_current_source