PU2CLR QN8066 Arduino Library 1.3.0
Arduino Library for QN8066Devices - By Ricardo Lima Caratti
Loading...
Searching...
No Matches
QN8066 FSM functions

Functions

uint8_t QN8066::getFsmStateCode ()
 Get the FSM State Code.
 
void QN8066::resetFsm ()
 Resets the state to initial states and recalibrate all blocks.
 
void QN8066::setStnby (bool value)
 Request Immediately enter Standby mode whatever state chip is in.
 

Detailed Description

Function Documentation

◆ getFsmStateCode()

uint8_t QN8066::getFsmStateCode ( )

Get the FSM State Code.

Returns
uint8_t - Current FSM code

The table below shows the FSM status and description

FSM Status Description
0 - 0000 STBY
1 - 0001 RESET
2 - 0010 CALI
3 - 0011 IDLE
4 - 0100 CALIPLL
5 - 0101 Reserved
6 - 0110 Reserved
7 - 0111 TXPLLC
8 - 1000 TX_RSTB
9 - 1001 PACAL
10 - 1010 TRANSMIT
11 - 1011 TXCCA
Others Reserved

Example

#include <QN8066.h>
QN8066 tx;
int nFSM;
void setup() {
tx.setup();
tx.setTX(1069); // Set the transmitter to 106.9 MHz
tx.rdsTxEnable(true);
nFSM = tx.getFsmStateCode();
...
}
void loop() {
}
QN8066 Class.
Definition: QN8066.h:846
void setup(uint16_t xtalDiv=1000, bool mono=false, bool rds=false, uint8_t PreEmphasis=0, uint8_t xtalInj=0, uint8_t imageRejection=1, uint8_t txSoftClipThreshold=0, uint8_t oneMinutOff=3, uint8_t gainTxPLT=9, uint8_t txFreqDev=125, uint8_t rdsLineIn=0, uint8_t rdsFreqDev=60, uint8_t inImpedance=1, uint8_t txAgcDig=0, uint8_t txAgcBuffer=1, uint8_t txSoftClip=0)
QN8066 initial configuration.
Definition: QN8066.cpp:291
void setTX(uint16_t frequency)
Sets the TX mode.
Definition: QN8066.cpp:659
void rdsTxEnable(bool value)
Transmitter RDS enable.
Definition: QN8066.cpp:1566
uint8_t getFsmStateCode()
Get the FSM State Code.
Definition: QN8066.cpp:2002

◆ resetFsm()

void QN8066::resetFsm ( )

Resets the state to initial states and recalibrate all blocks.

Reset the FSM. After this bit is de-asserted, FSM will go through all the power up and calibration sequence.

◆ setStnby()

void QN8066::setStnby ( bool  value)

Request Immediately enter Standby mode whatever state chip is in.

Note: “stnby” has the highest priority.

Parameters
value- true or false