/*
 * Copyright 2022, 2023, BlackBerry Limited. All rights reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You 
 * may not reproduce, modify or distribute this software except in 
 * compliance with the License. You may obtain a copy of the License 
 * at: http://www.apache.org/licenses/LICENSE-2.0 
 * 
 * Unless required by applicable law or agreed to in writing, software 
 * distributed under the License is distributed on an "AS IS" basis, 
 * WITHOUT WARRANTIES OF ANY KIND, either express or implied.
 *
 * This file may contain contributions from others, either as 
 * contributors under the License or as licensors under other terms.  
 * Please review this entire file for other proprietary rights or license 
 * notices, as well as the QNX Development Suite License Guide at 
 * http://licensing.qnx.com/license-guide/ for other information.
 * $
 */

#ifndef _ADP5585_INCLUDE_H_
#define _ADP5585_INCLUDE_H_

#define ADP5585_ID_REG					0x00
#define ADP5585_INT_STATUS_REG			0x01
#define ADP5585_STATUS_REG				0x02
#define ADP5585_FIFO_1_REG				0x03
#define ADP5585_FIFO_2_REG				0x04
#define ADP5585_FIFO_3_REG				0x05
#define ADP5585_FIFO_4_REG				0x06
#define ADP5585_FIFO_5_REG				0x07
#define ADP5585_FIFO_6_REG				0x08
#define ADP5585_FIFO_7_REG				0x09
#define ADP5585_FIFO_8_REG				0x0A
#define ADP5585_FIFO_9_REG				0x0B
#define ADP5585_FIFO_10_REG				0x0C
#define ADP5585_FIFO_11_REG				0x0D
#define ADP5585_FIFO_12_REG				0x0E
#define ADP5585_FIFO_13_REG				0x0F
#define ADP5585_FIFO_14_REG				0x10
#define ADP5585_FIFO_15_REG				0x11
#define ADP5585_FIFO_16_REG				0x12
#define ADP5585_GPI_INT_STAT_A_REG		0x13
#define ADP5585_GPI_INT_STAT_B_REG		0x14
#define ADP5585_GPI_STATUS_A_REG		0x15
#define ADP5585_GPI_STATUS_B_REG		0x16
#define ADP5585_RPULL_CONFIG_A_REG		0x17
#define ADP5585_RPULL_CONFIG_B_REG		0x18
#define ADP5585_RPULL_CONFIG_C_REG		0x19
#define ADP5585_RPULL_CONFIG_D_REG		0x1A
#define ADP5585_GPI_INT_LEVEL_A_REG		0x1B
#define ADP5585_GPI_INT_LEVEL_B_REG		0x1C
#define ADP5585_GPI_EVENT_EN_A_REG		0x1D
#define ADP5585_GPI_EVENT_EN_B_REG		0x1E
#define ADP5585_GPI_INTERRUPT_EN_A_REG	0x1F
#define ADP5585_GPI_INTERRUPT_EN_B_REG	0x20
#define ADP5585_DEBOUNCE_DIS_A_REG		0x21
#define ADP5585_DEBOUNCE_DIS_B_REG		0x22
#define ADP5585_GPO_DATA_OUT_A_REG		0x23
#define ADP5585_GPO_DATA_OUT_B_REG		0x24
#define ADP5585_GPO_OUT_MODE_A_REG		0x25
#define ADP5585_GPO_OUT_MODE_B_REG		0x26
#define ADP5585_GPIO_DIRECTION_A_REG	0x27
#define ADP5585_GPIO_DIRECTION_B_REG	0x28
#define ADP5585_RESET1_EVENT_A_REG		0x29
#define ADP5585_RESET1_EVENT_B_REG		0x2A
#define ADP5585_RESET1_EVENT_C_REG		0x2B
#define ADP5585_RESET2_EVENT_A_REG		0x2C
#define ADP5585_RESET2_EVENT_B_REG		0x2D
#define ADP5585_RESET_CFG_REG			0x2E
#define ADP5585_PWM_OFFT_LOW_REG		0x2F
#define ADP5585_PWM_OFFT_HIGH_REG		0x30
#define ADP5585_PWM_ONT_LOW_REG			0x31
#define ADP5585_PWM_ONT_HIGH_REG		0x32
#define ADP5585_PWM_CFG_REG				0x33
#define ADP5585_LOGIC_CFG_REG			0x34
#define ADP5585_LOGIC_FF_CFG_REG		0x35
#define ADP5585_LOGIC_INT_EVENT_EN_REG	0x36
#define ADP5585_POLL_PTIME_CFG_REG		0x37
#define ADP5585_PIN_CONFIG_A_REG		0x38
#define ADP5585_PIN_CONFIG_B_REG		0x39
#define ADP5585_PIN_CONFIG_C_REG		0x3A
#define ADP5585_GENERAL_CFG_REG			0x3B
#define ADP5585_INT_EN_REG				0x3C

#endif

