sPyNNaker neural_modelling 7.3.1
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
post_events_with_weight_change.h File Reference

Post-synaptic events. More...

#include <stdbool.h>
#include <stdint.h>
#include <debug.h>
#include <stddef.h>

Go to the source code of this file.

Data Structures

struct  update_post_trace_t
 
struct  post_event_history_t
 Trace history of post-synaptic events. More...
 

Macros

#define MAX_EVENTS   16
 Maximum number of pre-synaptic events per post neuron.
 

Functions

static post_event_history_tpost_events_init_buffers (uint32_t n_neurons)
 Initialise an array of post-synaptic event histories.
 
static void post_events_add (post_event_history_t *events, uint16_t weight_change, uint32_t pre_spike, uint16_t synapse_type)
 Add a post-synaptic event to the history.
 
static bool post_events_remove (post_event_history_t *events, uint32_t index)
 

Detailed Description

Post-synaptic events.

Definition in file post_events_with_weight_change.h.


Data Structure Documentation

◆ update_post_trace_t

struct update_post_trace_t

Definition at line 36 of file post_events_with_weight_change.h.

Data Fields
int16_t weight_change The amount to change the weight by (positive or negative)
uint16_t synapse_type The synapse type.
uint32_t pre_spike The pre-spike to look out for in doing the update.

◆ post_event_history_t

struct post_event_history_t

Trace history of post-synaptic events.

Definition at line 39 of file post_events.h.

Data Fields
uint32_t count_minus_one Number of events stored (minus one)
uint32_t times[MAX_POST_SYNAPTIC_EVENTS] Event times.
post_trace_t traces[MAX_POST_SYNAPTIC_EVENTS] Event traces.
nm_post_trace_t traces[MAX_POST_SYNAPTIC_EVENTS] Event traces.
uint32_t dopamine_trace_markers Bit field to indicate whether a trace is dopamine or not.
uint32_t count Number of events stored.
update_post_trace_t traces[MAX_EVENTS] Event traces.

Macro Definition Documentation

◆ MAX_EVENTS

#define MAX_EVENTS   16

Maximum number of pre-synaptic events per post neuron.

Definition at line 34 of file post_events_with_weight_change.h.

Function Documentation

◆ post_events_init_buffers()

static post_event_history_t * post_events_init_buffers ( uint32_t  n_neurons)
inlinestatic

Initialise an array of post-synaptic event histories.

Parameters
[in]n_neuronsNumber of neurons
Returns
The array

Definition at line 66 of file post_events_with_weight_change.h.

◆ post_events_add()

static void post_events_add ( post_event_history_t events,
uint16_t  weight_change,
uint32_t  pre_spike,
uint16_t  synapse_type 
)
inlinestatic

Add a post-synaptic event to the history.

Parameters
[in]timethe time of the event
[in,out]eventsthe history to add to
[in]tracethe trace of the event

Definition at line 95 of file post_events_with_weight_change.h.

◆ post_events_remove()

static bool post_events_remove ( post_event_history_t events,
uint32_t  index 
)
inlinestatic

Definition at line 123 of file post_events_with_weight_change.h.