Go to the source code of this file.
Functions | |
| int | send_and_get_ack (packet *p, int timeout) |
| int | initialize (void) |
| int | get_channel (void) |
| int | send_keypress (int key) |
| int | set_channel (int chan) |
| void | blind_key (int key) |
| void | blind_channel (int chan) |
| int | main (int argc, char *argv[]) |
Variables | |
| struct options | opt [] |
| int | verb_count = 0 |
| int | send_ok = 0 |
| double | timeout_scale = 1.0 |
| int send_and_get_ack | ( | packet * | p, | |
| int | timeout | |||
| ) |
Definition at line 53 of file channel.c.
Referenced by get_channel(), initialize(), and send_keypress().
| int send_keypress | ( | int | key | ) |
| void blind_key | ( | int | key | ) |
| int main | ( | int | argc, | |
| char * | argv[] | |||
| ) |
Definition at line 215 of file channel.c.
Referenced by CC608Decoder::GetRatingString(), and PlaybackProfileConfig::InitUI().
Initial value:
{
{ 'p', "port", "port", "serial port (default: /dev/ttyS0)" },
{ 'f', "force", NULL, "keep going after communication errors" },
{ 'o', "ok", NULL, "send OK after channel number" },
{ 'b', "blind", NULL, "send keys blindly and ignore returned data" },
{ 'n', "nopower", NULL, "never attempt to turn box on" },
{ 't', "timeout", "scale", "scale all timeouts by this much "
"(default 1.0)" },
{ 'q', "quiet", NULL, "suppress printing of channel on exit" },
{ 'v', "verbose", NULL, "be verbose (use twice for extra debugging)" },
{ 'h', "help", NULL, "this help" },
{ 'V', "version", NULL, "show program version and exit" },
{ 0, NULL, NULL, NULL }
}
| int verb_count = 0 |
| int send_ok = 0 |
| double timeout_scale = 1.0 |
1.5.5