Nut/OS  5.0.5
API Reference
LC/VF Display Driver.
Collaboration diagram for LC/VF Display Driver.:

Defines

#define LcdNanoDelay(a)
 Wait until controller will be ready again.
#define LCD_SHORT_DELAY   1
#define LCD_LONG_DELAY   2
#define LCD_DELAY   _NOP(); _NOP(); _NOP(); _NOP()

Variables

TERMDCB dcb_term
 Terminal device control block structure.
NUTDEVICE devLcd
 LCD device information structure.
TERMDCB dcb_term
 Terminal device control block structure.
NUTDEVICE devLcd
 LCD device information structure.
TERMDCB dcb_term
 Terminal device control block structure.
NUTDEVICE devLcdBus
 LCD device information structure.
NUTDEVICE devSpiMegaLcd
 LCD device information structure.

Define Documentation

#define LcdNanoDelay (   a)

Wait until controller will be ready again.

If LCD_WR_BIT is defined we will wait until the ready bit is set, otherwise We will either busy loop with NutDelay or sleep with NutSleep. The second option will be used if we have defined NUT_CPU_FREQ. In this case we have a higher timer resolution.

Parameters:
xtDelay time in milliseconds
#define LCD_SHORT_DELAY   1
#define LCD_LONG_DELAY   2
#define LCD_DELAY   _NOP(); _NOP(); _NOP(); _NOP()

Variable Documentation

Initial value:
 {
    LcdInit,                    
    LcdWriteData,               
    LcdWriteInstruction,        
    LcdClear,                   
    LcdSetCursor,               
    LcdCursorHome,              
    LcdCursorLeft,              
    LcdCursorRight,             
    LcdCursorMode,              
    0,                          
    0,                          
    LCD_ROWS,                   
    LCD_COLS,                   
    LCD_COLS,                   
    0,                          
    0,                          
    0                           
}

Terminal device control block structure.

Initial value:
 {
    0,                          
    {'c', 'h', 'a', 'r', 'l', 'c', 'd', 0, 0},  
    IFTYP_STREAM,               
    0,                          
    0,                          
    0,                          
    &dcb_term,                  
    TermInit,                   
    TermIOCtl,                  
    0,
    TermWrite,
    TermOpen,
    TermClose,
    0
}

LCD device information structure.

Initial value:
 {
    LcdInit,            
    LcdWriteData,       
    LcdWriteCmd,        
    LcdClear,           
    LcdSetCursor,       
    LcdCursorHome,      
    LcdCursorLeft,      
    LcdCursorRight,     
    LcdCursorMode,      
    0,                  
    0,                  
    LCD_ROWS,           
    LCD_COLS,           
    LCD_COLS,           
    0,                  
    0,                  
    0                   
}

Terminal device control block structure.

Initial value:
 {
    0,              
    {'l', 'c', 'd', 0, 0, 0, 0, 0, 0},      
    IFTYP_STREAM,   
    0,              
    0,              
    0,              
    &dcb_term,      
    TermInit,       
    TermIOCtl,      
    0,
    TermWrite,
    TermWrite_P,
    TermOpen,
    TermClose,
    0
}

LCD device information structure.

Initial value:
 {
    LcdInit,                    
    LcdWriteData,               
    LcdWriteCmd,                
    LcdClear,                   
    LcdSetCursor,               
    LcdCursorHome,              
    LcdCursorLeft,              
    LcdCursorRight,             
    LcdCursorMode,              
    0,                          
    0,                          


























    2,                  
    16,                 
    16,                 





















    0,                  
    0,                  
    0                   
}

Terminal device control block structure.

Initial value:
 {
    0,                          
    {'l', 'c', 'd', 'b', 'u', 's', 0, 0, 0},    
    IFTYP_STREAM,               
    0,                          
    0,                          
    0,                          
    &dcb_term,                  
    TermInit,                   
    TermIOCtl,                  
    0,
    TermWrite,
    TermWrite_P,
    TermOpen,
    TermClose,
    0
}

LCD device information structure.

Initial value:
 {
    0,              
    {'l', 'c', 'd', 0, 0, 0, 0, 0, 0},      
    IFTYP_STREAM,   
    0,              
    0,              
    0,              
    &dcb_term,      
    TermInit,       
    TermIOCtl,      
    0,
    TermWrite,

    TermWrite_P,

    TermOpen,
    TermClose,
    0
}

LCD device information structure.