/**
 * \file    sc8014_reg_defs.h
 * \brief   register definitions for SC8812A
 * 
 * \par     Copyright (c) 2020 UWE Technologies Corp., Ltd. All Rights Reserved.
 * \author  jef.wu
 * \date    2023-06-07
 * \version 
 * 
 * \history 
 *  Date        Note
 *  2020-03-26  Original Creation
 * 
 */

#ifndef __SC8002_REG_DEFS_H_
#define __SC8002_REG_DEFS_H_


/** \name  Register access type definition
 * \{ 
 */
#define RO      (0) ///< Read only
#define RC      (1) ///< Read and clear
#define RW      (2) ///< Read and write
#define WC      (3) ///< Write and clear
/** \} */

#define SC8002_FB_PWM             DRV_GPIO_0
#define SC8002_EN                 DRV_GPIO_14

#define PWM_CHNL 2

#define SC_PWMHZ100K   660




#define SC_DEF5V  158
#define SC_DEF9V  237
#define SC_DEF12V 297
#define SC_DEF15V 363
#define SC_DEF20V 462
#define SC_DEF28V 627




void sc_setvol(u16_t vol);
void sc8002_enable(u8_t en);
void sc8002_init();






#endif /* #ifndef __SC8002_REG_DEFS_H_ */

