PI3EQX12908A2 1.0.1
This library is a software library that works with the I2C mode of the PI3EQX12908 PCIe 3.0 redriver chip. This library provides a convenient and efficient way to access the I2C interfaces of the chip, allowing developers to easily integrate the redriver into their systems.
|
Class that stores state and functions for interacting with PI3EQX12908A2. More...
#include <PI3EQX12908A2.h>
Public Member Functions | |
init (uint8_t i2c_addr) | |
Initialize the PI3EQX12908 object This function sets the I2C address and the register names. | |
uint8_t | getSignalDetect () |
Gets the signal detect register This function reads the signal detect register values. | |
uint8_t | getSignalDetect_A () |
Gets the signal detect of A channel This function reads the signal detect register and returns the channel A status. | |
uint8_t | getSignalDetect_A (uint8_t index) |
Gets the signal detect A by channel index This function reads the signal detect register value and returns the status of given channel index of A channel. | |
uint8_t | getSignalDetect_B () |
Gets the signal detect of B channel This function reads the signal detect register and returns the channel B status. | |
uint8_t | getSignalDetect_B (uint8_t index) |
Gets the signal detect B by channel index This function reads the signal detect register value and returns the status of given channel index of B channel. | |
uint8_t | getRxDetect () |
Gets the RX detect register This function reads the RX detect register values. | |
uint8_t | getRxDetect_A () |
Gets the RX detect of A channel This function reads the RX detect register and returns the channel A status. | |
uint8_t | getRxDetect_A (uint8_t index) |
Gets the RX detect A by channel index This function reads the RX detect register value and returns the status of given channel index of A channel. | |
uint8_t | getRxDetect_B () |
Gets the RX detect of B channel This function reads the RX detect register and returns the channel B status. | |
uint8_t | getRxDetect_B (uint8_t index) |
Gets the RX detect B by channel index This function reads the RX detect register value and returns the status of given channel index of B channel. | |
uint8_t | getPowerDown () |
Gets the power down register This function reads the power down register values. | |
uint8_t | getPowerDown_A () |
Gets the power down of A channel This function reads the power down register and returns the channel A status. | |
uint8_t | getPowerDown_A (uint8_t index) |
Gets the power down A by channel index This function reads the power down register value and returns the status of given channel index of A channel. | |
uint8_t | getPowerDown_B () |
Gets the power down of B channel This function reads the power down register and returns the channel B status. | |
uint8_t | getPowerDown_B (uint8_t index) |
Gets the power down B by channel index This function reads the power down register value and returns the status of given channel index of B channel. | |
void | setPowerDown (uint8_t isDown) |
Sets the power down register. This function change the power down status of all channels. | |
void | setPowerDown_A (uint8_t isDown) |
Sets the power down of A channel. This function change the power down status of channel A. | |
void | setPowerDown_A (uint8_t index, uint8_t isDown) |
Sets the power down of a given index of A channel. This function change the power down status of the given channel A index. | |
void | setPowerDown_B (uint8_t isDown) |
Sets the power down of B channel. This function change the power down status of channel B. | |
void | setPowerDown_B (uint8_t index, uint8_t isDown) |
Sets the power down of a given index of B channel. This function change the power down status of the given channel B index. | |
uint8_t | getConfig_A0 () |
Gets the configuration of the 0 index A channel. This function reads the configuration of the 0 index A channel value. | |
uint8_t | getEQ_A0 () |
Gets the equalizer configuration of the 0 index A channel. This function reads the equalizer value of the 0 index A channel value. | |
uint8_t | getFlatGain_A0 () |
Gets the flat gain configuration of the 0 index A channel. This function reads the flat gain value of the 0 index A channel value. | |
uint8_t | getSW_A0 () |
Gets the swing configuration of the 0 index A channel. This function reads the swing value of the 0 index A channel value. | |
void | setConfig_A0 (uint8_t config) |
Sets the configuration of the 0 index A channel. This function sets the configuration register of A0. NOT RECOMENDED TO USE! **. | |
void | setEQ_A0 (uint8_t EQ) |
Sets the equalizer value of the 0 index A channel. This function sets the equalizer value of A0. | |
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. | |
void | setSW_A0 (uint8_t swing) |
Sets the swing value of the 0 index A channel. This function sets the swing value of A0. | |
uint8_t | getConfig_A1 () |
Gets the configuration of the 1 index A channel. This function reads the configuration of the 1 index A channel value. | |
uint8_t | getEQ_A1 () |
Gets the equalizer configuration of the 1 index A channel. This function reads the equalizer value of the 1 index A channel value. | |
uint8_t | getFlatGain_A1 () |
Gets the flat gain configuration of the 1 index A channel. This function reads the flat gain value of the 1 index A channel value. | |
uint8_t | getSW_A1 () |
Gets the swing configuration of the 1 index A channel. This function reads the swing value of the 1 index A channel value. | |
void | setConfig_A1 (uint8_t config) |
Sets the configuration of the 1 index A channel. This function sets the configuration register of A1. NOT RECOMENDED TO USE! **. | |
void | setEQ_A1 (uint8_t EQ) |
Sets the equalizer value of the 1 index A channel. This function sets the equalizer value of A1. | |
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. | |
void | setSW_A1 (uint8_t swing) |
Sets the swing value of the 1 index A channel. This function sets the swing value of A1. | |
uint8_t | getConfig_A2 () |
Gets the configuration of the 2 index A channel. This function reads the configuration of the 2 index A channel value. | |
uint8_t | getEQ_A2 () |
Gets the equalizer configuration of the 2 index A channel. This function reads the equalizer value of the 2 index A channel value. | |
uint8_t | getFlatGain_A2 () |
Gets the flat gain configuration of the 2 index A channel. This function reads the flat gain value of the 2 index A channel value. | |
uint8_t | getSW_A2 () |
Gets the swing configuration of the 2 index A channel. This function reads the swing value of the 2 index A channel value. | |
void | setConfig_A2 (uint8_t config) |
Sets the configuration of the 2 index A channel. This function sets the configuration register of A2. NOT RECOMENDED TO USE! **. | |
void | setEQ_A2 (uint8_t EQ) |
Sets the equalizer value of the 2 index A channel. This function sets the equalizer value of A2. | |
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. | |
void | setSW_A2 (uint8_t swing) |
Sets the swing value of the 2 index A channel. This function sets the swing value of A2. | |
uint8_t | getConfig_A3 () |
Gets the configuration of the 3 index A channel. This function reads the configuration of the 3 index A channel value. | |
uint8_t | getEQ_A3 () |
Gets the equalizer configuration of the 3 index A channel. This function reads the equalizer value of the 3 index A channel value. | |
uint8_t | getFlatGain_A3 () |
Gets the flat gain configuration of the 3 index A channel. This function reads the flat gain value of the 3 index A channel value. | |
uint8_t | getSW_A3 () |
Gets the swing configuration of the 3 index A channel. This function reads the swing value of the 3 index A channel value. | |
void | setConfig_A3 (uint8_t config) |
Sets the configuration of the 3 index A channel. This function sets the configuration register of A3. NOT RECOMENDED TO USE! **. | |
void | setEQ_A3 (uint8_t EQ) |
Sets the equalizer value of the 3 index A channel. This function sets the equalizer value of A3. | |
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. | |
void | setSW_A3 (uint8_t swing) |
Sets the swing value of the 3 index A channel. This function sets the swing value of A3. | |
uint8_t | getConfig_B0 () |
Gets the configuration of the 0 index B channel. This function reads the configuration of the 0 index B channel value. | |
uint8_t | getEQ_B0 () |
Gets the equalizer configuration of the 0 index B channel. This function reads the equalizer value of the 0 index B channel value. | |
uint8_t | getFlatGain_B0 () |
Gets the flat gain configuration of the 0 index B channel. This function reads the flat gain value of the 0 index B channel value. | |
uint8_t | getSW_B0 () |
Gets the swing configuration of the 0 index B channel. This function reads the swing value of the 0 index B channel value. | |
void | setConfig_B0 (uint8_t config) |
Sets the configuration of the 0 index B channel. This function sets the configuration register of B0. NOT RECOMENDED TO USE! **. | |
void | setEQ_B0 (uint8_t EQ) |
Sets the equalizer value of the 0 index B channel. This function sets the equalizer value of B0. | |
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. | |
void | setSW_B0 (uint8_t swing) |
Sets the swing value of the 0 index B channel. This function sets the swing value of B0. | |
uint8_t | getConfig_B1 () |
Gets the configuration of the 1 index B channel. This function reads the configuration of the 1 index B channel value. | |
uint8_t | getEQ_B1 () |
Gets the equalizer configuration of the 1 index B channel. This function reads the equalizer value of the 1 index B channel value. | |
uint8_t | getFlatGain_B1 () |
Gets the flat gain configuration of the 1 index B channel. This function reads the flat gain value of the 1 index B channel value. | |
uint8_t | getSW_B1 () |
Gets the swing configuration of the 1 index B channel. This function reads the swing value of the 1 index B channel value. | |
void | setConfig_B1 (uint8_t config) |
Sets the configuration of the 1 index B channel. This function sets the configuration register of B1. NOT RECOMENDED TO USE! **. | |
void | setEQ_B1 (uint8_t EQ) |
Sets the equalizer value of the 1 index B channel. This function sets the equalizer value of B1. | |
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. | |
void | setSW_B1 (uint8_t swing) |
Sets the swing value of the 1 index B channel. This function sets the swing value of B1. | |
uint8_t | getConfig_B2 () |
Gets the configuration of the 2 index B channel. This function reads the configuration of the 2 index B channel value. | |
uint8_t | getEQ_B2 () |
Gets the equalizer configuration of the 2 index B channel. This function reads the equalizer value of the 2 index B channel value. | |
uint8_t | getFlatGain_B2 () |
Gets the flat gain configuration of the 2 index B channel. This function reads the flat gain value of the 2 index B channel value. | |
uint8_t | getSW_B2 () |
Gets the swing configuration of the 2 index B channel. This function reads the swing value of the 2 index B channel value. | |
void | setConfig_B2 (uint8_t config) |
Sets the configuration of the 2 index B channel. This function sets the configuration register of B2. NOT RECOMENDED TO USE! **. | |
void | setEQ_B2 (uint8_t EQ) |
Sets the equalizer value of the 2 index B channel. This function sets the equalizer value of B2. | |
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. | |
void | setSW_B2 (uint8_t swing) |
Sets the swing value of the 2 index B channel. This function sets the swing value of B2. | |
uint8_t | getConfig_B3 () |
Gets the configuration of the 3 index B channel. This function reads the configuration of the 3 index B channel value. | |
uint8_t | getEQ_B3 () |
Gets the equalizer configuration of the 3 index B channel. This function reads the equalizer value of the 3 index B channel value. | |
uint8_t | getFlatGain_B3 () |
Gets the flat gain configuration of the 3 index B channel. This function reads the flat gain value of the 3 index B channel value. | |
uint8_t | getSW_B3 () |
Gets the swing configuration of the 3 index B channel. This function reads the swing value of the 3 index B channel value. | |
void | setConfig_B3 (uint8_t config) |
Sets the configuration of the 3 index B channel. This function sets the configuration register of B3. NOT RECOMENDED TO USE! **. | |
void | setEQ_B3 (uint8_t EQ) |
Sets the equalizer value of the 3 index B channel. This function sets the equalizer value of B3. | |
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. | |
void | setSW_B3 (uint8_t swing) |
Sets the swing value of the 3 index B channel. This function sets the swing value of B3. | |
uint8_t | getSignalDetectConfig () |
Gets the signal detect configuration register This function reads the signal detect configuration register values. | |
uint8_t | getSignalDetectConfig_A () |
Gets the signal detect configuration of A channel This function reads the signal detect configuration register and returns the channel A status. | |
uint8_t | getSignalDetectConfig_A (uint8_t index) |
Gets the signal detect configuration A by channel index This function reads the signal detect configuration register value. | |
uint8_t | getSignalDetectConfig_B () |
Gets the signal detect configuration of B channel This function reads the signal detect configuration register and returns the channel B status. | |
uint8_t | getSignalDetectConfig_B (uint8_t index) |
Gets the signal detect configuration B by channel index This function reads the signal detect configuration register value. | |
void | setSignalDetectConfig (uint8_t isDown) |
Sets the signal detect configuration register. This function change the signal detect configuration of all channels. | |
void | setSignalDetectConfig_A (uint8_t isDown) |
Sets the signal detect configuration of A channel. This function change the signal detect configuration of channel A. | |
void | setSignalDetectConfig_A (uint8_t index, uint8_t isDown) |
Sets the signal detect configuration of a given index of A channel. This function change the signal detect configuration of the given channel A index. | |
void | setSignalDetectConfig_B (uint8_t isDown) |
Sets the signal detect configuration of B channel. This function change the signal detect configuration of channel B. | |
void | setSignalDetectConfig_B (uint8_t index, uint8_t isDown) |
Sets the signal detect configuration of a given index of B channel. This function change the signal detect configuration of the given channel B index. | |
uint8_t | getRxDetectConfig () |
Gets the RX detect configuration register This function reads the RX detect configuration register values. | |
uint8_t | getRxDetectConfig_A () |
Gets the RX detect configuration of A channel This function reads the RX detect configuration register and returns the channel A status. | |
uint8_t | getRxDetectConfig_A (uint8_t index) |
Gets the RX detect configuration A by channel index This function reads the RX detect configuration register value. | |
uint8_t | getRxDetectConfig_B () |
Gets the RX detect configuration of B channel This function reads the RX detect configuration register and returns the channel B status. | |
uint8_t | getRxDetectConfig_B (uint8_t index) |
Gets the RX detect configuration B by channel index This function reads the RX detect configuration register value. | |
void | setRxDetectConfig (uint8_t isDown) |
Sets the RX detect configuration register. This function change the RX detect configuration of all channels. | |
void | setRxDetectConfig_A (uint8_t isDown) |
Sets the RX detect configuration of A channel. This function change the RX detect configuration of channel A. | |
void | setRxDetectConfig_A (uint8_t index, uint8_t isDown) |
Sets the RX detect configuration of a given index of A channel. This function change the RX detect configuration of the given channel A index. | |
void | setRxDetectConfig_B (uint8_t isDown) |
Sets the RX detect configuration of B channel. This function change the RX detect configuration of channel B. | |
void | setRxDetectConfig_B (uint8_t index, uint8_t isDown) |
Sets the RX detect configuration of a given index of B channel. This function change the RX detect configuration of the given channel B index. | |
uint8_t | getSDTConfig () |
Gets the signal detect threshold of all channels. This function gets the signal detect threshold of all channels. | |
uint8_t | setSDTConfig (uint8_t thresh) |
Sets the signal detect threshold for all channels. This function changes the signal detect threshold of all channels. | |
void | setConfig_A (uint8_t config) |
Sets the configuration of the channel A This function sets the configuration of channel A. NOT RECOMENDED TO USE! **. | |
void | setConfig_A (uint8_t index, uint8_t config) |
Sets the configuration of the given index of channel A This function sets the configuration of the given index of channel A. This function is equal to setConfig_Ax(...) (x is channel index) NOT RECOMENDED TO USE! **. | |
void | setConfig_B (uint8_t config) |
Sets the configuration of the channel A This function sets the configuration of channel A. NOT RECOMENDED TO USE! **. | |
void | setConfig_B (uint8_t index, uint8_t config) |
Sets the configuration of the given index of channel B This function sets the configuration of the given index of channel B. This function is equal to setConfig_Bx(...) (x is channel index) NOT RECOMENDED TO USE! **. | |
void | setConfig (uint8_t config) |
Sets the configuration of all channels This function sets the configuration of all channels. NOT RECOMENDED TO USE! **. | |
void | setEQ_A (uint8_t EQ) |
Sets the equalizer of the channel A This function sets the equalizer settings of the channel A. | |
void | setEQ_B (uint8_t EQ) |
Sets the equalizer of the channel B This function sets the equalizer settings of the channel B. | |
void | setEQ (uint8_t EQ) |
Sets the equalizer of the all channels This function sets the equalizer settings of the all channels. | |
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. | |
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. | |
void | setFG (uint8_t flat_gain) |
Sets the flat gain of all channels This function sets the flat gain setting of all channels. | |
void | setSW_A (uint8_t swing) |
Sets the swing value of the channel A This function sets the swing value of the channel A. | |
void | setSW_B (uint8_t swing) |
Sets the swing value of the channel B This function sets the swing value of the channel B. | |
void | setSW (uint8_t swing) |
Sets the swing value of all channels This function sets the swing value of all channels. | |
void | print_all () |
Prints all of the registers This function prints all of the registers of the chip over the default UART (Serial) | |
void | dump_all (uint8_t *data) |
Reads all of the registers This function reads all of the registers of the chip. | |
Class that stores state and functions for interacting with PI3EQX12908A2.
init | ( | uint8_t | i2c_addr | ) |
Initialize the PI3EQX12908 object This function sets the I2C address and the register names.
i2c_addr | The 7 bit I2C address of the redriver. |
uint8_t getSignalDetect | ( | ) |
Gets the signal detect register This function reads the signal detect register values.
uint8_t getSignalDetect_A | ( | ) |
Gets the signal detect of A channel This function reads the signal detect register and returns the channel A status.
uint8_t getSignalDetect_A | ( | uint8_t | index | ) |
Gets the signal detect A by channel index This function reads the signal detect register value and returns the status of given channel index of A channel.
index | A reference to the channel index of A channel from 0 to 3. |
uint8_t getSignalDetect_B | ( | ) |
Gets the signal detect of B channel This function reads the signal detect register and returns the channel B status.
uint8_t getSignalDetect_B | ( | uint8_t | index | ) |
Gets the signal detect B by channel index This function reads the signal detect register value and returns the status of given channel index of B channel.
index | A reference to the channel index of B channel from 0 to 3. |
uint8_t getRxDetect | ( | ) |
Gets the RX detect register This function reads the RX detect register values.
uint8_t getRxDetect_A | ( | ) |
Gets the RX detect of A channel This function reads the RX detect register and returns the channel A status.
uint8_t getRxDetect_A | ( | uint8_t | index | ) |
Gets the RX detect A by channel index This function reads the RX detect register value and returns the status of given channel index of A channel.
index | A reference to the channel index of A channel from 0 to 3. |
uint8_t getRxDetect_B | ( | ) |
Gets the RX detect of B channel This function reads the RX detect register and returns the channel B status.
uint8_t getRxDetect_B | ( | uint8_t | index | ) |
Gets the RX detect B by channel index This function reads the RX detect register value and returns the status of given channel index of B channel.
index | A reference to the channel index of B channel from 0 to 3. |
uint8_t getPowerDown | ( | ) |
Gets the power down register This function reads the power down register values.
uint8_t getPowerDown_A | ( | ) |
Gets the power down of A channel This function reads the power down register and returns the channel A status.
uint8_t getPowerDown_A | ( | uint8_t | index | ) |
Gets the power down A by channel index This function reads the power down register value and returns the status of given channel index of A channel.
index | A reference to the channel index of A channel from 0 to 3. |
uint8_t getPowerDown_B | ( | ) |
Gets the power down of B channel This function reads the power down register and returns the channel B status.
uint8_t getPowerDown_B | ( | uint8_t | index | ) |
Gets the power down B by channel index This function reads the power down register value and returns the status of given channel index of B channel.
index | A reference to the channel index of B channel from 0 to 3. |
void setPowerDown | ( | uint8_t | isDown | ) |
void setPowerDown_A | ( | uint8_t | isDown | ) |
void setPowerDown_A | ( | uint8_t | index, |
uint8_t | isDown ) |
void setPowerDown_B | ( | uint8_t | isDown | ) |
void setPowerDown_B | ( | uint8_t | index, |
uint8_t | isDown ) |
uint8_t getConfig_A0 | ( | ) |
Gets the configuration of the 0 index A channel. This function reads the configuration of the 0 index A channel value.
uint8_t getEQ_A0 | ( | ) |
Gets the equalizer configuration of the 0 index A channel. This function reads the equalizer value of the 0 index A channel value.
uint8_t getFlatGain_A0 | ( | ) |
Gets the flat gain configuration of the 0 index A channel. This function reads the flat gain value of the 0 index A channel value.
uint8_t getSW_A0 | ( | ) |
Gets the swing configuration of the 0 index A channel. This function reads the swing value of the 0 index A channel value.
void setConfig_A0 | ( | uint8_t | config | ) |
Sets the configuration of the 0 index A channel. This function sets the configuration register of A0. NOT RECOMENDED TO USE! **.
config | 8 bit value of the config register |
void setEQ_A0 | ( | uint8_t | EQ | ) |
Sets the equalizer value of the 0 index A channel. This function sets the equalizer value of A0.
EQ | 4 bit value of the equalizer index |
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.
flat_gain | 2 bit value of the flat gain:
|
void setSW_A0 | ( | uint8_t | swing | ) |
Sets the swing value of the 0 index A channel. This function sets the swing value of A0.
swing | 1 bit value of the swing:
|
uint8_t getConfig_A1 | ( | ) |
Gets the configuration of the 1 index A channel. This function reads the configuration of the 1 index A channel value.
uint8_t getEQ_A1 | ( | ) |
Gets the equalizer configuration of the 1 index A channel. This function reads the equalizer value of the 1 index A channel value.
uint8_t getFlatGain_A1 | ( | ) |
Gets the flat gain configuration of the 1 index A channel. This function reads the flat gain value of the 1 index A channel value.
uint8_t getSW_A1 | ( | ) |
Gets the swing configuration of the 1 index A channel. This function reads the swing value of the 1 index A channel value.
void setConfig_A1 | ( | uint8_t | config | ) |
Sets the configuration of the 1 index A channel. This function sets the configuration register of A1. NOT RECOMENDED TO USE! **.
config | 8 bit value of the config register |
void setEQ_A1 | ( | uint8_t | EQ | ) |
Sets the equalizer value of the 1 index A channel. This function sets the equalizer value of A1.
EQ | 4 bit value of the equalizer index |
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.
flat_gain | 2 bit value of the flat gain:
|
void setSW_A1 | ( | uint8_t | swing | ) |
Sets the swing value of the 1 index A channel. This function sets the swing value of A1.
swing | 1 bit value of the swing:
|
uint8_t getConfig_A2 | ( | ) |
Gets the configuration of the 2 index A channel. This function reads the configuration of the 2 index A channel value.
uint8_t getEQ_A2 | ( | ) |
Gets the equalizer configuration of the 2 index A channel. This function reads the equalizer value of the 2 index A channel value.
uint8_t getFlatGain_A2 | ( | ) |
Gets the flat gain configuration of the 2 index A channel. This function reads the flat gain value of the 2 index A channel value.
uint8_t getSW_A2 | ( | ) |
Gets the swing configuration of the 2 index A channel. This function reads the swing value of the 2 index A channel value.
void setConfig_A2 | ( | uint8_t | config | ) |
Sets the configuration of the 2 index A channel. This function sets the configuration register of A2. NOT RECOMENDED TO USE! **.
config | 8 bit value of the config register |
void setEQ_A2 | ( | uint8_t | EQ | ) |
Sets the equalizer value of the 2 index A channel. This function sets the equalizer value of A2.
EQ | 4 bit value of the equalizer index |
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.
flat_gain | 2 bit value of the flat gain:
|
void setSW_A2 | ( | uint8_t | swing | ) |
Sets the swing value of the 2 index A channel. This function sets the swing value of A2.
swing | 1 bit value of the swing:
|
uint8_t getConfig_A3 | ( | ) |
Gets the configuration of the 3 index A channel. This function reads the configuration of the 3 index A channel value.
uint8_t getEQ_A3 | ( | ) |
Gets the equalizer configuration of the 3 index A channel. This function reads the equalizer value of the 3 index A channel value.
uint8_t getFlatGain_A3 | ( | ) |
Gets the flat gain configuration of the 3 index A channel. This function reads the flat gain value of the 3 index A channel value.
uint8_t getSW_A3 | ( | ) |
Gets the swing configuration of the 3 index A channel. This function reads the swing value of the 3 index A channel value.
void setConfig_A3 | ( | uint8_t | config | ) |
Sets the configuration of the 3 index A channel. This function sets the configuration register of A3. NOT RECOMENDED TO USE! **.
config | 8 bit value of the config register |
void setEQ_A3 | ( | uint8_t | EQ | ) |
Sets the equalizer value of the 3 index A channel. This function sets the equalizer value of A3.
EQ | 4 bit value of the equalizer index |
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.
flat_gain | 2 bit value of the flat gain:
|
void setSW_A3 | ( | uint8_t | swing | ) |
Sets the swing value of the 3 index A channel. This function sets the swing value of A3.
swing | 1 bit value of the swing:
|
uint8_t getConfig_B0 | ( | ) |
Gets the configuration of the 0 index B channel. This function reads the configuration of the 0 index B channel value.
uint8_t getEQ_B0 | ( | ) |
Gets the equalizer configuration of the 0 index B channel. This function reads the equalizer value of the 0 index B channel value.
uint8_t getFlatGain_B0 | ( | ) |
Gets the flat gain configuration of the 0 index B channel. This function reads the flat gain value of the 0 index B channel value.
uint8_t getSW_B0 | ( | ) |
Gets the swing configuration of the 0 index B channel. This function reads the swing value of the 0 index B channel value.
void setConfig_B0 | ( | uint8_t | config | ) |
Sets the configuration of the 0 index B channel. This function sets the configuration register of B0. NOT RECOMENDED TO USE! **.
config | 8 bit value of the config register |
void setEQ_B0 | ( | uint8_t | EQ | ) |
Sets the equalizer value of the 0 index B channel. This function sets the equalizer value of B0.
EQ | 4 bit value of the equalizer index |
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.
flat_gain | 2 bit value of the flat gain:
|
void setSW_B0 | ( | uint8_t | swing | ) |
Sets the swing value of the 0 index B channel. This function sets the swing value of B0.
swing | 1 bit value of the swing:
|
uint8_t getConfig_B1 | ( | ) |
Gets the configuration of the 1 index B channel. This function reads the configuration of the 1 index B channel value.
uint8_t getEQ_B1 | ( | ) |
Gets the equalizer configuration of the 1 index B channel. This function reads the equalizer value of the 1 index B channel value.
uint8_t getFlatGain_B1 | ( | ) |
Gets the flat gain configuration of the 1 index B channel. This function reads the flat gain value of the 1 index B channel value.
uint8_t getSW_B1 | ( | ) |
Gets the swing configuration of the 1 index B channel. This function reads the swing value of the 1 index B channel value.
void setConfig_B1 | ( | uint8_t | config | ) |
Sets the configuration of the 1 index B channel. This function sets the configuration register of B1. NOT RECOMENDED TO USE! **.
config | 8 bit value of the config register |
void setEQ_B1 | ( | uint8_t | EQ | ) |
Sets the equalizer value of the 1 index B channel. This function sets the equalizer value of B1.
EQ | 4 bit value of the equalizer index |
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.
flat_gain | 2 bit value of the flat gain:
|
void setSW_B1 | ( | uint8_t | swing | ) |
Sets the swing value of the 1 index B channel. This function sets the swing value of B1.
swing | 1 bit value of the swing:
|
uint8_t getConfig_B2 | ( | ) |
Gets the configuration of the 2 index B channel. This function reads the configuration of the 2 index B channel value.
uint8_t getEQ_B2 | ( | ) |
Gets the equalizer configuration of the 2 index B channel. This function reads the equalizer value of the 2 index B channel value.
uint8_t getFlatGain_B2 | ( | ) |
Gets the flat gain configuration of the 2 index B channel. This function reads the flat gain value of the 2 index B channel value.
uint8_t getSW_B2 | ( | ) |
Gets the swing configuration of the 2 index B channel. This function reads the swing value of the 2 index B channel value.
void setConfig_B2 | ( | uint8_t | config | ) |
Sets the configuration of the 2 index B channel. This function sets the configuration register of B2. NOT RECOMENDED TO USE! **.
config | 8 bit value of the config register |
void setEQ_B2 | ( | uint8_t | EQ | ) |
Sets the equalizer value of the 2 index B channel. This function sets the equalizer value of B2.
EQ | 4 bit value of the equalizer index |
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.
flat_gain | 2 bit value of the flat gain:
|
void setSW_B2 | ( | uint8_t | swing | ) |
Sets the swing value of the 2 index B channel. This function sets the swing value of B2.
swing | 1 bit value of the swing:
|
uint8_t getConfig_B3 | ( | ) |
Gets the configuration of the 3 index B channel. This function reads the configuration of the 3 index B channel value.
uint8_t getEQ_B3 | ( | ) |
Gets the equalizer configuration of the 3 index B channel. This function reads the equalizer value of the 3 index B channel value.
uint8_t getFlatGain_B3 | ( | ) |
Gets the flat gain configuration of the 3 index B channel. This function reads the flat gain value of the 3 index B channel value.
uint8_t getSW_B3 | ( | ) |
Gets the swing configuration of the 3 index B channel. This function reads the swing value of the 3 index B channel value.
void setConfig_B3 | ( | uint8_t | config | ) |
Sets the configuration of the 3 index B channel. This function sets the configuration register of B3. NOT RECOMENDED TO USE! **.
config | 8 bit value of the config register |
void setEQ_B3 | ( | uint8_t | EQ | ) |
Sets the equalizer value of the 3 index B channel. This function sets the equalizer value of B3.
EQ | 4 bit value of the equalizer index |
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.
flat_gain | 2 bit value of the flat gain:
|
void setSW_B3 | ( | uint8_t | swing | ) |
Sets the swing value of the 3 index B channel. This function sets the swing value of B3.
swing | 1 bit value of the swing:
|
uint8_t getSignalDetectConfig | ( | ) |
Gets the signal detect configuration register This function reads the signal detect configuration register values.
uint8_t getSignalDetectConfig_A | ( | ) |
Gets the signal detect configuration of A channel This function reads the signal detect configuration register and returns the channel A status.
uint8_t getSignalDetectConfig_A | ( | uint8_t | index | ) |
Gets the signal detect configuration A by channel index This function reads the signal detect configuration register value.
index | A reference to the channel index of A channel from 0 to 3. |
uint8_t getSignalDetectConfig_B | ( | ) |
Gets the signal detect configuration of B channel This function reads the signal detect configuration register and returns the channel B status.
uint8_t getSignalDetectConfig_B | ( | uint8_t | index | ) |
Gets the signal detect configuration B by channel index This function reads the signal detect configuration register value.
index | A reference to the channel index of B channel from 0 to 3. |
void setSignalDetectConfig | ( | uint8_t | isDown | ) |
void setSignalDetectConfig_A | ( | uint8_t | isDown | ) |
void setSignalDetectConfig_A | ( | uint8_t | index, |
uint8_t | isDown ) |
void setSignalDetectConfig_B | ( | uint8_t | isDown | ) |
void setSignalDetectConfig_B | ( | uint8_t | index, |
uint8_t | isDown ) |
uint8_t getRxDetectConfig | ( | ) |
Gets the RX detect configuration register This function reads the RX detect configuration register values.
uint8_t getRxDetectConfig_A | ( | ) |
Gets the RX detect configuration of A channel This function reads the RX detect configuration register and returns the channel A status.
uint8_t getRxDetectConfig_A | ( | uint8_t | index | ) |
Gets the RX detect configuration A by channel index This function reads the RX detect configuration register value.
index | A reference to the channel index of A channel from 0 to 3. |
uint8_t getRxDetectConfig_B | ( | ) |
Gets the RX detect configuration of B channel This function reads the RX detect configuration register and returns the channel B status.
uint8_t getRxDetectConfig_B | ( | uint8_t | index | ) |
Gets the RX detect configuration B by channel index This function reads the RX detect configuration register value.
index | A reference to the channel index of B channel from 0 to 3. |
void setRxDetectConfig | ( | uint8_t | isDown | ) |
void setRxDetectConfig_A | ( | uint8_t | isDown | ) |
void setRxDetectConfig_A | ( | uint8_t | index, |
uint8_t | isDown ) |
void setRxDetectConfig_B | ( | uint8_t | isDown | ) |
void setRxDetectConfig_B | ( | uint8_t | index, |
uint8_t | isDown ) |
uint8_t getSDTConfig | ( | ) |
Gets the signal detect threshold of all channels. This function gets the signal detect threshold of all channels.
uint8_t setSDTConfig | ( | uint8_t | thresh | ) |
Sets the signal detect threshold for all channels. This function changes the signal detect threshold of all channels.
thresh | 2 bit value of the threshold:
|
void setConfig_A | ( | uint8_t | config | ) |
Sets the configuration of the channel A This function sets the configuration of channel A. NOT RECOMENDED TO USE! **.
config | 8 bit value of the config register |
void setConfig_A | ( | uint8_t | index, |
uint8_t | config ) |
Sets the configuration of the given index of channel A This function sets the configuration of the given index of channel A. This function is equal to setConfig_Ax(...) (x is channel index) NOT RECOMENDED TO USE! **.
config | 8 bit value of the config register |
void setConfig_B | ( | uint8_t | config | ) |
Sets the configuration of the channel A This function sets the configuration of channel A. NOT RECOMENDED TO USE! **.
config | 8 bit value of the config register |
void setConfig_B | ( | uint8_t | index, |
uint8_t | config ) |
Sets the configuration of the given index of channel B This function sets the configuration of the given index of channel B. This function is equal to setConfig_Bx(...) (x is channel index) NOT RECOMENDED TO USE! **.
config | 8 bit value of the config register |
void setConfig | ( | uint8_t | config | ) |
Sets the configuration of all channels This function sets the configuration of all channels. NOT RECOMENDED TO USE! **.
config | 8 bit value of the config register |
void setEQ_A | ( | uint8_t | EQ | ) |
Sets the equalizer of the channel A This function sets the equalizer settings of the channel A.
EQ | 4 bit value of the equalizer index |
void setEQ_B | ( | uint8_t | EQ | ) |
Sets the equalizer of the channel B This function sets the equalizer settings of the channel B.
EQ | 4 bit value of the equalizer index |
void setEQ | ( | uint8_t | EQ | ) |
Sets the equalizer of the all channels This function sets the equalizer settings of the all channels.
EQ | 4 bit value of the equalizer index |
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.
flat_gain | 2 bit value of the flat gain:
|
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.
flat_gain | 2 bit value of the flat gain:
|
void setFG | ( | uint8_t | flat_gain | ) |
Sets the flat gain of all channels This function sets the flat gain setting of all channels.
flat_gain | 2 bit value of the flat gain:
|
void setSW_A | ( | uint8_t | swing | ) |
Sets the swing value of the channel A This function sets the swing value of the channel A.
swing | 1 bit value of the flat gain:
|
void setSW_B | ( | uint8_t | swing | ) |
Sets the swing value of the channel B This function sets the swing value of the channel B.
swing | 1 bit value of the flat gain:
|
void setSW | ( | uint8_t | swing | ) |
Sets the swing value of all channels This function sets the swing value of all channels.
swing | 1 bit value of the flat gain:
|
void dump_all | ( | uint8_t * | data | ) |
Reads all of the registers This function reads all of the registers of the chip.
data | A pointer to an array of 16 bytes to store the values. |