aboutsummaryrefslogtreecommitdiffstats
path: root/dvb-t/ar-Argentina
blob: fb2e3d099219892b3a79eaaaabde4a90f04f11d7 (plain)
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
52
53
54
55
56
57
58
59
60
61
62
63
# ISDB-T channel frequencies as defined in Brazil
# By ABNT NBR 15608-1
# VHF channels 7 to 13 are also specified but not in usage yet
#
# UHF channels 14 to 69
# T freq bw fec_hi fec_lo mod transmission-mode guard-interval hierarchy
T 473142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 14
T 479142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 15
T 485142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 16
T 491142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 17
T 497142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 18
T 503142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 19
T 509142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 20
T 515142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 21
T 521142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 22
T 527142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 23
T 533142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 24
T 539142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 25
T 545142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 26
T 551142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 27
T 557142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 28
T 563142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 29
T 569142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 30
T 575142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 31
T 581142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 32
T 587142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 33
T 593142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 34
T 599142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 35
T 605142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 36
# channel 37 not used
T 617142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 38
T 623142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 39
T 629142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 40
T 635142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 41
T 641142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 42
T 647142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 43
T 653142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 44
T 659142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 45
T 665142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 46
T 671142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 47
T 677142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 48
T 683142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 49
T 689142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 50
T 695142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 51
T 701142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 52
T 707142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 53
T 713142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 54
T 719142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 55
T 725142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 56
T 731142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 57
T 737142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 58
T 743142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 59
T 749142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 60
T 755142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 61
T 761142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 62
T 767142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 63
T 773142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 64
T 779142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 65
T 785142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 66
T 791142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 67
T 797142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 68
T 803142857 6MHz AUTO AUTO AUTO AUTO AUTO NONE # channel 69
* */ /* * exported functions: * * WIDGET_CLASS Widget_GPO * the GPO widget * */ #include "config.h" #include <stdlib.h> #include <stdio.h> #include <string.h> #include <ctype.h> #include "debug.h" #include "cfg.h" #include "evaluator.h" #include "timer.h" #include "widget.h" #include "widget_gpo.h" #ifdef WITH_DMALLOC #include <dmalloc.h> #endif void widget_gpo_update(void *Self) { WIDGET *W = (WIDGET *) Self; WIDGET_GPO *GPO = W->data; RESULT result = { 0, 0, 0, NULL }; int val; /* evaluate expression */ val = 0; if (GPO->tree != NULL) { Eval(GPO->tree, &result); val = R2N(&result); DelResult(&result); } GPO->num = W->row; GPO->val = val; /* finally, draw it! */ if (W->class->draw) W->class->draw(W); } int widget_gpo_init(WIDGET * Self) { char *section; WIDGET_GPO *GPO; /* prepare config section */ /* strlen("Widget:")=7 */ section = malloc(strlen(Self->name) + 8); strcpy(section, "Widget:"); strcat(section, Self->name); GPO = malloc(sizeof(WIDGET_GPO)); memset(GPO, 0, sizeof(WIDGET_GPO)); /* get raw expression (we evaluate them ourselves) */ GPO->expression = cfg_get_raw(section, "expression", NULL); /* sanity check */ if (GPO->expression == NULL || *GPO->expression == '\0') { error("widget %s has no expression, using '0.0'", Self->name); GPO->expression = "0"; } /* compile expression */ Compile(GPO->expression, &GPO->tree); /* update interval (msec), default 1 sec */ cfg_number(section, "update", 1000, 10, -1, &(GPO->update)); free(section); Self->data = GPO; timer_add(widget_gpo_update, Self, GPO->update, 0); return 0; } int widget_gpo_quit(WIDGET * Self) { if (Self) { if (Self->data) { WIDGET_GPO *GPO = Self->data; DelTree(GPO->tree); free(Self->data); } Self->data = NULL; } return 0; } WIDGET_CLASS Widget_GPO = { name:"gpo", type:WIDGET_TYPE_GPO, init:widget_gpo_init, draw:NULL, quit:widget_gpo_quit, };