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  delete[] m_modules;
17  }
18 
19  unsigned long m_download_id {0};
20  unsigned short m_block_size {0};
21  unsigned long m_tc_download_scenario {0};
22  unsigned short m_number_modules {0};
23  unsigned short m_private_data_len {0};
25  unsigned char *m_private_data {nullptr};
26 };
27 
29 {
30  public:
31  char m_table_id; /* always 0x3B */
32 
33  unsigned char m_flags[2];
34 
35  unsigned short m_table_id_extension;
36 
37  /*
38  * unsigned int section_syntax_indicator : 1; UKProfile - always 1
39  * unsigned int private_indicator : 1; UKProfile - hence always 0
40  * unsigned int reserved : 2; always 11b
41  * unsigned int dsmcc_section_length : 12;
42  */
43 
44  unsigned char m_flags2;
45 
46  /*
47  * unsigned int reserved : 2; always 11b
48  * unsigned int version_number : 5; 00000b
49  * unsigned int current_next_indicator : 1 1b
50  */
51 
52  unsigned long m_crc; /* UKProfile */
53 };
54 
55 class DsmccDb
56 {
57  public:
58  DsmccDb() = default;
59  ~DsmccDb() = default;
60 
61  unsigned short m_module_id {0};
62  unsigned char m_module_version {0};
63  unsigned short m_block_number {0};
64  unsigned int m_len {0};
65 };
66 
67 #endif
68 
DsmccDii()=default
unsigned short m_table_id_extension
Definition: dsmccreceiver.h:35
unsigned short m_number_modules
Definition: dsmccreceiver.h:22
unsigned short m_block_number
Definition: dsmccreceiver.h:63
unsigned long m_crc
Definition: dsmccreceiver.h:52
unsigned char m_module_version
Definition: dsmccreceiver.h:62
unsigned long m_download_id
Definition: dsmccreceiver.h:19
unsigned short m_block_size
Definition: dsmccreceiver.h:20
DsmccDb()=default
DsmccModuleInfo * m_modules
Definition: dsmccreceiver.h:24
unsigned short m_private_data_len
Definition: dsmccreceiver.h:23
unsigned int m_len
Definition: dsmccreceiver.h:64
~DsmccDb()=default
unsigned char m_flags2
Definition: dsmccreceiver.h:44
unsigned char * m_private_data
Definition: dsmccreceiver.h:25
unsigned long m_tc_download_scenario
Definition: dsmccreceiver.h:21
unsigned char m_flags[2]
Definition: dsmccreceiver.h:33
unsigned short m_module_id
Definition: dsmccreceiver.h:61