static post_event_history_t * post_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.
int16_t weight_change
The amount to change the weight by (positive or negative)
uint32_t pre_spike
The pre-spike to look out for in doing the update.
#define MAX_EVENTS
Maximum number of pre-synaptic events per post neuron.
post_trace_t traces[MAX_POST_SYNAPTIC_EVENTS]
Event traces.
Trace history of post-synaptic events.