Link Layer API Functions


The link layer API functions are implemented in addition to the base HDLC API functions. All link layer functions use a port handle obtained from MgslOpen. In addition, most functions also accept a link instance identifier allocated with MgslDlAllocate. It is the responsibility of the application to configure and activate the physical port , using the base HDLC API, as necessary to carry link layer traffic.

MgslDlAllocate Allocate a link instance for a specified port.
MgslDlFree Free a link instance for a specified port.
MgslDlSetAddressList Set an HDLC address list (remote or local) for a link instance.
MgslDlSetParams Set the link layer specific options for a link instance.
MgslDlGetParams Get the current link layer specific options for a link instance.
MgslDlSetPhysParams Set link layer parameters common to a physical interface.
MgslDlGetPhysParams Get the current link layer parameters common to a physical interface.
MgslDlCall Pass a request or response primitive to the link layer API
MgslDlWait Wait for an indication or confirm primitive from the link layer API
MgslDlCancelWait Cancel a pending call to MgslDlWait
MgslDlGetStats Get current link layer statistics.
MgslDlResetStats Reset link layer statistics.


Previous Contents Next