MythTV  master
Macros | Functions | Variables
dsmcc.cpp File Reference
#include <cstdint>
#include "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.

Macros

#define DSMCC_SYNC_BYTE   0x47
 
#define DSMCC_TRANSPORT_ERROR   0x80
 
#define DSMCC_START_INDICATOR   0x40
 
#define DSMCC_MESSAGE_DSI   0x1006
 
#define DSMCC_MESSAGE_DII   0x1002
 
#define DSMCC_MESSAGE_DDB   0x1003
 
#define DSMCC_SECTION_INDICATION   0x3B
 
#define DSMCC_SECTION_DATA   0x3C
 
#define DSMCC_SECTION_DESCR   0x3D
 
#define DSMCC_SECTION_OFFSET   0
 
#define DSMCC_MSGHDR_OFFSET   8
 
#define DSMCC_DATAHDR_OFFSET   8
 
#define DSMCC_DSI_OFFSET   20
 
#define DSMCC_DII_OFFSET   20
 
#define DSMCC_DDB_OFFSET   20
 
#define DSMCC_BIOP_OFFSET   24
 

Functions

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

Variables

static unsigned long crc_table [256]
 

Macro Definition Documentation

◆ DSMCC_SYNC_BYTE

#define DSMCC_SYNC_BYTE   0x47

Definition at line 14 of file dsmcc.cpp.

◆ DSMCC_TRANSPORT_ERROR

#define DSMCC_TRANSPORT_ERROR   0x80

Definition at line 15 of file dsmcc.cpp.

◆ DSMCC_START_INDICATOR

#define DSMCC_START_INDICATOR   0x40

Definition at line 16 of file dsmcc.cpp.

◆ DSMCC_MESSAGE_DSI

#define DSMCC_MESSAGE_DSI   0x1006

Definition at line 18 of file dsmcc.cpp.

◆ DSMCC_MESSAGE_DII

#define DSMCC_MESSAGE_DII   0x1002

Definition at line 19 of file dsmcc.cpp.

◆ DSMCC_MESSAGE_DDB

#define DSMCC_MESSAGE_DDB   0x1003

Definition at line 20 of file dsmcc.cpp.

◆ DSMCC_SECTION_INDICATION

#define DSMCC_SECTION_INDICATION   0x3B

Definition at line 22 of file dsmcc.cpp.

◆ DSMCC_SECTION_DATA

#define DSMCC_SECTION_DATA   0x3C

Definition at line 23 of file dsmcc.cpp.

◆ DSMCC_SECTION_DESCR

#define DSMCC_SECTION_DESCR   0x3D

Definition at line 24 of file dsmcc.cpp.

◆ DSMCC_SECTION_OFFSET

#define DSMCC_SECTION_OFFSET   0

Definition at line 26 of file dsmcc.cpp.

◆ DSMCC_MSGHDR_OFFSET

#define DSMCC_MSGHDR_OFFSET   8

Definition at line 27 of file dsmcc.cpp.

◆ DSMCC_DATAHDR_OFFSET

#define DSMCC_DATAHDR_OFFSET   8

Definition at line 28 of file dsmcc.cpp.

◆ DSMCC_DSI_OFFSET

#define DSMCC_DSI_OFFSET   20

Definition at line 29 of file dsmcc.cpp.

◆ DSMCC_DII_OFFSET

#define DSMCC_DII_OFFSET   20

Definition at line 30 of file dsmcc.cpp.

◆ DSMCC_DDB_OFFSET

#define DSMCC_DDB_OFFSET   20

Definition at line 31 of file dsmcc.cpp.

◆ DSMCC_BIOP_OFFSET

#define DSMCC_BIOP_OFFSET   24

Definition at line 32 of file dsmcc.cpp.

Function Documentation

◆ crc32()

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

Variable Documentation

◆ crc_table

unsigned long crc_table[256]
static

Definition at line 571 of file dsmcc.cpp.

Referenced by crc32().