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
Diff: action.c
- Revision:
- 61:aad055f1b0d1
- Parent:
- 41:db727df5f98b
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/action.c Thu Jan 11 17:38:21 2018 +0000 @@ -0,0 +1,9 @@ +#include <stdbool.h> + +int ActionMakeFromDestAndTrace(int dest, bool trace) +{ + if (trace) return dest | 0x8000; + else return dest & 0x7FFF; +} +int ActionGetDestPart (int action) { return action & 0x7FFF; } +bool ActionGetTracePart(int action) { return action & 0x8000; } \ No newline at end of file