#####################################################################
# sdbin.py
#
# (c) Copyright 2021, Benjamin Parzella. All rights reserved.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This software is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#####################################################################
"""SDBIN data item."""
from secsgem.secs import variables
from .base import DataItemBase
[docs]
class SDBIN(DataItemBase):
"""Send bin information.
:Type: :class:`Binary <secsgem.secs.variables.Binary>`
:Length: 1
**Values**
+-------+---------------------------+--------------------------------------------------+
| Value | Description | Constant |
+=======+===========================+==================================================+
| 0 | Send bin information | :const:`secsgem.secs.data_items.SDBIN.SEND` |
+-------+---------------------------+--------------------------------------------------+
| 1 | Don't send bin infomation | :const:`secsgem.secs.data_items.SDBIN.DONT_SEND` |
+-------+---------------------------+--------------------------------------------------+
| 2-63 | Reserved | |
+-------+---------------------------+--------------------------------------------------+
**Used In Function**
- :class:`SecsS12F17 <secsgem.secs.functions.SecsS12F17>`
"""
name = "SDBIN"
__type__ = variables.Binary
__count__ = 1
SEND = 0
DONT_SEND = 1
_values = {
"SEND": 0,
"DONT_SEND": 1,
}