Source code for secsgem.hsms.select_req_header

#####################################################################
# select_req_header.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.
#####################################################################
"""Header for the hsms select request."""

from .header import HsmsHeader


[docs]class HsmsSelectReqHeader(HsmsHeader): """ Header for Select Request. Header for message with SType 1. """ def __init__(self, system): """ Initialize a hsms select request. :param system: message ID :type system: integer **Example**:: >>> import secsgem.hsms >>> >>> secsgem.hsms.HsmsSelectReqHeader(14) HsmsSelectReqHeader({session_id:0xffff, stream:00, function:00, p_type:0x00, s_type:0x01, \ system:0x0000000e, require_response:False}) """ super().__init__(system, 0xFFFF, 0, 0, False, 0x00, 0x01)