Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  *    Filename: ks0108.h
0004  *     Version: 0.1.0
0005  * Description: ks0108 LCD Controller driver header
0006  *
0007  *      Author: Copyright (C) Miguel Ojeda <ojeda@kernel.org>
0008  *        Date: 2006-10-31
0009  */
0010 
0011 #ifndef _KS0108_H_
0012 #define _KS0108_H_
0013 
0014 /* Write a byte to the data port */
0015 extern void ks0108_writedata(unsigned char byte);
0016 
0017 /* Write a byte to the control port */
0018 extern void ks0108_writecontrol(unsigned char byte);
0019 
0020 /* Set the controller's current display state (0..1) */
0021 extern void ks0108_displaystate(unsigned char state);
0022 
0023 /* Set the controller's current startline (0..63) */
0024 extern void ks0108_startline(unsigned char startline);
0025 
0026 /* Set the controller's current address (0..63) */
0027 extern void ks0108_address(unsigned char address);
0028 
0029 /* Set the controller's current page (0..7) */
0030 extern void ks0108_page(unsigned char page);
0031 
0032 /* Is the module inited? */
0033 extern unsigned char ks0108_isinited(void);
0034 
0035 #endif /* _KS0108_H_ */