Stack Initialization

Disable Stack

lgo_DisableStack()

Temporarily prevent the protocol stack from processing.

Syntax
#include "laygo.h"

LResult lgo_DisableStack
    (
        void
    );
Description

lgo_DisableStack() temporarily prevents processing of the stack via the timer interrupt or calls to lgo_ActivateStack(). The stack remains disabled until lgo_EnableStack() is called.

Return Values

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

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

See Also

lgo_EnableStack()
lgo_ActivateStack()

Example
if (!readyToProcess)
{
    lgo_DisableStack();
}