Source code for secsgem.hsms.select_rsp_header

#####################################################################
# select_rsp_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 response."""

from .header import HsmsHeader


[docs]class HsmsSelectRspHeader(HsmsHeader): """ Header for Select Response. Header for message with SType 2. """ def __init__(self, system): """ Initialize a hsms select response. :param system: message ID :type system: integer **Example**:: >>> import secsgem.hsms >>> >>> secsgem.hsms.HsmsSelectRspHeader(24) HsmsSelectRspHeader({session_id:0xffff, stream:00, function:00, p_type:0x00, s_type:0x02, \ system:0x00000018, require_response:False}) """ super().__init__(system, 0xFFFF, 0, 0, False, 0x00, 0x02)