-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathB25Decoder.hpp
51 lines (40 loc) · 878 Bytes
/
B25Decoder.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef _B25_DECODER_H_
#define _B25_DECODER_H_
#ifndef _REAL_B25_
typedef void ARIB_STD_B25;
typedef void B_CAS_CARD;
#endif
class B25Decoder {
public:
B25Decoder() : round(4), strip(false), emm(false), b25(NULL), bcas(NULL) {
};
virtual ~B25Decoder() {
close();
};
void setRound(int32_t paramRound) {
round = paramRound;
};
void setStrip(bool paramStrip) {
strip = paramStrip;
};
void setEmmProcess(bool paramEmm) {
emm = paramEmm;
};
void close();
int open(void *pCardDev);
void flush();
void put(const uint8_t *buf, int32_t len);
int32_t get(const uint8_t **bufp);
protected:
/** Multi2のround数(default = 4) */
int32_t round;
/** nullパケットを削除するか? */
bool strip;
/** EMMの処理を行なうか? */
bool emm;
/** B25 */
ARIB_STD_B25 *b25;
/** BCAS */
B_CAS_CARD *bcas;
};
#endif /* !defined(_B25_H_) */