Device
Members
- class iio.Device(ctx, _device)
Contains the representation of an IIO device.
- event_stream()
Create an events stream.
- returns: type=contextlib._GeneratorContextManager
A generator for a EventStream instance.
- find_channel(name_or_id, is_output=False)
Find a IIO channel by its name or ID.
- Parameters:
name_or_id – type=str The name or ID of the channel to find
is_output – type=bool Set to True to search for an output channel
- returns: type=iio.Device or type=iio.Trigger
The IIO Device
- property hwmon
Contains True if the device is a hardware-monitoring device, False if it is a IIO device. type=bool
- reg_read(reg)
Read the content of a register of this device.
- Parameters:
reg – type=int The register address
- returns: type=int
The value of the register