2020-02-03 09:13:19 -08:00
|
|
|
#pragma once
|
|
|
|
|
|
2020-03-18 19:15:51 -07:00
|
|
|
// low level types
|
2020-02-03 09:13:19 -08:00
|
|
|
|
2020-04-17 09:48:54 -07:00
|
|
|
#include "MemoryPool.h"
|
|
|
|
|
#include "mesh.pb.h"
|
2020-02-03 09:13:19 -08:00
|
|
|
#include <Arduino.h>
|
|
|
|
|
|
|
|
|
|
typedef uint8_t NodeNum;
|
2020-04-17 11:52:20 -07:00
|
|
|
typedef uint8_t PacketId; // A packet sequence number
|
2020-02-03 09:13:19 -08:00
|
|
|
|
|
|
|
|
#define NODENUM_BROADCAST 255
|
|
|
|
|
#define ERRNO_OK 0
|
|
|
|
|
#define ERRNO_UNKNOWN 32 // pick something that doesn't conflict with RH_ROUTER_ERROR_UNABLE_TO_DELIVER
|
|
|
|
|
|
2020-04-17 09:48:54 -07:00
|
|
|
typedef int ErrorCode;
|
|
|
|
|
|
|
|
|
|
/// Alloc and free packets to our global, ISR safe pool
|
|
|
|
|
extern MemoryPool<MeshPacket> packetPool;
|