lgo_UninitializeStack()
Halt the communications hardware and free resources used by the protocol stack.
#include "laygo.h" LResult lgo_UninitializeStack ( void );
lgo_UninitializeStack() frees all system resources used by the LayGO system and removes any installed ISRs. The communication hardware is also disabled.
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:
LResult result; result = lgo_UninitializeStack(); if (result < 0) { return (FAILURE); }