Files
lobbs/core/LoWire.h
T
Ben Allfree 1243b2bc1b refactor(core): split pal from kernel
Move the BBS kernel under core/ and host I/O under platforms/.
2026-10-07 15:54:38 -07:00

21 lines
677 B
C

#pragma once
#include <stddef.h>
#include <stdint.h>
/** Session and reply routing key. Meshtastic uses node num; MeshCore uses a stable hash of the contact key. */
struct LoNodeId {
uint32_t key = 0;
};
/** Local = trusted operator path (USB console on MeshCore, phone/API client on Meshtastic). */
enum class LoInboundChannel : uint8_t { Radio = 0, Local = 1 };
/** One inbound text line or DM payload. */
struct LoInbound {
LoNodeId from;
LoInboundChannel channel = LoInboundChannel::Radio;
const char *text = nullptr;
/** Platform-owned reply context (Meshtastic MeshPacket, MeshCore ContactInfo, etc.). */
const void *replyContext = nullptr;
};