Go to the source code of this file.
Defines | |
#define | DISPLAY_LINES 2 |
#define | DISPLAY_VCOLUMNS 80 |
Functions | |
void | Displayer (void *arg) |
void | DisplayStation (RADIOSTATION *rsp) |
void | DisplayStatus (uint8_t status) |
Display a specified status. | |
void | DisplayMessage (uint8_t row, uint8_t secs, CONST char *fmt,...) |
Display a specified text. | |
void | DisplayEntry (uint8_t rs) |
Display specified entry of the list of stations. | |
int | DisplayInit (char *name) |
Start background thread for display updates. | |
Variables | |
uint16_t | lcd_offset |
char * | sline [2] |
char * | mline [2] |
uint16_t | mticks [2] |
FILE * | lcd |
HANDLE | updevt |
#define DISPLAY_LINES 2 |
Definition at line 57 of file display.c.
Referenced by Displayer().
#define DISPLAY_VCOLUMNS 80 |
Definition at line 58 of file display.c.
Referenced by DisplayEntry(), DisplayInit(), DisplayStation(), and DisplayStatus().
void Displayer | ( | void * | arg | ) |
Definition at line 71 of file display.c.
References DISPLAY_LINES, ESC_CLREOL, ESC_CURSOROFF, ESC_POS, fprintf(), fputs(), lcd, mline, mticks, NutEventWait(), NutThreadSetPriority(), sline, strlen(), and updevt.
Referenced by DisplayInit().
void DisplayStation | ( | RADIOSTATION * | rsp | ) |
Definition at line 127 of file display.c.
References DISPLAY_VCOLUMNS, inet_ntoa(), RADIOSTATION::rs_ip, RADIOSTATION::rs_name, RADIOSTATION::rs_port, sline, and strncpy().
Referenced by DisplayStatus().
void DisplayStatus | ( | uint8_t | status | ) |
Display a specified status.
status | Status to be displayed. |
Definition at line 143 of file display.c.
References DISPLAY_VCOLUMNS, DisplayStation(), DIST_CONNECTED, DIST_CONNECTING, DIST_DEAD, DIST_FORCE, DIST_NONE, NutEventPost(), player, PLAYERINFO::psi_metatitle, radio, RADIOCONTROL::rc_cstation, RADIOCONTROL::rc_cstatus, RADIOSTATION::rs_genre, sline, sprintf, station, strcpy(), strncpy(), and updevt.
Referenced by DisplayInit().
Display a specified text.
row | Row position of the message. | |
secs | Number of seconds to display the message. Set to 0 for permanent display. | |
fmt | Format string containing conversion specifications. |
Definition at line 184 of file display.c.
References mline, mticks, NutEventPost(), sline, updevt, and vsprintf().
void DisplayEntry | ( | uint8_t | rs | ) |
Display specified entry of the list of stations.
rs | Index of the list entry. |
Definition at line 204 of file display.c.
References DISPLAY_VCOLUMNS, inet_ntoa(), NutEventPost(), RADIOSTATION::rs_genre, RADIOSTATION::rs_ip, RADIOSTATION::rs_name, RADIOSTATION::rs_port, RADIOSTATION::rs_scandead, RADIOSTATION::rs_scantitle, sline, sprintf, station, strcpy(), strncpy(), and updevt.
int DisplayInit | ( | char * | name | ) |
Start background thread for display updates.
name | Display device name. |
Definition at line 234 of file display.c.
References DISPLAY_VCOLUMNS, Displayer(), DisplayStatus(), DIST_NONE, fopen(), lcd, malloc, mline, NutThreadCreate(), and sline.
Referenced by main().
char* sline[2] |
Definition at line 60 of file display.c.
Referenced by DisplayEntry(), Displayer(), DisplayInit(), DisplayMessage(), DisplayStation(), and DisplayStatus().
char* mline[2] |
Definition at line 61 of file display.c.
Referenced by Displayer(), DisplayInit(), and DisplayMessage().
Definition at line 62 of file display.c.
Referenced by Displayer(), and DisplayMessage().
Definition at line 64 of file display.c.
Referenced by Displayer(), and DisplayInit().
Definition at line 66 of file display.c.
Referenced by DisplayEntry(), Displayer(), DisplayMessage(), and DisplayStatus().