Skip to content

Commit e6063fc

Browse files
committed
fixup! adi: hmc7044: Add IIO device interface with dynamic channel property support
adi: hmc7044: Minor formatting Signed-off-by: Jorge Marques <jorge.marques@analog.com>
1 parent c817a20 commit e6063fc

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

adi/hmc7044.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@
1010

1111

1212
class hmc7044(context_manager, attribute):
13-
"""hmc7044 IIO Device Interface
14-
This class provides a Python interface for interacting with the HMC7044 device via the Industrial I/O (IIO) framework.
15-
It allows users to access and modify device and channel attributes, as well as perform device-specific operations.
13+
"""
14+
hmc7044 IIO Device Interface
15+
This class provides a Python interface for interacting with the HMC7044
16+
device via the Industrial I/O (IIO) framework.
17+
It allows users to access and modify device and channel attributes, as well
18+
as perform device-specific operations.
19+
1620
Attributes:
1721
mute_request (str): Get or set the mute request state of the device.
1822
reseed_request (str): Get or set the reseed request state of the device.
@@ -22,14 +26,18 @@ class hmc7044(context_manager, attribute):
2226
sync_pin_mode_available (str): Get the available synchronization pin modes.
2327
sysref_request (str): Get or set the SYSREF request state of the device.
2428
status (str): Get the debug status of the device.
29+
2530
Channel Attributes (dynamically added per channel):
2631
<channel_label>_frequency (int): Get or set the frequency for the specified channel.
2732
<channel_label>_label (str): Get or set the label for the specified channel.
2833
<channel_label>_phase (int): Get or set the phase for the specified channel.
34+
2935
Args:
3036
uri (str, optional): URI of the IIO context. Defaults to "".
37+
3138
Raises:
3239
Exception: If the HMC7044 device is not found in the IIO context.
40+
3341
Usage Example:
3442
dev = hmc7044("ip:192.168.2.1")
3543
print(dev.status)

0 commit comments

Comments
 (0)