bypass_info_example.c
Go to the documentation of this file.
46 * This source file is an example of how to retrieve bypass port information using the @ref InfoStream
59 * A working system is needed with a Napatech accelerator - a Napatech bypass accelerator is preferred.
159 printf("Adapter %u (%u ports):\n", infoAdapter.u.adapter_v7.adapterNo, infoAdapter.u.adapter_v7.data.numPorts);
170 printf("Port %u (adapter #%u port #%u):\n", infoPort.u.port_v10.portNo, infoPort.u.port_v10.data.adapterNo, port);
180 printf(" Bypass port belongs to adapter #%u portset #%u\n", infoPort.u.port_v10.data.adapterNo, infoPort.u.port_v10.data.bypass.bypassPortsetNo);
181 printf(" Bypass port is currently in %s state\n", aBpState[infoPort.u.port_v10.data.bypass.currentBypassPortState]);
182 printf(" Bypass port watchdog is %s\n", aBpWdt[(infoPort.u.port_v10.data.bypass.bypassPortWatchdogTimeout==0?0:1)]);
183 printf(" Bypass port onPowerFail detect trigger is %s\n", aBpFlags[((infoPort.u.port_v10.data.bypass.bypassTriggerModes & NT_BYPASS_TRIGGER_PWRFAIL)==0?0:1)]);