# -*- coding: utf-8 -*-
# (c) Copyright 2021 Sensirion AG, Switzerland

##############################################################################
##############################################################################
#                 _____         _    _ _______ _____ ____  _   _
#                / ____|   /\  | |  | |__   __|_   _/ __ \| \ | |
#               | |       /  \ | |  | |  | |    | || |  | |  \| |
#               | |      / /\ \| |  | |  | |    | || |  | | . ` |
#               | |____ / ____ \ |__| |  | |   _| || |__| | |\  |
#                \_____/_/    \_\____/   |_|  |_____\____/|_| \_|
#
#     THIS FILE IS AUTOMATICALLY GENERATED AND MUST NOT BE EDITED MANUALLY!
#
# Generator:    sensirion-shdlc-interface-generator 0.9.0
# Product:      SVM41
# Version:      0.8.4
#
##############################################################################
##############################################################################

# flake8: noqa

from __future__ import absolute_import, division, print_function
from sensirion_shdlc_driver.command import ShdlcCommand
from struct import pack, unpack

import logging
log = logging.getLogger(__name__)


class Svm41CmdStopMeasurementBase(ShdlcCommand):
    """
    SHDLC command 0x01: "Stop Measurement".
    """

    def __init__(self, *args, **kwargs):
        """
        Constructor.
        """
        super(Svm41CmdStopMeasurementBase, self).__init__(
            0x01, *args, **kwargs)


class Svm41CmdStopMeasurement(Svm41CmdStopMeasurementBase):
    """
    Stop Measurement Command

    Leaves the measurement mode and returns to the idle mode.

    .. note:: This command is only available in measurement mode.
    """

    def __init__(self):
        """
        Constructor.
        """
        super(Svm41CmdStopMeasurement, self).__init__(
            data=[],
            max_response_time=0.05,
            post_processing_time=0.0,
            min_response_length=0,
            max_response_length=0
        )

# -*- coding: utf-8 -*-
# (c) Copyright 2021 Sensirion AG, Switzerland

##############################################################################
##############################################################################
#                 _____         _    _ _______ _____ ____  _   _
#                / ____|   /\  | |  | |__   __|_   _/ __ \| \ | |
#               | |       /  \ | |  | |  | |    | || |  | |  \| |
#               | |      / /\ \| |  | |  | |    | || |  | | . ` |
#               | |____ / ____ \ |__| |  | |   _| || |__| | |\  |
#                \_____/_/    \_\____/   |_|  |_____\____/|_| \_|
#
#     THIS FILE IS AUTOMATICALLY GENERATED AND MUST NOT BE EDITED MANUALLY!
#
# Generator:    sensirion-shdlc-interface-generator 0.9.0
# Product:      SVM41
# Version:      0.8.4
#
##############################################################################
##############################################################################

# flake8: noqa

from __future__ import absolute_import, division, print_function
from sensirion_shdlc_driver.command import ShdlcCommand
from struct import pack, unpack

import logging
log = logging.getLogger(__name__)


class Svm41CmdStopMeasurementBase(ShdlcCommand):
    """
    SHDLC command 0x01: "Stop Measurement".
    """

    def __init__(self, *args, **kwargs):
        """
        Constructor.
        """
        super(Svm41CmdStopMeasurementBase, self).__init__(
            0x01, *args, **kwargs)


class Svm41CmdStopMeasurement(Svm41CmdStopMeasurementBase):
    """
    Stop Measurement Command

    Leaves the measurement mode and returns to the idle mode.

    .. note:: This command is only available in measurement mode.
    """

    def __init__(self):
        """
        Constructor.
        """
        super(Svm41CmdStopMeasurement, self).__init__(
            data=[],
            max_response_time=0.05,
            post_processing_time=0.0,
            min_response_length=0,
            max_response_length=0
        )

# -*- coding: utf-8 -*- # (c) Copyright 2021 Sensirion AG, Switzerland ############################################################################## ############################################################################## #                 _____         _    _ _______ _____ ____  _   _ #                / ____|   /\  | |  | |__   __|_   _/ __ \| \ | | #               | |       /  \ | |  | |  | |    | || |  | |  \| | #               | |      / /\ \| |  | |  | |    | || |  | | . ` | #               | |____ / ____ \ |__| |  | |   _| || |__| | |\  | #                \_____/_/    \_\____/   |_|  |_____\____/|_| \_| # #     THIS FILE IS AUTOMATICALLY GENERATED AND MUST NOT BE EDITED MANUALLY! # # Generator:    sensirion-shdlc-interface-generator 0.9.0 # Product:      SVM41 # Version:      0.8.4 # ############################################################################## ############################################################################## # flake8: noqa SHDLC command 0x01: "Stop Measurement". Constructor. Stop Measurement Command      Leaves the measurement mode and returns to the idle mode.      .. note:: This command is only available in measurement mode. Constructor.