sc_neurocore_engine/bindings/hardware/dpi.rs
1// SPDX-License-Identifier: AGPL-3.0-or-later
2// Commercial license available
3// © Concepts 1996–2026 Miroslav Šotek. All rights reserved.
4// © Code 2020–2026 Miroslav Šotek. All rights reserved.
5// ORCID: 0009-0009-3560-0851
6// Contact: www.anulum.li | protoscience@anulum.li
7// SC-NeuroCore — DPI neuron PyO3 binding
8
9use pyo3::prelude::*;
10use pyo3::types::PyDict;
11
12use crate::neurons;
13
14py_neuron_default!(
15 "DPINeuron",
16 PyDPINeuron,
17 neurons::DPINeuron,
18 state i_mem,
19 state i_ahp,
20 state refractory_time
21);
22
23pub(super) fn register(module: &Bound<'_, PyModule>) -> PyResult<()> {
24 module.add_class::<PyDPINeuron>()?;
25 Ok(())
26}