MythTV  master
Enumerations | Functions | Variables
dsmcc.cpp File Reference
#include <cstdint>
#include "libmythbase/mythlogging.h"
#include "dsmccreceiver.h"
#include "dsmccbiop.h"
#include "dsmcccache.h"
#include "dsmcc.h"
Include dependency graph for dsmcc.cpp:

Go to the source code of this file.

Enumerations

enum  DSMCC_MESSAGES : std::uint16_t { DSMCC_MESSAGE_DSI = 0x1006, DSMCC_MESSAGE_DII = 0x1002, DSMCC_MESSAGE_DDB = 0x1003 }
 
enum  DSMCC_SECTIONS : std::uint8_t { DSMCC_SECTION_INDICATION = 0x3B, DSMCC_SECTION_DATA = 0x3C, DSMCC_SECTION_DESCR = 0x3D }
 

Functions

static uint32_t crc32 (const unsigned char *data, int len)
 

Variables

static constexpr ptrdiff_t DSMCC_SECTION_OFFSET { 0 }
 
static constexpr ptrdiff_t DSMCC_MSGHDR_OFFSET { 8 }
 
static constexpr ptrdiff_t DSMCC_DATAHDR_OFFSET { 8 }
 
static constexpr ptrdiff_t DSMCC_DSI_OFFSET { 20 }
 
static constexpr ptrdiff_t DSMCC_DII_OFFSET { 20 }
 
static constexpr ptrdiff_t DSMCC_DDB_OFFSET { 20 }
 
static constexpr ptrdiff_t DSMCC_BIOP_OFFSET { 24 }
 
static const std::array< const uint32_t, 256 > crc_table
 

Enumeration Type Documentation

◆ DSMCC_MESSAGES

Enumerator
DSMCC_MESSAGE_DSI 
DSMCC_MESSAGE_DII 
DSMCC_MESSAGE_DDB 

Definition at line 18 of file dsmcc.cpp.

◆ DSMCC_SECTIONS

enum DSMCC_SECTIONS : std::uint8_t
Enumerator
DSMCC_SECTION_INDICATION 
DSMCC_SECTION_DATA 
DSMCC_SECTION_DESCR 

Definition at line 24 of file dsmcc.cpp.

Function Documentation

◆ crc32()

static uint32_t crc32 ( const unsigned char *  data,
int  len 
)
static

Variable Documentation

◆ DSMCC_SECTION_OFFSET

constexpr ptrdiff_t DSMCC_SECTION_OFFSET { 0 }
staticconstexpr

◆ DSMCC_MSGHDR_OFFSET

constexpr ptrdiff_t DSMCC_MSGHDR_OFFSET { 8 }
staticconstexpr

Definition at line 31 of file dsmcc.cpp.

Referenced by Dsmcc::ProcessSectionIndication().

◆ DSMCC_DATAHDR_OFFSET

constexpr ptrdiff_t DSMCC_DATAHDR_OFFSET { 8 }
staticconstexpr

Definition at line 32 of file dsmcc.cpp.

Referenced by Dsmcc::ProcessSectionData().

◆ DSMCC_DSI_OFFSET

constexpr ptrdiff_t DSMCC_DSI_OFFSET { 20 }
staticconstexpr

Definition at line 33 of file dsmcc.cpp.

Referenced by Dsmcc::ProcessSectionIndication().

◆ DSMCC_DII_OFFSET

constexpr ptrdiff_t DSMCC_DII_OFFSET { 20 }
staticconstexpr

Definition at line 34 of file dsmcc.cpp.

Referenced by Dsmcc::ProcessSectionIndication().

◆ DSMCC_DDB_OFFSET

constexpr ptrdiff_t DSMCC_DDB_OFFSET { 20 }
staticconstexpr

Definition at line 35 of file dsmcc.cpp.

Referenced by Dsmcc::ProcessSectionData().

◆ DSMCC_BIOP_OFFSET

constexpr ptrdiff_t DSMCC_BIOP_OFFSET { 24 }
staticconstexpr

Definition at line 36 of file dsmcc.cpp.

Referenced by Dsmcc::ProcessDownloadServerInitiate().

◆ crc_table

const std::array<const uint32_t,256> crc_table
static

Definition at line 571 of file dsmcc.cpp.

Referenced by crc32().