API for additional inputs.
More...
Go to the source code of this file.
API for additional inputs.
Definition in file additional_input.h.
◆ additional_input_initialise()
initialise the structure from the parameters
- Parameters
-
[out] | state | Pointer to the state to be set up |
[in] | params | Pointer to the parameters passed in from host |
[in] | n_steps_per_timestep | The number of steps to run each update |
◆ additional_input_save_state()
save parameters and state back to SDRAM for reading by host and recovery on restart
- Parameters
-
[in] | state | The current state |
[out] | params | Pointer to structure into which parameter can be written |
◆ additional_input_get_input_value_as_current()
Gets the value of current provided by the additional input this timestep.
- Parameters
-
[in] | additional_input | The additional input type pointer to the parameters |
[in] | membrane_voltage | The membrane voltage of the neuron |
- Returns
- The value of the input after scaling
◆ additional_input_has_spiked()
Notifies the additional input type that the neuron has spiked.
- Parameters
-
[in] | additional_input | The additional input type pointer to the parameters |