samna.unifirm.modules.mc3632#

Submodules#

Module content#

class samna.unifirm.modules.mc3632.Mc3632#

Bases: pybind11_object

The object to manipulate MC3632.

auto_read_enable(self: samna.unifirm.modules.mc3632.Mc3632, arg0: bool) None#

Enable reading sample event automatically.

get_sink_node(self: samna.unifirm.modules.mc3632.Mc3632) samna.DeviceSinkNode_unifirm_modules_mc3632_input_event#

Get the sink node to write input events to MC3632.

get_source_node(self: samna.unifirm.modules.mc3632.Mc3632) samna.DeviceSourceNode_unifirm_modules_mc3632_output_event#

Get the source node to read output events from MC3632.

reset_acceleration_sequence_id(self: samna.unifirm.modules.mc3632.Mc3632) None#

Reset sequence id of output acceleration event to 0.

set_auto_read_freq(self: samna.unifirm.modules.mc3632.Mc3632, arg0: float) None#

Set frequency for auto reading, default 20Hz, maximum 12500Hz.

set_spi_clock_period(self: samna.unifirm.modules.mc3632.Mc3632, arg0: int) None#
setup(self: samna.unifirm.modules.mc3632.Mc3632) bool#

Setup MC3632 correctly which is necessary for any work for MC3632.

class samna.unifirm.modules.mc3632.ReadRegisterValue#

Bases: pybind11_object

An input event to read register of MC3632.

from_json(self: samna.unifirm.modules.mc3632.ReadRegisterValue, arg0: str) None#
to_json(self: samna.unifirm.modules.mc3632.ReadRegisterValue) str#
class samna.unifirm.modules.mc3632.RegisterValue#

Bases: pybind11_object

An output event of register value which is response of ReadRegisterValue.

from_json(self: samna.unifirm.modules.mc3632.RegisterValue, arg0: str) None#
to_json(self: samna.unifirm.modules.mc3632.RegisterValue) str#
class samna.unifirm.modules.mc3632.WriteRegisterValue#

Bases: pybind11_object

An input event to write register of MC3632.

from_json(self: samna.unifirm.modules.mc3632.WriteRegisterValue, arg0: str) None#
to_json(self: samna.unifirm.modules.mc3632.WriteRegisterValue) str#