MythTV  master
dsmccreceiver.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) David C.J. Matthews 2005, 2006
3  * Derived from libdsmcc by Richard Palmer
4  */
5 #ifndef DSMCC_RECEIVER_H
6 #define DSMCC_RECEIVER_H
7 
8 #include "dsmccbiop.h"
9 
10 class DsmccDii
11 {
12  public:
13  DsmccDii() = default;
15  {
16  if (m_modules)
17  delete[] m_modules;
18  }
19 
20  unsigned long m_download_id {0};
21  unsigned short m_block_size {0};
22  unsigned long m_tc_download_scenario {0};
23  unsigned short m_number_modules {0};
24  unsigned short m_private_data_len {0};
26  unsigned char *m_private_data {nullptr};
27 };
28 
30 {
31  public:
32  char m_table_id; /* always 0x3B */
33 
34  unsigned char m_flags[2];
35 
36  unsigned short m_table_id_extension;
37 
38  /*
39  * unsigned int section_syntax_indicator : 1; UKProfile - always 1
40  * unsigned int private_indicator : 1; UKProfile - hence always 0
41  * unsigned int reserved : 2; always 11b
42  * unsigned int dsmcc_section_length : 12;
43  */
44 
45  unsigned char m_flags2;
46 
47  /*
48  * unsigned int reserved : 2; always 11b
49  * unsigned int version_number : 5; 00000b
50  * unsigned int current_next_indicator : 1 1b
51  */
52 
53  unsigned long m_crc; /* UKProfile */
54 };
55 
56 class DsmccDb
57 {
58  public:
59  DsmccDb() = default;
60  ~DsmccDb() = default;
61 
62  unsigned short m_module_id {0};
63  unsigned char m_module_version {0};
64  unsigned short m_block_number {0};
65  unsigned int m_len {0};
66 };
67 
68 #endif
69 
DsmccDii()=default
unsigned short m_table_id_extension
Definition: dsmccreceiver.h:36
unsigned short m_number_modules
Definition: dsmccreceiver.h:23
unsigned short m_block_number
Definition: dsmccreceiver.h:64
unsigned long m_crc
Definition: dsmccreceiver.h:53
unsigned char m_module_version
Definition: dsmccreceiver.h:63
unsigned long m_download_id
Definition: dsmccreceiver.h:20
unsigned short m_block_size
Definition: dsmccreceiver.h:21
DsmccDb()=default
DsmccModuleInfo * m_modules
Definition: dsmccreceiver.h:25
unsigned short m_private_data_len
Definition: dsmccreceiver.h:24
unsigned int m_len
Definition: dsmccreceiver.h:65
~DsmccDb()=default
unsigned char m_flags2
Definition: dsmccreceiver.h:45
unsigned char * m_private_data
Definition: dsmccreceiver.h:26
unsigned long m_tc_download_scenario
Definition: dsmccreceiver.h:22
unsigned char m_flags[2]
Definition: dsmccreceiver.h:34
unsigned short m_module_id
Definition: dsmccreceiver.h:62