Mercurial > pt1.oyama
annotate recpt1/recpt1.h @ 97:4d201756c593
- restore channel conversion table
- show CATV channels in channel list
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Wed, 10 Feb 2010 14:55:03 +0900 |
parents | 52f8e081763d |
children | aeba1988234f |
rev | line source |
---|---|
1
29f3b2bbbd67
- rename test.c to recpt1.c
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff
changeset
|
1 #ifndef _RECPT1_H_ |
29f3b2bbbd67
- rename test.c to recpt1.c
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff
changeset
|
2 #define _RECPT1_H_ |
29f3b2bbbd67
- rename test.c to recpt1.c
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff
changeset
|
3 |
46
33c899c6cc9d
logically support up to 4 cards.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
33
diff
changeset
|
4 #define NUM_BSDEV 8 |
33c899c6cc9d
logically support up to 4 cards.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
33
diff
changeset
|
5 #define NUM_ISDB_T_DEV 8 |
18
84ff6ef710ea
- support stdout for output
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
11
diff
changeset
|
6 #define CHTYPE_SATELLITE 0 /* satellite digital */ |
84ff6ef710ea
- support stdout for output
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
11
diff
changeset
|
7 #define CHTYPE_GROUND 1 /* terrestrial digital */ |
11
4615eaf04415
support signal strength calculation.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
6
diff
changeset
|
8 #define MAX_QUEUE 8192 |
96
52f8e081763d
add an option to specify the necessary service IDs.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
87
diff
changeset
|
9 //#define MAX_READ_SIZE (1024 * 16) |
52f8e081763d
add an option to specify the necessary service IDs.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
87
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 | 15 typedef struct _BUFSZ { |
6 | 16 int size; |
4 | 17 u_char buffer[MAX_READ_SIZE]; |
3 | 18 } BUFSZ; |
1
29f3b2bbbd67
- rename test.c to recpt1.c
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff
changeset
|
19 |
4 | 20 typedef struct _QUEUE_T { |
18
84ff6ef710ea
- support stdout for output
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
11
diff
changeset
|
21 unsigned int in; // 次に入れるインデックス |
84ff6ef710ea
- support stdout for output
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
11
diff
changeset
|
22 unsigned int out; // 次に出すインデックス |
84ff6ef710ea
- support stdout for output
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
11
diff
changeset
|
23 unsigned int size; // キューのサイズ |
84ff6ef710ea
- support stdout for output
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
11
diff
changeset
|
24 unsigned int num_avail; // 満タンになると 0 になる |
84ff6ef710ea
- support stdout for output
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
11
diff
changeset
|
25 unsigned int num_used; // 空っぽになると 0 になる |
84ff6ef710ea
- support stdout for output
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
11
diff
changeset
|
26 pthread_mutex_t mutex; |
84ff6ef710ea
- support stdout for output
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
11
diff
changeset
|
27 pthread_cond_t cond_avail; // データが満タンのときに待つための cond |
84ff6ef710ea
- support stdout for output
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
11
diff
changeset
|
28 pthread_cond_t cond_used; // データが空のときに待つための cond |
84ff6ef710ea
- support stdout for output
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
11
diff
changeset
|
29 BUFSZ *buffer[1]; // バッファポインタ |
3 | 30 } QUEUE_T; |
1
29f3b2bbbd67
- rename test.c to recpt1.c
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff
changeset
|
31 |
4 | 32 typedef struct _ISDB_T_FREQ_CONV_TABLE { |
18
84ff6ef710ea
- support stdout for output
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
11
diff
changeset
|
33 int set_freq; // 実際にioctl()を行う値 |
84ff6ef710ea
- support stdout for output
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
11
diff
changeset
|
34 int type; // チャンネルタイプ |
84ff6ef710ea
- support stdout for output
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
11
diff
changeset
|
35 int add_freq; // 追加する周波数(BS/CSの場合はスロット番号) |
84ff6ef710ea
- support stdout for output
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
11
diff
changeset
|
36 char *parm_freq; // パラメータで受ける値 |
3 | 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 |