ESPHome 2025.5.0
Loading...
Searching...
No Matches
es8156_const.h
Go to the documentation of this file.
1#pragma once
2
3#include "es8156.h"
4
5namespace esphome {
6namespace es8156 {
7
8/* ES8156 register addresses */
9/*
10 * RESET Control
11 */
12static const uint8_t ES8156_REG00_RESET = 0x00;
13/*
14 * Clock Managerment
15 */
16static const uint8_t ES8156_REG01_MAINCLOCK_CTL = 0x01;
17static const uint8_t ES8156_REG02_SCLK_MODE = 0x02;
18static const uint8_t ES8156_REG03_LRCLK_DIV_H = 0x03;
19static const uint8_t ES8156_REG04_LRCLK_DIV_L = 0x04;
20static const uint8_t ES8156_REG05_SCLK_DIV = 0x05;
21static const uint8_t ES8156_REG06_NFS_CONFIG = 0x06;
22static const uint8_t ES8156_REG07_MISC_CONTROL1 = 0x07;
23static const uint8_t ES8156_REG08_CLOCK_ON_OFF = 0x08;
24static const uint8_t ES8156_REG09_MISC_CONTROL2 = 0x09;
25static const uint8_t ES8156_REG0A_TIME_CONTROL1 = 0x0a;
26static const uint8_t ES8156_REG0B_TIME_CONTROL2 = 0x0b;
27/*
28 * System Control
29 */
30static const uint8_t ES8156_REG0C_CHIP_STATUS = 0x0c;
31static const uint8_t ES8156_REG0D_P2S_CONTROL = 0x0d;
32static const uint8_t ES8156_REG10_DAC_OSR_COUNTER = 0x10;
33/*
34 * SDP Control
35 */
36static const uint8_t ES8156_REG11_DAC_SDP = 0x11;
37static const uint8_t ES8156_REG12_AUTOMUTE_SET = 0x12;
38static const uint8_t ES8156_REG13_DAC_MUTE = 0x13;
39static const uint8_t ES8156_REG14_VOLUME_CONTROL = 0x14;
40
41/*
42 * ALC Control
43 */
44static const uint8_t ES8156_REG15_ALC_CONFIG1 = 0x15;
45static const uint8_t ES8156_REG16_ALC_CONFIG2 = 0x16;
46static const uint8_t ES8156_REG17_ALC_CONFIG3 = 0x17;
47static const uint8_t ES8156_REG18_MISC_CONTROL3 = 0x18;
48static const uint8_t ES8156_REG19_EQ_CONTROL1 = 0x19;
49static const uint8_t ES8156_REG1A_EQ_CONTROL2 = 0x1a;
50/*
51 * Analog System Control
52 */
53static const uint8_t ES8156_REG20_ANALOG_SYS1 = 0x20;
54static const uint8_t ES8156_REG21_ANALOG_SYS2 = 0x21;
55static const uint8_t ES8156_REG22_ANALOG_SYS3 = 0x22;
56static const uint8_t ES8156_REG23_ANALOG_SYS4 = 0x23;
57static const uint8_t ES8156_REG24_ANALOG_LP = 0x24;
58static const uint8_t ES8156_REG25_ANALOG_SYS5 = 0x25;
59/*
60 * Chip Information
61 */
62static const uint8_t ES8156_REGFC_I2C_PAGESEL = 0xFC;
63static const uint8_t ES8156_REGFD_CHIPID1 = 0xFD;
64static const uint8_t ES8156_REGFE_CHIPID0 = 0xFE;
65static const uint8_t ES8156_REGFF_CHIP_VERSION = 0xFF;
66
67} // namespace es8156
68} // namespace esphome
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7