A stack which works with or without an Mbed os library. Provides IPv4 or IPv6 with a full 1500 byte buffer.

Dependents:   oldheating gps motorhome heating

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers action.c Source File

action.c

00001 #include <stdbool.h>
00002 
00003 int  ActionMakeFromDestAndTrace(int dest, bool trace)
00004 {
00005     if (trace) return dest | 0x8000;
00006     else       return dest & 0x7FFF;
00007 }
00008 int  ActionGetDestPart (int action) { return action & 0x7FFF; }
00009 bool ActionGetTracePart(int action) { return action & 0x8000; }