channel.c File Reference

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


Function Documentation

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 initialize ( void   ) 

Definition at line 72 of file channel.c.

Referenced by main().

int get_channel ( void   ) 

Definition at line 100 of file channel.c.

Referenced by main().

int send_keypress ( int  key  ) 

Definition at line 126 of file channel.c.

Referenced by main(), and set_channel().

int set_channel ( int  chan  ) 

Definition at line 140 of file channel.c.

Referenced by main().

void blind_key ( int  key  ) 

Definition at line 183 of file channel.c.

Referenced by blind_channel().

void blind_channel ( int  chan  ) 

Definition at line 197 of file channel.c.

Referenced by main().

int main ( int  argc,
char *  argv[] 
)

Definition at line 215 of file channel.c.

Referenced by CC608Decoder::GetRatingString(), and PlaybackProfileConfig::InitUI().


Variable Documentation

struct options opt[]

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 }
}

Definition at line 22 of file channel.c.

int verb_count = 0

Definition at line 37 of file channel.c.

Referenced by main().

int send_ok = 0

Definition at line 38 of file channel.c.

Referenced by blind_channel(), main(), and set_channel().

double timeout_scale = 1.0

Definition at line 41 of file channel.c.

Referenced by main().


Generated on Sat Sep 4 06:39:40 2010 for MythTV by  doxygen 1.5.5