21#define SIGNAL_DETECT_REG 0
22#define RX_DETECT_REG 1
23#define POWER_DOWN_REG 2
24#define CONFIG_A0_REG 3
25#define CONFIG_A1_REG 4
26#define CONFIG_A2_REG 5
27#define CONFIG_A3_REG 6
28#define CONFIG_B0_REG 7
29#define CONFIG_B1_REG 8
30#define CONFIG_B2_REG 9
31#define CONFIG_B3_REG 10
32#define SIGNAL_DET_CFG_REG 11
33#define RX_DET_CFG_REG 12
34#define SIGNAL_DET_TH_REG 13
36#define CONFIG_A_OFFSET 3
37#define CONFIG_B_OFFSET 7
54#define FLAT_GAIN_M4db 0
55#define FLAT_GAIN_M2db 1
56#define FLAT_GAIN_00db 2
57#define FLAT_GAIN_P2db 3
59#define SWING_900mVpp 0
60#define SWING_1000mVpp 1
62#define SDT_OFF_30_ON_130_mVpp 0
63#define SDT_OFF_50_ON_150_mVpp 1
64#define SDT_OFF_70_ON_170_mVpp 2
65#define SDT_OFF_110_ON_210_mVpp 3
77 init(uint8_t i2c_addr);
221 void setEQ(uint8_t EQ);
222 void setFG_A(uint8_t flat_gain);
223 void setFG_B(uint8_t flat_gain);
224 void setFG(uint8_t flat_gain);
227 void setSW(uint8_t swing);
235 uint8_t _read_reg(uint8_t mem_addr);
236 void _write_reg(uint8_t mem_addr, uint8_t value);
237 void _burst_read(uint8_t mem_addr, uint8_t* data, uint8_t len);
238 void _burst_write(uint8_t mem_addr, uint8_t* data, uint8_t len);
Class that stores state and functions for interacting with PI3EQX12908A2.
Definition PI3EQX12908A2.h:75
void setEQ_B0(uint8_t EQ)
Sets the equalizer value of the 0 index B channel. This function sets the equalizer value of B0.
Definition PI3EQX12908A2.cpp:869
void setFlatGain_A1(uint8_t flat_gain)
Sets the flat gain value of the 1 index A channel. This function sets the flat gain value of A1.
Definition PI3EQX12908A2.cpp:543
uint8_t getConfig_A2()
Gets the configuration of the 2 index A channel. This function reads the configuration of the 2 index...
Definition PI3EQX12908A2.cpp:575
void setSignalDetectConfig_A(uint8_t isDown)
Sets the signal detect configuration of A channel. This function change the signal detect configurati...
Definition PI3EQX12908A2.cpp:1341
uint8_t getSW_B3()
Gets the swing configuration of the 3 index B channel. This function reads the swing value of the 3 i...
Definition PI3EQX12908A2.cpp:1189
void setRxDetectConfig_A(uint8_t isDown)
Sets the RX detect configuration of A channel. This function change the RX detect configuration of ch...
Definition PI3EQX12908A2.cpp:1494
void setFlatGain_A2(uint8_t flat_gain)
Sets the flat gain value of the 2 index A channel. This function sets the flat gain value of A2.
Definition PI3EQX12908A2.cpp:658
void print_all()
Prints all of the registers This function prints all of the registers of the chip over the default UA...
Definition PI3EQX12908A2.cpp:1871
void setSignalDetectConfig_B(uint8_t isDown)
Sets the signal detect configuration of B channel. This function change the signal detect configurati...
Definition PI3EQX12908A2.cpp:1380
uint8_t getFlatGain_B0()
Gets the flat gain configuration of the 0 index B channel. This function reads the flat gain value of...
Definition PI3EQX12908A2.cpp:831
void setSW_A2(uint8_t swing)
Sets the swing value of the 2 index A channel. This function sets the swing value of A2.
Definition PI3EQX12908A2.cpp:675
void setConfig(uint8_t config)
Sets the configuration of all channels This function sets the configuration of all channels....
Definition PI3EQX12908A2.cpp:1667
uint8_t getSW_A2()
Gets the swing configuration of the 2 index A channel. This function reads the swing value of the 2 i...
Definition PI3EQX12908A2.cpp:614
void setFlatGain_A3(uint8_t flat_gain)
Sets the flat gain value of the 3 index A channel. This function sets the flat gain value of A3.
Definition PI3EQX12908A2.cpp:773
uint8_t getPowerDown_B()
Gets the power down of B channel This function reads the power down register and returns the channel ...
Definition PI3EQX12908A2.cpp:228
void setEQ_B3(uint8_t EQ)
Sets the equalizer value of the 3 index B channel. This function sets the equalizer value of B3.
Definition PI3EQX12908A2.cpp:1214
void setEQ(uint8_t EQ)
Sets the equalizer of the all channels This function sets the equalizer settings of the all channels.
Definition PI3EQX12908A2.cpp:1716
uint8_t getSW_B0()
Gets the swing configuration of the 0 index B channel. This function reads the swing value of the 0 i...
Definition PI3EQX12908A2.cpp:844
uint8_t getEQ_B3()
Gets the equalizer configuration of the 3 index B channel. This function reads the equalizer value of...
Definition PI3EQX12908A2.cpp:1161
uint8_t getSignalDetectConfig()
Gets the signal detect configuration register This function reads the signal detect configuration reg...
Definition PI3EQX12908A2.cpp:1265
void setEQ_A3(uint8_t EQ)
Sets the equalizer value of the 3 index A channel. This function sets the equalizer value of A3.
Definition PI3EQX12908A2.cpp:754
uint8_t getConfig_A3()
Gets the configuration of the 3 index A channel. This function reads the configuration of the 3 index...
Definition PI3EQX12908A2.cpp:690
uint8_t getEQ_A3()
Gets the equalizer configuration of the 3 index A channel. This function reads the equalizer value of...
Definition PI3EQX12908A2.cpp:701
void setFG_B(uint8_t flat_gain)
Sets the flat gain of the channel B This function sets the flat gain setting of the channel B.
Definition PI3EQX12908A2.cpp:1764
uint8_t getFlatGain_B2()
Gets the flat gain configuration of the 2 index B channel. This function reads the flat gain value of...
Definition PI3EQX12908A2.cpp:1061
uint8_t getRxDetect_A()
Gets the RX detect of A channel This function reads the RX detect register and returns the channel A ...
Definition PI3EQX12908A2.cpp:138
void setSW(uint8_t swing)
Sets the swing value of all channels This function sets the swing value of all channels.
Definition PI3EQX12908A2.cpp:1850
uint8_t getSignalDetect_B()
Gets the signal detect of B channel This function reads the signal detect register and returns the ch...
Definition PI3EQX12908A2.cpp:100
void setConfig_B(uint8_t config)
Sets the configuration of the channel A This function sets the configuration of channel A....
Definition PI3EQX12908A2.cpp:1639
uint8_t getFlatGain_B1()
Gets the flat gain configuration of the 1 index B channel. This function reads the flat gain value of...
Definition PI3EQX12908A2.cpp:946
uint8_t getRxDetectConfig_B()
Gets the RX detect configuration of B channel This function reads the RX detect configuration registe...
Definition PI3EQX12908A2.cpp:1455
void setFlatGain_B3(uint8_t flat_gain)
Sets the flat gain value of the 3 index B channel. This function sets the flat gain value of B3.
Definition PI3EQX12908A2.cpp:1233
uint8_t getConfig_B1()
Gets the configuration of the 1 index B channel. This function reads the configuration of the 1 index...
Definition PI3EQX12908A2.cpp:920
void setEQ_A0(uint8_t EQ)
Sets the equalizer value of the 0 index A channel. This function sets the equalizer value of A0.
Definition PI3EQX12908A2.cpp:409
uint8_t getRxDetect_B()
Gets the RX detect of B channel This function reads the RX detect register and returns the channel B ...
Definition PI3EQX12908A2.cpp:164
uint8_t getFlatGain_B3()
Gets the flat gain configuration of the 3 index B channel. This function reads the flat gain value of...
Definition PI3EQX12908A2.cpp:1176
void setPowerDown_A(uint8_t isDown)
Sets the power down of A channel. This function change the power down status of channel A.
Definition PI3EQX12908A2.cpp:268
uint8_t getSDTConfig()
Gets the signal detect threshold of all channels. This function gets the signal detect threshold of a...
Definition PI3EQX12908A2.cpp:1576
void setSW_A3(uint8_t swing)
Sets the swing value of the 3 index A channel. This function sets the swing value of A3.
Definition PI3EQX12908A2.cpp:790
init(uint8_t i2c_addr)
Initialize the PI3EQX12908 object This function sets the I2C address and the register names.
Definition PI3EQX12908A2.cpp:33
uint8_t getSW_A3()
Gets the swing configuration of the 3 index A channel. This function reads the swing value of the 3 i...
Definition PI3EQX12908A2.cpp:729
uint8_t getEQ_B1()
Gets the equalizer configuration of the 1 index B channel. This function reads the equalizer value of...
Definition PI3EQX12908A2.cpp:931
uint8_t getRxDetectConfig()
Gets the RX detect configuration register This function reads the RX detect configuration register va...
Definition PI3EQX12908A2.cpp:1418
uint8_t getFlatGain_A3()
Gets the flat gain configuration of the 3 index A channel. This function reads the flat gain value of...
Definition PI3EQX12908A2.cpp:716
uint8_t getConfig_A1()
Gets the configuration of the 1 index A channel. This function reads the configuration of the 1 index...
Definition PI3EQX12908A2.cpp:460
void setConfig_A1(uint8_t config)
Sets the configuration of the 1 index A channel. This function sets the configuration register of A1....
Definition PI3EQX12908A2.cpp:512
void setFG(uint8_t flat_gain)
Sets the flat gain of all channels This function sets the flat gain setting of all channels.
Definition PI3EQX12908A2.cpp:1786
void setConfig_B1(uint8_t config)
Sets the configuration of the 1 index B channel. This function sets the configuration register of B1....
Definition PI3EQX12908A2.cpp:972
void setEQ_B2(uint8_t EQ)
Sets the equalizer value of the 2 index B channel. This function sets the equalizer value of B2.
Definition PI3EQX12908A2.cpp:1099
void setConfig_B2(uint8_t config)
Sets the configuration of the 2 index B channel. This function sets the configuration register of B2....
Definition PI3EQX12908A2.cpp:1087
void setSignalDetectConfig(uint8_t isDown)
Sets the signal detect configuration register. This function change the signal detect configuration o...
Definition PI3EQX12908A2.cpp:1328
void setSW_B2(uint8_t swing)
Sets the swing value of the 2 index B channel. This function sets the swing value of B2.
Definition PI3EQX12908A2.cpp:1135
uint8_t getSW_B2()
Gets the swing configuration of the 2 index B channel. This function reads the swing value of the 2 i...
Definition PI3EQX12908A2.cpp:1074
void setEQ_B(uint8_t EQ)
Sets the equalizer of the channel B This function sets the equalizer settings of the channel B.
Definition PI3EQX12908A2.cpp:1698
void setConfig_B3(uint8_t config)
Sets the configuration of the 3 index B channel. This function sets the configuration register of B3....
Definition PI3EQX12908A2.cpp:1202
void setFlatGain_A0(uint8_t flat_gain)
Sets the flat gain value of the 0 index A channel. This function sets the flat gain value of A0.
Definition PI3EQX12908A2.cpp:428
uint8_t getSW_B1()
Gets the swing configuration of the 1 index B channel. This function reads the swing value of the 1 i...
Definition PI3EQX12908A2.cpp:959
uint8_t getEQ_A0()
Gets the equalizer configuration of the 0 index A channel. This function reads the equalizer value of...
Definition PI3EQX12908A2.cpp:356
uint8_t setSDTConfig(uint8_t thresh)
Sets the signal detect threshold for all channels. This function changes the signal detect threshold ...
Definition PI3EQX12908A2.cpp:1593
void setPowerDown(uint8_t isDown)
Sets the power down register. This function change the power down status of all channels.
Definition PI3EQX12908A2.cpp:255
uint8_t getEQ_A2()
Gets the equalizer configuration of the 2 index A channel. This function reads the equalizer value of...
Definition PI3EQX12908A2.cpp:586
uint8_t getPowerDown()
Gets the power down register This function reads the power down register values.
Definition PI3EQX12908A2.cpp:190
void setConfig_A3(uint8_t config)
Sets the configuration of the 3 index A channel. This function sets the configuration register of A3....
Definition PI3EQX12908A2.cpp:742
void dump_all(uint8_t *data)
Reads all of the registers This function reads all of the registers of the chip.
Definition PI3EQX12908A2.cpp:1900
uint8_t getEQ_B0()
Gets the equalizer configuration of the 0 index B channel. This function reads the equalizer value of...
Definition PI3EQX12908A2.cpp:816
void setFlatGain_B2(uint8_t flat_gain)
Sets the flat gain value of the 2 index B channel. This function sets the flat gain value of B2.
Definition PI3EQX12908A2.cpp:1118
void setFG_A(uint8_t flat_gain)
Sets the flat gain of the channel A This function sets the flat gain setting of the channel A.
Definition PI3EQX12908A2.cpp:1742
uint8_t getSignalDetectConfig_A()
Gets the signal detect configuration of A channel This function reads the signal detect configuration...
Definition PI3EQX12908A2.cpp:1277
void setSW_A1(uint8_t swing)
Sets the swing value of the 1 index A channel. This function sets the swing value of A1.
Definition PI3EQX12908A2.cpp:560
void setEQ_A1(uint8_t EQ)
Sets the equalizer value of the 1 index A channel. This function sets the equalizer value of A1.
Definition PI3EQX12908A2.cpp:524
void setSW_A0(uint8_t swing)
Sets the swing value of the 0 index A channel. This function sets the swing value of A0.
Definition PI3EQX12908A2.cpp:445
uint8_t getRxDetectConfig_A()
Gets the RX detect configuration of A channel This function reads the RX detect configuration registe...
Definition PI3EQX12908A2.cpp:1430
void setPowerDown_B(uint8_t isDown)
Sets the power down of B channel. This function change the power down status of channel B.
Definition PI3EQX12908A2.cpp:307
void setSW_B0(uint8_t swing)
Sets the swing value of the 0 index B channel. This function sets the swing value of B0.
Definition PI3EQX12908A2.cpp:905
void setConfig_A0(uint8_t config)
Sets the configuration of the 0 index A channel. This function sets the configuration register of A0....
Definition PI3EQX12908A2.cpp:397
void setConfig_B0(uint8_t config)
Sets the configuration of the 0 index B channel. This function sets the configuration register of B0....
Definition PI3EQX12908A2.cpp:857
uint8_t getFlatGain_A2()
Gets the flat gain configuration of the 2 index A channel. This function reads the flat gain value of...
Definition PI3EQX12908A2.cpp:601
uint8_t getConfig_B2()
Gets the configuration of the 2 index B channel. This function reads the configuration of the 2 index...
Definition PI3EQX12908A2.cpp:1035
void setSW_B3(uint8_t swing)
Sets the swing value of the 3 index B channel. This function sets the swing value of B3.
Definition PI3EQX12908A2.cpp:1250
uint8_t getEQ_B2()
Gets the equalizer configuration of the 2 index B channel. This function reads the equalizer value of...
Definition PI3EQX12908A2.cpp:1046
uint8_t getConfig_B0()
Gets the configuration of the 0 index B channel. This function reads the configuration of the 0 index...
Definition PI3EQX12908A2.cpp:805
void setConfig_A2(uint8_t config)
Sets the configuration of the 2 index A channel. This function sets the configuration register of A2....
Definition PI3EQX12908A2.cpp:627
uint8_t getFlatGain_A0()
Gets the flat gain configuration of the 0 index A channel. This function reads the flat gain value of...
Definition PI3EQX12908A2.cpp:371
void setRxDetectConfig(uint8_t isDown)
Sets the RX detect configuration register. This function change the RX detect configuration of all ch...
Definition PI3EQX12908A2.cpp:1481
void setFlatGain_B1(uint8_t flat_gain)
Sets the flat gain value of the 1 index B channel. This function sets the flat gain value of B1.
Definition PI3EQX12908A2.cpp:1003
void setEQ_B1(uint8_t EQ)
Sets the equalizer value of the 1 index B channel. This function sets the equalizer value of B1.
Definition PI3EQX12908A2.cpp:984
void setEQ_A(uint8_t EQ)
Sets the equalizer of the channel A This function sets the equalizer settings of the channel A.
Definition PI3EQX12908A2.cpp:1680
void setConfig_A(uint8_t config)
Sets the configuration of the channel A This function sets the configuration of channel A....
Definition PI3EQX12908A2.cpp:1611
uint8_t getSignalDetectConfig_B()
Gets the signal detect configuration of B channel This function reads the signal detect configuration...
Definition PI3EQX12908A2.cpp:1302
uint8_t getPowerDown_A()
Gets the power down of A channel This function reads the power down register and returns the channel ...
Definition PI3EQX12908A2.cpp:202
void setEQ_A2(uint8_t EQ)
Sets the equalizer value of the 2 index A channel. This function sets the equalizer value of A2.
Definition PI3EQX12908A2.cpp:639
uint8_t getConfig_B3()
Gets the configuration of the 3 index B channel. This function reads the configuration of the 3 index...
Definition PI3EQX12908A2.cpp:1150
uint8_t getSW_A1()
Gets the swing configuration of the 1 index A channel. This function reads the swing value of the 1 i...
Definition PI3EQX12908A2.cpp:499
void setSW_B1(uint8_t swing)
Sets the swing value of the 1 index B channel. This function sets the swing value of B1.
Definition PI3EQX12908A2.cpp:1020
uint8_t getFlatGain_A1()
Gets the flat gain configuration of the 1 index A channel. This function reads the flat gain value of...
Definition PI3EQX12908A2.cpp:486
uint8_t getEQ_A1()
Gets the equalizer configuration of the 1 index A channel. This function reads the equalizer value of...
Definition PI3EQX12908A2.cpp:471
uint8_t getSignalDetect_A()
Gets the signal detect of A channel This function reads the signal detect register and returns the ch...
Definition PI3EQX12908A2.cpp:74
uint8_t getRxDetect()
Gets the RX detect register This function reads the RX detect register values.
Definition PI3EQX12908A2.cpp:126
void setFlatGain_B0(uint8_t flat_gain)
Sets the flat gain value of the 0 index B channel. This function sets the flat gain value of B0.
Definition PI3EQX12908A2.cpp:888
void setSW_A(uint8_t swing)
Sets the swing value of the channel A This function sets the swing value of the channel A.
Definition PI3EQX12908A2.cpp:1810
uint8_t getConfig_A0()
Gets the configuration of the 0 index A channel. This function reads the configuration of the 0 index...
Definition PI3EQX12908A2.cpp:345
void setSW_B(uint8_t swing)
Sets the swing value of the channel B This function sets the swing value of the channel B.
Definition PI3EQX12908A2.cpp:1830
uint8_t getSignalDetect()
Gets the signal detect register This function reads the signal detect register values.
Definition PI3EQX12908A2.cpp:62
void setRxDetectConfig_B(uint8_t isDown)
Sets the RX detect configuration of B channel. This function change the RX detect configuration of ch...
Definition PI3EQX12908A2.cpp:1533
uint8_t getSW_A0()
Gets the swing configuration of the 0 index A channel. This function reads the swing value of the 0 i...
Definition PI3EQX12908A2.cpp:384