<filename>xoa_driver/internals/indices/streams/genuine_stream.py
from typing import TYPE_CHECKING
from xoa_driver.internals.core.commands import (
    PS_INSERTFCS,
    PS_INJECTFCSERR,
)
from .base_stream import (
    BaseStreamIdx,
    SInjectError
)

if TYPE_CHECKING:
    from xoa_driver.internals.core import interfaces as itf
    from xoa_driver.internals.utils import kind
    from xoa_driver.internals.utils.indices import observer as idx_obs

class GSInjectError(SInjectError):
    """Error Injection configuration"""
    def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int, stream_idx: int) -> None:
        super().__init__(conn, module_id, port_id, stream_idx)
        self.frame_checksum = PS_INJECTFCSERR(conn, module_id, port_id, stream_idx)
        """Representation of :class:`~xoa_driver.internals.core.commands.ps_commands.PS_INJECTFCSERR`"""

class GenuineStreamIdx(BaseStreamIdx):
    """Genuine L23 Stream Index Manager"""
    def __init__(self, conn: "itf.IConnection", kind: "kind.IndicesKind", observer: "idx_obs.IndicesObserver") -> None:
        super().__init__(conn, kind, observer)
        self.insert_packets_checksum = PS_INSERTFCS(conn, *kind)
        """Representation of :class:`~xoa_driver.internals.core.commands.ps_commands.PS_INSERTFCS`"""
        self.inject_err = GSInjectError(conn, *kind)
        """Error injection configuration"""
<filename>xoa_driver/internals/indices/streams/genuine_stream.py
from typing import TYPE_CHECKING
from xoa_driver.internals.core.commands import (
    PS_INSERTFCS,
    PS_INJECTFCSERR,
)
from .base_stream import (
    BaseStreamIdx,
    SInjectError
)

if TYPE_CHECKING:
    from xoa_driver.internals.core import interfaces as itf
    from xoa_driver.internals.utils import kind
    from xoa_driver.internals.utils.indices import observer as idx_obs

class GSInjectError(SInjectError):
    """Error Injection configuration"""
    def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int, stream_idx: int) -> None:
        super().__init__(conn, module_id, port_id, stream_idx)
        self.frame_checksum = PS_INJECTFCSERR(conn, module_id, port_id, stream_idx)
        """Representation of :class:`~xoa_driver.internals.core.commands.ps_commands.PS_INJECTFCSERR`"""

class GenuineStreamIdx(BaseStreamIdx):
    """Genuine L23 Stream Index Manager"""
    def __init__(self, conn: "itf.IConnection", kind: "kind.IndicesKind", observer: "idx_obs.IndicesObserver") -> None:
        super().__init__(conn, kind, observer)
        self.insert_packets_checksum = PS_INSERTFCS(conn, *kind)
        """Representation of :class:`~xoa_driver.internals.core.commands.ps_commands.PS_INSERTFCS`"""
        self.inject_err = GSInjectError(conn, *kind)
        """Error injection configuration"""
Error Injection configuration Representation of :class:`~xoa_driver.internals.core.commands.ps_commands.PS_INJECTFCSERR` Genuine L23 Stream Index Manager Representation of :class:`~xoa_driver.internals.core.commands.ps_commands.PS_INSERTFCS` Error injection configuration