simulcrypt 0.1.1

DVB SimulCrypt (ETSI TS 103 197) head-end protocol: ECMG client, EMMG server, control words
Documentation
//! ECMG <=> SCS protocol constants: message types and TLV tags.

/// `CHANNEL_SETUP` message type.
pub const ECMG_MSG_CHANNEL_SETUP: u16 = 0x0001;
/// `CHANNEL_TEST` message type.
pub const ECMG_MSG_CHANNEL_TEST: u16 = 0x0002;
/// `CHANNEL_STATUS` message type.
pub const ECMG_MSG_CHANNEL_STATUS: u16 = 0x0003;
/// `CHANNEL_CLOSE` message type.
pub const ECMG_MSG_CHANNEL_CLOSE: u16 = 0x0004;
/// `CHANNEL_ERROR` message type.
pub const ECMG_MSG_CHANNEL_ERROR: u16 = 0x0005;

/// `STREAM_SETUP` message type.
pub const ECMG_MSG_STREAM_SETUP: u16 = 0x0101;
/// `STREAM_TEST` message type.
pub const ECMG_MSG_STREAM_TEST: u16 = 0x0102;
/// `STREAM_STATUS` message type.
pub const ECMG_MSG_STREAM_STATUS: u16 = 0x0103;
/// `STREAM_CLOSE_REQUEST` message type.
pub const ECMG_MSG_STREAM_CLOSE_REQUEST: u16 = 0x0104;
/// `STREAM_CLOSE_RESPONSE` message type.
pub const ECMG_MSG_STREAM_CLOSE_RESPONSE: u16 = 0x0105;
/// `STREAM_ERROR` message type.
pub const ECMG_MSG_STREAM_ERROR: u16 = 0x0106;

/// `CW_PROVISION` message type.
pub const ECMG_MSG_CW_PROVISION: u16 = 0x0201;
/// `ECM_RESPONSE` message type.
pub const ECMG_MSG_ECM_RESPONSE: u16 = 0x0202;

/// `super_cas_id` TLV tag.
pub const ECMG_VAR_SUPER_CAS_ID: u16 = 0x0001;
/// `section_TSpkt_flag` TLV tag.
pub const ECMG_VAR_SECTION_TS_PKT_FLAG: u16 = 0x0002;
/// `ECM_rep_period` TLV tag.
pub const ECMG_VAR_ECM_REP_PERIOD: u16 = 0x0007;
/// `max_streams` TLV tag.
pub const ECMG_VAR_MAX_STREAMS: u16 = 0x0008;
/// `min_CP_duration` TLV tag.
pub const ECMG_VAR_MIN_CP_DURATION: u16 = 0x0009;
/// `lead_CW` TLV tag.
pub const ECMG_VAR_LEAD_CW: u16 = 0x000A;
/// `CW_per_msg` TLV tag.
pub const ECMG_VAR_CW_PER_MSG: u16 = 0x000B;
/// `max_comp_time` TLV tag.
pub const ECMG_VAR_MAX_COMP_TIME: u16 = 0x000C;
/// `access_criteria` TLV tag.
pub const ECMG_VAR_ACCESS_CRITERIA: u16 = 0x000D;
/// `channel_id` TLV tag.
pub const ECMG_VAR_CHANNEL_ID: u16 = 0x000E;
/// `stream_id` TLV tag.
pub const ECMG_VAR_STREAM_ID: u16 = 0x000F;
/// `nominal_CP_duration` TLV tag.
pub const ECMG_VAR_NOMINAL_CP_DURATION: u16 = 0x0010;
/// `access_criteria_transfer_mode` TLV tag.
pub const ECMG_VAR_ACCESS_CRITERIA_TRANSFER_MODE: u16 = 0x0011;
/// `CP_number` TLV tag.
pub const ECMG_VAR_CP_NUMBER: u16 = 0x0012;
/// `CP_duration` TLV tag.
pub const ECMG_VAR_CP_DURATION: u16 = 0x0013;
/// `CP_CW_combination` TLV tag.
pub const ECMG_VAR_CP_CW_COMBINATION: u16 = 0x0014;
/// `ECM_datagram` TLV tag.
pub const ECMG_VAR_ECM_DATAGRAM: u16 = 0x0015;
/// `ECM_id` TLV tag.
pub const ECMG_VAR_ECM_ID: u16 = 0x0019;
/// `error_status` TLV tag (common to all `SimulCrypt` protocols).
pub const ECMG_VAR_ERROR_STATUS: u16 = 0x7000;
/// `error_info` TLV tag (common to all `SimulCrypt` protocols).
pub const ECMG_VAR_ERROR_INFO: u16 = 0x7001;