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

Post-synaptic events. More...

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

Go to the source code of this file.

Data Structures

struct  nm_post_trace_t
 
struct  post_event_history_t
 Trace history of post-synaptic events. More...
 
struct  post_event_window_t
 Post event window description. More...
 

Macros

#define MAX_POST_SYNAPTIC_EVENTS   16
 Maximum number of post-synaptic events supported.
 

Functions

static void print_event_history (const post_event_history_t *events)
 Print a post-synaptic event history.
 
static post_event_history_tpost_events_init_buffers (uint32_t n_neurons)
 Initialise an array of post-synaptic event histories.
 
static post_event_window_t post_events_get_window_delayed (const post_event_history_t *events, uint32_t begin_time, uint32_t end_time)
 Get the post-synaptic event window.
 
static post_event_window_t post_events_next (post_event_window_t window)
 Advance a post-synaptic event window to the next event.
 
static bool post_events_next_is_dopamine (post_event_window_t window)
 
static void post_events_add (uint32_t time, post_event_history_t *events, post_trace_t post_trace, int16_t dopamine_trace, bool dopamine)
 Add a post-synaptic event to the history.
 
static void print_delayed_window_events (const post_event_history_t *post_event_history, uint32_t begin_time, uint32_t end_time, uint32_t delay_dendritic)
 Print the post-synaptic event history.
 

Detailed Description

Post-synaptic events.

Definition in file post_events_with_da.h.


Data Structure Documentation

◆ nm_post_trace_t

struct nm_post_trace_t

Definition at line 35 of file post_events_with_da.h.

Data Fields
int16_t dopamine_trace
post_trace_t post_trace

◆ 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.

◆ post_event_window_t

struct post_event_window_t

Post event window description.

Definition at line 49 of file post_events.h.

Data Fields
post_trace_t prev_trace The previous post-synaptic event trace.
uint32_t prev_time The previous post-synaptic event time.
const post_trace_t * next_trace The next post-synaptic event trace.
const uint32_t * next_time The next post-synaptic event time.
uint32_t num_events The number of events.
uint32_t prev_time_valid Whether the previous post-synaptic event is valid (based on time)
nm_post_trace_t prev_trace The previous post-synaptic event trace.
const nm_post_trace_t * next_trace The next post-synaptic event trace.
uint32_t dopamine_trace_markers Bit field to indicate whether a trace is dopamine or not.

Macro Definition Documentation

◆ MAX_POST_SYNAPTIC_EVENTS

#define MAX_POST_SYNAPTIC_EVENTS   16

Maximum number of post-synaptic events supported.

Definition at line 33 of file post_events_with_da.h.

Function Documentation

◆ print_event_history()

static void print_event_history ( const post_event_history_t events)
inlinestatic

Print a post-synaptic event history.

Parameters
[in]eventsThe history

Definition at line 80 of file post_events_with_da.h.

◆ 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 92 of file post_events_with_da.h.

◆ post_events_get_window_delayed()

static post_event_window_t post_events_get_window_delayed ( const post_event_history_t events,
uint32_t  begin_time,
uint32_t  end_time 
)
inlinestatic

Get the post-synaptic event window.

Parameters
[in]eventsThe post-synaptic event history
[in]begin_timeThe start of the window
[in]end_timeThe end of the window
Returns
The window

Definition at line 123 of file post_events_with_da.h.

◆ post_events_next()

static post_event_window_t post_events_next ( post_event_window_t  window)
inlinestatic

Advance a post-synaptic event window to the next event.

Parameters
[in]windowThe window to advance
Returns
the advanced window

Definition at line 170 of file post_events_with_da.h.

◆ post_events_next_is_dopamine()

static bool post_events_next_is_dopamine ( post_event_window_t  window)
inlinestatic

Definition at line 191 of file post_events_with_da.h.

◆ post_events_add()

static void post_events_add ( uint32_t  time,
post_event_history_t events,
post_trace_t  post_trace,
int16_t  dopamine_trace,
bool  dopamine 
)
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 201 of file post_events_with_da.h.

◆ print_delayed_window_events()

static void print_delayed_window_events ( const post_event_history_t post_event_history,
uint32_t  begin_time,
uint32_t  end_time,
uint32_t  delay_dendritic 
)
inlinestatic

Print the post-synaptic event history.

Parameters
[in]post_event_historythe history
[in]begin_timeThe start time of the history
[in]end_timeThe end time of the history
[in]delay_dendriticThe amount of dendritic delay

Definition at line 245 of file post_events_with_da.h.