Stack Initialization

Uninitialize Stack

lgo_UninitializeStack()

Halt the communications hardware and free resources used by the protocol stack.

Syntax
#include "laygo.h"

LResult lgo_UninitializeStack
    (
        void
    );
Description

lgo_UninitializeStack() frees all system resources used by the LayGO system and removes any installed ISRs. The communication hardware is also disabled.

Return Values

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

See Also

lgo_InitializeStack()
lgo_ConfigureStack()
lgo_EnableStack()

Example
LResult    result;

result = lgo_UninitializeStack();
if (result < 0)
{
    return (FAILURE);
}