![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0 */ 0002 /* 0003 * Filename: cfag12864b.h 0004 * Version: 0.1.0 0005 * Description: cfag12864b LCD driver header 0006 * 0007 * Author: Copyright (C) Miguel Ojeda <ojeda@kernel.org> 0008 * Date: 2006-10-12 0009 */ 0010 0011 #ifndef _CFAG12864B_H_ 0012 #define _CFAG12864B_H_ 0013 0014 #define CFAG12864B_WIDTH (128) 0015 #define CFAG12864B_HEIGHT (64) 0016 #define CFAG12864B_CONTROLLERS (2) 0017 #define CFAG12864B_PAGES (8) 0018 #define CFAG12864B_ADDRESSES (64) 0019 #define CFAG12864B_SIZE ((CFAG12864B_CONTROLLERS) * \ 0020 (CFAG12864B_PAGES) * \ 0021 (CFAG12864B_ADDRESSES)) 0022 0023 /* 0024 * The driver will blit this buffer to the LCD 0025 * 0026 * Its size is CFAG12864B_SIZE. 0027 */ 0028 extern unsigned char * cfag12864b_buffer; 0029 0030 /* 0031 * Get the refresh rate of the LCD 0032 * 0033 * Returns the refresh rate (hertz). 0034 */ 0035 extern unsigned int cfag12864b_getrate(void); 0036 0037 /* 0038 * Enable refreshing 0039 * 0040 * Returns 0 if successful (anyone was using it), 0041 * or != 0 if failed (someone is using it). 0042 */ 0043 extern unsigned char cfag12864b_enable(void); 0044 0045 /* 0046 * Disable refreshing 0047 * 0048 * You should call this only when you finish using the LCD. 0049 */ 0050 extern void cfag12864b_disable(void); 0051 0052 /* 0053 * Is enabled refreshing? (is anyone using the module?) 0054 * 0055 * Returns 0 if refreshing is not enabled (anyone is using it), 0056 * or != 0 if refreshing is enabled (someone is using it). 0057 * 0058 * Useful for buffer read-only modules. 0059 */ 0060 extern unsigned char cfag12864b_isenabled(void); 0061 0062 /* 0063 * Is the module inited? 0064 */ 0065 extern unsigned char cfag12864b_isinited(void); 0066 0067 #endif /* _CFAG12864B_H_ */ 0068
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |