Stack Initialization

Activate Stack

lgo_ActivateStack()

Give control to the protocol stack for processing.

Syntax
#include "laygo.h"

LResult lgo_ActivateStack
    (
        void
    );
Description

lgo_ActivateStack() transfers control to the protocol stack for processing. This is normally done only when the stack is not being activated automatically by the timer interrupt. Good times to activate the stack are: Before a read, after a write, periodically otherwise.

Return Values

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

See Also

lgo_EnableStack()
lgo_DisableStack()

Example
if (lgo_Write(cid, &data, dataLength) < 0)
{
    return (FAILURE);
}

lgo_ActivateStack();