Post-synaptic events.
More...
#include <stdbool.h>
#include <stdint.h>
#include <debug.h>
Go to the source code of this file.
Post-synaptic events.
Definition in file post_events.h.
◆ post_event_history_t
struct post_event_history_t |
Trace history of post-synaptic events.
Definition at line 39 of file post_events.h.
◆ 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. |
◆ 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.h.
◆ print_event_history()
Print a post-synaptic event history.
- Parameters
-
Definition at line 71 of file post_events.h.
◆ post_events_init_buffers()
Initialise an array of post-synaptic event histories.
- Parameters
-
[in] | n_neurons | Number of neurons |
- Returns
- The array
Definition at line 83 of file post_events.h.
◆ post_events_get_window_delayed()
Get the post-synaptic event window.
- Parameters
-
[in] | events | The post-synaptic event history |
[in] | begin_time | The start of the window |
[in] | end_time | The end of the window |
- Returns
- The window
Definition at line 111 of file post_events.h.
◆ post_events_next()
Advance a post-synaptic event window to the next event.
- Parameters
-
[in] | window | The window to advance |
- Returns
- the advanced window
Definition at line 153 of file post_events.h.
◆ post_events_add()
Add a post-synaptic event to the history.
- Parameters
-
[in] | time | the time of the event |
[in,out] | events | the history to add to |
[in] | trace | the trace of the event |
Definition at line 172 of file post_events.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_history | the history |
[in] | begin_time | The start time of the history |
[in] | end_time | The end time of the history |
[in] | delay_dendritic | The amount of dendritic delay |
Definition at line 200 of file post_events.h.