heat control  r71
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
lcd_lib.h File Reference
#include <inttypes.h>
Include dependency graph for lcd_lib.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LCD_4BIT
 
#define LCD_RS   0
 
#define LCD_RW   1
 
#define LCD_E   2
 
#define LCD_D0   0
 
#define LCD_D1   0
 
#define LCD_D2   0
 
#define LCD_D3   0
 
#define LCD_D4   4
 
#define LCD_D5   5
 
#define LCD_D6   6
 
#define LCD_D7   7
 
#define LDP   PORTA
 
#define LCP   PORTA
 
#define LDDR   DDRA
 
#define LCDR   DDRA
 
#define LCD_CLR   0
 
#define LCD_HOME   1
 
#define LCD_ENTRY_MODE   2
 
#define LCD_ENTRY_INC   1
 
#define LCD_ENTRY_SHIFT   0
 
#define LCD_ON_CTRL   3
 
#define LCD_ON_DISPLAY   2
 
#define LCD_ON_CURSOR   1
 
#define LCD_ON_BLINK   0
 
#define LCD_MOVE   4
 
#define LCD_MOVE_DISP   3
 
#define LCD_MOVE_RIGHT   2
 
#define LCD_FUNCTION   5
 
#define LCD_FUNCTION_8BIT   4
 
#define LCD_FUNCTION_2LINES   3
 
#define LCD_FUNCTION_10DOTS   2
 
#define LCD_CGRAM   6
 
#define LCD_DDRAM   7
 
#define LCD_BUSY   7
 
#define LCD_LINES   2
 
#define LCD_LINE_LENGTH   16
 
#define LCD_LINE0_DDRAMADDR   0x00
 
#define LCD_LINE1_DDRAMADDR   0x40
 
#define LCD_LINE2_DDRAMADDR   0x14
 
#define LCD_LINE3_DDRAMADDR   0x54
 
#define PROGRESSPIXELS_PER_CHAR   6
 

Functions

void LCDsendChar (uint8_t)
 
void LCDsendCommand (uint8_t)
 
void LCDinit (void)
 
void LCDclr (void)
 
void LCDhome (void)
 
void LCDstring (uint8_t *)
 
void LCDGotoXY (uint8_t, uint8_t)
 
void CopyStringtoLCD (const uint8_t *, uint8_t, uint8_t)
 
void LCDdefinechar (const uint8_t *, uint8_t)
 
void LCDshiftRight (uint8_t)
 
void LCDshiftLeft (uint8_t)
 
void LCDcursorOn (void)
 
void LCDcursorOnBlink (void)
 
void LCDcursorOFF (void)
 
void LCDblank (void)
 
void LCDvisible (void)
 
void LCDcursorLeft (uint8_t)
 
void LCDcursorRight (uint8_t)
 
void LCDprogressBar (uint8_t progress, uint8_t maxprogress, uint8_t length)
 

Macro Definition Documentation

#define LCD_4BIT

Definition at line 23 of file lcd_lib.h.

#define LCD_BUSY   7

Definition at line 103 of file lcd_lib.h.

#define LCD_CGRAM   6

Definition at line 100 of file lcd_lib.h.

#define LCD_CLR   0

Definition at line 84 of file lcd_lib.h.

Referenced by LCDclr().

#define LCD_D0   0

Definition at line 40 of file lcd_lib.h.

Referenced by LCDinit().

#define LCD_D1   0

Definition at line 41 of file lcd_lib.h.

Referenced by LCDinit().

#define LCD_D2   0

Definition at line 42 of file lcd_lib.h.

Referenced by LCDinit().

#define LCD_D3   0

Definition at line 43 of file lcd_lib.h.

Referenced by LCDinit().

#define LCD_D4   4

Definition at line 44 of file lcd_lib.h.

Referenced by LCDinit().

#define LCD_D5   5

Definition at line 45 of file lcd_lib.h.

Referenced by LCDinit().

#define LCD_D6   6

Definition at line 46 of file lcd_lib.h.

Referenced by LCDinit().

#define LCD_D7   7

Definition at line 47 of file lcd_lib.h.

Referenced by LCDinit().

#define LCD_DDRAM   7

Definition at line 101 of file lcd_lib.h.

Referenced by LCDGotoXY().

#define LCD_E   2

Definition at line 39 of file lcd_lib.h.

Referenced by LCDinit(), LCDsendChar(), and LCDsendCommand().

#define LCD_ENTRY_INC   1

Definition at line 87 of file lcd_lib.h.

#define LCD_ENTRY_MODE   2

Definition at line 86 of file lcd_lib.h.

#define LCD_ENTRY_SHIFT   0

Definition at line 88 of file lcd_lib.h.

#define LCD_FUNCTION   5

Definition at line 96 of file lcd_lib.h.

#define LCD_FUNCTION_10DOTS   2

Definition at line 99 of file lcd_lib.h.

#define LCD_FUNCTION_2LINES   3

Definition at line 98 of file lcd_lib.h.

#define LCD_FUNCTION_8BIT   4

Definition at line 97 of file lcd_lib.h.

#define LCD_HOME   1

Definition at line 85 of file lcd_lib.h.

Referenced by LCDhome().

#define LCD_LINE0_DDRAMADDR   0x00

Definition at line 107 of file lcd_lib.h.

Referenced by LCDGotoXY().

#define LCD_LINE1_DDRAMADDR   0x40

Definition at line 108 of file lcd_lib.h.

Referenced by LCDGotoXY().

#define LCD_LINE2_DDRAMADDR   0x14

Definition at line 109 of file lcd_lib.h.

Referenced by LCDGotoXY().

#define LCD_LINE3_DDRAMADDR   0x54

Definition at line 110 of file lcd_lib.h.

Referenced by LCDGotoXY().

#define LCD_LINE_LENGTH   16

Definition at line 105 of file lcd_lib.h.

#define LCD_LINES   2

Definition at line 104 of file lcd_lib.h.

#define LCD_MOVE   4

Definition at line 93 of file lcd_lib.h.

#define LCD_MOVE_DISP   3

Definition at line 94 of file lcd_lib.h.

#define LCD_MOVE_RIGHT   2

Definition at line 95 of file lcd_lib.h.

#define LCD_ON_BLINK   0

Definition at line 92 of file lcd_lib.h.

#define LCD_ON_CTRL   3

Definition at line 89 of file lcd_lib.h.

#define LCD_ON_CURSOR   1

Definition at line 91 of file lcd_lib.h.

#define LCD_ON_DISPLAY   2

Definition at line 90 of file lcd_lib.h.

#define LCD_RS   0

Definition at line 37 of file lcd_lib.h.

Referenced by LCDinit(), and LCDsendChar().

#define LCD_RW   1

Definition at line 38 of file lcd_lib.h.

Referenced by LCDinit().

#define LCDR   DDRA

Definition at line 80 of file lcd_lib.h.

Referenced by LCDinit().

#define LCP   PORTA

Definition at line 78 of file lcd_lib.h.

Referenced by LCDinit(), LCDsendChar(), and LCDsendCommand().

#define LDDR   DDRA

Definition at line 79 of file lcd_lib.h.

Referenced by LCDinit().

#define LDP   PORTA

Definition at line 77 of file lcd_lib.h.

Referenced by LCDinit(), LCDsendChar(), and LCDsendCommand().

#define PROGRESSPIXELS_PER_CHAR   6

Definition at line 112 of file lcd_lib.h.

Referenced by LCDprogressBar().

Function Documentation

void CopyStringtoLCD ( const uint8_t *  ,
uint8_t  ,
uint8_t   
)

Definition at line 401 of file lcd_lib.c.

References LCDGotoXY(), and LCDsendChar().

Here is the call graph for this function:

void LCDblank ( void  )

Definition at line 462 of file lcd_lib.c.

References LCDsendCommand().

Here is the call graph for this function:

void LCDclr ( void  )

Definition at line 361 of file lcd_lib.c.

References LCD_CLR, and LCDsendCommand().

Referenced by DoSetup(), LcdInit(), and Welcome().

Here is the call graph for this function:

Here is the caller graph for this function:

void LCDcursorLeft ( uint8_t  )

Definition at line 470 of file lcd_lib.c.

References LCDsendCommand().

Here is the call graph for this function:

void LCDcursorOFF ( void  )

Definition at line 458 of file lcd_lib.c.

References LCDsendCommand().

Here is the call graph for this function:

void LCDcursorOn ( void  )

Definition at line 450 of file lcd_lib.c.

References LCDsendCommand().

Here is the call graph for this function:

void LCDcursorOnBlink ( void  )

Definition at line 454 of file lcd_lib.c.

References LCDsendCommand().

Here is the call graph for this function:

void LCDcursorRight ( uint8_t  )

Definition at line 477 of file lcd_lib.c.

References LCDsendCommand().

Here is the call graph for this function:

void LCDdefinechar ( const uint8_t *  ,
uint8_t   
)

Definition at line 425 of file lcd_lib.c.

References LCDsendChar(), and LCDsendCommand().

Referenced by LCDinit().

Here is the call graph for this function:

Here is the caller graph for this function:

void LCDGotoXY ( uint8_t  ,
uint8_t   
)

Definition at line 382 of file lcd_lib.c.

References LCD_DDRAM, LCD_LINE0_DDRAMADDR, LCD_LINE1_DDRAMADDR, LCD_LINE2_DDRAMADDR, LCD_LINE3_DDRAMADDR, and LCDsendCommand().

Referenced by CopyStringtoLCD(), TestButton(), Welcome(), WriteCtrlMode(), WriteMeasVal(), WriteSetupGroup(), and WriteSetupValue().

Here is the call graph for this function:

Here is the caller graph for this function:

void LCDhome ( void  )

Definition at line 365 of file lcd_lib.c.

References LCD_HOME, and LCDsendCommand().

Here is the call graph for this function:

void LCDinit ( void  )

Definition at line 80 of file lcd_lib.c.

References LCD_D0, LCD_D1, LCD_D2, LCD_D3, LCD_D4, LCD_D5, LCD_D6, LCD_D7, LCD_E, LCD_RS, LCD_RW, LCDdefinechar(), LCDR, LCDsendCommand(), LCP, LDDR, and LDP.

Referenced by LcdInit().

Here is the call graph for this function:

Here is the caller graph for this function:

void LCDprogressBar ( uint8_t  progress,
uint8_t  maxprogress,
uint8_t  length 
)

Definition at line 485 of file lcd_lib.c.

References LCDsendChar(), and PROGRESSPIXELS_PER_CHAR.

Here is the call graph for this function:

void LCDsendChar ( uint8_t  )

Definition at line 262 of file lcd_lib.c.

References LCD_E, LCD_RS, LCP, and LDP.

Referenced by CopyStringtoLCD(), LCDdefinechar(), LCDprogressBar(), LCDstring(), WriteCtrlMode(), and WriteMeasVal().

Here is the caller graph for this function:

void LCDsendCommand ( uint8_t  )

Definition at line 318 of file lcd_lib.c.

References LCD_E, LCP, and LDP.

Referenced by LCDblank(), LCDclr(), LCDcursorLeft(), LCDcursorOFF(), LCDcursorOn(), LCDcursorOnBlink(), LCDcursorRight(), LCDdefinechar(), LCDGotoXY(), LCDhome(), LCDinit(), LCDshiftLeft(), LCDshiftRight(), and LCDvisible().

Here is the caller graph for this function:

void LCDshiftLeft ( uint8_t  )

Definition at line 436 of file lcd_lib.c.

References LCDsendCommand().

Here is the call graph for this function:

void LCDshiftRight ( uint8_t  )

Definition at line 443 of file lcd_lib.c.

References LCDsendCommand().

Here is the call graph for this function:

void LCDstring ( uint8_t *  )

Definition at line 369 of file lcd_lib.c.

References LCDsendChar().

Referenced by TestButton(), Welcome(), WriteCtrlMode(), WriteSetupGroup(), WriteSetupValue(), and WriteValue().

Here is the call graph for this function:

Here is the caller graph for this function:

void LCDvisible ( void  )

Definition at line 466 of file lcd_lib.c.

References LCDsendCommand().

Here is the call graph for this function: