-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add precommit check for licenses and apply fixes
Signed-off-by: Travis F. Collins <[email protected]>
- Loading branch information
Showing
104 changed files
with
517 additions
and
526 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Copyright (C) 2023 Analog Devices, Inc. | ||
|
||
SPDX short identifier: ADIBSD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
# Copyright (C) 2022 Analog Devices, Inc. | ||
# | ||
# SPDX short identifier: ADIBSD | ||
|
||
import numpy as np | ||
from adi.context_manager import context_manager | ||
from adi.rx_tx import rx | ||
|
||
|
||
class ad4020(rx, context_manager): | ||
"""AD4020 device""" | ||
|
||
_device_name = "ad4020" | ||
_rx_data_type = np.int32 | ||
_complex_data = False | ||
_rx_channel_names = ["voltage0"] | ||
|
||
def __init__(self, uri=""): | ||
|
||
context_manager.__init__(self, uri, self._device_name) | ||
|
||
self._rxadc = self._ctx.find_device("ad4020") | ||
self._ctrl = self._ctx.find_device("ad4020") | ||
rx.__init__(self) | ||
|
||
@property | ||
def sampling_frequency(self): | ||
"""sample_rate: Only readable | ||
""" | ||
return self._get_iio_dev_attr("sampling_frequency") | ||
# Copyright (C) 2022-2023 Analog Devices, Inc. | ||
# | ||
# SPDX short identifier: ADIBSD | ||
|
||
import numpy as np | ||
from adi.context_manager import context_manager | ||
from adi.rx_tx import rx | ||
|
||
|
||
class ad4020(rx, context_manager): | ||
"""AD4020 device""" | ||
|
||
_device_name = "ad4020" | ||
_rx_data_type = np.int32 | ||
_complex_data = False | ||
_rx_channel_names = ["voltage0"] | ||
|
||
def __init__(self, uri=""): | ||
|
||
context_manager.__init__(self, uri, self._device_name) | ||
|
||
self._rxadc = self._ctx.find_device("ad4020") | ||
self._ctrl = self._ctx.find_device("ad4020") | ||
rx.__init__(self) | ||
|
||
@property | ||
def sampling_frequency(self): | ||
"""sample_rate: Only readable | ||
""" | ||
return self._get_iio_dev_attr("sampling_frequency") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.