lgo_ActivateStack()
Give control to the protocol stack for processing.
#include "laygo.h" LResult lgo_ActivateStack ( void );
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.
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:
if (lgo_Write(cid, &data, dataLength) < 0) { return (FAILURE); } lgo_ActivateStack();