embedded-nano-mesh 2.1.11

Lightweight mesh communication protocol for embedded devices
Documentation
use super::ms;

const SECOND: ms = 1000;

pub const PACKET_QUEUE_SIZE: usize = 5;

/// Start byte of packet. The device will recognize
/// packets by this byte.
pub const PACKET_START_BYTE: u8 = b'x';

/// Start bytes count of packet.
pub const PACKET_START_BYTES_COUNT: usize = 3;

/// Count of filter's table, that holds reocords for packets, that
/// need to be ignored.
pub const RECEIVER_FILTER_REGISTRATION_SIZE: usize = 8;

/// Perid of time, during which duplicated packets will be ignored.
pub const RECEIVER_FILTER_DUPLICATE_IGNORE_PERIOD: ms = SECOND;

/// Size of read buffer from serial interface for receiver.
pub const RECEIVER_READER_BUFFER_SIZE: usize = 1;