Zephyr API Documentation 3.7.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
adp5585.h File Reference
#include <zephyr/device.h>

Go to the source code of this file.

Data Structures

struct  mfd_adp5585_config
 
struct  mfd_adp5585_data
 

Macros

#define ADP5585_ID   0x00
 
#define ADP5585_INT_STATUS   0x01
 
#define ADP5585_STATUS   0x02
 
#define ADP5585_FIFO_1   0x03
 
#define ADP5585_FIFO_2   0x04
 
#define ADP5585_FIFO_3   0x05
 
#define ADP5585_FIFO_4   0x06
 
#define ADP5585_FIFO_5   0x07
 
#define ADP5585_FIFO_6   0x08
 
#define ADP5585_FIFO_7   0x09
 
#define ADP5585_FIFO_8   0x0A
 
#define ADP5585_FIFO_9   0x0B
 
#define ADP5585_FIFO_10   0x0C
 
#define ADP5585_FIFO_11   0x0D
 
#define ADP5585_FIFO_12   0x0E
 
#define ADP5585_FIFO_13   0x0F
 
#define ADP5585_FIFO_14   0x10
 
#define ADP5585_FIFO_15   0x11
 
#define ADP5585_FIFO_16   0x12
 
#define ADP5585_GPI_INT_STAT_A   0x13
 
#define ADP5585_GPI_INT_STAT_B   0x14
 
#define ADP5585_GPI_STATUS_A   0x15
 
#define ADP5585_GPI_STATUS_B   0x16
 
#define ADP5585_RPULL_CONFIG_A   0x17
 
#define ADP5585_RPULL_CONFIG_B   0x18
 
#define ADP5585_RPULL_CONFIG_C   0x19
 
#define ADP5585_RPULL_CONFIG_D   0x1A
 
#define ADP5585_GPI_INT_LEVEL_A   0x1B
 
#define ADP5585_GPI_INT_LEVEL_B   0x1C
 
#define ADP5585_GPI_EVENT_EN_A   0x1D
 
#define ADP5585_GPI_EVENT_EN_B   0x1E
 
#define ADP5585_GPI_INTERRUPT_EN_A   0x1F
 
#define ADP5585_GPI_INTERRUPT_EN_B   0x20
 
#define ADP5585_DEBOUNCE_DIS_A   0x21
 
#define ADP5585_DEBOUNCE_DIS_B   0x22
 
#define ADP5585_GPO_DATA_OUT_A   0x23
 
#define ADP5585_GPO_DATA_OUT_B   0x24
 
#define ADP5585_GPO_OUT_MODE_A   0x25
 
#define ADP5585_GPO_OUT_MODE_B   0x26
 
#define ADP5585_GPIO_DIRECTION_A   0x27
 
#define ADP5585_GPIO_DIRECTION_B   0x28
 
#define ADP5585_RESET1_EVENT_A   0x29
 
#define ADP5585_RESET1_EVENT_B   0x2A
 
#define ADP5585_RESET1_EVENT_C   0x2B
 
#define ADP5585_RESET2_EVENT_A   0x2C
 
#define ADP5585_RESET2_EVENT_B   0x2D
 
#define ADP5585_RESET_CFG   0x2E
 
#define ADP5585_PWM_OFFT_LOW   0x2F
 
#define ADP5585_PWM_OFFT_HIGH   0x30
 
#define ADP5585_PWM_ONT_LOW   0x31
 
#define ADP5585_PWM_ONT_HIGH   0x32
 
#define ADP5585_PWM_CFG   0x33
 
#define ADP5585_LOGIC_CFG   0x34
 
#define ADP5585_LOGIC_FF_CFG   0x35
 
#define ADP5585_LOGIC_INT_EVENT_EN   0x36
 
#define ADP5585_POLL_PTIME_CFG   0x37
 
#define ADP5585_PIN_CONFIG_A   0x38
 
#define ADP5585_PIN_CONFIG_B   0x39
 
#define ADP5585_PIN_CONFIG_C   0x3A
 
#define ADP5585_GENERAL_CFG   0x3B
 
#define ADP5585_INT_EN   0x3C
 
#define ADP5585_DEVICE_ID_MASK   0xF
 
#define ADP5585_MAN_ID_MASK   0xF
 
#define ADP5585_MAN_ID_SHIFT   4
 
#define ADP5585_MAN_ID   0x02
 
#define ADP5585_PWM_CFG_EN   0x1
 
#define ADP5585_PWM_CFG_MODE   0x2
 
#define ADP5585_PIN_CONFIG_R3_PWM   0x8
 
#define ADP5585_PIN_CONFIG_R3_MASK   0xC
 
#define ADP5585_GENERAL_CFG_OSC_EN   0x80
 
#define ADP5585_INT_EVENT   (1U << 0)
 
#define ADP5585_INT_GPI   (1U << 1)
 
#define ADP5585_INT_OVERFLOW   (1U << 2)
 
#define ADP5585_INT_LOGIC   (1U << 4)
 
#define ADP5585_REG_MASK   0xFF
 

Macro Definition Documentation

◆ ADP5585_DEBOUNCE_DIS_A

#define ADP5585_DEBOUNCE_DIS_A   0x21

◆ ADP5585_DEBOUNCE_DIS_B

#define ADP5585_DEBOUNCE_DIS_B   0x22

◆ ADP5585_DEVICE_ID_MASK

#define ADP5585_DEVICE_ID_MASK   0xF

◆ ADP5585_FIFO_1

#define ADP5585_FIFO_1   0x03

◆ ADP5585_FIFO_10

#define ADP5585_FIFO_10   0x0C

◆ ADP5585_FIFO_11

#define ADP5585_FIFO_11   0x0D

◆ ADP5585_FIFO_12

#define ADP5585_FIFO_12   0x0E

◆ ADP5585_FIFO_13

#define ADP5585_FIFO_13   0x0F

◆ ADP5585_FIFO_14

#define ADP5585_FIFO_14   0x10

◆ ADP5585_FIFO_15

#define ADP5585_FIFO_15   0x11

◆ ADP5585_FIFO_16

#define ADP5585_FIFO_16   0x12

◆ ADP5585_FIFO_2

#define ADP5585_FIFO_2   0x04

◆ ADP5585_FIFO_3

#define ADP5585_FIFO_3   0x05

◆ ADP5585_FIFO_4

#define ADP5585_FIFO_4   0x06

◆ ADP5585_FIFO_5

#define ADP5585_FIFO_5   0x07

◆ ADP5585_FIFO_6

#define ADP5585_FIFO_6   0x08

◆ ADP5585_FIFO_7

#define ADP5585_FIFO_7   0x09

◆ ADP5585_FIFO_8

#define ADP5585_FIFO_8   0x0A

◆ ADP5585_FIFO_9

#define ADP5585_FIFO_9   0x0B

◆ ADP5585_GENERAL_CFG

#define ADP5585_GENERAL_CFG   0x3B

◆ ADP5585_GENERAL_CFG_OSC_EN

#define ADP5585_GENERAL_CFG_OSC_EN   0x80

◆ ADP5585_GPI_EVENT_EN_A

#define ADP5585_GPI_EVENT_EN_A   0x1D

◆ ADP5585_GPI_EVENT_EN_B

#define ADP5585_GPI_EVENT_EN_B   0x1E

◆ ADP5585_GPI_INT_LEVEL_A

#define ADP5585_GPI_INT_LEVEL_A   0x1B

◆ ADP5585_GPI_INT_LEVEL_B

#define ADP5585_GPI_INT_LEVEL_B   0x1C

◆ ADP5585_GPI_INT_STAT_A

#define ADP5585_GPI_INT_STAT_A   0x13

◆ ADP5585_GPI_INT_STAT_B

#define ADP5585_GPI_INT_STAT_B   0x14

◆ ADP5585_GPI_INTERRUPT_EN_A

#define ADP5585_GPI_INTERRUPT_EN_A   0x1F

◆ ADP5585_GPI_INTERRUPT_EN_B

#define ADP5585_GPI_INTERRUPT_EN_B   0x20

◆ ADP5585_GPI_STATUS_A

#define ADP5585_GPI_STATUS_A   0x15

◆ ADP5585_GPI_STATUS_B

#define ADP5585_GPI_STATUS_B   0x16

◆ ADP5585_GPIO_DIRECTION_A

#define ADP5585_GPIO_DIRECTION_A   0x27

◆ ADP5585_GPIO_DIRECTION_B

#define ADP5585_GPIO_DIRECTION_B   0x28

◆ ADP5585_GPO_DATA_OUT_A

#define ADP5585_GPO_DATA_OUT_A   0x23

◆ ADP5585_GPO_DATA_OUT_B

#define ADP5585_GPO_DATA_OUT_B   0x24

◆ ADP5585_GPO_OUT_MODE_A

#define ADP5585_GPO_OUT_MODE_A   0x25

◆ ADP5585_GPO_OUT_MODE_B

#define ADP5585_GPO_OUT_MODE_B   0x26

◆ ADP5585_ID

#define ADP5585_ID   0x00

◆ ADP5585_INT_EN

#define ADP5585_INT_EN   0x3C

◆ ADP5585_INT_EVENT

#define ADP5585_INT_EVENT   (1U << 0)

◆ ADP5585_INT_GPI

#define ADP5585_INT_GPI   (1U << 1)

◆ ADP5585_INT_LOGIC

#define ADP5585_INT_LOGIC   (1U << 4)

◆ ADP5585_INT_OVERFLOW

#define ADP5585_INT_OVERFLOW   (1U << 2)

◆ ADP5585_INT_STATUS

#define ADP5585_INT_STATUS   0x01

◆ ADP5585_LOGIC_CFG

#define ADP5585_LOGIC_CFG   0x34

◆ ADP5585_LOGIC_FF_CFG

#define ADP5585_LOGIC_FF_CFG   0x35

◆ ADP5585_LOGIC_INT_EVENT_EN

#define ADP5585_LOGIC_INT_EVENT_EN   0x36

◆ ADP5585_MAN_ID

#define ADP5585_MAN_ID   0x02

◆ ADP5585_MAN_ID_MASK

#define ADP5585_MAN_ID_MASK   0xF

◆ ADP5585_MAN_ID_SHIFT

#define ADP5585_MAN_ID_SHIFT   4

◆ ADP5585_PIN_CONFIG_A

#define ADP5585_PIN_CONFIG_A   0x38

◆ ADP5585_PIN_CONFIG_B

#define ADP5585_PIN_CONFIG_B   0x39

◆ ADP5585_PIN_CONFIG_C

#define ADP5585_PIN_CONFIG_C   0x3A

◆ ADP5585_PIN_CONFIG_R3_MASK

#define ADP5585_PIN_CONFIG_R3_MASK   0xC

◆ ADP5585_PIN_CONFIG_R3_PWM

#define ADP5585_PIN_CONFIG_R3_PWM   0x8

◆ ADP5585_POLL_PTIME_CFG

#define ADP5585_POLL_PTIME_CFG   0x37

◆ ADP5585_PWM_CFG

#define ADP5585_PWM_CFG   0x33

◆ ADP5585_PWM_CFG_EN

#define ADP5585_PWM_CFG_EN   0x1

◆ ADP5585_PWM_CFG_MODE

#define ADP5585_PWM_CFG_MODE   0x2

◆ ADP5585_PWM_OFFT_HIGH

#define ADP5585_PWM_OFFT_HIGH   0x30

◆ ADP5585_PWM_OFFT_LOW

#define ADP5585_PWM_OFFT_LOW   0x2F

◆ ADP5585_PWM_ONT_HIGH

#define ADP5585_PWM_ONT_HIGH   0x32

◆ ADP5585_PWM_ONT_LOW

#define ADP5585_PWM_ONT_LOW   0x31

◆ ADP5585_REG_MASK

#define ADP5585_REG_MASK   0xFF

◆ ADP5585_RESET1_EVENT_A

#define ADP5585_RESET1_EVENT_A   0x29

◆ ADP5585_RESET1_EVENT_B

#define ADP5585_RESET1_EVENT_B   0x2A

◆ ADP5585_RESET1_EVENT_C

#define ADP5585_RESET1_EVENT_C   0x2B

◆ ADP5585_RESET2_EVENT_A

#define ADP5585_RESET2_EVENT_A   0x2C

◆ ADP5585_RESET2_EVENT_B

#define ADP5585_RESET2_EVENT_B   0x2D

◆ ADP5585_RESET_CFG

#define ADP5585_RESET_CFG   0x2E

◆ ADP5585_RPULL_CONFIG_A

#define ADP5585_RPULL_CONFIG_A   0x17

◆ ADP5585_RPULL_CONFIG_B

#define ADP5585_RPULL_CONFIG_B   0x18

◆ ADP5585_RPULL_CONFIG_C

#define ADP5585_RPULL_CONFIG_C   0x19

◆ ADP5585_RPULL_CONFIG_D

#define ADP5585_RPULL_CONFIG_D   0x1A

◆ ADP5585_STATUS

#define ADP5585_STATUS   0x02