NL2 API Overview

The Network Link Layer (NL2) APIs provides data types and functions to access network services at the Layer 2 of the OSI model, independent of the underlying hardware. This typically includes:

Using the NL2, you can easily integrate network functionality such as TCP/IP and E-CAT

Note: wRTOS SDK provides source code and project files for NL2 application samples. You can use these samples as a reference when implementing your application.

The NL2 component must be running for any application to use the NL2. Include the header Rtnl2Component.h in your project and link with the library Rtfwnl2Api.lib (Windows) or Rtnl2Api.lib (RTSS). To check if the NL2 component is already running, use Rtnl2GetComponentStatus. To start the component, use Rtnl2StartComponent. To stop the component, use Rtnl2StopComponent.

See Also: