ks0108.h 960 B

1234567891011121314151617181920212223242526272829303132333435
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Filename: ks0108.h
  4. * Version: 0.1.0
  5. * Description: ks0108 LCD Controller driver header
  6. *
  7. * Author: Copyright (C) Miguel Ojeda Sandonis
  8. * Date: 2006-10-31
  9. */
  10. #ifndef _KS0108_H_
  11. #define _KS0108_H_
  12. /* Write a byte to the data port */
  13. extern void ks0108_writedata(unsigned char byte);
  14. /* Write a byte to the control port */
  15. extern void ks0108_writecontrol(unsigned char byte);
  16. /* Set the controller's current display state (0..1) */
  17. extern void ks0108_displaystate(unsigned char state);
  18. /* Set the controller's current startline (0..63) */
  19. extern void ks0108_startline(unsigned char startline);
  20. /* Set the controller's current address (0..63) */
  21. extern void ks0108_address(unsigned char address);
  22. /* Set the controller's current page (0..7) */
  23. extern void ks0108_page(unsigned char page);
  24. /* Is the module inited? */
  25. extern unsigned char ks0108_isinited(void);
  26. #endif /* _KS0108_H_ */