Skip to content

Commit

Permalink
Doc
Browse files Browse the repository at this point in the history
  • Loading branch information
pu2clr committed Jul 12, 2024
1 parent a034512 commit 734b3cc
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 0 deletions.
Binary file modified Doc/QN8066_01.pdf
Binary file not shown.
77 changes: 77 additions & 0 deletions src/QN8066.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,83 @@ void QN8066::setAudioTxDiff(bool value) {
this->setRegister(QN_VOL_CTL, vol_ctl.raw);
}


/**
* @ingroup group03 TX Setup
* @brief TX mode input impedance for both L/R channels
* @details Sets the imput impedance Left and Rihgt channels
*
* | RIN Value | Input impedance (k) |
* | --------- | -------------------- |
* | 00 (0) | 10 |
* | 01 (1) | 20 |
* | 10 (2) | 40 |
* | 11 (3) | 80 |
*
* @param value (true or false)
* @see Data Sheet - Quintic - QN8066 - Digital FM Transceiver for Portable
* Devices, pag. 35
*/
void QN8066::setTxInputImpedance(uint8_t value) {
qn8066_reg_vga reg_vga;

reg_vga.raw = this->getRegister(QN_REG_VGA);
reg_vga.arg.RIN = value;
this->setRegister(QN_REG_VGA, reg_vga.raw);
}


/**
* @ingroup group03 TX Setup
* @brief TX digital gain
* @details TX digital gain
*
* | TXAGC_GDB | Digital gain |
* | --------- | -------------------- |
* | 00 (0) | 0 dB |
* | 01 (1) | 1 dB |
* | 10 (2) | 2 dB |
* | 11 (3) | Reserved |
*
* @param value
* @see Data Sheet - Quintic - QN8066 - Digital FM Transceiver for Portable
* Devices, pag. 35
*/
void QN8066::setTxDigitalGain(uint8_t value) {
qn8066_reg_vga reg_vga;

reg_vga.raw = this->getRegister(QN_REG_VGA);
reg_vga.arg.TXAGC_GDB = value;
this->setRegister(QN_REG_VGA, reg_vga.raw);
}


/**
* @ingroup group03 TX Setup
* @brief TX input buffer gain
* @details Sets TX input buffer gain
* | TXAGC_GVGA | Attenuation depending on RIN - 0, 1, 2 AND 3 RESPECTIVELY |
* | ---------- | ---------------------------------------------------------- |
* | 0 - 000 | 3; -3; -9; -15 |
* | 1 - 001 | 6; 0; -6; -12 |
* | 2 - 010 | 9; 3; -3; -9 |
* | 3 - 011 | 12; 6; 0; -6 |
* | 4 - 100 | 15; 9; 3; -3 |
* | 5 - 101 | 18; 12; 6; 0 |
* | Others | Reserved |
* @param value
* @see Data Sheet - Quintic - QN8066 - Digital FM Transceiver for Portable
* Devices, pag. 35
*/
void QN8066::setTxInputBufferGain(uint8_t value) {
qn8066_reg_vga reg_vga;

reg_vga.raw = this->getRegister(QN_REG_VGA);
reg_vga.arg.TXAGC_GVGA = value;
this->setRegister(QN_REG_VGA, reg_vga.raw);
}


/**
* @ingroup group03 TX Channel
* @brief convert a given frequency to a channel
Expand Down
4 changes: 4 additions & 0 deletions src/QN8066.h
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,10 @@ class QN8066 {
void setAudioDigitalGain(uint8_t value);
void setAudioDacHold(bool value);
void setAudioTxDiff(bool value);
void setTxInputImpedance(uint8_t value);
void setTxDigitalGain(uint8_t value);
void setTxInputBufferGain(uint8_t value);


/**
* @ingroup group01
Expand Down

0 comments on commit 734b3cc

Please sign in to comment.