 |
PU2CLR Si4735 Arduino Library
2.0.7
Arduino Library for Si47XX Devices - By Ricardo Lima Caratti
|
Go to the documentation of this file.
26 #define POWER_PATCH 15
29 #define SI473X_ADDR_SEN_LOW 0x11
30 #define SI473X_ADDR_SEN_HIGH 0x63
34 #define POWER_DOWN 0x11
35 #define SET_PROPERTY 0x12
36 #define GET_PROPERTY 0x13
37 #define GET_INT_STATUS 0x14
40 #define FM_TUNE_FREQ 0x20
41 #define FM_SEEK_START 0x21
42 #define FM_TUNE_STATUS 0x22
43 #define FM_AGC_STATUS 0x27
44 #define FM_AGC_OVERRIDE 0x28
45 #define FM_RSQ_STATUS 0x23
46 #define FM_RDS_STATUS 0x24
49 #define FM_RDS_INT_SOURCE 0x1500
50 #define FM_RDS_INT_FIFO_COUNT 0x1501
51 #define FM_RDS_CONFIG 0x1502
52 #define FM_RDS_CONFIDENCE 0x1503
54 #define FM_DEEMPHASIS 0x1100
55 #define FM_BLEND_STEREO_THRESHOLD 0x1105
56 #define FM_BLEND_MONO_THRESHOLD 0x1106
57 #define FM_BLEND_RSSI_STEREO_THRESHOLD 0x1800
58 #define FM_BLEND_RSSI_MONO_THRESHOLD 0x1801
59 #define FM_BLEND_SNR_STEREO_THRESHOLD 0x1804
60 #define FM_BLEND_SNR_MONO_THRESHOLD 0x1805
61 #define FM_BLEND_MULTIPATH_STEREO_THRESHOLD 0x1808
62 #define FM_BLEND_MULTIPATH_MONO_THRESHOLD 0x1809
63 #define FM_CHANNEL_FILTER 0x1102
64 #define FM_SOFT_MUTE_MAX_ATTENUATION 0x1302
67 #define FM_SEEK_BAND_BOTTOM 0x1400
68 #define FM_SEEK_BAND_TOP 0x1401
69 #define FM_SEEK_FREQ_SPACING 0x1402
70 #define FM_SEEK_TUNE_SNR_THRESHOLD 0x1403
71 #define FM_SEEK_TUNE_RSSI_THRESHOLD 0x1404
75 #define NBFM_TUNE_FREQ 0x50
76 #define NBFM_TUNE_STATUS 0x52
77 #define NBFM_RSQ_STATUS 0x53
78 #define NBFM_AGC_STATUS 0x57
79 #define NBFM_AGC_OVERRIDE 0x58
84 #define NBFM_MAX_TUNE_ERROR 0x5108
85 #define NBFM_RSQ_INT_SOURCE 0x5200
86 #define NBFM_RSQ_SNR_HI_THRESHOLD 0x5201
87 #define NBFM_RSQ_SNR_LO_THRESHOLD 0x5202
88 #define NBFM_RSQ_RSSI_HI_THRESHOLD 0x5203
89 #define NBFM_RSQ_RSSI_LO_THRESHOLD 0x5204
90 #define NBFM_VALID_SNR_THRESHOLD 0x5403
91 #define NBFM_VALID_RSSI_THRESHOLD 0x5404
95 #define AM_TUNE_FREQ 0x40
96 #define AM_SEEK_START 0x41
97 #define AM_TUNE_STATUS 0x42
98 #define AM_RSQ_STATUS 0x43
99 #define AM_AGC_STATUS 0x47
100 #define AM_AGC_OVERRIDE 0x48
101 #define GPIO_CTL 0x80
102 #define GPIO_SET 0x81
106 #define SSB_TUNE_FREQ 0x40
107 #define SSB_TUNE_STATUS 0x42
108 #define SSB_RSQ_STATUS 0x43
109 #define SSB_AGC_STATUS 0x47
110 #define SSB_AGC_OVERRIDE 0x48
114 #define DIGITAL_OUTPUT_FORMAT 0x0102
115 #define DIGITAL_OUTPUT_SAMPLE_RATE 0x0104
116 #define REFCLK_FREQ 0x0201
117 #define REFCLK_PRESCALE 0x0202
118 #define AM_DEEMPHASIS 0x3100
119 #define AM_CHANNEL_FILTER 0x3102
120 #define AM_AUTOMATIC_VOLUME_CONTROL_MAX_GAIN 0x3103
121 #define AM_MODE_AFC_SW_PULL_IN_RANGE 0x3104
122 #define AM_MODE_AFC_SW_LOCK_IN_RANGE 0x3105
123 #define AM_RSQ_INTERRUPTS 0x3200
124 #define AM_RSQ_SNR_HIGH_THRESHOLD 0x3201
125 #define AM_RSQ_SNR_LOW_THRESHOLD 0x3202
126 #define AM_RSQ_RSSI_HIGH_THRESHOLD 0x3203
127 #define AM_RSQ_RSSI_LOW_THRESHOLD 0x3204
128 #define AM_SOFT_MUTE_RATE 0x3300
129 #define AM_SOFT_MUTE_SLOPE 0x3301
130 #define AM_SOFT_MUTE_MAX_ATTENUATION 0x3302
131 #define AM_SOFT_MUTE_SNR_THRESHOLD 0x3303
132 #define AM_SOFT_MUTE_RELEASE_RATE 0x3304
133 #define AM_SOFT_MUTE_ATTACK_RATE 0x3305
134 #define AM_SEEK_BAND_BOTTOM 0x3400
135 #define AM_SEEK_BAND_TOP 0x3401
136 #define AM_SEEK_FREQ_SPACING 0x3402
137 #define AM_SEEK_SNR_THRESHOLD 0x3403
138 #define AM_SEEK_RSSI_THRESHOLD 0x3404
139 #define AM_AGC_ATTACK_RATE 0x3702
140 #define AM_AGC_RELEASE_RATE 0x3703
141 #define AM_FRONTEND_AGC_CONTROL 0x3705
142 #define AM_NB_DETECT_THRESHOLD 0x3900
143 #define AM_NB_INTERVAL 0x3901
144 #define AM_NB_RATE 0x3902
145 #define AM_NB_IIR_FILTER 0x3903
146 #define AM_NB_DELAY 0x3904
148 #define RX_VOLUME 0x4000
149 #define RX_HARD_MUTE 0x4001
154 #define GPO_IEN 0x0001
155 #define SSB_BFO 0x0100
156 #define SSB_MODE 0x0101
157 #define SSB_RSQ_INTERRUPTS 0x3200
158 #define SSB_RSQ_SNR_HI_THRESHOLD 0x3201
159 #define SSB_RSQ_SNR_LO_THRESHOLD 0x3202
160 #define SSB_RSQ_RSSI_HI_THRESHOLD 0x3203
161 #define SSB_RSQ_RSSI_LO_THRESHOLD 0x3204
162 #define SSB_SOFT_MUTE_RATE 0x3300
163 #define SSB_SOFT_MUTE_MAX_ATTENUATION 0x3302
164 #define SSB_SOFT_MUTE_SNR_THRESHOLD 0x3303
165 #define SSB_RF_AGC_ATTACK_RATE 0x3700
166 #define SSB_RF_AGC_RELEASE_RATE 0x3701
169 #define SSB_RF_IF_AGC_ATTACK_RATE 0x3702
170 #define SSB_RF_IF_AGC_RELEASE_RATE 0x3703
177 #define SI473X_RDS_OUTPUT_ONLY 0b00000000
178 #define SI473X_ANALOG_AUDIO 0b00000101
179 #define SI473X_DIGITAL_AUDIO1 0b00001011
180 #define SI473X_DIGITAL_AUDIO2 0b10110000
181 #define SI473X_ANALOG_DIGITAL_AUDIO 0b10110101
184 #define FM_CURRENT_MODE 0
185 #define AM_CURRENT_MODE 1
186 #define SSB_CURRENT_MODE 2
187 #define NBFM_CURRENT_MODE 3
192 #define MAX_DELAY_AFTER_SET_FREQUENCY 30
193 #define MAX_DELAY_AFTER_POWERUP 10
194 #define MIN_DELAY_WAIT_SEND_LOOP 300
195 #define MAX_SEEK_TIME 8000
197 #define XOSCEN_CRYSTAL 1
198 #define XOSCEN_RCLK 0
315 } si47x_antenna_capacitor;
338 } si47x_set_frequency;
355 uint8_t RESERVED1 : 2;
358 uint8_t RESERVED2 : 4;
378 } si47x_seek_am_complement;
442 } si47x_response_status;
476 } si47x_firmware_information;
512 } si47x_firmware_query_library;
529 uint8_t RESERVED2 : 6;
573 uint8_t RSSIILINT : 1;
574 uint8_t RSSIHINT : 1;
577 uint8_t MULTLINT : 1;
578 uint8_t MULTHINT : 1;
580 uint8_t BLENDINT : 1;
609 uint8_t MIN_GAIN_INDEX;
612 } si47x_frontend_agc_control;
628 uint8_t STATUSONLY : 1;
655 uint8_t RDSSYNCLOST : 1;
656 uint8_t RDSSYNCFOUND : 1;
658 uint8_t RDSNEWBLOCKA : 1;
659 uint8_t RDSNEWBLOCKB : 1;
702 uint8_t RDSSYNCLOST : 1;
703 uint8_t RDSSYNCFOUND : 1;
705 uint8_t RDSNEWBLOCKA : 1;
706 uint8_t RDSNEWBLOCKB : 1;
711 } si47x_rds_int_source;
783 uint16_t address : 2;
787 uint16_t programType : 5;
788 uint16_t trafficProgramCode : 1;
789 uint16_t versionCode : 1;
790 uint16_t groupType : 4;
794 uint16_t address : 4;
795 uint16_t textABFlag : 1;
796 uint16_t programType : 5;
797 uint16_t trafficProgramCode : 1;
798 uint16_t versionCode : 1;
799 uint16_t groupType : 4;
803 uint16_t content : 4;
804 uint16_t textABFlag : 1;
805 uint16_t programType : 5;
806 uint16_t trafficProgramCode : 1;
807 uint16_t versionCode : 1;
808 uint16_t groupType : 4;
856 uint8_t offset_sense : 1;
864 } si47x_rds_date_time;
916 } si47x_agc_overrride;
943 } si47x_bandwidth_config;
957 uint8_t SBCUTFLT : 4;
958 uint8_t AVC_DIVIDER : 4;
960 uint8_t SMUTESEL : 1;
962 uint8_t DSP_AFCDIS : 1;
987 } si4735_digital_output_format;
1000 uint8_t reserved[8];
1002 uint8_t patch_id[14];
1003 uint16_t patch_size;
1006 } si4735_eeprom_patch_header;
1020 } si4735_digital_output_sample_rate;
1106 void sendProperty(uint16_t propertyNumber, uint16_t param);
1122 void setGpioCtl(uint8_t GPO1OEN, uint8_t GPO2OEN, uint8_t GPO3OEN);
1123 void setGpio(uint8_t GPO1LEVEL, uint8_t GPO2LEVEL, uint8_t GPO3LEVEL);
1124 void setGpioIen(uint8_t STCIEN, uint8_t RSQIEN, uint8_t ERRIEN, uint8_t CTSIEN, uint8_t STCREP, uint8_t RSQREP);
1126 void setup(uint8_t resetPin, uint8_t defaultFunction);
1150 sendProperty(propertyNumber, param);
1153 void sendCommand(uint8_t cmd,
int parameter_size,
const uint8_t *parameter);
1157 void setPowerUp(uint8_t CTSIEN, uint8_t GPO2OEN, uint8_t PATCH, uint8_t XOSCEN, uint8_t FUNC, uint8_t OPMODE);
1182 return currentStatus.resp.RSQINT;
1193 return currentStatus.resp.RDSINT;
1204 return currentStatus.resp.STCINT;
1215 return currentStatus.resp.ERR;
1234 return currentStatus.resp.AFCRL;
1247 return currentStatus.resp.BLTF;
1261 return currentStatus.resp.VALID;
1272 return currentStatus.resp.RSSI;
1285 return currentStatus.resp.SNR;
1298 return currentStatus.resp.MULT;
1312 si47x_antenna_capacitor cap;
1315 return currentStatus.resp.READANTCAP;
1318 cap.raw.ANTCAPL = currentStatus.resp.READANTCAP;
1319 cap.raw.ANTCAPH = currentStatus.resp.MULT;
1346 return currentAvcAmMaxGain;
1403 return !currentAgcStatus.refined.AGCDIS;
1414 return currentAgcStatus.refined.AGCIDX;
1432 return currentRqsStatus.resp.RSSI;
1443 return currentRqsStatus.resp.SNR;
1454 return currentRqsStatus.resp.RSSIILINT;
1465 return currentRqsStatus.resp.RSSIHINT;
1476 return currentRqsStatus.resp.SNRLINT;
1487 return currentRqsStatus.resp.SNRHINT;
1498 return currentRqsStatus.resp.VALID;
1509 return currentRqsStatus.resp.AFCRL;
1522 return currentRqsStatus.resp.SMUTE;
1535 return currentRqsStatus.resp.STBLEND;
1548 return currentRqsStatus.resp.PILOT;
1561 return currentRqsStatus.resp.MULT;
1571 return currentRqsStatus.resp.FREQOFF;
1582 return currentRqsStatus.resp.MULTLINT;
1593 return currentRqsStatus.resp.MULTHINT;
1604 return currentRqsStatus.resp.BLENDINT;
1620 return firmwareInfo.resp.PN;
1630 return firmwareInfo.resp.FWMAJOR;
1640 return firmwareInfo.resp.FWMINOR;
1650 return firmwareInfo.resp.PATCHH;
1660 return firmwareInfo.resp.PATCHL;
1670 return firmwareInfo.resp.CMPMAJOR;
1680 return firmwareInfo.resp.CMPMINOR;
1690 return firmwareInfo.resp.CHIPREV;
1741 currentAudioMode = audioMode;
1762 void setAM(uint16_t fromFreq, uint16_t toFreq, uint16_t intialFreq, uint16_t step);
1763 void setFM(uint16_t fromFreq, uint16_t toFreq, uint16_t initialFreq, uint16_t step);
1930 si47x_frontend_agc_control param;
1932 param.field.MIN_GAIN_INDEX = MIN_GAIN_INDEX;
1933 param.field.ATTN_BACKUP = ATTN_BACKUP;
1952 inline void setAmNoiseBlank(uint16_t nb_rate = 64, uint16_t nb_interval = 55, uint16_t nb_irr_filter = 300)
2020 return currentFrequencyParams.arg.FAST;
2031 currentFrequencyParams.arg.FAST = FAST;
2041 return currentFrequencyParams.arg.FREEZE;
2052 currentFrequencyParams.arg.FREEZE = FREEZE;
2106 seekStationProgress(NULL,
SEEK_UP);
2126 void seekStationProgress(
void (*showFunc)(uint16_t f),
bool (*stopSeking)(), uint8_t up_down);
2152 void setRdsIntSource(uint8_t RDSRECV, uint8_t RDSSYNCLOST, uint8_t RDSSYNCFOUND, uint8_t RDSNEWBLOCKA, uint8_t RDSNEWBLOCKB);
2153 void getRdsStatus(uint8_t INTACK, uint8_t MTFIFO, uint8_t STATUSONLY);
2163 return currentRdsStatus.resp.RDSRECV;
2174 return currentRdsStatus.resp.RDSSYNCLOST;
2185 return currentRdsStatus.resp.RDSSYNCFOUND;
2197 return currentRdsStatus.resp.RDSNEWBLOCKA;
2208 return currentRdsStatus.resp.RDSNEWBLOCKB;
2219 return currentRdsStatus.resp.RDSSYNC;
2230 return currentRdsStatus.resp.GRPLOST;
2241 return currentRdsStatus.resp.RDSFIFOUSED;
2308 getRdsStatus(0, 0, 0);
2319 getRdsStatus(0, 1, 0);
2330 getRdsStatus(1, 0, 0);
2333 void setRdsConfig(uint8_t RDSEN, uint8_t BLETHA, uint8_t BLETHB, uint8_t BLETHC, uint8_t BLETHD);
2352 void setSSBConfig(uint8_t AUDIOBW, uint8_t SBCUTFLT, uint8_t AVC_DIVIDER, uint8_t AVCEN, uint8_t SMUTESEL, uint8_t DSP_AFCDIS);
2353 void setSSB(uint16_t fromFreq, uint16_t toFreq, uint16_t intialFreq, uint16_t step, uint8_t usblsb);
2354 void setSSB(uint8_t usblsb);
2363 void setNBFM(uint16_t fromFreq, uint16_t toFreq, uint16_t initialFreq, uint16_t step);
2365 void loadPatchNBFM(
const uint8_t *patch_content,
const uint16_t patch_content_size);
2370 bool downloadPatch(
const uint8_t *ssb_patch_content,
const uint16_t ssb_patch_content_size);
2371 bool downloadCompressedPatch(
const uint8_t *ssb_patch_content,
const uint16_t ssb_patch_content_size,
const uint16_t *cmd_0x15,
const int16_t cmd_0x15_size);
2372 void loadPatch(
const uint8_t *ssb_patch_content,
const uint16_t ssb_patch_content_size, uint8_t ssb_audiobw = 1);
2388 this->maxDelayAfterPouwerUp = ms;
2404 this->maxDelaySetFrequency = ms;
2434 this->currentStep = step;
2450 return this->currentWorkFrequency;
2481 Wire.setClock(10000);
2498 Wire.setClock(400000);
2526 audioMuteMcuPin = pin;
2527 pinMode(audioMuteMcuPin, OUTPUT);
2542 digitalWrite(audioMuteMcuPin, on);
2543 delayMicroseconds(300);
void setGpioIen(uint8_t STCIEN, uint8_t RSQIEN, uint8_t ERRIEN, uint8_t CTSIEN, uint8_t STCREP, uint8_t RSQREP)
Configures the sources for the GPO2/INT interrupt pin.
Definition: SI4735.cpp:195
uint8_t getRdsProgramType(void)
Returns the Program Type (extracted from the Block B)
Definition: SI4735.cpp:2227
#define SSB_SOFT_MUTE_MAX_ATTENUATION
Definition: SI4735.h:163
uint8_t currentSsbStatus
Definition: SI4735.h:1096
void setRefClockPrescaler(uint16_t prescale, uint8_t rclk_sel=0)
Sets the number used by the prescaler to divide the external RCLK down to the internal REFCLK.
Definition: SI4735.cpp:535
#define SEEK_DOWN
Definition: SI4735.h:190
si47x_status getStatusResponse()
Gets the first byte response.
Definition: SI4735.cpp:1545
#define FM_BLEND_RSSI_STEREO_THRESHOLD
Definition: SI4735.h:57
bool downloadPatch(const uint8_t *ssb_patch_content, const uint16_t ssb_patch_content_size)
Transfers the content of a patch stored in a array of bytes to the SI4735 device.
Definition: SI4735.cpp:2996
si47x_frequency currentFrequency
data structure to get current frequency
Definition: SI4735.h:1082
void setMaxDelayPowerUp(uint16_t ms)
Set the Max Delay Power Up.
Definition: SI4735.h:2386
#define FM_TUNE_STATUS
Definition: SI4735.h:42
void patchPowerUp()
This method can be used to prepare the device to apply SSBRX patch.
Definition: SI4735.cpp:2922
void seekStationUp()
Search for the next station.
Definition: SI4735.h:2104
#define AM_NB_INTERVAL
Definition: SI4735.h:143
uint8_t lastMode
Stores the last mode used.
Definition: SI4735.h:1071
#define MAX_DELAY_AFTER_SET_FREQUENCY
Definition: SI4735.h:192
void setProperty(uint16_t propertyNumber, uint16_t param)
Sets a given SI47XX device property.
Definition: SI4735.h:1148
#define SSB_BFO
Definition: SI4735.h:155
uint16_t refClockPrescale
Prescaler for Reference Clock (divider).
Definition: SI4735.h:1079
bool isCurrentTuneAM()
Returns true if the current function is AM (AM_TUNE_FREQ).
Definition: SI4735.h:1976
#define NBFM_TUNE_FREQ
Definition: SI4735.h:75
void setFmStereoOn()
Turn Off Stereo operation.
Definition: SI4735.cpp:1747
void setFmStereoOff()
Turn Off Stereo operation.
Definition: SI4735.cpp:1737
char rds_time[20]
RDS date time received information.
Definition: SI4735.h:1044
void setFM(uint16_t fromFreq, uint16_t toFreq, uint16_t initialFreq, uint16_t step)
Sets the radio to FM function.
Definition: SI4735.cpp:840
void setSeekFmSpacing(uint16_t spacing)
Selects frequency spacingfor FM seek. Default is 100 kHz (value 10) spacing. There are only 3 valid v...
Definition: SI4735.cpp:1391
#define POWER_UP
Definition: SI4735.h:32
uint8_t getRdsGroupType(void)
Returns the Group Type (extracted from the Block B)
Definition: SI4735.cpp:2153
char * getRdsText0A(void)
Gets the station name and other messages.
Definition: SI4735.cpp:2339
void setSsbAgcOverrite(uint8_t SSBAGCDIS, uint8_t SSBAGCNDX)
Automatic Gain Control setup.
Definition: SI4735.cpp:2835
uint8_t getCurrentRSSI()
Get the current receive signal strength (0–127 dBμV)
Definition: SI4735.h:1430
void setSeekFmSrnThreshold(uint16_t value)
Sets the SNR threshold for a valid FM Seek/Tune.
Definition: SI4735.cpp:1421
uint8_t getReceivedSignalStrengthIndicator()
Returns the value of Received Signal Strength Indicator (dBμV).
Definition: SI4735.h:1270
uint8_t refClockSourcePin
0 = RCLK pin is clock source; 1 = DCLK pin is clock source.
Definition: SI4735.h:1080
void setAvcAmMaxGain(uint8_t gain)
Sets the maximum gain for automatic volume control.
Definition: SI4735.cpp:1072
unsigned long maxSeekTime
Stores the maximum time (ms) for a seeking process. Defines the maximum seeking time.
Definition: SI4735.h:1058
#define GPO_IEN
Definition: SI4735.h:154
void setSsbAgcAttackRate(uint16_t parameter)
Sets the AGC attack rate on SSB mode.
Definition: SI4735.h:1896
#define AM_CURRENT_MODE
Definition: SI4735.h:185
uint8_t getVolume()
Gets the current volume level.
Definition: SI4735.cpp:1867
#define AM_TUNE_FREQ
Definition: SI4735.h:95
uint8_t getFirmwarePATCHL()
Returns the Firmware P A T C H LOW.
Definition: SI4735.h:1659
char rds_buffer2B[33]
RDS Radio Text buffer - Station Informaation.
Definition: SI4735.h:1042
void setHardwareAudioMute(bool on)
Sets the Hardware Audio Mute.
Definition: SI4735.h:2540
void setNBFM()
Set the radio to FM function.
Definition: SI4735.cpp:3286
void setVolumeDown()
Set the Volume Down.
Definition: SI4735.h:1719
bool isCurrentTuneFM()
Definition: SI4735.h:1964
#define XOSCEN_CRYSTAL
Definition: SI4735.h:197
uint16_t getRdsPI(void)
Returns the programa type.
Definition: SI4735.cpp:2137
uint16_t raw
Definition: SI4735.h:986
#define FM_AGC_STATUS
Definition: SI4735.h:43
si47x_response_status currentStatus
current device status
Definition: SI4735.h:1085
bool getEndIndicatorGroupA()
Check if 0xD or 0xA special characters were received for group A.
Definition: SI4735.h:2261
uint16_t word
Definition: SI4735.h:611
void setGpio(uint8_t GPO1LEVEL, uint8_t GPO2LEVEL, uint8_t GPO3LEVEL)
Sets the output level (high or low) for GPO1, 2, and 3.
Definition: SI4735.cpp:158
uint8_t currentAvcAmMaxGain
Stores the current Automatic Volume Control Gain for AM. Default value is 48.
Definition: SI4735.h:1073
uint8_t raw[6]
Definition: SI4735.h:863
void setAMSoftMuteReleaseRate(uint8_t parameter)
Sets the soft mute release rate.
Definition: SI4735.h:1844
bool getCurrentMultipathDetectHigh()
Gets the Current Multipath Detect High.
Definition: SI4735.h:1592
bool getSignalQualityInterrupt()
Get the Signal Quality Interrupt status.
Definition: SI4735.h:1180
void setFrequencyUp()
Set the FrequencyUp.
Definition: SI4735.h:2067
void resetEndIndicatorGroupA()
Resets 0xD or 0xA special characters condition (makes it false)
Definition: SI4735.h:2270
#define SSB_RF_AGC_ATTACK_RATE
Definition: SI4735.h:165
uint16_t getFrequency(void)
Gets the current frequency of the Si4735 (AM or FM)
Definition: SI4735.cpp:916
#define AM_AGC_RELEASE_RATE
Definition: SI4735.h:140
bool getCurrentSnrDetectHigh()
Checks if SNR detect is high.
Definition: SI4735.h:1485
void setSeekAmSpacing(uint16_t spacing)
Selects frequency spacingfor AM seek. Default is 10 kHz spacing.
Definition: SI4735.cpp:1377
#define FM_RDS_STATUS
Definition: SI4735.h:46
uint8_t raw[5]
Definition: SI4735.h:337
si47x_rqs_status currentRqsStatus
current Radio SIgnal Quality status
Definition: SI4735.h:1084
uint8_t raw[2]
Definition: SI4735.h:710
void setSsbAgcReleaseRate(uint16_t parameter)
Sets the AGC Release rate on SSB mode.
Definition: SI4735.h:1909
#define AM_AGC_OVERRIDE
Definition: SI4735.h:100
uint8_t raw[2]
Definition: SI4735.h:740
void setFM()
Sets the radio to FM function.
Definition: SI4735.cpp:772
void setAMFrontEndAgcControl(uint8_t MIN_GAIN_INDEX, uint8_t ATTN_BACKUP)
Adjusts the AM AGC for external front-end attenuator and external front-end cascode LNA.
Definition: SI4735.h:1928
uint8_t getCurrentMultipath()
Gets the current Multipath.
Definition: SI4735.h:1559
uint8_t raw
Definition: SI4735.h:531
#define FM_SEEK_TUNE_SNR_THRESHOLD
Definition: SI4735.h:70
uint8_t getFirmwareCHIPREV()
RESP8 - Returns the Chip Revision (ASCII)
Definition: SI4735.h:1689
void setVolume(uint8_t volume)
Sets volume level (0 to 63)
Definition: SI4735.cpp:1833
#define AM_NB_IIR_FILTER
Definition: SI4735.h:145
uint8_t getRdsTextSegmentAddress(void)
Returns the address of the text segment.
Definition: SI4735.cpp:2192
void seekStationProgress(void(*showFunc)(uint16_t f), uint8_t up_down)
Seeks a station up or down.
Definition: SI4735.cpp:1256
#define SSB_AGC_OVERRIDE
Definition: SI4735.h:110
#define NBFM_CURRENT_MODE
Definition: SI4735.h:187
uint8_t raw
Definition: SI4735.h:399
void powerDown(void)
Moves the device from powerup to powerdown mode.
Definition: SI4735.cpp:452
bool getACFIndicator()
Returns true if the AFC rails (AFC Rail Indicator).
Definition: SI4735.h:1232
void getCurrentReceivedSignalQuality(void)
Queries the status of the Received Signal Quality (RSQ) of the current channel (FM_RSQ_STATUS)
Definition: SI4735.cpp:1145
void waitToSend(void)
Wait for the si473x is ready (Clear to Send (CTS) status bit have to be 1).
Definition: SI4735.cpp:316
si47x_status getInterruptStatus()
Updates bits 6:0 of the status byte.
Definition: SI4735.cpp:83
#define FM_BLEND_SNR_MONO_THRESHOLD
Definition: SI4735.h:60
void setFmBlendRssiStereoThreshold(uint8_t parameter)
Sets RSSI threshold for stereo blend. (Full stereo above threshold, blend below threshold....
Definition: SI4735.cpp:1647
uint8_t getTuneFrequecyFreeze()
Returns the FREEZE status.
Definition: SI4735.h:2040
void patchPowerUpNBFM()
This method can be used to prepare the device to apply NBFM patch.
Definition: SI4735.cpp:3243
void setDeviceOtherI2CAddress(uint8_t i2cAddr)
Sets the onther I2C Bus Address (for Si470X)
Definition: SI4735.cpp:283
void seekPreviousStation()
Search the previous station.
Definition: SI4735.cpp:1219
void rdsClearInterrupt()
Clears RDSINT.
Definition: SI4735.h:2328
uint8_t getAgcGainIndex()
Gets the current AGC gain index.
Definition: SI4735.h:1412
void setAMSoftMuteSnrThreshold(uint8_t parameter)
Sets the SNR threshold to engage soft mute.
Definition: SI4735.h:1831
void digitalOutputFormat(uint8_t OSIZE, uint8_t OMONO, uint8_t OMODE, uint8_t OFALL)
Configures the digital audio output format.
Definition: SI4735.cpp:1795
#define FM_BLEND_RSSI_MONO_THRESHOLD
Definition: SI4735.h:58
#define FM_CURRENT_MODE
Definition: SI4735.h:184
bool getRdsReceived()
Get the Rds Received FIFO.
Definition: SI4735.h:2161
void frequencyUp()
Increments the current frequency on current band/function by using the current step.
Definition: SI4735.cpp:708
si47x_rds_status currentRdsStatus
current RDS status
Definition: SI4735.h:1087
void setAudioMuteMcuPin(int8_t pin)
Sets the Audio Mute Mcu Pin.
Definition: SI4735.h:2524
uint8_t getCurrentSignedFrequencyOffset()
Gets the Signed frequency offset (kHz).
Definition: SI4735.h:1570
void sendCommand(uint8_t cmd, int parameter_size, const uint8_t *parameter)
Sends a given command to the SI47XX devices.
Definition: SI4735.cpp:1503
si47x_ssb_mode currentSSBMode
indicates if USB or LSB
Definition: SI4735.h:1089
void setSsbSoftMuteMaxAttenuation(uint8_t smattn=0)
Sets the SSB Soft Mute Max Attenuation object.
Definition: SI4735.h:1390
int8_t audioMuteMcuPin
Definition: SI4735.h:1097
#define GPIO_SET
Definition: SI4735.h:102
void setTuneFrequencyAntennaCapacitor(uint16_t capacitor)
Selects the tuning capacitor value.
Definition: SI4735.cpp:630
#define AM_SEEK_BAND_BOTTOM
Definition: SI4735.h:134
uint8_t getRdsFlagAB(void)
Returns the current Text Flag A/B
Definition: SI4735.cpp:2170
void setAmSoftMuteMaxAttenuation(uint8_t smattn=0)
Sets the Am Soft Mute Max Attenuation.
Definition: SI4735.h:1360
bool getCurrentAfcRailIndicator()
AFC Rail Indicator.
Definition: SI4735.h:1507
void analogPowerUp(void)
You have to call setPowerUp method before.
Definition: SI4735.cpp:437
uint8_t getFirmwarePN()
Returns the Firmware Part Number.
Definition: SI4735.h:1619
uint16_t value
frequency (integer value)
Definition: SI4735.h:300
void getAutomaticGainControl()
Queries Automatic Gain Control STATUS.
Definition: SI4735.cpp:986
bool getCurrentRssiDetectLow()
Checks if RSSI detected is LOW.
Definition: SI4735.h:1452
uint8_t gpo2Enable
Definition: SI4735.h:1076
bool getEndIndicatorGroupB()
Check if 0xD or 0xA special characters were received for group B.
Definition: SI4735.h:2280
void setSSBSoftMute(uint8_t SMUTESEL)
Sets SSB Soft-mute Based on RSSI or SNR Selection:
Definition: SI4735.cpp:2627
uint8_t ANTCAPH
Definition: SI4735.h:376
#define AM_SOFT_MUTE_RELEASE_RATE
Definition: SI4735.h:132
int16_t deviceAddress
Stores the current I2C bus address.
Definition: SI4735.h:1053
void setMaxDelaySetFrequency(uint16_t ms)
Set the Max Delay after Set Frequency.
Definition: SI4735.h:2402
void setSSBConfig(uint8_t AUDIOBW, uint8_t SBCUTFLT, uint8_t AVC_DIVIDER, uint8_t AVCEN, uint8_t SMUTESEL, uint8_t DSP_AFCDIS)
Sets the SSB receiver mode.
Definition: SI4735.cpp:2587
#define SSB_TUNE_FREQ
Definition: SI4735.h:106
#define DIGITAL_OUTPUT_SAMPLE_RATE
Definition: SI4735.h:115
bool getCurrentValidChannel()
Checks if the current channel is valid.
Definition: SI4735.h:1496
void setAM()
Sets the radio to AM function. It means: LW MW and SW.
Definition: SI4735.cpp:747
void ssbPowerUp()
This function can be useful for debug and test.
Definition: SI4735.cpp:2938
#define MAX_DELAY_AFTER_POWERUP
Definition: SI4735.h:193
#define AM_SOFT_MUTE_ATTACK_RATE
Definition: SI4735.h:133
void setFrequencyStep(uint16_t step)
Sets the current step value.
Definition: SI4735.h:2432
void clearRdsBuffer2A()
Clear RDS buffer 2A (text)
Definition: SI4735.cpp:1932
#define FM_BLEND_STEREO_THRESHOLD
Definition: SI4735.h:55
uint16_t getCurrentFrequency()
Gets the current frequency saved in memory.
Definition: SI4735.h:2448
bool getRdsNewBlockA()
Get the Rds New Block A.
Definition: SI4735.h:2195
uint8_t getStatusSNR()
Gets the SNR metric when tune is complete (dB)
Definition: SI4735.h:1283
void setAMSoftMuteRate(uint8_t parameter)
Sets the attack and decay rates when entering or leaving soft mute.
Definition: SI4735.h:1816
void setMaxSeekTime(long time_in_ms)
Sets the maximum time in milliseconds for seeking. The default value is 8000ms (8s).
Definition: SI4735.h:2091
void setAMSoftMuteSlop(uint8_t parameter)
Sets the AM attenuation slope during soft mute.
Definition: SI4735.h:1801
void loadPatch(const uint8_t *ssb_patch_content, const uint16_t ssb_patch_content_size, uint8_t ssb_audiobw=1)
Loads a given SSB patch content.
Definition: SI4735.cpp:3094
void getStatus(uint8_t, uint8_t)
Gets the current status of the Si4735 (AM or FM)
Definition: SI4735.cpp:938
void setFmBlendMonoThreshold(uint8_t parameter)
Sets RSSI threshold for mono blend (Full mono below threshold, blend above threshold).
Definition: SI4735.cpp:1631
uint16_t currentMinimumFrequency
minimum frequency of the current band
Definition: SI4735.h:1065
void seekStationProgress(void(*showFunc)(uint16_t f), bool(*stopSeking)(), uint8_t up_down)
Seeks a station up or down.
Definition: SI4735.cpp:1311
uint8_t volume
Stores the current vlume setup (0-63).
Definition: SI4735.h:1093
void volumeDown()
Set sound volume level Down
Definition: SI4735.cpp:1893
bool getBandLimit()
Returns true if a seek hit the band limit.
Definition: SI4735.h:1245
void setFmBlendMultiPathStereoThreshold(uint8_t parameter)
Sets multipath threshold for stereo blend (Full stereo below threshold, blend above threshold).
Definition: SI4735.cpp:1711
void setup(uint8_t resetPin, uint8_t ctsIntEnable, uint8_t defaultFunction, uint8_t audioMode=SI473X_ANALOG_AUDIO, uint8_t clockType=XOSCEN_CRYSTAL, uint8_t gpo2Enable=0)
Starts the Si473X device.
Definition: SI4735.cpp:561
uint8_t getFirmwarePATCHH()
Returns the Firmware P A T C H HIGH.
Definition: SI4735.h:1649
int rdsTextAdress2B
rds_buffer2B current position
Definition: SI4735.h:1047
int rdsTextAdress2A
rds_buffer2A current position
Definition: SI4735.h:1046
SI4735()
Construct a new SI4735::SI4735.
Definition: SI4735.cpp:60
void setAMSoftMuteAttackRate(uint16_t parameter)
Sets the soft mute attack rate.
Definition: SI4735.h:1857
uint8_t raw[2]
Raw powerup parameters data. Same arg memory position. So, same content.
Definition: SI4735.h:235
char * getRdsTime(void)
Gets the RDS time and date when the Group type is 4.
Definition: SI4735.cpp:2439
void setRdsIntSource(uint8_t RDSRECV, uint8_t RDSSYNCLOST, uint8_t RDSSYNCFOUND, uint8_t RDSNEWBLOCKA, uint8_t RDSNEWBLOCKB)
Configures interrupt related to RDS.
Definition: SI4735.cpp:2044
#define FM_RDS_INT_SOURCE
Definition: SI4735.h:49
uint8_t raw
Definition: SI4735.h:257
uint8_t raw
Definition: SI4735.h:631
#define MAX_SEEK_TIME
Definition: SI4735.h:195
#define FM_DEEMPHASIS
Definition: SI4735.h:54
void setPowerUp(uint8_t CTSIEN, uint8_t GPO2OEN, uint8_t PATCH, uint8_t XOSCEN, uint8_t FUNC, uint8_t OPMODE)
Set the Power Up parameters for si473X.
Definition: SI4735.cpp:346
#define SI473X_ADDR_SEN_LOW
Definition: SI4735.h:29
void setAM(uint16_t fromFreq, uint16_t toFreq, uint16_t intialFreq, uint16_t step)
Sets the radio to AM (LW/MW/SW) function.
Definition: SI4735.cpp:802
#define AM_SEEK_FREQ_SPACING
Definition: SI4735.h:136
#define AM_SOFT_MUTE_SNR_THRESHOLD
Definition: SI4735.h:131
uint16_t maxDelayAfterPouwerUp
Stores the maximum delay you have to setup after a power up command (in ms).
Definition: SI4735.h:1057
void setSSBAudioBandwidth(uint8_t AUDIOBW)
SSB Audio Bandwidth for SSB mode.
Definition: SI4735.cpp:2706
si47x_set_frequency currentFrequencyParams
Definition: SI4735.h:1083
void setSBBSidebandCutoffFilter(uint8_t SBCUTFLT)
Sets SBB Sideband Cutoff Filter for band pass and low pass filters.
Definition: SI4735.cpp:2676
#define DIGITAL_OUTPUT_FORMAT
Definition: SI4735.h:114
void setAmAgcReleaseRate(uint16_t parameter)
Sets the AGC release rate.
Definition: SI4735.h:1883
void rdsClearFifo()
Empty FIFO.
Definition: SI4735.h:2317
void getSsbAgcStatus()
Queries SSB Automatic Gain Control STATUS.
Definition: SI4735.cpp:2808
bool rdsEndGroupA
Definition: SI4735.h:1050
void setFmBLendSnrMonoThreshold(uint8_t parameter)
Sets SNR threshold for mono blend (Full mono below threshold, blend above threshold).
Definition: SI4735.cpp:1695
char * getRdsText2A(void)
Gets the Text processed for the 2A group.
Definition: SI4735.cpp:2372
#define NBFM_RSQ_STATUS
Definition: SI4735.h:77
void setFrequencyNBFM(uint16_t freq)
Set the frequency to the corrent function of the Si4735 on NBFM mode.
Definition: SI4735.cpp:3345
void setRdsConfig(uint8_t RDSEN, uint8_t BLETHA, uint8_t BLETHB, uint8_t BLETHC, uint8_t BLETHD)
Sets RDS property.
Definition: SI4735.cpp:1998
void setFmBlendSnrStereoThreshold(uint8_t parameter)
Sets SNR threshold for stereo blend (Full stereo above threshold, blend below threshold).
Definition: SI4735.cpp:1679
void setSeekAmRssiThreshold(uint16_t value)
Sets the RSSI threshold for a valid AM Seek/Tune.
Definition: SI4735.cpp:1435
uint8_t ANTCAPL
Definition: SI4735.h:377
void seekNextStation()
Search for the next station.
Definition: SI4735.cpp:1204
#define SSB_AGC_STATUS
Definition: SI4735.h:109
uint8_t raw[13]
Definition: SI4735.h:686
bool isAgcEnabled()
Checks if the AGC is enabled.
Definition: SI4735.h:1401
SI4735 Class.
Definition: SI4735.h:1038
uint8_t resetPin
pin used on Arduino Board to RESET the Si47XX device
Definition: SI4735.h:1061
void resetEndIndicatorGroupB()
Resets 0xD or 0xA special characters condition (makes it false)
Definition: SI4735.h:2290
bool getCurrentRssiDetectHigh()
Checks if RSSI detected is high.
Definition: SI4735.h:1463
uint8_t raw[32]
Definition: SI4735.h:1005
bool getRdsSync()
Get the Rds Sync.
Definition: SI4735.h:2217
#define AM_TUNE_STATUS
Definition: SI4735.h:97
uint8_t ARG2
Definition: SI4735.h:374
void setup(uint8_t resetPin, uint8_t defaultFunction)
Starts the Si473X device.
Definition: SI4735.cpp:601
void setSSB(uint8_t usblsb)
Set the radio to AM function.
Definition: SI4735.cpp:2729
uint8_t raw
Definition: SI4735.h:360
#define SI473X_ADDR_SEN_HIGH
Definition: SI4735.h:30
uint16_t refClock
Frequency of Reference Clock in Hz.
Definition: SI4735.h:1078
int16_t getDeviceI2CAddress(uint8_t resetPin)
I2C bus address setup.
Definition: SI4735.cpp:224
void setSeekFmRssiThreshold(uint16_t value)
Sets the RSSI threshold for a valid FM Seek/Tune.
Definition: SI4735.cpp:1449
void seekStationDown()
Search the previous station.
Definition: SI4735.h:2117
uint8_t raw[2]
Definition: SI4735.h:915
bool getStatusCTS()
Gets the Error flag Clear to Send.
Definition: SI4735.h:1224
bool getGroupLost()
Get the Group Lost.
Definition: SI4735.h:2228
#define FM_RDS_INT_FIFO_COUNT
Definition: SI4735.h:50
#define NBFM_AGC_OVERRIDE
Definition: SI4735.h:79
bool isCurrentTuneSSB()
Returns true if the current function is SSB (SSB_TUNE_FREQ).
Definition: SI4735.h:1988
uint8_t getFirmwareCMPMAJOR()
Get the Firmware C M P M A J O R object.
Definition: SI4735.h:1669
void getCurrentReceivedSignalQuality(uint8_t INTACK)
Queries the status of the Received Signal Quality (RSQ) of the current channel.
Definition: SI4735.cpp:1094
void setAudioMode(uint8_t audioMode)
Sets the Audio Mode. See table below.
Definition: SI4735.h:1739
void setSeekFmLimits(uint16_t bottom, uint16_t top)
Sets the bottom frequency and top frequency of the FM band for seek. Default is 8750 to 10790.
Definition: SI4735.cpp:1362
void getNext4Block(char *)
Process data received from group 2A.
Definition: SI4735.cpp:2279
#define NBFM_AGC_STATUS
Definition: SI4735.h:78
void setSSB(uint16_t fromFreq, uint16_t toFreq, uint16_t intialFreq, uint16_t step, uint8_t usblsb)
Definition: SI4735.cpp:2761
#define AM_SEEK_START
Definition: SI4735.h:96
uint16_t value
Definition: SI4735.h:314
bool getStatusError()
Get the Status Error.
Definition: SI4735.h:1213
#define AM_SOFT_MUTE_SLOPE
Definition: SI4735.h:129
#define AM_NB_RATE
Definition: SI4735.h:144
void setSSBAutomaticVolumeControl(uint8_t AVCEN)
Sets SSB Automatic Volume Control (AVC) for SSB mode.
Definition: SI4735.cpp:2642
void setFrequencyDown()
Set the Frequency Down.
Definition: SI4735.h:2075
uint8_t raw[3]
Definition: SI4735.h:893
char rds_buffer2A[65]
RDS Radio Text buffer - Program Information.
Definition: SI4735.h:1041
#define AM_FRONTEND_AGC_CONTROL
Definition: SI4735.h:141
void reset(void)
Reset the SI473X
Definition: SI4735.cpp:297
#define REFCLK_PRESCALE
Definition: SI4735.h:117
#define RX_HARD_MUTE
Definition: SI4735.h:149
si47x_firmware_query_library queryLibraryId()
Query the library information of the Si47XX device.
Definition: SI4735.cpp:2881
uint8_t ARG3
Definition: SI4735.h:375
bool getCurrentMultipathDetectLow()
Get Multipath Detect Low.
Definition: SI4735.h:1581
#define SET_PROPERTY
Definition: SI4735.h:35
uint8_t getRdsVersionCode(void)
Gets the version code (extracted from the Block B)
Definition: SI4735.cpp:2208
void setSeekAmSrnThreshold(uint16_t value)
Sets the SNR threshold for a valid AM Seek/Tune.
Definition: SI4735.cpp:1405
#define FM_SEEK_FREQ_SPACING
Definition: SI4735.h:69
#define AM_AGC_ATTACK_RATE
Definition: SI4735.h:139
#define FM_BLEND_SNR_STEREO_THRESHOLD
Definition: SI4735.h:59
#define NBFM_TUNE_STATUS
Definition: SI4735.h:76
char * getRdsText2B(void)
Gets the Text processed for the 2B group.
Definition: SI4735.cpp:2405
void getRdsStatus(uint8_t INTACK, uint8_t MTFIFO, uint8_t STATUSONLY)
Gets the RDS status. Store the status in currentRdsStatus member. RDS COMMAND FM_RDS_STATUS.
Definition: SI4735.cpp:2086
#define GET_PROPERTY
Definition: SI4735.h:36
uint16_t maxDelaySetFrequency
Stores the maximum delay after set frequency command (in ms).
Definition: SI4735.h:1056
#define FM_BLEND_MONO_THRESHOLD
Definition: SI4735.h:56
#define FM_SEEK_BAND_BOTTOM
Definition: SI4735.h:67
#define FM_TUNE_FREQ
Definition: SI4735.h:40
bool getRadioDataSystemInterrupt()
Get the Radio Data System (RDS) Interrupt status.
Definition: SI4735.h:1191
void setGpioCtl(uint8_t GPO1OEN, uint8_t GPO2OEN, uint8_t GPO3OEN)
Enables output for GPO1, 2, and 3.
Definition: SI4735.cpp:119
void sendProperty(uint16_t propertyNumber, uint16_t param)
Sends (sets) property to the SI47XX.
Definition: SI4735.cpp:1471
#define SSB_MODE
Definition: SI4735.h:156
void clearRdsBuffer2B()
Clear RDS buffer 2B (text)
Definition: SI4735.cpp:1945
#define AM_AGC_STATUS
Definition: SI4735.h:99
void clearRdsBuffer0A()
Clear RDS buffer 0A (text)
Definition: SI4735.cpp:1957
si47x_agc_status currentAgcStatus
current AGC status
Definition: SI4735.h:1088
void setDeviceI2CAddress(uint8_t senPin)
Sets the I2C Bus Address.
Definition: SI4735.cpp:269
uint8_t currentTune
tell the current tune (FM, AM or SSB)
Definition: SI4735.h:1063
void getStatus()
Gets the current status of the Si47XX (AM, FM or SSB)
Definition: SI4735.h:2460
void setFmBlendMultiPathMonoThreshold(uint8_t parameter)
Sets Multipath threshold for mono blend (Full mono above threshold, blend below threshold).
Definition: SI4735.cpp:1727
#define FM_SEEK_BAND_TOP
Definition: SI4735.h:68
uint8_t getFirmwareCMPMINOR()
RESP6 - Returns the Component Major Revision (ASCII).
Definition: SI4735.h:1679
#define SSB_RF_AGC_RELEASE_RATE
Definition: SI4735.h:166
#define AM_SEEK_BAND_TOP
Definition: SI4735.h:135
void radioPowerUp(void)
Powerup the Si47XX.
Definition: SI4735.cpp:402
uint8_t raw[8]
Check it.
Definition: SI4735.h:441
#define GET_REV
Definition: SI4735.h:33
void setAutomaticGainControl(uint8_t AGCDIS, uint8_t AGCIDX)
Automatic Gain Control setup.
Definition: SI4735.cpp:1031
uint8_t raw[2]
Definition: SI4735.h:964
#define AM_SOFT_MUTE_MAX_ATTENUATION
Definition: SI4735.h:130
void setAudioMute(bool off)
Sets the audio on or off.
Definition: SI4735.cpp:1850
uint8_t getCurrentAvcAmMaxGain()
Get the current Avc Am Max Gain.
Definition: SI4735.h:1344
void setTuneFrequencyFreze(uint8_t FREEZE)
Sets Freeze Metrics During Alternate Frequency Jum.
Definition: SI4735.h:2051
void RdsInit()
Starts the control member variables for RDS.
Definition: SI4735.cpp:1918
uint8_t raw[9]
Definition: SI4735.h:475
void disableFmDebug()
There is a debug feature that remains active in Si4704/05/3x-D60 firmware which can create periodic n...
Definition: SI4735.cpp:1762
uint16_t currentStep
Stores the current step used to increment or decrement the frequency.
Definition: SI4735.h:1069
si4735_eeprom_patch_header downloadPatchFromEeprom(int eeprom_i2c_address)
Transfers the content of a patch stored in an eeprom to the SI4735 device.
Definition: SI4735.cpp:3124
uint8_t raw[8]
Definition: SI4735.h:511
uint8_t lastTextFlagAB
Definition: SI4735.h:1060
uint8_t getFirmwareFWMINOR()
Returns the Firmware F W M I N O R.
Definition: SI4735.h:1639
uint8_t currentAudioMode
Current audio mode used (ANALOG or DIGITAL or both)
Definition: SI4735.h:1095
void setFMDeEmphasis(uint8_t parameter)
Sets the FM Receive de-emphasis to 50 or 75 μs.
Definition: SI4735.h:1772
void setAMDeEmphasis(uint8_t parameter)
Sets the AM Receive de-emphasis to 50 or disable.
Definition: SI4735.h:1785
void setVolumeUp()
Set the Volume Up.
Definition: SI4735.h:1712
void seekStation(uint8_t SEEKUP, uint8_t WRAP)
Look for a station (Automatic tune)
Definition: SI4735.cpp:1161
bool rdsEndGroupB
Definition: SI4735.h:1051
#define FM_SEEK_TUNE_RSSI_THRESHOLD
Definition: SI4735.h:71
uint8_t getFirmwareFWMAJOR()
Returns the Firmware F W M A J O R.
Definition: SI4735.h:1629
#define SEEK_UP
Definition: SI4735.h:189
void setFmBLendRssiMonoThreshold(uint8_t parameter)
Sets RSSI threshold for mono blend (Full mono below threshold, blend above threshold).
Definition: SI4735.cpp:1663
void setI2CFastMode(void)
Sets I2C bus to 400kHz.
Definition: SI4735.h:2496
#define AM_RSQ_STATUS
Definition: SI4735.h:98
si473x_powerup powerUp
Definition: SI4735.h:1091
uint16_t currentMaximumFrequency
maximum frequency of the current band
Definition: SI4735.h:1066
bool downloadCompressedPatch(const uint8_t *ssb_patch_content, const uint16_t ssb_patch_content_size, const uint16_t *cmd_0x15, const int16_t cmd_0x15_size)
Same downloadPatch.
Definition: SI4735.cpp:3053
void setAmNoiseBlank(uint16_t nb_rate=64, uint16_t nb_interval=55, uint16_t nb_irr_filter=300)
Set the Am Noise Blank.
Definition: SI4735.h:1952
uint8_t getCurrentStereoBlend()
Gets the value of the amount of stereo blend in % (100 = full stereo, 0 = full mono).
Definition: SI4735.h:1533
#define FM_CHANNEL_FILTER
Definition: SI4735.h:63
void setAvcAmMaxGain()
Sets the Avc Am Max Gain to 48dB.
Definition: SI4735.h:1331
uint8_t raw[8]
Definition: SI4735.h:596
#define AM_NB_DELAY
Definition: SI4735.h:146
#define AM_DEEMPHASIS
Definition: SI4735.h:118
char * getRdsText(void)
Gets the RDS Text when the message is of the Group Type 2 version A.
Definition: SI4735.cpp:2315
#define FM_RSQ_STATUS
Definition: SI4735.h:45
int rdsTextAdress0A
rds_buffer0A current position
Definition: SI4735.h:1048
void setI2CStandardMode(void)
Sets I2C bus to 100kHz.
Definition: SI4735.h:2489
bool getStatusValid()
Gets the channel status.
Definition: SI4735.h:1259
void setI2CLowSpeedMode(void)
Sets I2C bus to 10kHz.
Definition: SI4735.h:2479
uint8_t ctsIntEnable
Definition: SI4735.h:1075
void setNBFM(uint16_t fromFreq, uint16_t toFreq, uint16_t initialFreq, uint16_t step)
Definition: SI4735.cpp:3317
#define FM_AGC_OVERRIDE
Definition: SI4735.h:44
uint16_t value
Definition: SI4735.h:548
void setFifoCount(uint16_t value)
Sets the minimum number of RDS groups stored in the RDS FIFO before RDSRECV is set.
Definition: SI4735.h:2250
#define FM_BLEND_MULTIPATH_MONO_THRESHOLD
Definition: SI4735.h:62
#define FM_SEEK_START
Definition: SI4735.h:41
void getRdsStatus()
Gets RDS Status.
Definition: SI4735.h:2306
void volumeUp()
Set sound volume level Up
Definition: SI4735.cpp:1879
uint8_t getNumRdsFifoUsed()
Get the Num Rds Fifo Used.
Definition: SI4735.h:2239
uint16_t raw
Definition: SI4735.h:284
void setFmBandwidth(uint8_t filter_value=0)
Sets the Bandwith on FM mode.
Definition: SI4735.h:2008
si47x_firmware_information firmwareInfo
firmware information
Definition: SI4735.h:1086
bool getRdsNewBlockB()
Get the Rds New Block B.
Definition: SI4735.h:2206
uint16_t getAntennaTuningCapacitor()
Get the Antenna Tuning Capacitor value.
Definition: SI4735.h:1310
void digitalOutputSampleRate(uint16_t DOSR)
Enables digital audio output and configures digital audio output sample rate in samples per second (s...
Definition: SI4735.cpp:1819
#define AM_SOFT_MUTE_RATE
Definition: SI4735.h:128
void getNext2Block(char *)
Process data received from group 2B.
Definition: SI4735.cpp:2244
uint8_t getStatusMULT()
Get the Status the M U L T.
Definition: SI4735.h:1296
int32_t getProperty(uint16_t propertyValue)
Gets a given property from the SI47XX.
Definition: SI4735.cpp:1571
void setAmAgcAttackRate(uint16_t parameter)
Sets the AGC attack rate.
Definition: SI4735.h:1870
void getFirmware(void)
Gets firmware information.
Definition: SI4735.cpp:474
#define RX_VOLUME
Definition: SI4735.h:148
#define AM_AUTOMATIC_VOLUME_CONTROL_MAX_GAIN
Definition: SI4735.h:120
void setTuneFrequencyFast(uint8_t FAST)
Sets the FAST Tuning.
Definition: SI4735.h:2030
#define MIN_DELAY_WAIT_SEND_LOOP
Definition: SI4735.h:194
void setSSBBfo(int offset)
Sets the SSB Beat Frequency Offset (BFO).
Definition: SI4735.cpp:2538
#define AM_SEEK_SNR_THRESHOLD
Definition: SI4735.h:137
bool getCurrentSnrDetectLow()
Checks if SNR detect is low.
Definition: SI4735.h:1474
uint16_t DOSR
Definition: SI4735.h:1019
uint8_t currentClockType
Stores the current clock type used (Crystal or REF CLOCK)
Definition: SI4735.h:1074
uint8_t getCurrentSNR()
Gets the current SNR metric (0–127 dB).
Definition: SI4735.h:1441
#define POWER_DOWN
Definition: SI4735.h:34
uint8_t getCurrentVolume()
Get the Current Volume.
Definition: SI4735.h:1704
void sendSSBModeProperty()
Just send the property SSB_MOD to the device. Internal use (privete method).
Definition: SI4735.cpp:2782
void setFmBlendStereoThreshold(uint8_t parameter)
Sets RSSI threshold for stereo blend (Full stereo above threshold, blend below threshold).
Definition: SI4735.cpp:1615
#define AM_CHANNEL_FILTER
Definition: SI4735.h:119
void setI2CFastModeCustom(long value=500000)
Sets the I2C bus to a given value. ATTENTION: use this function with cation.
Definition: SI4735.h:2509
#define SI473X_ANALOG_AUDIO
Definition: SI4735.h:178
void setSSBDspAfc(uint8_t DSP_AFCDIS)
Sets DSP AFC disable or enable.
Definition: SI4735.cpp:2612
#define GPIO_CTL
Definition: SI4735.h:101
void loadPatchNBFM(const uint8_t *patch_content, const uint16_t patch_content_size)
Loads a given NBFM patch content.
Definition: SI4735.cpp:3262
void frequencyDown()
Decrements the current frequency on current band/function by using the current step.
Definition: SI4735.cpp:725
bool getCurrentBlendDetectInterrupt()
Gets the Current Blend Detect Interrupt.
Definition: SI4735.h:1603
void setAmDelayNB(uint16_t value)
Sets the delay before applying impulse blanking.
Definition: SI4735.h:1751
uint8_t raw[2]
Definition: SI4735.h:942
void setRefClock(uint16_t refclk)
Sets the frequency of the REFCLK from the output of the prescaler.
Definition: SI4735.cpp:517
void setSeekAmLimits(uint16_t bottom, uint16_t top)
Sets the bottom frequency and top frequency of the AM band for seek. Default is 520 to 1710.
Definition: SI4735.cpp:1346
uint8_t getTuneFrequecyFast()
Returns the FAST tuning status.
Definition: SI4735.h:2019
#define FM_BLEND_MULTIPATH_STEREO_THRESHOLD
Definition: SI4735.h:61
bool getCurrentSoftMuteIndicator()
Soft Mute Indicator.
Definition: SI4735.h:1520
#define FM_SOFT_MUTE_MAX_ATTENUATION
Definition: SI4735.h:64
#define GET_INT_STATUS
Definition: SI4735.h:37
char rds_buffer0A[9]
RDS Basic tuning and switching information (Type 0 groups)
Definition: SI4735.h:1043
void setSSBAvcDivider(uint8_t AVC_DIVIDER)
Sets AVC Divider.
Definition: SI4735.cpp:2657
#define REFCLK_FREQ
Definition: SI4735.h:116
bool getTuneCompleteTriggered()
Get the Tune Complete status.
Definition: SI4735.h:1202
#define AM_SEEK_RSSI_THRESHOLD
Definition: SI4735.h:138
#define SSB_CURRENT_MODE
Definition: SI4735.h:186
bool getRdsSyncLost()
Get the Rds Sync Lost object.
Definition: SI4735.h:2172
#define FM_RDS_CONFIG
Definition: SI4735.h:51
void setBandwidth(uint8_t AMCHFLT, uint8_t AMPLFLT)
Selects the bandwidth of the channel filter for AM reception.
Definition: SI4735.cpp:876
bool getCurrentPilot()
Checks the current pilot.
Definition: SI4735.h:1546
bool getRdsSyncFound()
Get the Rds Sync Found.
Definition: SI4735.h:2183
void getCommandResponse(int num_of_bytes, uint8_t *response)
Returns with the command response.
Definition: SI4735.cpp:1525
uint16_t currentWorkFrequency
current frequency
Definition: SI4735.h:1067
void setFmSoftMuteMaxAttenuation(uint8_t smattn=0)
Sets the Fm Soft Mute Max Attenuation.
Definition: SI4735.h:1376
void setFrequency(uint16_t)
Set the frequency to the corrent function of the Si4735 (FM, AM or SSB)
Definition: SI4735.cpp:670