diff --git a/.github/license_header.txt b/.github/license_header.txt new file mode 100644 index 000000000..4ba7c8ddc --- /dev/null +++ b/.github/license_header.txt @@ -0,0 +1,3 @@ +Copyright (C) 2023 Analog Devices, Inc. + +SPDX short identifier: ADIBSD diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cad232ab1..ea28dd8a9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -37,3 +37,14 @@ repos: hooks: - id: blacken-docs additional_dependencies: [black==19.10b0] +- repo: https://github.com/Lucas-C/pre-commit-hooks + rev: v1.5.1 + hooks: + - id: insert-license + files: adi\/.*\.py$ + args: + - --license-filepath + - .github/license_header.txt + - --use-current-year + - --no-extra-eol + - --detect-license-in-X-top-lines=3 diff --git a/LICENSE b/LICENSE index 26867c9b4..69aa315bf 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright 2019(c) Analog Devices, Inc. +Copyright 2019-2023(c) Analog Devices, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without diff --git a/adi/QuadMxFE_multi.py b/adi/QuadMxFE_multi.py index f97331db9..e6b2e067c 100644 --- a/adi/QuadMxFE_multi.py +++ b/adi/QuadMxFE_multi.py @@ -1,35 +1,6 @@ -# Copyright (C) 2021 Analog Devices, Inc. +# Copyright (C) 2021-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import time from typing import List diff --git a/adi/__init__.py b/adi/__init__.py index 16ae757a0..4d679110b 100644 --- a/adi/__init__.py +++ b/adi/__init__.py @@ -1,35 +1,6 @@ -# Copyright (C) 2019 Analog Devices, Inc. +# Copyright (C) 2019-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.ad469x import ad469x from adi.ad717x import ad717x diff --git a/adi/ad4020.py b/adi/ad4020.py index 563f10dde..06fc3bed5 100644 --- a/adi/ad4020.py +++ b/adi/ad4020.py @@ -1,59 +1,30 @@ -# Copyright (C) 2022 Analog Devices, Inc. -# -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -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") diff --git a/adi/ad4110.py b/adi/ad4110.py index 681980ab7..f6d230c4d 100644 --- a/adi/ad4110.py +++ b/adi/ad4110.py @@ -1,35 +1,6 @@ -# Copyright (C) 2022 Analog Devices, Inc. +# Copyright (C) 2022-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from decimal import Decimal diff --git a/adi/ad4130.py b/adi/ad4130.py index 92a3d81cc..eb2b7c6d0 100644 --- a/adi/ad4130.py +++ b/adi/ad4130.py @@ -1,35 +1,6 @@ -# Copyright (C) 2022 Analog Devices, Inc. +# Copyright (C) 2022-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from decimal import Decimal diff --git a/adi/ad4630.py b/adi/ad4630.py index 49f3a2592..e1e60811a 100644 --- a/adi/ad4630.py +++ b/adi/ad4630.py @@ -1,229 +1,200 @@ -# Copyright (C) 2022 Analog Devices, Inc. -# -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - -import numpy as np -from adi.attribute import attribute -from adi.context_manager import context_manager -from adi.rx_tx import rx - - -def _sign_extend(value, nbits): - sign_bit = 1 << (nbits - 1) - return (value & (sign_bit - 1)) - (value & sign_bit) - - -def _bitmask(nbits): - mask = 0 - for i in range(0, nbits): - mask = (mask << 1) | 1 - return mask - - -class ad4630(rx, context_manager, attribute): - - """ AD4630 is low power 24-bit precision SAR ADC """ - - _complex_data = False - _data_type = "voltage" - _device_name = "" - _rx_channel_names = [] - - """ Default part to initialize is ad4630-24. If you don't hardware test fails""" - - def __init__(self, uri="", device_name="ad4630-24"): - - context_manager.__init__(self, uri, self._device_name) - - compatible_parts = ["ad4630-24", "ad4030-24", "ad4630-16"] - - if device_name not in compatible_parts: - raise Exception( - "Not a compatible device: " - + str(device_name) - + ". Please select from " - + str(compatible_parts) - ) - else: - self._ctrl = self._ctx.find_device(device_name) - self._rxadc = self._ctx.find_device(device_name) - - _channels = [] - self.output_bits = [] - for ch in self._ctrl.channels: - self.output_bits.append(ch.data_format.bits) - self._rx_channel_names.append(ch.id) - if "differential" in ch.name: - _channels.append((ch.id, self._diff_channel(self._ctrl, ch.id))) - if "0" in ch.name: - self.chan0 = self._diff_channel(self._ctrl, ch.name) - if "1" in ch.name: - self.chan1 = self._diff_channel(self._ctrl, ch.name) - - rx.__init__(self) - - def rx(self): - - if not self._rx__rxbuf: - self._rx_init_channels() - self._rx__rxbuf.refill() - buff = np.frombuffer(self._rx__rxbuf.read(), dtype=np.uint32) - - data = [buff[0::2], buff[1::2]] - temp = [] - if self._num_rx_channels != 2: - for ch in range(0, self._num_rx_channels): - nbits = self._ctrl.channels[ch].data_format.bits - shift = self._ctrl.channels[ch].data_format.shift - ch_data = np.zeros(data[int(ch / 2)].shape, dtype=np.uint32) - for index in range(0, len(data[int(ch / 2)])): - ch_data[index] = (data[int(ch / 2)][index] >> shift) & _bitmask( - nbits - ) - temp.append(np.vectorize(_sign_extend)(ch_data, nbits)) - data = temp - else: - for idx, ch_data in enumerate(data): - nbits = self._ctrl.channels[idx].data_format.bits - temp.append(np.vectorize(_sign_extend)(ch_data, nbits)) - data = np.vectorize(_sign_extend)(data, nbits) - - return data - - def output_data_mode(self): - """Determine the output data mode in which device is configured.""" - if self.output_bits[0] == 30: - return "30bit_avg" - if self.output_bits[0] == 32: - return "32bit_test_pattern" - if self.output_bits[0] == 16: - return "16bit_diff_8bit_cm" - if len(self.output_bits) == 1 and self.output_bits[0] == 24: - return "24bit_diff" - if len(self.output_bits) == 2 and self.output_bits[0] == self.output_bits[1]: - return "24bit_diff" - else: - return "24bit_diff_8bit_cm" - - @property - def sample_rate(self): - """Get/Set the sampling frequency.""" - return self._get_iio_dev_attr("sampling_frequency") - - @sample_rate.setter - def sample_rate(self, rate): - """Get/Set the sampling frequency.""" - if str(rate) in str(self.sample_rate_avail): - self._set_iio_dev_attr("sampling_frequency", str(rate)) - else: - raise ValueError( - "Error: Sample rate not supported \nUse one of: " - + str(self.sample_rate_avail) - ) - - @property - def sample_rate_avail(self): - """Get list of all the sampling frequency available.""" - return self._get_iio_dev_attr("sampling_frequency_available") - - @property - def operating_mode_avail(self): - """Get list of all the operating mode available.""" - return self._get_iio_dev_attr_str("operating_mode_available") - - @property - def operating_mode(self): - """Get/Set the operating mode.""" - return self._get_iio_dev_attr_str("operating_mode") - - @operating_mode.setter - def operating_mode(self, mode): - """Get/Set the operating mode.""" - if mode in self.operating_mode_avail: - self._set_iio_dev_attr_str("operating_mode", mode) - else: - raise ValueError( - "Error: Operating mode not supported \nUse one of: " - + str(self.operating_mode_avail) - ) - - @property - def sample_averaging_avail(self): - """Get list of all the sample averaging values available. Only available in 30bit averaged mode.""" - return self._get_iio_dev_attr("sample_averaging_available") - - @property - def sample_averaging(self): - """Get/Set the sample averaging. Only available in 30bit averaged mode.""" - return self._get_iio_dev_attr_str("sample_averaging") - - @sample_averaging.setter - def sample_averaging(self, n_sample): - """Get/Set the sample averaging. Only available in 30bit averaged mode.""" - if str(self.sample_averaging) != "OFF": - if str(n_sample) in str(self.sample_averaging_avail): - self._set_iio_dev_attr("sample_averaging", str(n_sample)) - else: - raise ValueError( - "Error: Number of avg samples not supported \nUse one of: " - + str(self.sample_averaging_avail) - ) - else: - raise Exception("Sample Averaging only available in 30bit averaged mode.") - - class _diff_channel(attribute): - """AD4x30 differential channel.""" - - def __init__(self, ctrl, channel_name): - self.name = channel_name - self._ctrl = ctrl - - @property - def hw_gain(self): - """Get/Set the hardwaregain of differential channel.""" - return self._get_iio_attr(self.name, "hardwaregain", False) - - @hw_gain.setter - def hw_gain(self, gain): - """Get/Set the hardwaregain of differential channel.""" - self._set_iio_attr(self.name, "hardwaregain", False, int(gain)) - - @property - def offset(self): - """Get/Set the offset of differential channel.""" - return self._get_iio_attr(self.name, "offset", False, self._ctrl) - - @offset.setter - def offset(self, offset): - """Get/Set the offset of differential channel.""" - self._set_iio_attr(self.name, "offset", False, int(offset), self._ctrl) +# Copyright (C) 2022-2023 Analog Devices, Inc. +# +# SPDX short identifier: ADIBSD + + +import numpy as np +from adi.attribute import attribute +from adi.context_manager import context_manager +from adi.rx_tx import rx + + +def _sign_extend(value, nbits): + sign_bit = 1 << (nbits - 1) + return (value & (sign_bit - 1)) - (value & sign_bit) + + +def _bitmask(nbits): + mask = 0 + for i in range(0, nbits): + mask = (mask << 1) | 1 + return mask + + +class ad4630(rx, context_manager, attribute): + + """ AD4630 is low power 24-bit precision SAR ADC """ + + _complex_data = False + _data_type = "voltage" + _device_name = "" + _rx_channel_names = [] + + """ Default part to initialize is ad4630-24. If you don't hardware test fails""" + + def __init__(self, uri="", device_name="ad4630-24"): + + context_manager.__init__(self, uri, self._device_name) + + compatible_parts = ["ad4630-24", "ad4030-24", "ad4630-16"] + + if device_name not in compatible_parts: + raise Exception( + "Not a compatible device: " + + str(device_name) + + ". Please select from " + + str(compatible_parts) + ) + else: + self._ctrl = self._ctx.find_device(device_name) + self._rxadc = self._ctx.find_device(device_name) + + _channels = [] + self.output_bits = [] + for ch in self._ctrl.channels: + self.output_bits.append(ch.data_format.bits) + self._rx_channel_names.append(ch.id) + if "differential" in ch.name: + _channels.append((ch.id, self._diff_channel(self._ctrl, ch.id))) + if "0" in ch.name: + self.chan0 = self._diff_channel(self._ctrl, ch.name) + if "1" in ch.name: + self.chan1 = self._diff_channel(self._ctrl, ch.name) + + rx.__init__(self) + + def rx(self): + + if not self._rx__rxbuf: + self._rx_init_channels() + self._rx__rxbuf.refill() + buff = np.frombuffer(self._rx__rxbuf.read(), dtype=np.uint32) + + data = [buff[0::2], buff[1::2]] + temp = [] + if self._num_rx_channels != 2: + for ch in range(0, self._num_rx_channels): + nbits = self._ctrl.channels[ch].data_format.bits + shift = self._ctrl.channels[ch].data_format.shift + ch_data = np.zeros(data[int(ch / 2)].shape, dtype=np.uint32) + for index in range(0, len(data[int(ch / 2)])): + ch_data[index] = (data[int(ch / 2)][index] >> shift) & _bitmask( + nbits + ) + temp.append(np.vectorize(_sign_extend)(ch_data, nbits)) + data = temp + else: + for idx, ch_data in enumerate(data): + nbits = self._ctrl.channels[idx].data_format.bits + temp.append(np.vectorize(_sign_extend)(ch_data, nbits)) + data = np.vectorize(_sign_extend)(data, nbits) + + return data + + def output_data_mode(self): + """Determine the output data mode in which device is configured.""" + if self.output_bits[0] == 30: + return "30bit_avg" + if self.output_bits[0] == 32: + return "32bit_test_pattern" + if self.output_bits[0] == 16: + return "16bit_diff_8bit_cm" + if len(self.output_bits) == 1 and self.output_bits[0] == 24: + return "24bit_diff" + if len(self.output_bits) == 2 and self.output_bits[0] == self.output_bits[1]: + return "24bit_diff" + else: + return "24bit_diff_8bit_cm" + + @property + def sample_rate(self): + """Get/Set the sampling frequency.""" + return self._get_iio_dev_attr("sampling_frequency") + + @sample_rate.setter + def sample_rate(self, rate): + """Get/Set the sampling frequency.""" + if str(rate) in str(self.sample_rate_avail): + self._set_iio_dev_attr("sampling_frequency", str(rate)) + else: + raise ValueError( + "Error: Sample rate not supported \nUse one of: " + + str(self.sample_rate_avail) + ) + + @property + def sample_rate_avail(self): + """Get list of all the sampling frequency available.""" + return self._get_iio_dev_attr("sampling_frequency_available") + + @property + def operating_mode_avail(self): + """Get list of all the operating mode available.""" + return self._get_iio_dev_attr_str("operating_mode_available") + + @property + def operating_mode(self): + """Get/Set the operating mode.""" + return self._get_iio_dev_attr_str("operating_mode") + + @operating_mode.setter + def operating_mode(self, mode): + """Get/Set the operating mode.""" + if mode in self.operating_mode_avail: + self._set_iio_dev_attr_str("operating_mode", mode) + else: + raise ValueError( + "Error: Operating mode not supported \nUse one of: " + + str(self.operating_mode_avail) + ) + + @property + def sample_averaging_avail(self): + """Get list of all the sample averaging values available. Only available in 30bit averaged mode.""" + return self._get_iio_dev_attr("sample_averaging_available") + + @property + def sample_averaging(self): + """Get/Set the sample averaging. Only available in 30bit averaged mode.""" + return self._get_iio_dev_attr_str("sample_averaging") + + @sample_averaging.setter + def sample_averaging(self, n_sample): + """Get/Set the sample averaging. Only available in 30bit averaged mode.""" + if str(self.sample_averaging) != "OFF": + if str(n_sample) in str(self.sample_averaging_avail): + self._set_iio_dev_attr("sample_averaging", str(n_sample)) + else: + raise ValueError( + "Error: Number of avg samples not supported \nUse one of: " + + str(self.sample_averaging_avail) + ) + else: + raise Exception("Sample Averaging only available in 30bit averaged mode.") + + class _diff_channel(attribute): + """AD4x30 differential channel.""" + + def __init__(self, ctrl, channel_name): + self.name = channel_name + self._ctrl = ctrl + + @property + def hw_gain(self): + """Get/Set the hardwaregain of differential channel.""" + return self._get_iio_attr(self.name, "hardwaregain", False) + + @hw_gain.setter + def hw_gain(self, gain): + """Get/Set the hardwaregain of differential channel.""" + self._set_iio_attr(self.name, "hardwaregain", False, int(gain)) + + @property + def offset(self): + """Get/Set the offset of differential channel.""" + return self._get_iio_attr(self.name, "offset", False, self._ctrl) + + @offset.setter + def offset(self, offset): + """Get/Set the offset of differential channel.""" + self._set_iio_attr(self.name, "offset", False, int(offset), self._ctrl) diff --git a/adi/ad469x.py b/adi/ad469x.py index c967de5ef..2c37dfc58 100644 --- a/adi/ad469x.py +++ b/adi/ad469x.py @@ -1,35 +1,6 @@ -# Copyright (C) 2022 Analog Devices, Inc. +# Copyright (C) 2022-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from decimal import Decimal diff --git a/adi/ad5592r.py b/adi/ad5592r.py index 4abe44c1d..a91cac85c 100644 --- a/adi/ad5592r.py +++ b/adi/ad5592r.py @@ -1,35 +1,6 @@ -# Copyright (C) 2022 Analog Devices, Inc. +# Copyright (C) 2022-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.attribute import attribute from adi.context_manager import context_manager diff --git a/adi/ad5627.py b/adi/ad5627.py index 0ee186221..01e8ab30c 100644 --- a/adi/ad5627.py +++ b/adi/ad5627.py @@ -1,35 +1,6 @@ -# Copyright (C) 2019 Analog Devices, Inc. +# Copyright (C) 2019-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.context_manager import context_manager from adi.rx_tx import tx diff --git a/adi/ad5686.py b/adi/ad5686.py index 7b4ad7163..8b8bfb3d0 100644 --- a/adi/ad5686.py +++ b/adi/ad5686.py @@ -1,35 +1,6 @@ -# Copyright (C) 2019 Analog Devices, Inc. +# Copyright (C) 2019-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import numpy as np from adi.attribute import attribute diff --git a/adi/ad5940.py b/adi/ad5940.py index 0ca055eec..4f8a58881 100644 --- a/adi/ad5940.py +++ b/adi/ad5940.py @@ -1,35 +1,6 @@ -# Copyright (C) 2021 Analog Devices, Inc. +# Copyright (C) 2021-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import struct diff --git a/adi/ad6676.py b/adi/ad6676.py index 621c8f71a..5d986c98f 100644 --- a/adi/ad6676.py +++ b/adi/ad6676.py @@ -1,35 +1,6 @@ -# Copyright (C) 2021 Analog Devices, Inc. +# Copyright (C) 2021-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.context_manager import context_manager from adi.rx_tx import rx diff --git a/adi/ad7124.py b/adi/ad7124.py index a4e30a981..9eda4a0c0 100644 --- a/adi/ad7124.py +++ b/adi/ad7124.py @@ -1,35 +1,6 @@ -# Copyright (C) 2019 Analog Devices, Inc. +# Copyright (C) 2019-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from decimal import Decimal diff --git a/adi/ad717x.py b/adi/ad717x.py index fee8ca6d9..2f30e83dd 100644 --- a/adi/ad717x.py +++ b/adi/ad717x.py @@ -1,35 +1,6 @@ -# Copyright (C) 2022 Analog Devices, Inc. +# Copyright (C) 2022-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from decimal import Decimal diff --git a/adi/ad719x.py b/adi/ad719x.py index b011799a7..b57c2580d 100644 --- a/adi/ad719x.py +++ b/adi/ad719x.py @@ -1,35 +1,6 @@ -# Copyright (C) 2022 Analog Devices, Inc. +# Copyright (C) 2022-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from decimal import Decimal diff --git a/adi/ad7291.py b/adi/ad7291.py index 0e94f14b6..17fded6ed 100644 --- a/adi/ad7291.py +++ b/adi/ad7291.py @@ -1,35 +1,6 @@ -# Copyright (C) 2019 Analog Devices, Inc. +# Copyright (C) 2019-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.attribute import attribute from adi.context_manager import context_manager diff --git a/adi/ad7606.py b/adi/ad7606.py index a25a84e09..e3f1cb7ce 100644 --- a/adi/ad7606.py +++ b/adi/ad7606.py @@ -1,35 +1,6 @@ -# Copyright (C) 2021 Analog Devices, Inc. +# Copyright (C) 2021-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from decimal import Decimal diff --git a/adi/ad7689.py b/adi/ad7689.py index 30951c903..233088bb7 100644 --- a/adi/ad7689.py +++ b/adi/ad7689.py @@ -1,35 +1,6 @@ -# Copyright (C) 2021 Analog Devices, Inc. +# Copyright (C) 2021-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from decimal import Decimal diff --git a/adi/ad7746.py b/adi/ad7746.py index 949a3cbf8..e5675e3e8 100644 --- a/adi/ad7746.py +++ b/adi/ad7746.py @@ -1,35 +1,6 @@ -# Copyright (C) 2021 Analog Devices, Inc. +# Copyright (C) 2021-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from collections import OrderedDict diff --git a/adi/ad7768.py b/adi/ad7768.py index 2e1d3efd9..8ddc0a7a4 100644 --- a/adi/ad7768.py +++ b/adi/ad7768.py @@ -1,35 +1,6 @@ -# Copyright (C) 2020 Analog Devices, Inc. +# Copyright (C) 2020-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import numpy as np from adi.context_manager import context_manager diff --git a/adi/ad777x.py b/adi/ad777x.py index 0365fcda7..3b16c0257 100644 --- a/adi/ad777x.py +++ b/adi/ad777x.py @@ -1,35 +1,6 @@ # Copyright (C) 2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from decimal import Decimal diff --git a/adi/ad7799.py b/adi/ad7799.py index c5e729c6e..581276a7a 100644 --- a/adi/ad7799.py +++ b/adi/ad7799.py @@ -1,35 +1,6 @@ -# Copyright (C) 2021 Analog Devices, Inc. +# Copyright (C) 2021-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.attribute import attribute from adi.context_manager import context_manager diff --git a/adi/ad9081.py b/adi/ad9081.py index 7049de3f7..77d2849b1 100644 --- a/adi/ad9081.py +++ b/adi/ad9081.py @@ -1,35 +1,6 @@ -# Copyright (C) 2020 Analog Devices, Inc. +# Copyright (C) 2020-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from typing import Dict, List diff --git a/adi/ad9081_mc.py b/adi/ad9081_mc.py index d86aaaf70..bb893b21f 100644 --- a/adi/ad9081_mc.py +++ b/adi/ad9081_mc.py @@ -1,35 +1,6 @@ -# Copyright (C) 2020 Analog Devices, Inc. +# Copyright (C) 2020-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from typing import Dict, List diff --git a/adi/ad9083.py b/adi/ad9083.py index 88e270d33..e757634bb 100644 --- a/adi/ad9083.py +++ b/adi/ad9083.py @@ -1,35 +1,6 @@ -# Copyright (C) 2021 Analog Devices, Inc. +# Copyright (C) 2021-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from typing import Dict, List diff --git a/adi/ad9094.py b/adi/ad9094.py index b040cd659..eea9d3b97 100644 --- a/adi/ad9094.py +++ b/adi/ad9094.py @@ -1,35 +1,6 @@ -# Copyright (C) 2019 Analog Devices, Inc. +# Copyright (C) 2019-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import numpy as np from adi.context_manager import context_manager diff --git a/adi/ad9136.py b/adi/ad9136.py index 1036a0d6a..1a5a5ab11 100644 --- a/adi/ad9136.py +++ b/adi/ad9136.py @@ -1,35 +1,6 @@ -# Copyright (C) 2019 Analog Devices, Inc. +# Copyright (C) 2019-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.context_manager import context_manager from adi.jesd import jesd diff --git a/adi/ad9144.py b/adi/ad9144.py index fba5e2cf0..a6b6e0800 100644 --- a/adi/ad9144.py +++ b/adi/ad9144.py @@ -1,35 +1,6 @@ -# Copyright (C) 2019 Analog Devices, Inc. +# Copyright (C) 2019-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.context_manager import context_manager from adi.rx_tx import tx diff --git a/adi/ad9152.py b/adi/ad9152.py index 34b1be175..1e8946879 100644 --- a/adi/ad9152.py +++ b/adi/ad9152.py @@ -1,35 +1,6 @@ -# Copyright (C) 2019 Analog Devices, Inc. +# Copyright (C) 2019-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.context_manager import context_manager from adi.rx_tx import tx diff --git a/adi/ad9162.py b/adi/ad9162.py index a0de73add..cd9eb9bbc 100644 --- a/adi/ad9162.py +++ b/adi/ad9162.py @@ -1,35 +1,6 @@ -# Copyright (C) 2022 Analog Devices, Inc. +# Copyright (C) 2022-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.context_manager import context_manager from adi.jesd import jesd diff --git a/adi/ad9166.py b/adi/ad9166.py index 3b448bdd1..c3f454e26 100644 --- a/adi/ad9166.py +++ b/adi/ad9166.py @@ -1,35 +1,6 @@ -# Copyright (C) 2019 Analog Devices, Inc. +# Copyright (C) 2019-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.attribute import attribute from adi.context_manager import context_manager diff --git a/adi/ad9172.py b/adi/ad9172.py index 5c283ef9c..0a1477e3d 100644 --- a/adi/ad9172.py +++ b/adi/ad9172.py @@ -1,35 +1,6 @@ -# Copyright (C) 2019 Analog Devices, Inc. +# Copyright (C) 2019-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from typing import List diff --git a/adi/ad9250.py b/adi/ad9250.py index d23c27a57..1403e2b2c 100644 --- a/adi/ad9250.py +++ b/adi/ad9250.py @@ -1,35 +1,6 @@ -# Copyright (C) 2019 Analog Devices, Inc. +# Copyright (C) 2019-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.context_manager import context_manager from adi.jesd import jesd diff --git a/adi/ad9265.py b/adi/ad9265.py index 79d51ce2b..d20baff4b 100644 --- a/adi/ad9265.py +++ b/adi/ad9265.py @@ -1,35 +1,6 @@ -# Copyright (C) 2019 Analog Devices, Inc. +# Copyright (C) 2019-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.context_manager import context_manager from adi.rx_tx import rx diff --git a/adi/ad936x.py b/adi/ad936x.py index 239968d42..80975e5df 100644 --- a/adi/ad936x.py +++ b/adi/ad936x.py @@ -1,35 +1,6 @@ -# Copyright (C) 2019 Analog Devices, Inc. +# Copyright (C) 2019-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.context_manager import context_manager from adi.rx_tx import rx_tx_def diff --git a/adi/ad9371.py b/adi/ad9371.py index 02ffa2311..553a724f9 100644 --- a/adi/ad9371.py +++ b/adi/ad9371.py @@ -1,35 +1,6 @@ -# Copyright (C) 2019 Analog Devices, Inc. +# Copyright (C) 2019-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.context_manager import context_manager from adi.jesd import jesd diff --git a/adi/ad9434.py b/adi/ad9434.py index 94e3199fe..06edf2529 100644 --- a/adi/ad9434.py +++ b/adi/ad9434.py @@ -1,35 +1,6 @@ -# Copyright (C) 2019 Analog Devices, Inc. +# Copyright (C) 2019-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.context_manager import context_manager from adi.rx_tx import rx diff --git a/adi/ad9467.py b/adi/ad9467.py index 3535b7291..434ba1cb4 100644 --- a/adi/ad9467.py +++ b/adi/ad9467.py @@ -1,35 +1,6 @@ -# Copyright (C) 2019 Analog Devices, Inc. +# Copyright (C) 2019-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.context_manager import context_manager from adi.rx_tx import rx diff --git a/adi/ad9625.py b/adi/ad9625.py index b16110845..6be4b4b00 100644 --- a/adi/ad9625.py +++ b/adi/ad9625.py @@ -1,35 +1,6 @@ -# Copyright (C) 2019 Analog Devices, Inc. +# Copyright (C) 2019-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from decimal import Decimal diff --git a/adi/ad9680.py b/adi/ad9680.py index 7d827b5ad..9cc8b7f52 100644 --- a/adi/ad9680.py +++ b/adi/ad9680.py @@ -1,35 +1,6 @@ -# Copyright (C) 2019 Analog Devices, Inc. +# Copyright (C) 2019-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.context_manager import context_manager from adi.rx_tx import rx diff --git a/adi/ad9739a.py b/adi/ad9739a.py index 75c9984c0..46b5211e1 100644 --- a/adi/ad9739a.py +++ b/adi/ad9739a.py @@ -1,35 +1,6 @@ -# Copyright (C) 2019 Analog Devices, Inc. +# Copyright (C) 2019-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.context_manager import context_manager from adi.rx_tx import tx diff --git a/adi/ada4961.py b/adi/ada4961.py index eb7fa37de..c9aa8182a 100644 --- a/adi/ada4961.py +++ b/adi/ada4961.py @@ -1,35 +1,6 @@ -# Copyright (C) 2019 Analog Devices, Inc. +# Copyright (C) 2019-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.attribute import attribute from adi.context_manager import context_manager diff --git a/adi/adaq8092.py b/adi/adaq8092.py index 6434a85ca..4796ed12c 100644 --- a/adi/adaq8092.py +++ b/adi/adaq8092.py @@ -1,35 +1,6 @@ -# Copyright (C) 2022 Analog Devices, Inc. +# Copyright (C) 2022-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import numpy as np from adi.context_manager import context_manager diff --git a/adi/adar1000.py b/adi/adar1000.py index 0c006f63a..5314c2d02 100644 --- a/adi/adar1000.py +++ b/adi/adar1000.py @@ -1,35 +1,6 @@ -# Copyright (C) 2020 Analog Devices, Inc. +# Copyright (C) 2020-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from math import pi, sin diff --git a/adi/adf4159.py b/adi/adf4159.py index 7af36b4d8..feeabdc5b 100644 --- a/adi/adf4159.py +++ b/adi/adf4159.py @@ -1,136 +1,107 @@ -# Copyright (C) 2021 Analog Devices, Inc. -# -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - -from adi.attribute import attribute -from adi.context_manager import context_manager - - -class adf4159(context_manager, attribute): - - """ ADF4159 is a 13 GHz Fractional-N Frequency Synthesizer """ - - _device_name = "adf4159" - - def __init__(self, uri=""): - - context_manager.__init__(self, uri, self._device_name) - # Find the device - self._ctrl = self._ctx.find_device(self._device_name) - # Raise an exception if the device isn't found - if not self._ctrl: - raise Exception("ADF4159 device not found") - - @property - def ramp_mode(self): - """Get/Set the Ramp output mode.""" - return self._get_iio_attr_str("altvoltage0", "ramp_mode", True, self._ctrl) - - @ramp_mode.setter - def ramp_mode(self, value): - """Get/Set the Ramp output mode.""" - - valid = self._get_iio_attr_str( - "altvoltage0", "ramp_mode_available", True, self._ctrl - ) - if value not in valid: - - raise ValueError( - f'ramp_mode of "{value}" is invalid. Valid options: "{valid}"' - ) - - self._set_iio_attr("altvoltage0", "ramp_mode", True, value, self._ctrl) - - @property - def enable(self): - """Get/Set the enable status of the RF output.""" - return bool( - int(self._get_iio_attr("altvoltage0", "powerdown", True, self._ctrl)) - ) - - @enable.setter - def enable(self, value): - """Get/Set the enable status of the RF output.""" - self._set_iio_attr("altvoltage0", "powerdown", True, int(value), self._ctrl) - - @property - def frequency(self): - """Get/Set the Output Frequency of PLL.""" - return self._get_iio_attr("altvoltage0", "frequency", True, self._ctrl) - - @frequency.setter - def frequency(self, value): - """Get/Set the Output Frequency of PLL.""" - self._set_iio_attr("altvoltage0", "frequency", True, value, self._ctrl) - - @property - def freq_dev_range(self): - """Get/Set the PLL frequency deviation range.""" - return self._get_iio_attr( - "altvoltage0", "frequency_deviation_range", True, self._ctrl - ) - - @freq_dev_range.setter - def freq_dev_range(self, value): - """Get/Set the PLL frequency deviation range.""" - self._set_iio_attr( - "altvoltage0", "frequency_deviation_range", True, value, self._ctrl - ) - - @property - def freq_dev_step(self): - """Get/Set the PLL frequency deviation step.""" - return self._get_iio_attr( - "altvoltage0", "frequency_deviation_step", True, self._ctrl - ) - - @freq_dev_step.setter - def freq_dev_step(self, value): - """Get/Set the PLL frequency deviation step.""" - self._set_iio_attr( - "altvoltage0", "frequency_deviation_step", True, (1 + value), self._ctrl - ) - - @property - def freq_dev_time(self): - """Get/Set the PLL frequency deviation time.""" - return self._get_iio_attr( - "altvoltage0", "frequency_deviation_time", True, self._ctrl - ) - - @freq_dev_time.setter - def freq_dev_time(self, value): - """Get/Set the PLL frequency deviation time.""" - self._set_iio_attr( - "altvoltage0", "frequency_deviation_time", True, value, self._ctrl - ) +# Copyright (C) 2021-2023 Analog Devices, Inc. +# +# SPDX short identifier: ADIBSD + + +from adi.attribute import attribute +from adi.context_manager import context_manager + + +class adf4159(context_manager, attribute): + + """ ADF4159 is a 13 GHz Fractional-N Frequency Synthesizer """ + + _device_name = "adf4159" + + def __init__(self, uri=""): + + context_manager.__init__(self, uri, self._device_name) + # Find the device + self._ctrl = self._ctx.find_device(self._device_name) + # Raise an exception if the device isn't found + if not self._ctrl: + raise Exception("ADF4159 device not found") + + @property + def ramp_mode(self): + """Get/Set the Ramp output mode.""" + return self._get_iio_attr_str("altvoltage0", "ramp_mode", True, self._ctrl) + + @ramp_mode.setter + def ramp_mode(self, value): + """Get/Set the Ramp output mode.""" + + valid = self._get_iio_attr_str( + "altvoltage0", "ramp_mode_available", True, self._ctrl + ) + if value not in valid: + + raise ValueError( + f'ramp_mode of "{value}" is invalid. Valid options: "{valid}"' + ) + + self._set_iio_attr("altvoltage0", "ramp_mode", True, value, self._ctrl) + + @property + def enable(self): + """Get/Set the enable status of the RF output.""" + return bool( + int(self._get_iio_attr("altvoltage0", "powerdown", True, self._ctrl)) + ) + + @enable.setter + def enable(self, value): + """Get/Set the enable status of the RF output.""" + self._set_iio_attr("altvoltage0", "powerdown", True, int(value), self._ctrl) + + @property + def frequency(self): + """Get/Set the Output Frequency of PLL.""" + return self._get_iio_attr("altvoltage0", "frequency", True, self._ctrl) + + @frequency.setter + def frequency(self, value): + """Get/Set the Output Frequency of PLL.""" + self._set_iio_attr("altvoltage0", "frequency", True, value, self._ctrl) + + @property + def freq_dev_range(self): + """Get/Set the PLL frequency deviation range.""" + return self._get_iio_attr( + "altvoltage0", "frequency_deviation_range", True, self._ctrl + ) + + @freq_dev_range.setter + def freq_dev_range(self, value): + """Get/Set the PLL frequency deviation range.""" + self._set_iio_attr( + "altvoltage0", "frequency_deviation_range", True, value, self._ctrl + ) + + @property + def freq_dev_step(self): + """Get/Set the PLL frequency deviation step.""" + return self._get_iio_attr( + "altvoltage0", "frequency_deviation_step", True, self._ctrl + ) + + @freq_dev_step.setter + def freq_dev_step(self, value): + """Get/Set the PLL frequency deviation step.""" + self._set_iio_attr( + "altvoltage0", "frequency_deviation_step", True, (1 + value), self._ctrl + ) + + @property + def freq_dev_time(self): + """Get/Set the PLL frequency deviation time.""" + return self._get_iio_attr( + "altvoltage0", "frequency_deviation_time", True, self._ctrl + ) + + @freq_dev_time.setter + def freq_dev_time(self, value): + """Get/Set the PLL frequency deviation time.""" + self._set_iio_attr( + "altvoltage0", "frequency_deviation_time", True, value, self._ctrl + ) diff --git a/adi/adf4355.py b/adi/adf4355.py index f2ccd1464..ec589e42b 100644 --- a/adi/adf4355.py +++ b/adi/adf4355.py @@ -1,35 +1,6 @@ -# Copyright (C) 2022 Analog Devices, Inc. +# Copyright (C) 2022-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.attribute import attribute from adi.context_manager import context_manager diff --git a/adi/adf4371.py b/adi/adf4371.py index e4f9e9a83..44f11e48f 100644 --- a/adi/adf4371.py +++ b/adi/adf4371.py @@ -1,35 +1,6 @@ -# Copyright (C) 2020 Analog Devices, Inc. +# Copyright (C) 2020-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.attribute import attribute from adi.context_manager import context_manager diff --git a/adi/adf5610.py b/adi/adf5610.py index 8d4a8cb51..043a50ebd 100644 --- a/adi/adf5610.py +++ b/adi/adf5610.py @@ -1,35 +1,6 @@ -# Copyright (C) 2021 Analog Devices, Inc. +# Copyright (C) 2021-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.attribute import attribute from adi.context_manager import context_manager diff --git a/adi/adg2128.py b/adi/adg2128.py index b45c0354a..07c86db2f 100644 --- a/adi/adg2128.py +++ b/adi/adg2128.py @@ -1,35 +1,6 @@ -# Copyright (C) 2021 Analog Devices, Inc. +# Copyright (C) 2021-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.attribute import attribute from adi.context_manager import context_manager diff --git a/adi/adis16460.py b/adi/adis16460.py index ca492c13a..134ad3461 100644 --- a/adi/adis16460.py +++ b/adi/adis16460.py @@ -1,35 +1,6 @@ -# Copyright (C) 2019 Analog Devices, Inc. +# Copyright (C) 2019-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import numpy as np from adi.context_manager import context_manager diff --git a/adi/adis16495.py b/adi/adis16495.py index c0a80f087..681c6d558 100644 --- a/adi/adis16495.py +++ b/adi/adis16495.py @@ -1,35 +1,6 @@ -# Copyright (C) 2020 Analog Devices, Inc. +# Copyright (C) 2020-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import numpy as np from adi.context_manager import context_manager diff --git a/adi/adis16507.py b/adi/adis16507.py index 9da1dfd9b..fe5c476da 100644 --- a/adi/adis16507.py +++ b/adi/adis16507.py @@ -1,35 +1,6 @@ -# Copyright (C) 2020 Analog Devices, Inc. +# Copyright (C) 2020-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import numpy as np from adi.context_manager import context_manager diff --git a/adi/adl5240.py b/adi/adl5240.py index 684aee4fb..a9406a864 100644 --- a/adi/adl5240.py +++ b/adi/adl5240.py @@ -1,35 +1,6 @@ -# Copyright (C) 2022 Analog Devices, Inc. +# Copyright (C) 2022-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.attribute import attribute from adi.context_manager import context_manager diff --git a/adi/adl5960.py b/adi/adl5960.py index ace8e2e0e..a5d76807f 100644 --- a/adi/adl5960.py +++ b/adi/adl5960.py @@ -1,35 +1,6 @@ -# Copyright (C) 2021 Analog Devices, Inc. +# Copyright (C) 2021-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.attribute import attribute from adi.context_manager import context_manager diff --git a/adi/admv8818.py b/adi/admv8818.py index c69854767..1c9f5622b 100644 --- a/adi/admv8818.py +++ b/adi/admv8818.py @@ -1,35 +1,6 @@ -# Copyright (C) 2021 Analog Devices, Inc. +# Copyright (C) 2021-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.attribute import attribute from adi.context_manager import context_manager diff --git a/adi/adpd1080.py b/adi/adpd1080.py index 982d59b3d..5cd0ee123 100644 --- a/adi/adpd1080.py +++ b/adi/adpd1080.py @@ -1,35 +1,6 @@ -# Copyright (C) 2021 Analog Devices, Inc. +# Copyright (C) 2021-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.attribute import attribute from adi.context_manager import context_manager diff --git a/adi/adpd188.py b/adi/adpd188.py index 90ca787f4..0c619eba7 100644 --- a/adi/adpd188.py +++ b/adi/adpd188.py @@ -1,35 +1,6 @@ -# Copyright (C) 2021 Analog Devices, Inc. +# Copyright (C) 2021-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.attribute import attribute from adi.context_manager import context_manager diff --git a/adi/adpd410x.py b/adi/adpd410x.py index 983455f17..b9623295b 100644 --- a/adi/adpd410x.py +++ b/adi/adpd410x.py @@ -1,35 +1,6 @@ -# Copyright (C) 2021 Analog Devices, Inc. +# Copyright (C) 2021-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.attribute import attribute from adi.context_manager import context_manager diff --git a/adi/adrf5720.py b/adi/adrf5720.py index 312286b9c..6939ee8ab 100644 --- a/adi/adrf5720.py +++ b/adi/adrf5720.py @@ -1,35 +1,6 @@ -# Copyright (C) 2021 Analog Devices, Inc. +# Copyright (C) 2021-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.attribute import attribute from adi.context_manager import context_manager diff --git a/adi/adrv9002.py b/adi/adrv9002.py index e7d2c6ec9..6d5b00a96 100644 --- a/adi/adrv9002.py +++ b/adi/adrv9002.py @@ -1,35 +1,6 @@ -# Copyright (C) 2020 Analog Devices, Inc. +# Copyright (C) 2020-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from ctypes import c_char_p diff --git a/adi/adrv9009.py b/adi/adrv9009.py index 85bc63cc8..20271ad51 100644 --- a/adi/adrv9009.py +++ b/adi/adrv9009.py @@ -1,35 +1,6 @@ -# Copyright (C) 2019 Analog Devices, Inc. +# Copyright (C) 2019-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.context_manager import context_manager from adi.jesd import jesd as jesdadi diff --git a/adi/adrv9009_zu11eg.py b/adi/adrv9009_zu11eg.py index 48337733b..52036466a 100644 --- a/adi/adrv9009_zu11eg.py +++ b/adi/adrv9009_zu11eg.py @@ -1,35 +1,6 @@ -# Copyright (C) 2019 Analog Devices, Inc. +# Copyright (C) 2019-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.adrv9009 import adrv9009 diff --git a/adi/adrv9009_zu11eg_fmcomms8.py b/adi/adrv9009_zu11eg_fmcomms8.py index 4256708cd..baf94adb8 100644 --- a/adi/adrv9009_zu11eg_fmcomms8.py +++ b/adi/adrv9009_zu11eg_fmcomms8.py @@ -1,35 +1,6 @@ -# Copyright (C) 2019 Analog Devices, Inc. +# Copyright (C) 2019-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.adrv9009_zu11eg import adrv9009_zu11eg diff --git a/adi/adrv9009_zu11eg_multi.py b/adi/adrv9009_zu11eg_multi.py index 5a48daebb..a67257d6e 100644 --- a/adi/adrv9009_zu11eg_multi.py +++ b/adi/adrv9009_zu11eg_multi.py @@ -1,35 +1,6 @@ -# Copyright (C) 2020 Analog Devices, Inc. +# Copyright (C) 2020-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import datetime import time diff --git a/adi/adt7420.py b/adi/adt7420.py index d4e817e4a..b7c4cf83d 100644 --- a/adi/adt7420.py +++ b/adi/adt7420.py @@ -1,35 +1,6 @@ -# Copyright (C) 2022 Analog Devices, Inc. +# Copyright (C) 2022-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.attribute import attribute from adi.context_manager import context_manager diff --git a/adi/adxl313.py b/adi/adxl313.py index 111514cf8..6e12018df 100644 --- a/adi/adxl313.py +++ b/adi/adxl313.py @@ -1,35 +1,6 @@ -# Copyright (C) 2022 Analog Devices, Inc. +# Copyright (C) 2022-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import numpy as np from adi.attribute import attribute diff --git a/adi/adxl345.py b/adi/adxl345.py index 1e58bb9a2..b86c21c20 100644 --- a/adi/adxl345.py +++ b/adi/adxl345.py @@ -1,35 +1,6 @@ -# Copyright (C) 2019 Analog Devices, Inc. +# Copyright (C) 2019-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from decimal import Decimal diff --git a/adi/adxl355.py b/adi/adxl355.py index 095f388ce..1776bad0f 100644 --- a/adi/adxl355.py +++ b/adi/adxl355.py @@ -1,35 +1,6 @@ -# Copyright (C) 2021 Analog Devices, Inc. +# Copyright (C) 2021-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from decimal import Decimal diff --git a/adi/adxrs290.py b/adi/adxrs290.py index 509477c4e..68abc77f5 100644 --- a/adi/adxrs290.py +++ b/adi/adxrs290.py @@ -1,35 +1,6 @@ -# Copyright (C) 2020 Analog Devices, Inc. +# Copyright (C) 2020-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import numpy as np from adi.attribute import attribute diff --git a/adi/attribute.py b/adi/attribute.py index 21ff0e0cf..ce5f0f2f3 100644 --- a/adi/attribute.py +++ b/adi/attribute.py @@ -1,35 +1,6 @@ -# Copyright (C) 2019 Analog Devices, Inc. +# Copyright (C) 2019-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import re diff --git a/adi/cn0511.py b/adi/cn0511.py index 56eec46f2..3ab1f8672 100644 --- a/adi/cn0511.py +++ b/adi/cn0511.py @@ -1,35 +1,6 @@ -# Copyright (C) 2019 Analog Devices, Inc. +# Copyright (C) 2019-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import numpy as np from adi.ad9166 import ad9166 as ad9166_adi # pyadi-iio library from adi.context_manager import context_manager diff --git a/adi/cn0532.py b/adi/cn0532.py index ff4ed00f8..de8a87d4c 100644 --- a/adi/cn0532.py +++ b/adi/cn0532.py @@ -1,35 +1,6 @@ -# Copyright (C) 2020 Analog Devices, Inc. +# Copyright (C) 2020-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import time diff --git a/adi/cn0540.py b/adi/cn0540.py index 7282c682b..5f18bf7f8 100644 --- a/adi/cn0540.py +++ b/adi/cn0540.py @@ -1,35 +1,6 @@ -# Copyright (C) 2020 Analog Devices, Inc. +# Copyright (C) 2020-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import time diff --git a/adi/cn0554.py b/adi/cn0554.py index 134da07d7..137624d9b 100644 --- a/adi/cn0554.py +++ b/adi/cn0554.py @@ -1,35 +1,6 @@ # Copyright (C) 2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import adi diff --git a/adi/cn0575.py b/adi/cn0575.py index ee903e1d6..77989f4ce 100644 --- a/adi/cn0575.py +++ b/adi/cn0575.py @@ -1,35 +1,6 @@ # Copyright (C) 2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import adi diff --git a/adi/context_manager.py b/adi/context_manager.py index 15342b2d4..7fbc88d87 100644 --- a/adi/context_manager.py +++ b/adi/context_manager.py @@ -1,35 +1,6 @@ -# Copyright (C) 2019 Analog Devices, Inc. +# Copyright (C) 2019-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import iio diff --git a/adi/daq2.py b/adi/daq2.py index 2acb6379b..81c3b8d9c 100644 --- a/adi/daq2.py +++ b/adi/daq2.py @@ -1,35 +1,6 @@ -# Copyright (C) 2019 Analog Devices, Inc. +# Copyright (C) 2019-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.ad9144 import ad9144 from adi.ad9680 import ad9680 diff --git a/adi/daq3.py b/adi/daq3.py index 138787ffd..cca24f7df 100644 --- a/adi/daq3.py +++ b/adi/daq3.py @@ -1,35 +1,6 @@ -# Copyright (C) 2019 Analog Devices, Inc. +# Copyright (C) 2019-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.ad9152 import ad9152 from adi.ad9680 import ad9680 diff --git a/adi/dds.py b/adi/dds.py index 5984bf536..33c99d544 100644 --- a/adi/dds.py +++ b/adi/dds.py @@ -1,35 +1,6 @@ -# Copyright (C) 2019 Analog Devices, Inc. +# Copyright (C) 2019-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import numpy as np from adi.attribute import attribute diff --git a/adi/dsp.py b/adi/dsp.py index 7fa8559d8..876643cc4 100644 --- a/adi/dsp.py +++ b/adi/dsp.py @@ -1,35 +1,6 @@ -# Copyright (C) 2022 Analog Devices, Inc. +# Copyright (C) 2022-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from numpy import min diff --git a/adi/fmc_vna.py b/adi/fmc_vna.py index 3341a96eb..69ed1c27b 100644 --- a/adi/fmc_vna.py +++ b/adi/fmc_vna.py @@ -1,35 +1,6 @@ -# Copyright (C) 2019 Analog Devices, Inc. +# Copyright (C) 2019-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import numpy as np from adi.ad9083 import ad9083 diff --git a/adi/fmcadc3.py b/adi/fmcadc3.py index 0ad43f436..d58568ab3 100644 --- a/adi/fmcadc3.py +++ b/adi/fmcadc3.py @@ -1,35 +1,6 @@ -# Copyright (C) 2019 Analog Devices, Inc. +# Copyright (C) 2019-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.ad9625 import ad9625 from adi.ada4961 import ada4961 diff --git a/adi/fmcjesdadc1.py b/adi/fmcjesdadc1.py index de273fa2e..9b275994a 100644 --- a/adi/fmcjesdadc1.py +++ b/adi/fmcjesdadc1.py @@ -1,35 +1,6 @@ -# Copyright (C) 2019 Analog Devices, Inc. +# Copyright (C) 2019-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.ad9250 import ad9250 from adi.context_manager import context_manager diff --git a/adi/fmclidar1.py b/adi/fmclidar1.py index c22019cb8..298029425 100644 --- a/adi/fmclidar1.py +++ b/adi/fmclidar1.py @@ -1,35 +1,6 @@ -# Copyright (C) 2019 Analog Devices, Inc. +# Copyright (C) 2019-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import numpy as np from adi.ad5627 import ad5627 diff --git a/adi/fmcomms11.py b/adi/fmcomms11.py index 13d650d82..f9aae6607 100644 --- a/adi/fmcomms11.py +++ b/adi/fmcomms11.py @@ -1,35 +1,6 @@ -# Copyright (C) 2022 Analog Devices, Inc. +# Copyright (C) 2022-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.ad9162 import ad9162 from adi.ad9625 import ad9625 diff --git a/adi/fmcomms5.py b/adi/fmcomms5.py index 36e5b2689..dfaf5f4c4 100644 --- a/adi/fmcomms5.py +++ b/adi/fmcomms5.py @@ -1,35 +1,6 @@ -# Copyright (C) 2019 Analog Devices, Inc. +# Copyright (C) 2019-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.ad936x import ad9361 from adi.context_manager import context_manager diff --git a/adi/gen_mux.py b/adi/gen_mux.py index afce5c4df..42d7420c9 100644 --- a/adi/gen_mux.py +++ b/adi/gen_mux.py @@ -1,35 +1,6 @@ -# Copyright (C) 2021 Analog Devices, Inc. +# Copyright (C) 2021-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.attribute import attribute from adi.context_manager import context_manager diff --git a/adi/jesd.py b/adi/jesd.py index 4352236bb..f4283ba3b 100644 --- a/adi/jesd.py +++ b/adi/jesd.py @@ -1,35 +1,6 @@ -# Copyright (C) 2022 Analog Devices, Inc. +# Copyright (C) 2022-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD """JESD Shim import to handle JESD as optional dependency""" diff --git a/adi/jesd_internal.py b/adi/jesd_internal.py index e8ef0dd0d..a698238f6 100644 --- a/adi/jesd_internal.py +++ b/adi/jesd_internal.py @@ -1,35 +1,6 @@ -# Copyright (C) 2020 Analog Devices, Inc. +# Copyright (C) 2020-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from .sshfs import sshfs diff --git a/adi/lm75.py b/adi/lm75.py index 86e722757..5ba0eb815 100644 --- a/adi/lm75.py +++ b/adi/lm75.py @@ -1,35 +1,6 @@ -# Copyright (C) 2022 Analog Devices, Inc. +# Copyright (C) 2022-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.attribute import attribute from adi.context_manager import context_manager diff --git a/adi/ltc2314_14.py b/adi/ltc2314_14.py index 47cca745e..5fc9d09eb 100644 --- a/adi/ltc2314_14.py +++ b/adi/ltc2314_14.py @@ -1,35 +1,6 @@ -# Copyright (C) 2020 Analog Devices, Inc. +# Copyright (C) 2020-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.attribute import attribute from adi.context_manager import context_manager diff --git a/adi/ltc2387.py b/adi/ltc2387.py index 74c85e920..b904a8dad 100644 --- a/adi/ltc2387.py +++ b/adi/ltc2387.py @@ -1,92 +1,63 @@ -# Copyright (C) 2022 Analog Devices, Inc. -# -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -import numpy as np -from adi.context_manager import context_manager -from adi.rx_tx import rx - - -class ltc2387(rx, context_manager): - - """LTC2387 family devices""" - - _device_name = "" - _rx_data_type = np.int32 - _complex_data = False - _rx_channel_names = ["voltage"] - - def __init__(self, uri="", device_index=0): - - context_manager.__init__(self, uri, self._device_name) - - compatible_parts = [ - "ltc2387", - "ltc2387-16", - "ltc2387-18", - "adaq23876", - "adaq23878", - ] - - self._ctrl = None - index = 0 - - # Selecting the device_index-th device from the xxx2387 family as working device. - for device in self._ctx.devices: - if device.name in compatible_parts: - if index == device_index: - self._ctrl = device - self._rxadc = device - break - else: - index += 1 - - rx.__init__(self) - - @property - def sampling_frequency(self): - - """sample_rate: Sample rate in samples per second. - Valid options are: - Device's maximum sample rate (15000000 in the case of the LTC2387-18) and lower. - Actual sample rates will be the master clock divided by an integer, for example, - the CN0577 has a 120 MHz clock, so available sample rates will be: - 120 MHz / 8 = 15 Msps - 120 MHz / 9 = 13.333 Msps - 120 MHz / 10 = 12 Msps - etc. - """ - return self._get_iio_dev_attr("sampling_frequency") - - @sampling_frequency.setter - def sampling_frequency(self, value): - self._set_iio_dev_attr_str("sampling_frequency", value) +# 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 ltc2387(rx, context_manager): + + """LTC2387 family devices""" + + _device_name = "" + _rx_data_type = np.int32 + _complex_data = False + _rx_channel_names = ["voltage"] + + def __init__(self, uri="", device_index=0): + + context_manager.__init__(self, uri, self._device_name) + + compatible_parts = [ + "ltc2387", + "ltc2387-16", + "ltc2387-18", + "adaq23876", + "adaq23878", + ] + + self._ctrl = None + index = 0 + + # Selecting the device_index-th device from the xxx2387 family as working device. + for device in self._ctx.devices: + if device.name in compatible_parts: + if index == device_index: + self._ctrl = device + self._rxadc = device + break + else: + index += 1 + + rx.__init__(self) + + @property + def sampling_frequency(self): + + """sample_rate: Sample rate in samples per second. + Valid options are: + Device's maximum sample rate (15000000 in the case of the LTC2387-18) and lower. + Actual sample rates will be the master clock divided by an integer, for example, + the CN0577 has a 120 MHz clock, so available sample rates will be: + 120 MHz / 8 = 15 Msps + 120 MHz / 9 = 13.333 Msps + 120 MHz / 10 = 12 Msps + etc. + """ + return self._get_iio_dev_attr("sampling_frequency") + + @sampling_frequency.setter + def sampling_frequency(self, value): + self._set_iio_dev_attr_str("sampling_frequency", value) diff --git a/adi/ltc2499.py b/adi/ltc2499.py index 979e937a5..39bd7aa98 100644 --- a/adi/ltc2499.py +++ b/adi/ltc2499.py @@ -1,35 +1,6 @@ -# Copyright (C) 2022 Analog Devices, Inc. +# Copyright (C) 2022-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from collections import OrderedDict import numpy as np diff --git a/adi/ltc2688.py b/adi/ltc2688.py index 334070f19..ae871d769 100644 --- a/adi/ltc2688.py +++ b/adi/ltc2688.py @@ -1,35 +1,6 @@ # Copyright (C) 2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.attribute import attribute from adi.context_manager import context_manager diff --git a/adi/ltc2983.py b/adi/ltc2983.py index 2cf6f61b8..7557f3c50 100644 --- a/adi/ltc2983.py +++ b/adi/ltc2983.py @@ -1,3 +1,6 @@ +# Copyright (C) 2023 Analog Devices, Inc. +# +# SPDX short identifier: ADIBSD import numbers from collections import OrderedDict from collections.abc import Iterable diff --git a/adi/max11205.py b/adi/max11205.py index 7447bf9ec..93ace91dc 100644 --- a/adi/max11205.py +++ b/adi/max11205.py @@ -1,35 +1,6 @@ -# Copyright (C) 2022 Analog Devices, Inc. +# Copyright (C) 2022-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import numpy as np diff --git a/adi/max14001.py b/adi/max14001.py index c5453c857..4e7c1b9a4 100644 --- a/adi/max14001.py +++ b/adi/max14001.py @@ -1,35 +1,6 @@ # Copyright (C) 2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import numpy as np diff --git a/adi/max31855.py b/adi/max31855.py index aebdd595e..9976f7b31 100644 --- a/adi/max31855.py +++ b/adi/max31855.py @@ -1,35 +1,6 @@ -# Copyright (C) 2022 Analog Devices, Inc. +# Copyright (C) 2022-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import numpy as np from adi.attribute import attribute diff --git a/adi/max31865.py b/adi/max31865.py index 331bed70a..45947a2f9 100644 --- a/adi/max31865.py +++ b/adi/max31865.py @@ -1,35 +1,6 @@ -# Copyright (C) 2022 Analog Devices, Inc. +# Copyright (C) 2022-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import numpy as np from adi.attribute import attribute from adi.context_manager import context_manager diff --git a/adi/max9611.py b/adi/max9611.py index 28354cecf..214601831 100644 --- a/adi/max9611.py +++ b/adi/max9611.py @@ -1,35 +1,6 @@ # Copyright (C) 2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.attribute import attribute from adi.context_manager import context_manager diff --git a/adi/obs.py b/adi/obs.py index 41a6e6c12..ddfe30b9d 100644 --- a/adi/obs.py +++ b/adi/obs.py @@ -1,35 +1,6 @@ -# Copyright (C) 2020 Analog Devices, Inc. +# Copyright (C) 2020-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.rx_tx import rx, tx diff --git a/adi/one_bit_adc_dac.py b/adi/one_bit_adc_dac.py index b882dacfb..d0ec81701 100644 --- a/adi/one_bit_adc_dac.py +++ b/adi/one_bit_adc_dac.py @@ -1,35 +1,6 @@ -# Copyright (C) 2020 Analog Devices, Inc. +# Copyright (C) 2020-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.attribute import attribute from adi.context_manager import context_manager diff --git a/adi/rx_tx.py b/adi/rx_tx.py index 36109dcc5..8f19b8adb 100644 --- a/adi/rx_tx.py +++ b/adi/rx_tx.py @@ -1,35 +1,6 @@ -# Copyright (C) 2019 Analog Devices, Inc. +# Copyright (C) 2019-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from abc import ABCMeta, abstractmethod from typing import List, Union diff --git a/adi/sshfs.py b/adi/sshfs.py index bb5dce827..af47d3560 100644 --- a/adi/sshfs.py +++ b/adi/sshfs.py @@ -1,35 +1,6 @@ # Copyright (C) 2021 Xiphos Systems Corp. -# -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SKIP LICENSE INSERTION +# SPDX short identifier: ADIBSD from contextlib import suppress diff --git a/adi/sync_start.py b/adi/sync_start.py index b5c796c41..3b2cebe52 100644 --- a/adi/sync_start.py +++ b/adi/sync_start.py @@ -1,35 +1,6 @@ -# Copyright (C) 2022 Analog Devices, Inc. +# Copyright (C) 2022-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from adi.attribute import attribute diff --git a/adi/tdd.py b/adi/tdd.py index 2e7b79e81..dacdf12ee 100644 --- a/adi/tdd.py +++ b/adi/tdd.py @@ -1,35 +1,6 @@ -# Copyright (C) 2021 Analog Devices, Inc. +# Copyright (C) 2021-2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from typing import List diff --git a/examples/QuadMxFE_dual_example.py b/examples/QuadMxFE_dual_example.py index d3e01cde7..51caae2ed 100644 --- a/examples/QuadMxFE_dual_example.py +++ b/examples/QuadMxFE_dual_example.py @@ -1,35 +1,6 @@ # Copyright (C) 2021 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import time from datetime import datetime diff --git a/examples/QuadMxFE_example.py b/examples/QuadMxFE_example.py index f4f60d907..46932e108 100644 --- a/examples/QuadMxFE_example.py +++ b/examples/QuadMxFE_example.py @@ -1,35 +1,6 @@ # Copyright (C) 2021 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import time from datetime import datetime diff --git a/examples/QuadMxFE_ffh_example.py b/examples/QuadMxFE_ffh_example.py index cf1c027bf..e6071b130 100644 --- a/examples/QuadMxFE_ffh_example.py +++ b/examples/QuadMxFE_ffh_example.py @@ -1,35 +1,6 @@ # Copyright (C) 2021 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import time from datetime import datetime diff --git a/examples/ad4020_example.py b/examples/ad4020_example.py index b8b8c91ff..0b8dfc642 100644 --- a/examples/ad4020_example.py +++ b/examples/ad4020_example.py @@ -1,35 +1,6 @@ # Copyright (C) 2022 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import sys diff --git a/examples/ad4110_example.py b/examples/ad4110_example.py index d65235e5e..39f34e341 100644 --- a/examples/ad4110_example.py +++ b/examples/ad4110_example.py @@ -1,35 +1,6 @@ # Copyright (C) 2022 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import adi import numpy as np diff --git a/examples/ad4130_example.py b/examples/ad4130_example.py index 375ffd0e5..0d64c7fdd 100644 --- a/examples/ad4130_example.py +++ b/examples/ad4130_example.py @@ -1,35 +1,6 @@ # Copyright (C) 2022 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import adi import numpy as np diff --git a/examples/ad4630/ad4630_example_all_mode.py b/examples/ad4630/ad4630_example_all_mode.py index b2d4f13b2..41c6b619f 100644 --- a/examples/ad4630/ad4630_example_all_mode.py +++ b/examples/ad4630/ad4630_example_all_mode.py @@ -1,35 +1,6 @@ # Copyright (C) 2022 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import time diff --git a/examples/ad4630/ad4630_example_simple_plot.py b/examples/ad4630/ad4630_example_simple_plot.py index 894807c57..e6673af6f 100644 --- a/examples/ad4630/ad4630_example_simple_plot.py +++ b/examples/ad4630/ad4630_example_simple_plot.py @@ -1,35 +1,6 @@ # Copyright (C) 2022 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import adi diff --git a/examples/ad469x_example.py b/examples/ad469x_example.py index fa9e774a5..48e090535 100644 --- a/examples/ad469x_example.py +++ b/examples/ad469x_example.py @@ -1,35 +1,6 @@ # Copyright (C) 2022 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import adi import numpy as np diff --git a/examples/ad5592r_example.py b/examples/ad5592r_example.py index ea128bc98..235028c52 100644 --- a/examples/ad5592r_example.py +++ b/examples/ad5592r_example.py @@ -1,35 +1,6 @@ # Copyright (C) 2021 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import sys diff --git a/examples/ad5592r_examples/ad5592r_gpio_example.py b/examples/ad5592r_examples/ad5592r_gpio_example.py index e5aa5dd73..6607bedd4 100644 --- a/examples/ad5592r_examples/ad5592r_gpio_example.py +++ b/examples/ad5592r_examples/ad5592r_gpio_example.py @@ -1,35 +1,6 @@ # Copyright (C) 2021 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import sys diff --git a/examples/ad6676.py b/examples/ad6676.py index 2ee0c4057..5c8c30d43 100644 --- a/examples/ad6676.py +++ b/examples/ad6676.py @@ -1,35 +1,6 @@ # Copyright (C) 2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import time diff --git a/examples/ad7124.py b/examples/ad7124.py index 677819e63..775dfa1ed 100644 --- a/examples/ad7124.py +++ b/examples/ad7124.py @@ -1,35 +1,6 @@ # Copyright (C) 2019 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import adi import matplotlib.pyplot as plt diff --git a/examples/ad717x_example.py b/examples/ad717x_example.py index 2c6e779db..e82896993 100644 --- a/examples/ad717x_example.py +++ b/examples/ad717x_example.py @@ -1,35 +1,6 @@ # Copyright (C) 2022 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import adi import numpy as np diff --git a/examples/ad719x_example.py b/examples/ad719x_example.py index c2bdec661..16b63a963 100644 --- a/examples/ad719x_example.py +++ b/examples/ad719x_example.py @@ -1,35 +1,6 @@ # Copyright (C) 2022 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import adi import numpy as np diff --git a/examples/ad7291_example_.py b/examples/ad7291_example_.py index 104758834..0d7046ebb 100644 --- a/examples/ad7291_example_.py +++ b/examples/ad7291_example_.py @@ -1,35 +1,6 @@ # Copyright (C) 2021 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import sys diff --git a/examples/ad7606.py b/examples/ad7606.py index b198c62f3..7978d3f84 100644 --- a/examples/ad7606.py +++ b/examples/ad7606.py @@ -1,35 +1,6 @@ # Copyright (C) 2021 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import adi import matplotlib.pyplot as plt diff --git a/examples/ad7689.py b/examples/ad7689.py index 476f48cac..1115cf171 100644 --- a/examples/ad7689.py +++ b/examples/ad7689.py @@ -1,35 +1,6 @@ # Copyright (C) 2021 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import adi import matplotlib.pyplot as plt diff --git a/examples/ad7746-ebz.py b/examples/ad7746-ebz.py index 592dc9437..0b98a0ffb 100644 --- a/examples/ad7746-ebz.py +++ b/examples/ad7746-ebz.py @@ -1,35 +1,6 @@ # Copyright (C) 2021 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import sys from time import sleep diff --git a/examples/ad7746.py b/examples/ad7746.py index 16ff0f1ed..1886c11a0 100644 --- a/examples/ad7746.py +++ b/examples/ad7746.py @@ -1,35 +1,6 @@ # Copyright (C) 2021 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import adi diff --git a/examples/ad7768_example.py b/examples/ad7768_example.py index f0e1feb41..4be625dc1 100644 --- a/examples/ad7768_example.py +++ b/examples/ad7768_example.py @@ -1,35 +1,6 @@ # Copyright (C) 2021 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import sys from time import sleep diff --git a/examples/ad777x_example.py b/examples/ad777x_example.py index 545d4cfa7..69503cb34 100644 --- a/examples/ad777x_example.py +++ b/examples/ad777x_example.py @@ -1,35 +1,6 @@ # Copyright (C) 2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import adi import numpy as np diff --git a/examples/ad9081_dma_example.py b/examples/ad9081_dma_example.py index 127f9a850..c8250fe23 100644 --- a/examples/ad9081_dma_example.py +++ b/examples/ad9081_dma_example.py @@ -1,35 +1,6 @@ # Copyright (C) 2021 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import adi import matplotlib.pyplot as plt diff --git a/examples/ad9081_example.py b/examples/ad9081_example.py index 9e101927c..e24a1fd38 100644 --- a/examples/ad9081_example.py +++ b/examples/ad9081_example.py @@ -1,35 +1,6 @@ # Copyright (C) 2020 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import time diff --git a/examples/ad9081_ffh_example.py b/examples/ad9081_ffh_example.py index 870663692..80378f68e 100644 --- a/examples/ad9081_ffh_example.py +++ b/examples/ad9081_ffh_example.py @@ -1,35 +1,6 @@ # Copyright (C) 2022 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD # This example configures and the Rx/Tx frequency hopping NCOs. diff --git a/examples/ad9081_sync_start_example.py b/examples/ad9081_sync_start_example.py index ea951b3ee..de0a326c9 100644 --- a/examples/ad9081_sync_start_example.py +++ b/examples/ad9081_sync_start_example.py @@ -1,35 +1,6 @@ # Copyright (C) 2022 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import time diff --git a/examples/ad9081_tdd_example.py b/examples/ad9081_tdd_example.py index d3b951367..d0812f7bd 100644 --- a/examples/ad9081_tdd_example.py +++ b/examples/ad9081_tdd_example.py @@ -1,35 +1,6 @@ # Copyright (C) 2021 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import sys diff --git a/examples/ad9083_vna.py b/examples/ad9083_vna.py index 9f341cdbd..89ae96e4c 100644 --- a/examples/ad9083_vna.py +++ b/examples/ad9083_vna.py @@ -1,35 +1,6 @@ # Copyright (C) 2021 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import time diff --git a/examples/ad9172.py b/examples/ad9172.py index 443c72d69..74ab8f7f0 100644 --- a/examples/ad9172.py +++ b/examples/ad9172.py @@ -1,35 +1,6 @@ # Copyright (C) 2022 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import time diff --git a/examples/ad9265.py b/examples/ad9265.py index 6172d2772..f71d2d9d9 100644 --- a/examples/ad9265.py +++ b/examples/ad9265.py @@ -1,68 +1,10 @@ # Copyright (C) 2019 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD # Copyright (C) 2019 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import time diff --git a/examples/ad9361_example.py b/examples/ad9361_example.py index 71c24f574..911acfcdc 100644 --- a/examples/ad9361_example.py +++ b/examples/ad9361_example.py @@ -1,35 +1,6 @@ # Copyright (C) 2022 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import time diff --git a/examples/ad9371.py b/examples/ad9371.py index 60c2c5fdd..87c16454c 100644 --- a/examples/ad9371.py +++ b/examples/ad9371.py @@ -1,35 +1,6 @@ # Copyright (C) 2019 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import time diff --git a/examples/ad9371_dec8.py b/examples/ad9371_dec8.py index 465167275..6e2e703b2 100644 --- a/examples/ad9371_dec8.py +++ b/examples/ad9371_dec8.py @@ -1,35 +1,6 @@ # Copyright (C) 2019 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import time diff --git a/examples/ad9434.py b/examples/ad9434.py index dec9296fd..cccb30481 100644 --- a/examples/ad9434.py +++ b/examples/ad9434.py @@ -1,68 +1,10 @@ # Copyright (C) 2019 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD # Copyright (C) 2019 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import time diff --git a/examples/ad9467.py b/examples/ad9467.py index 80a92c836..894e006e0 100644 --- a/examples/ad9467.py +++ b/examples/ad9467.py @@ -1,35 +1,6 @@ # Copyright (C) 2019 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import time diff --git a/examples/ad9739a.py b/examples/ad9739a.py index 58659fe73..1130c4469 100644 --- a/examples/ad9739a.py +++ b/examples/ad9739a.py @@ -1,68 +1,10 @@ # Copyright (C) 2019 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD # Copyright (C) 2019 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import time diff --git a/examples/adaq8092_example.py b/examples/adaq8092_example.py index 2fde95b53..710340ebc 100644 --- a/examples/adaq8092_example.py +++ b/examples/adaq8092_example.py @@ -1,35 +1,6 @@ # Copyright (C) 2022 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import sys diff --git a/examples/adar1000_array_example.py b/examples/adar1000_array_example.py index 60eab0ff0..f5a5ebcf5 100644 --- a/examples/adar1000_array_example.py +++ b/examples/adar1000_array_example.py @@ -1,35 +1,6 @@ # Copyright (C) 2020 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD """ Example of how to use the adar1000_array class """ diff --git a/examples/adar1000_single_example.py b/examples/adar1000_single_example.py index 39830a954..5e383660c 100644 --- a/examples/adar1000_single_example.py +++ b/examples/adar1000_single_example.py @@ -1,35 +1,6 @@ # Copyright (C) 2020 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD """ Example of how to use the adar1000 class """ diff --git a/examples/adf4159_example.py b/examples/adf4159_example.py index 83a5360aa..b64b3e3de 100644 --- a/examples/adf4159_example.py +++ b/examples/adf4159_example.py @@ -1,35 +1,6 @@ # Copyright (C) 2021 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import time diff --git a/examples/adis16460.py b/examples/adis16460.py index 7016e7812..5c267b3b2 100644 --- a/examples/adis16460.py +++ b/examples/adis16460.py @@ -1,35 +1,6 @@ # Copyright (C) 2019 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import adi import matplotlib.pyplot as plt diff --git a/examples/adis16507_example.py b/examples/adis16507_example.py index f64cafe39..e666f65df 100644 --- a/examples/adis16507_example.py +++ b/examples/adis16507_example.py @@ -1,35 +1,6 @@ # Copyright (C) 2020 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import adi import matplotlib.pyplot as plt diff --git a/examples/adpd1080.py b/examples/adpd1080.py index ee7f3adca..8a7dcbc56 100644 --- a/examples/adpd1080.py +++ b/examples/adpd1080.py @@ -1,35 +1,6 @@ # Copyright (C) 2021 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import adi diff --git a/examples/adpd188.py b/examples/adpd188.py index c15a037cf..2bc8f2a1d 100644 --- a/examples/adpd188.py +++ b/examples/adpd188.py @@ -1,35 +1,6 @@ # Copyright (C) 2021 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import adi diff --git a/examples/adrv9009.py b/examples/adrv9009.py index c76d19048..3a208d8d4 100644 --- a/examples/adrv9009.py +++ b/examples/adrv9009.py @@ -1,35 +1,6 @@ # Copyright (C) 2019 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import time diff --git a/examples/adrv9009_som.py b/examples/adrv9009_som.py index 3fa5e7b1e..5575ce3a7 100644 --- a/examples/adrv9009_som.py +++ b/examples/adrv9009_som.py @@ -1,35 +1,6 @@ # Copyright (C) 2019 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import time diff --git a/examples/adrv9009_som_fhm_phase.py b/examples/adrv9009_som_fhm_phase.py index a8a29e631..b521e5fa8 100644 --- a/examples/adrv9009_som_fhm_phase.py +++ b/examples/adrv9009_som_fhm_phase.py @@ -1,35 +1,6 @@ # Copyright (C) 2019 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import time diff --git a/examples/adrv9009_som_multi.py b/examples/adrv9009_som_multi.py index 8d2f8ce96..71410f975 100644 --- a/examples/adrv9009_som_multi.py +++ b/examples/adrv9009_som_multi.py @@ -1,35 +1,6 @@ # Copyright (C) 2020-2021 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD # type: ignore diff --git a/examples/adrv9009_som_single_sync.py b/examples/adrv9009_som_single_sync.py index d62d0451c..b3cd724cb 100644 --- a/examples/adrv9009_som_single_sync.py +++ b/examples/adrv9009_som_single_sync.py @@ -1,35 +1,6 @@ # Copyright (C) 2020-2021 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD # type: ignore diff --git a/examples/adrv9009_som_sync.py b/examples/adrv9009_som_sync.py index 2d7882c25..dfc1063ba 100644 --- a/examples/adrv9009_som_sync.py +++ b/examples/adrv9009_som_sync.py @@ -1,35 +1,6 @@ # Copyright (C) 2019 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import time diff --git a/examples/adt7420_example.py b/examples/adt7420_example.py index ac6516aad..e408d058c 100644 --- a/examples/adt7420_example.py +++ b/examples/adt7420_example.py @@ -1,35 +1,6 @@ # Copyright (C) 2022 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import time diff --git a/examples/adxl313_example.py b/examples/adxl313_example.py index 3553ef10e..cb5acb884 100644 --- a/examples/adxl313_example.py +++ b/examples/adxl313_example.py @@ -1,35 +1,6 @@ # Copyright (C) 2022 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import sys import time diff --git a/examples/adxl345_example.py b/examples/adxl345_example.py index f5a4f61c0..03f643568 100644 --- a/examples/adxl345_example.py +++ b/examples/adxl345_example.py @@ -1,35 +1,6 @@ # Copyright (C) 2019 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import time diff --git a/examples/adxl355_example.py b/examples/adxl355_example.py index 395725ab0..0bd0649a9 100644 --- a/examples/adxl355_example.py +++ b/examples/adxl355_example.py @@ -1,35 +1,6 @@ # Copyright (C) 2021 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import sys import time diff --git a/examples/adxl355_no_os_example.py b/examples/adxl355_no_os_example.py index 9c69de65c..5895ba3b1 100644 --- a/examples/adxl355_no_os_example.py +++ b/examples/adxl355_no_os_example.py @@ -1,35 +1,6 @@ # Copyright (C) 2022 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import sys import time diff --git a/examples/adxrs290.py b/examples/adxrs290.py index e185213db..419f5475e 100644 --- a/examples/adxrs290.py +++ b/examples/adxrs290.py @@ -1,35 +1,6 @@ # Copyright (C) 2020 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD from typing import List diff --git a/examples/cn0511_example.py b/examples/cn0511_example.py index 8e3b07bd1..bd7265371 100644 --- a/examples/cn0511_example.py +++ b/examples/cn0511_example.py @@ -1,35 +1,6 @@ # Copyright (C) 2019 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import sys import time diff --git a/examples/cn0548_py.py b/examples/cn0548_py.py index d9ca9ad5e..1018e44f3 100644 --- a/examples/cn0548_py.py +++ b/examples/cn0548_py.py @@ -2,7 +2,7 @@ # Description: IIO python script for CN0548 # Author: Antoniu Miclaus (antoniu.miclaus@analog.com) # -# Copyright 2021(c) Analog Devices, Inc. +# Copyright 2019-2019-2023(c) Analog Devices, Inc. # # All rights reserved. # diff --git a/examples/cn0554_example.py b/examples/cn0554_example.py index 5407699ee..c55d9d526 100644 --- a/examples/cn0554_example.py +++ b/examples/cn0554_example.py @@ -1,35 +1,6 @@ # Copyright (C) 2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import sys import time diff --git a/examples/cn0569/adpd2140_gesture_sensor.py b/examples/cn0569/adpd2140_gesture_sensor.py index 5c87a1dc7..a5e348616 100644 --- a/examples/cn0569/adpd2140_gesture_sensor.py +++ b/examples/cn0569/adpd2140_gesture_sensor.py @@ -1,35 +1,6 @@ # Copyright (C) 2021 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import math diff --git a/examples/cn0569/cn0569_theremin_module.py b/examples/cn0569/cn0569_theremin_module.py index a81196c4b..9ddb176ab 100644 --- a/examples/cn0569/cn0569_theremin_module.py +++ b/examples/cn0569/cn0569_theremin_module.py @@ -1,35 +1,6 @@ # Copyright (C) 2021 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import math diff --git a/examples/cn0575_example.py b/examples/cn0575_example.py index cff9250b8..6cb938f85 100644 --- a/examples/cn0575_example.py +++ b/examples/cn0575_example.py @@ -1,35 +1,6 @@ # Copyright (C) 2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import sys from time import sleep diff --git a/examples/daq2.py b/examples/daq2.py index 8cd8662ba..c2156e54d 100644 --- a/examples/daq2.py +++ b/examples/daq2.py @@ -1,35 +1,6 @@ # Copyright (C) 2019 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import time diff --git a/examples/fmcadc3.py b/examples/fmcadc3.py index 8b48e325e..004bcfc52 100644 --- a/examples/fmcadc3.py +++ b/examples/fmcadc3.py @@ -1,35 +1,6 @@ # Copyright (C) 2019 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import time diff --git a/examples/fmcjesdadc1.py b/examples/fmcjesdadc1.py index 61ce8462a..a98a29f1d 100644 --- a/examples/fmcjesdadc1.py +++ b/examples/fmcjesdadc1.py @@ -1,68 +1,10 @@ # Copyright (C) 2019 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD # Copyright (C) 2019 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import time diff --git a/examples/fmcomms11.py b/examples/fmcomms11.py index d2f336b4f..f30326b5e 100644 --- a/examples/fmcomms11.py +++ b/examples/fmcomms11.py @@ -1,35 +1,6 @@ # Copyright (C) 2022 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import time diff --git a/examples/fmcomms5.py b/examples/fmcomms5.py index 251c52367..3b2b0ba83 100644 --- a/examples/fmcomms5.py +++ b/examples/fmcomms5.py @@ -1,35 +1,6 @@ # Copyright (C) 2019 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import time diff --git a/examples/lidar.py b/examples/lidar.py index 495ee7253..d0b092f46 100644 --- a/examples/lidar.py +++ b/examples/lidar.py @@ -1,35 +1,6 @@ # Copyright (C) 2019 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD # This example creates a GUI for configuring, controlling and capturing samples diff --git a/examples/lm75_example.py b/examples/lm75_example.py index df2ab613c..27a42e711 100644 --- a/examples/lm75_example.py +++ b/examples/lm75_example.py @@ -1,35 +1,6 @@ # Copyright (C) 2021 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import sys diff --git a/examples/ltc2387_example.py b/examples/ltc2387_example.py index c8659afff..611d486b2 100644 --- a/examples/ltc2387_example.py +++ b/examples/ltc2387_example.py @@ -1,35 +1,6 @@ # Copyright (C) 2022 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import sys diff --git a/examples/ltc2688_example.py b/examples/ltc2688_example.py index 1641585ed..73765dc18 100644 --- a/examples/ltc2688_example.py +++ b/examples/ltc2688_example.py @@ -1,35 +1,6 @@ # Copyright (C) 2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import sys import time diff --git a/examples/max11205_example.py b/examples/max11205_example.py index fbe370639..0ede6e569 100644 --- a/examples/max11205_example.py +++ b/examples/max11205_example.py @@ -1,35 +1,6 @@ # Copyright (C) 2022 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import sys diff --git a/examples/max14001_examples.py b/examples/max14001_examples.py index d992b757e..abc6f5044 100644 --- a/examples/max14001_examples.py +++ b/examples/max14001_examples.py @@ -1,35 +1,6 @@ # Copyright (C) 2022 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import sys diff --git a/examples/max31855.py b/examples/max31855.py index 7a11aa54d..4e85638d5 100644 --- a/examples/max31855.py +++ b/examples/max31855.py @@ -1,35 +1,6 @@ # Copyright (C) 2022 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import sys diff --git a/examples/max31865.py b/examples/max31865.py index e91f58511..f84dfdb08 100644 --- a/examples/max31865.py +++ b/examples/max31865.py @@ -1,35 +1,6 @@ # Copyright (C) 2022 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import sys import time diff --git a/examples/max9611_example.py b/examples/max9611_example.py index e7a41a35c..6abafcb36 100644 --- a/examples/max9611_example.py +++ b/examples/max9611_example.py @@ -1,35 +1,6 @@ # Copyright (C) 2023 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import sys diff --git a/examples/pluto.py b/examples/pluto.py index 14f5264c7..386b41177 100644 --- a/examples/pluto.py +++ b/examples/pluto.py @@ -1,35 +1,6 @@ # Copyright (C) 2019 Analog Devices, Inc. # -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# - Neither the name of Analog Devices, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# - The use of this software may or may not infringe the patent rights -# of one or more patent holders. This license does not release you -# from the requirement that you obtain separate licenses from these -# patent holders to use this software. -# - Use of the software either in source or binary form, must be run -# on or directly connected to an Analog Devices Inc. component. -# -# THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A -# PARTICULAR PURPOSE ARE DISCLAIMED. -# -# IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY -# RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# SPDX short identifier: ADIBSD import time