• Main Page
  • Modules
  • Index
  • File List
  • Globals

lib/display/lib_display.h

Go to the documentation of this file.
00001 /* Copyright (c) 2009 Nordic Semiconductor. All Rights Reserved.
00002  *
00003  * The information contained herein is confidential property of Nordic 
00004  * Semiconductor ASA.Terms and conditions of usage are described in detail 
00005  * in NORDIC SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. 
00006  *
00007  * Licensees are granted free, non-transferable use of the information. NO
00008  * WARRENTY of ANY KIND is provided. This heading must NOT be removed from
00009  * the file.
00010  *              
00011  * $LastChangedRevision: 183 $
00012  */
00013  
00030 #ifndef LIB_NRF6350_H__
00031 #define LIB_NRF6350_H__
00032 
00033 #include <stdint.h>
00034 #include <stdbool.h>
00035 #include "nrf24le1.h"
00036 #include "hal_w2.h"
00037 
00041 typedef enum {
00042   LCD_CONTRAST_LOW     = 0x00,
00043   LCD_CONTRAST_MEDIUM  = 0x02,
00044   LCD_CONTRAST_HIGH    = 0x08
00045 } lib_nrf6350_lcd_contrast_t;
00046 
00050 typedef enum {
00051   JS_BUTTON_NONE   = 0,
00052   JS_BUTTON_PUSH   = 1,
00053   JS_BUTTON_LEFT   = 2,
00054   JS_BUTTON_RIGHT  = 3,
00055   JS_BUTTON_UP     = 4,
00056   JS_BUTTON_DOWN   = 5
00057 } lib_display_js_states_t;
00058 
00061 void lcd_init(void);
00062 
00069 void lcd_write_string(char *text, uint8_t line, uint8_t pos);
00070 
00073 void lcd_clear(void);
00074 
00080 void lcd_set_contrast(lib_nrf6350_lcd_contrast_t contrast);
00081 
00087 void lcd_set_instruction(uint8_t instr);
00088 
00091 void lcd_on(void);
00092 
00095 void lcd_off(void);
00096 
00101 void js_get_value(int8_t *val);
00102 
00107 bool js_button_pushed(void);
00108 
00113 lib_display_js_states_t js_get_status(void);
00114 
00115 #endif  // LIB_NRF6350
00116 

Generated on Fri Apr 20 2012 14:11:45 for nRFGo SDK by  doxygen 1.7.2