//! Common types used in the `ASHv2` protocol implementation.
use crateMAX_PAYLOAD_SIZE;
use crateData;
/// In the wost-case, all frame bytes are stuffed (*2) and we append the FLAG byte (+1).
pub const MAX_FRAME_SIZE: usize = BUFFER_SIZE * 2 + 1;
/// A stack-allocated buffer that can hold bytes of an `ASHv2` frame up to its maximum size with stuffing.
pub type RawFrame = Vec;
/// A stack-allocated buffer that can hold payload for an `ASHv2` `DATA` frame up to its maximum size.
pub type Payload = Vec;