#ifndef __LCD_H__
#define __LCD_H__
#include "main.h"
#define p650 0
#define p700 1
#define p750 2
#define p800 3
#define p850 4
#define p900 5
#define p950 6
#define p1000 7

//TYPESEL
#define CAP_BIAS 0
#define INTER_VOL_STABLE 1

//DUTY
#define DUTY1_4 0
#define DUTY1_5 1

//PUMPON
#define PUMP_OFF 0
#define PUMP_ON 1

#define LCD_OFF 0
#define LCD_ON 1 

//LCDCON1
//MOD1, MOD0
#define NORMAL_RES_990K 0
#define NORMAL_RES_60K  1
#define FAST_RES        2

//RLCD
#define BIAS_RES_450K 0
#define BIAS_RES_990K 1

//FCCTL
#define FCCTL_1PER4   0
#define FCCTL_1PER8   1
#define FCCTL_1PER16  2
#define FCCTL_1PER21  3

//TLCD
#define RES_LCD  0
#define CAP_LCD  1

void init_lcd( uint8_t vol,
               uint8_t typesel, 
               uint8_t duty, 
               uint8_t pumpon, 
               uint8_t tlcd, 
               uint8_t fcctl, 
               uint8_t rlcd, 
               uint8_t mod);
void lcd_on(void);
void lcd_off(void);
void LCD_Test(void);
#endif