sPyNNaker neural_modelling 7.2.2
Loading...
Searching...
No Matches
Data Structures | Functions
input_type_current.h File Reference

Input type is standard current-based model. More...

#include "input_type.h"

Go to the source code of this file.

Data Structures

struct  input_type_params_t
 Conductance input parameters. More...
 
struct  input_type_t
 Conductance state. More...
 

Functions

static void input_type_initialise (input_type_t *state, input_type_params_t *params, uint32_t n_steps_per_timestep)
 
static void input_type_save_state (input_type_t *state, input_type_params_t *params)
 
static input_tinput_type_get_input_value (input_t *restrict value, input_type_t *input_type, uint16_t num_receptors)
 Gets the actual input value. This allows any scaling to take place.
 
static void input_type_convert_excitatory_input_to_current (input_t *restrict exc_input, const input_type_t *input_type, state_t membrane_voltage)
 Converts an excitatory input into an excitatory current.
 
static void input_type_convert_inhibitory_input_to_current (input_t *restrict inh_input, const input_type_t *input_type, state_t membrane_voltage)
 Converts an inhibitory input into an inhibitory current.
 

Detailed Description

Input type is standard current-based model.

Definition in file input_type_current.h.


Data Structure Documentation

◆ input_type_params_t

struct input_type_params_t

Conductance input parameters.

Definition at line 25 of file input_type_conductance.h.

Data Fields
REAL V_rev_E reversal voltage - Excitatory [mV]
REAL V_rev_I reversal voltage - Inhibitory [mV]
REAL time_step

◆ input_type_t

struct input_type_t

Conductance state.

Definition at line 33 of file input_type_conductance.h.

Data Fields
REAL V_rev_E reversal voltage - Excitatory [mV]
REAL V_rev_I reversal voltage - Inhibitory [mV]
REAL scale_factor

Function Documentation

◆ input_type_initialise()

static void input_type_initialise ( input_type_t state,
input_type_params_t params,
uint32_t  n_steps_per_timestep 
)
inlinestatic

Definition at line 30 of file input_type_current.h.

◆ input_type_save_state()

static void input_type_save_state ( input_type_t state,
input_type_params_t params 
)
inlinestatic

Definition at line 35 of file input_type_current.h.

◆ input_type_get_input_value()

static input_t * input_type_get_input_value ( input_t *restrict  value,
input_type_t input_type,
uint16_t  num_receptors 
)
inlinestatic

Gets the actual input value. This allows any scaling to take place.

Parameters
[in,out]valueThe array of the receptor-based values of the input before scaling
[in]input_typeThe input type pointer to the parameters
[in]num_receptorsThe number of receptors. The size of the value array.
Returns
Pointer to array of values of the receptor-based input after scaling

Definition at line 47 of file input_type_current.h.

◆ input_type_convert_excitatory_input_to_current()

static void input_type_convert_excitatory_input_to_current ( input_t *restrict  exc_input,
const input_type_t input_type,
state_t  membrane_voltage 
)
inlinestatic

Converts an excitatory input into an excitatory current.

Parameters
[in,out]exc_inputPointer to array of excitatory inputs from different receptors this timestep. Note that this will already have been scaled by input_type_get_input_value()
[in]input_typeThe input type pointer to the parameters
[in]membrane_voltageThe membrane voltage to use for the input

Definition at line 59 of file input_type_current.h.

◆ input_type_convert_inhibitory_input_to_current()

static void input_type_convert_inhibitory_input_to_current ( input_t *restrict  inh_input,
const input_type_t input_type,
state_t  membrane_voltage 
)
inlinestatic

Converts an inhibitory input into an inhibitory current.

Parameters
[in,out]inh_inputPointer to array of inhibitory inputs from different receptors this timestep. Note that this will already have been scaled by input_type_get_input_value()
[in]input_typeThe input type pointer to the parameters
[in]membrane_voltageThe membrane voltage to use for the input

Definition at line 71 of file input_type_current.h.