41 lines
1.1 KiB
C
41 lines
1.1 KiB
C
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
|
|
/*
|
|
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
|
|
*/
|
|
|
|
#ifndef __FD650H__
|
|
#define __FD650H__
|
|
|
|
#define FD650_BIT_ENABLE 0x01
|
|
#define FD650_BIT_SLEEP 0x04
|
|
//#define FD650_BIT_7SEG 0x08
|
|
#define FD650_BIT_INTENS1 0x10
|
|
#define FD650_BIT_INTENS2 0x20
|
|
#define FD650_BIT_INTENS3 0x30
|
|
#define FD650_BIT_INTENS4 0x40
|
|
#define FD650_BIT_INTENS5 0x50
|
|
#define FD650_BIT_INTENS6 0x60
|
|
#define FD650_BIT_INTENS7 0x70
|
|
#define FD650_BIT_INTENS8 0x00
|
|
|
|
#define FD650_SYS_OFF 0x0400
|
|
#define FD650_SYS_ON (FD650_SYS_OFF | FD650_BIT_ENABLE)
|
|
#define FD650_SLEEPOFF FD650_SYS_OFF
|
|
#define FD650_SLEEPON (FD650_SYS_OFF | FD650_BIT_SLEEP)
|
|
//#define FD650_7SEG_ON (FD650_SYS_ON | FD650_BIT_7SEG)
|
|
#define FD650_8SEG_ON (FD650_SYS_ON | 0x00)
|
|
#define FD650_SYS_ON_1 (FD650_SYS_ON | FD650_BIT_INTENS1)
|
|
#define FD650_SYS_ON_4 (FD650_SYS_ON | FD650_BIT_INTENS4)
|
|
#define FD650_SYS_ON_8 (FD650_SYS_ON | FD650_BIT_INTENS8)
|
|
|
|
#define FD650_DIG0 0x1400
|
|
#define FD650_DIG1 0x1500
|
|
#define FD650_DIG2 0x1600
|
|
#define FD650_DIG3 0x1700
|
|
|
|
#define FD650_DOT 0x0080
|
|
|
|
#define FD650_GET_KEY 0x0700
|
|
|
|
#endif
|