output.h File Reference


Detailed Description

Output module defines and global function prototypes for eWicht.

Software License
See the MBCSL for details.
Author:
Sven Schlender (kontakt at mobacon dot de)
Date:
2009-11-08

Definition in file output.h.

Go to the source code of this file.

Defines

#define LCD_CHARS_IN_A_ROW   16
 Defines the count of maximum characters per display row.
#define LCD_CLR_MASK   0x01
 Clear Display.
#define LCD_ROW1_MASK   0x02
 Write to the first display row.
#define LCD_ROW2_MASK   0x04
 Write to the second display row.
#define LCD_ROW3_MASK   0x08
 Write data to row 3. Not used by eWicht and not implemented yet.
#define LCD_PROGRESS_MASK   0x10
 Writes a progress bar in the second row.
#define LCD_CLR_PROG_MASK   0x20
 The command deletes the second row.
#define LCD_CENTER1_MASK   0x40
 Center the text in the first row.
#define LCD_CENTER2_MASK   0x80
 Center the text in the second row.
#define LCD_PROGRESS_CHAR   '.'
 The character for showing the progress bar.
#define LCD_PROGRESS_TIME   1.5
 The time between a progress bar shift in seconds.
#define LCD_IDLE_TIME   20
 The time for an idle display.
#define LED_FL   0x01
 Gains access to FL button LED.
#define LED_F1   0x02
 Gains access to F1 button LED.
#define LED_F2   0x04
 Gains access to F2 button LED.
#define LED_F3   0x08
 Gains access to F3 button LED.
#define LED_F4   0x10
 Gains access to F4 button LED.
#define LED_PWR   0x20
 Gains access to PWR button LED.
#define LED_ACC   0x40
 Gains access to ACC button LED.
#define LED_SEL   0x80
 Gains access to SEL button LED.
#define LED_BLINK_INTERVAL   1u
 The time of the blinking interval of an LED in LED_BLINK mode in seconds.

Enumerations

enum  eLED_Modes { LED_ON = 0, LED_OFF, LED_BLINK, LED_TOGGLE }
 Modes for LED access. More...

Functions

void OutInit (void)
 Initializes the display and LEDs.
void OutMain (void)
 Handles the display access and LED blinking if enabled.
void OutDebugOut (BYTE u8Value)
 The function displays the given value at the LEDs.
void OutSwitchOffLCD (void)
 The function turns off the backlight of the LCD and the LCD itself.
void OutSwitchLCDBacklight (BOOL On)
 The function turns the backlight of the LCD on or off.
BOOL OutIsLCDBusy (void)
 The function determines, if all commands are handled by the display and the appropriate actions are done.
void OutEnableCursor (BOOL On)
 The function enables the cursor in the display.
void OutSetCursor (BYTE Column, BYTE Row)
 The function sets the position of the cursor independently of the visibility of the cursor.
void OutSwitchOffAllLEDs (void)
 All button LEDs will be turned off.
void OutSetLED (BYTE LedMask, eLED_Modes Mode)
 Gives access to the LEDs.
void OutSetLEDMask (BYTE LedMask, BYTE LedSwitchMask)
 Gives boolean access to the LEDs via a switch mask.
void OutTriggerDisplay (void)
 Retriggers the time the LCD backlight stays on.
eLED_Modes OutGetLEDMode (BYTE Led)
 Obtain the mode of the specified LED.
void OutConvertNameForDisplay (BYTE *pString)
 Converts a string from the website to the display encoding.

Variables

BYTE lcd_status
 This byte is the global access to send commands to the display and get knowledge about the state of the LCD.


Define Documentation

#define LCD_IDLE_TIME   20

The time for an idle display.

After the time has elapsed, the LCD backlight is switched off. The application can restart the timer and switching on again the LCD backlight with display commands or calling the function OutTriggerDisplay.

Definition at line 118 of file output.h.


Generated on Sun Nov 27 20:02:39 2011 for eWicht by  doxygen 1.5.5