Class AbstractTcFrameLink

    • Constructor Detail

      • AbstractTcFrameLink

        public AbstractTcFrameLink()
    • Method Detail

      • init

        public void init​(String yamcsInstance,
                         String linkName,
                         YConfiguration config)
        Description copied from interface: Link
        Called at startup to initialize the link.

        The config corresponds to the map that is under the link definition in yamcs.instance.yaml.

        Specified by:
        init in interface Link
        Overrides:
        init in class AbstractLink
        config - - the configuration - cannot be null (but can be empty)
      • encodeCltu

        protected byte[] encodeCltu​(int vcId,
                                    byte[] data)
        optionally encode the data to CLTU if the CLTU generator is configured.

        Randomization will also be performed if configured.

      • getDataInCount

        public long getDataInCount()
        Specified by:
        getDataInCount in interface Link
      • getDataOutCount

        public long getDataOutCount()
        Specified by:
        getDataOutCount in interface Link
      • resetCounters

        public void resetCounters()
        Specified by:
        resetCounters in interface Link
      • ackBypassFrame

        protected void ackBypassFrame​(TcTransferFrame tf)
        Ack the BD frames Note: the AD frames are acknowledged in the when the COP1 ack is received
        Parameters:
        tf -