Stack Initialization

Enable Stack

lgo_EnableStack()

Enable processing of the protocol stack.

Syntax
#include "laygo.h"

LResult lgo_EnableStack
    (
        void
    );
Description

lgo_EnableStack() enables processing of the stack via the timer interrupt or by calls to lgo_ActivateStack(). The stack should normally be enabled as soon as it has been initialized.

Return Values

If successful, lgo_EnableStack() returns a non-negative value. Otherwise, it returns a negative value indicating the reason it failed. Possible unsuccessful return values are:

Note that lgo_EnableStack() cannot fail if the stack was successfully initialized.

See Also

lgo_DisableStack()
lgo_InitializeStack()
lgo_UninitializeStack()

Example
if (readyToProcess)
{
    lgo_EnableStack();
}