annotate recpt1/recpt1.h @ 147:17b4f7b5dccb default tip

- follow transponder migration of star channel 2 and 3 - add tentative 4k channels
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Mon, 28 May 2018 00:47:03 +0900
parents 1e7718cc2556
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
100
aeba1988234f support macros to specify sid:
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 96
diff changeset
1 /* -*- tab-width: 4; indent-tabs-mode: nil -*- */
1
29f3b2bbbd67 - rename test.c to recpt1.c
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
2 #ifndef _RECPT1_H_
29f3b2bbbd67 - rename test.c to recpt1.c
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
3 #define _RECPT1_H_
29f3b2bbbd67 - rename test.c to recpt1.c
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
4
46
33c899c6cc9d logically support up to 4 cards.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 33
diff changeset
5 #define NUM_BSDEV 8
33c899c6cc9d logically support up to 4 cards.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 33
diff changeset
6 #define NUM_ISDB_T_DEV 8
18
84ff6ef710ea - support stdout for output
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 11
diff changeset
7 #define CHTYPE_SATELLITE 0 /* satellite digital */
84ff6ef710ea - support stdout for output
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 11
diff changeset
8 #define CHTYPE_GROUND 1 /* terrestrial digital */
11
4615eaf04415 support signal strength calculation.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
9 #define MAX_QUEUE 8192
142
1e7718cc2556 use utf-8 instead of euc-jp
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 100
diff changeset
10 #define MAX_READ_SIZE (188 * 87) /* 188*87=16356 splitterが188アライメントを期待しているのでこの数字とする*/
11
4615eaf04415 support signal strength calculation.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
11 #define WRITE_SIZE (1024 * 1024 * 2)
4615eaf04415 support signal strength calculation.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
12 #define TRUE 1
4615eaf04415 support signal strength calculation.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
13 #define FALSE 0
1
29f3b2bbbd67 - rename test.c to recpt1.c
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
14
4
43d177fa65c9 fixed indentation
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3
diff changeset
15 typedef struct _BUFSZ {
6
d898fd27547f cleanups
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 5
diff changeset
16 int size;
4
43d177fa65c9 fixed indentation
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3
diff changeset
17 u_char buffer[MAX_READ_SIZE];
3
6801fe7e04ff updated to ariv25v023
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 2
diff changeset
18 } BUFSZ;
1
29f3b2bbbd67 - rename test.c to recpt1.c
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
19
4
43d177fa65c9 fixed indentation
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3
diff changeset
20 typedef struct _QUEUE_T {
142
1e7718cc2556 use utf-8 instead of euc-jp
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 100
diff changeset
21 unsigned int in; // 次に入れるインデックス
1e7718cc2556 use utf-8 instead of euc-jp
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 100
diff changeset
22 unsigned int out; // 次に出すインデックス
1e7718cc2556 use utf-8 instead of euc-jp
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 100
diff changeset
23 unsigned int size; // キューのサイズ
1e7718cc2556 use utf-8 instead of euc-jp
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 100
diff changeset
24 unsigned int num_avail; // 満タンになると 0 になる
1e7718cc2556 use utf-8 instead of euc-jp
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 100
diff changeset
25 unsigned int num_used; // 空っぽになると 0 になる
18
84ff6ef710ea - support stdout for output
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 11
diff changeset
26 pthread_mutex_t mutex;
142
1e7718cc2556 use utf-8 instead of euc-jp
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 100
diff changeset
27 pthread_cond_t cond_avail; // データが満タンのときに待つための cond
1e7718cc2556 use utf-8 instead of euc-jp
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 100
diff changeset
28 pthread_cond_t cond_used; // データが空のときに待つための cond
1e7718cc2556 use utf-8 instead of euc-jp
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 100
diff changeset
29 BUFSZ *buffer[1]; // バッファポインタ
3
6801fe7e04ff updated to ariv25v023
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 2
diff changeset
30 } QUEUE_T;
1
29f3b2bbbd67 - rename test.c to recpt1.c
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
31
4
43d177fa65c9 fixed indentation
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3
diff changeset
32 typedef struct _ISDB_T_FREQ_CONV_TABLE {
142
1e7718cc2556 use utf-8 instead of euc-jp
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 100
diff changeset
33 int set_freq; // 実際にioctl()を行う値
1e7718cc2556 use utf-8 instead of euc-jp
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 100
diff changeset
34 int type; // チャンネルタイプ
1e7718cc2556 use utf-8 instead of euc-jp
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 100
diff changeset
35 int add_freq; // 追加する周波数(BS/CSの場合はスロット番号)
1e7718cc2556 use utf-8 instead of euc-jp
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 100
diff changeset
36 char *parm_freq; // パラメータで受ける値
3
6801fe7e04ff updated to ariv25v023
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 2
diff changeset
37 } ISDB_T_FREQ_CONV_TABLE;
1
29f3b2bbbd67 - rename test.c to recpt1.c
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
38
29f3b2bbbd67 - rename test.c to recpt1.c
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
39 #endif