Post-synaptic events.
More...
#include <stdbool.h>
#include <stdint.h>
#include <debug.h>
#include <stddef.h>
Go to the source code of this file.
|
|
#define | MAX_EVENTS 16 |
| | Maximum number of pre-synaptic events per post neuron.
|
| |
Post-synaptic events.
Definition in file post_events_with_weight_change.h.
◆ update_post_trace_t
| struct update_post_trace_t |
| 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.
◆ 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 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] | time | the time of the event |
| [in,out] | events | the history to add to |
| [in] | trace | the trace of the event |
Definition at line 95 of file post_events_with_weight_change.h.