Digital Power Starter Kit 3 Firmware
dsPIC33C Buck Converter Voltage Mode Control Example

Private properties of the LC display device driver library. More...

+ Collaboration diagram for Private Properties:
#define LCD_ADDRESS_LINE_1   0x00
 Newhaven NHD-C0216CZ-FSW-FBW LCD controller command set. More...
 
#define LCD_ADDRESS_LINE_2   0x40
 
#define LCD_DISPLAYSIZE_X   16
 
#define LCD_DISPLAYSIZE_Y   2
 
#define LCD_CLEAR   0x01
 
#define LCD_HOME   0x02
 
#define CURSOR_nSHIFT   0x00
 
#define CURSOR_SHIFT   0x01
 
#define DATA_DECREMENT   0x00
 
#define DATA_INCREMENT   0x02
 
#define LCD_ENTRY_MODE   0x04
 
#define CURSOR_OFF   0x00
 
#define CURSOR_ON   0x02
 
#define BLINK_OFF   0x00
 
#define BLINK_ON   0x01
 
#define LCD_DISPLAY_OFF   0x08
 
#define LCD_DISPLAY_ON   0x0C
 
#define FUNCTION_nIS   0x00
 
#define FUNCTION_IS   0x01
 
#define FUNCTION_1_HIGH   0x00
 
#define FUNCTION_2_HIGH   0x04
 
#define FUNCTION_1_LINE   0x00
 
#define FUNCTION_2_LINE   0x08
 
#define FUNCTION_4BITS   0x00
 
#define FUNCTION_8BITS   0x10
 
#define LCD_FUNCTION   0x20
 
#define LCD_CGRAM_ADDRESS(adr)   (0x40 | (adr & 0x3F))
 
#define LCD_DDRAM_ADDRESS(adr)   (0x80 | (adr & 0x7F))
 
#define BIAS_1_5   0x00
 
#define BIAS_1_4   0x08
 
#define FREQ_CNTRL(f)   (f&0x07)
 
#define LCD_OSC_FREQ   0x10
 
#define LCD_ICON_ADDRESS(adr)   (0x40 | (adr & 0x0F))
 
#define nICON   0x00
 
#define ICON   0x08
 
#define nBOOST   0x00
 
#define BOOSTLCD   0x04
 
#define CONTRAST(c)   (c&0x03)
 
#define LCD_PWR_CONTROL   0x50
 
#define FOLLOWER_GAIN(g)   (g&0x07)
 
#define LCD_FOLLOWER_OFF   0x60
 
#define LCD_FOLLOWER_ON   0x68
 
#define LCD_CONTRAST(c)   (0x70 | (c & 0x0F))
 
#define LCD_BUSY_FLAG_MASK   0x80
 
#define LCD_ADDRESS_MASK   0x7F
 
const uint8_t line_address [] = {LCD_ADDRESS_LINE_1, LCD_ADDRESS_LINE_2}
 
uint8_t pos_x = 0
 
uint8_t pos_y = 0
 
uint8_t change_position = false
 

Detailed Description

Private properties of the LC display device driver library.

This is the detailed description of public variables, data types, enumerations, defines and macros of the LC display device driver library.

Note
This module doesn't have any private properties

Macro Definition Documentation

◆ BIAS_1_4

#define BIAS_1_4   0x08

Definition at line 81 of file dev_lcd.c.

◆ BIAS_1_5

#define BIAS_1_5   0x00

Definition at line 80 of file dev_lcd.c.

◆ BLINK_OFF

#define BLINK_OFF   0x00

Definition at line 60 of file dev_lcd.c.

◆ BLINK_ON

#define BLINK_ON   0x01

Definition at line 61 of file dev_lcd.c.

◆ BOOSTLCD

#define BOOSTLCD   0x04

Definition at line 90 of file dev_lcd.c.

◆ CONTRAST

#define CONTRAST (   c)    (c&0x03)

Definition at line 91 of file dev_lcd.c.

◆ CURSOR_nSHIFT

#define CURSOR_nSHIFT   0x00

Definition at line 52 of file dev_lcd.c.

◆ CURSOR_OFF

#define CURSOR_OFF   0x00

Definition at line 58 of file dev_lcd.c.

◆ CURSOR_ON

#define CURSOR_ON   0x02

Definition at line 59 of file dev_lcd.c.

◆ CURSOR_SHIFT

#define CURSOR_SHIFT   0x01

Definition at line 53 of file dev_lcd.c.

◆ DATA_DECREMENT

#define DATA_DECREMENT   0x00

Definition at line 54 of file dev_lcd.c.

◆ DATA_INCREMENT

#define DATA_INCREMENT   0x02

Definition at line 55 of file dev_lcd.c.

◆ FOLLOWER_GAIN

#define FOLLOWER_GAIN (   g)    (g&0x07)

Definition at line 94 of file dev_lcd.c.

◆ FREQ_CNTRL

#define FREQ_CNTRL (   f)    (f&0x07)

Definition at line 82 of file dev_lcd.c.

◆ FUNCTION_1_HIGH

#define FUNCTION_1_HIGH   0x00

Definition at line 67 of file dev_lcd.c.

◆ FUNCTION_1_LINE

#define FUNCTION_1_LINE   0x00

Definition at line 69 of file dev_lcd.c.

◆ FUNCTION_2_HIGH

#define FUNCTION_2_HIGH   0x04

Definition at line 68 of file dev_lcd.c.

◆ FUNCTION_2_LINE

#define FUNCTION_2_LINE   0x08

Definition at line 70 of file dev_lcd.c.

◆ FUNCTION_4BITS

#define FUNCTION_4BITS   0x00

Definition at line 71 of file dev_lcd.c.

◆ FUNCTION_8BITS

#define FUNCTION_8BITS   0x10

Definition at line 72 of file dev_lcd.c.

◆ FUNCTION_IS

#define FUNCTION_IS   0x01

Definition at line 66 of file dev_lcd.c.

◆ FUNCTION_nIS

#define FUNCTION_nIS   0x00

Definition at line 65 of file dev_lcd.c.

◆ ICON

#define ICON   0x08

Definition at line 88 of file dev_lcd.c.

◆ LCD_ADDRESS_LINE_1

#define LCD_ADDRESS_LINE_1   0x00

Newhaven NHD-C0216CZ-FSW-FBW LCD controller command set.

Defines for the command set of a Newhaven NHD-C0216CZ-FSW-FBW LCD controller

Definition at line 43 of file dev_lcd.c.

◆ LCD_ADDRESS_LINE_2

#define LCD_ADDRESS_LINE_2   0x40

Definition at line 44 of file dev_lcd.c.

◆ LCD_ADDRESS_MASK

#define LCD_ADDRESS_MASK   0x7F

Definition at line 101 of file dev_lcd.c.

◆ LCD_BUSY_FLAG_MASK

#define LCD_BUSY_FLAG_MASK   0x80

Definition at line 100 of file dev_lcd.c.

◆ LCD_CGRAM_ADDRESS

#define LCD_CGRAM_ADDRESS (   adr)    (0x40 | (adr & 0x3F))

Definition at line 76 of file dev_lcd.c.

◆ LCD_CLEAR

#define LCD_CLEAR   0x01

Definition at line 49 of file dev_lcd.c.

◆ LCD_CONTRAST

#define LCD_CONTRAST (   c)    (0x70 | (c & 0x0F))

Definition at line 98 of file dev_lcd.c.

◆ LCD_DDRAM_ADDRESS

#define LCD_DDRAM_ADDRESS (   adr)    (0x80 | (adr & 0x7F))

Definition at line 77 of file dev_lcd.c.

◆ LCD_DISPLAY_OFF

#define LCD_DISPLAY_OFF   0x08

Definition at line 62 of file dev_lcd.c.

◆ LCD_DISPLAY_ON

#define LCD_DISPLAY_ON   0x0C

Definition at line 63 of file dev_lcd.c.

◆ LCD_DISPLAYSIZE_X

#define LCD_DISPLAYSIZE_X   16

Definition at line 46 of file dev_lcd.c.

◆ LCD_DISPLAYSIZE_Y

#define LCD_DISPLAYSIZE_Y   2

Definition at line 47 of file dev_lcd.c.

◆ LCD_ENTRY_MODE

#define LCD_ENTRY_MODE   0x04

Definition at line 56 of file dev_lcd.c.

◆ LCD_FOLLOWER_OFF

#define LCD_FOLLOWER_OFF   0x60

Definition at line 95 of file dev_lcd.c.

◆ LCD_FOLLOWER_ON

#define LCD_FOLLOWER_ON   0x68

Definition at line 96 of file dev_lcd.c.

◆ LCD_FUNCTION

#define LCD_FUNCTION   0x20

Definition at line 74 of file dev_lcd.c.

◆ LCD_HOME

#define LCD_HOME   0x02

Definition at line 50 of file dev_lcd.c.

◆ LCD_ICON_ADDRESS

#define LCD_ICON_ADDRESS (   adr)    (0x40 | (adr & 0x0F))

Definition at line 85 of file dev_lcd.c.

◆ LCD_OSC_FREQ

#define LCD_OSC_FREQ   0x10

Definition at line 83 of file dev_lcd.c.

◆ LCD_PWR_CONTROL

#define LCD_PWR_CONTROL   0x50

Definition at line 92 of file dev_lcd.c.

◆ nBOOST

#define nBOOST   0x00

Definition at line 89 of file dev_lcd.c.

◆ nICON

#define nICON   0x00

Definition at line 87 of file dev_lcd.c.

Variable Documentation

◆ change_position

uint8_t change_position = false

Definition at line 110 of file dev_lcd.c.

◆ line_address

const uint8_t line_address[] = {LCD_ADDRESS_LINE_1, LCD_ADDRESS_LINE_2}

Definition at line 107 of file dev_lcd.c.

◆ pos_x

uint8_t pos_x = 0

Definition at line 108 of file dev_lcd.c.

◆ pos_y

uint8_t pos_y = 0

Definition at line 109 of file dev_lcd.c.