|
| SI4735 () |
| Construct a new SI4735::SI4735. More...
|
|
void | reset (void) |
| Reset the SI473X
More...
|
|
void | waitToSend (void) |
| Wait for the si473x is ready (Clear to Send (CTS) status bit have to be 1).
More...
|
|
void | setup (uint8_t resetPin, uint8_t defaultFunction) |
| Starts the Si473X device.
More...
|
|
void | setup (uint8_t resetPin, int interruptPin, uint8_t defaultFunction, uint8_t audioMode=SI473X_ANALOG_AUDIO, uint8_t clockType=XOSCEN_CRYSTAL) |
| Starts the Si473X device. More...
|
|
void | setRefClock (uint16_t refclk) |
| Sets the frequency of the REFCLK from the output of the prescaler. More...
|
|
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. More...
|
|
int32_t | getProperty (uint16_t propertyValue) |
| Gets a given property from the SI47XX. More...
|
|
void | setProperty (uint16_t propertyNumber, uint16_t param) |
| Sets a given SI47XX device property. More...
|
|
void | sendCommand (uint8_t cmd, int parameter_size, const uint8_t *parameter) |
| Sends a given command to the SI47XX devices. More...
|
|
void | getCommandResponse (int num_of_bytes, uint8_t *response) |
| Returns with the command response.
More...
|
|
si47x_status | getStatusResponse () |
| Gets the first byte response. More...
|
|
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. More...
|
|
void | radioPowerUp (void) |
| Powerup the Si47XX. More...
|
|
void | analogPowerUp (void) |
| You have to call setPowerUp method before. More...
|
|
void | powerDown (void) |
| Moves the device from powerup to powerdown mode. More...
|
|
void | setFrequency (uint16_t) |
| Set the frequency to the corrent function of the Si4735 (FM, AM or SSB) More...
|
|
void | getStatus (uint8_t, uint8_t) |
| Gets the current status of the Si4735 (AM or FM) More...
|
|
uint16_t | getFrequency (void) |
| Gets the current frequency of the Si4735 (AM or FM) More...
|
|
bool | getSignalQualityInterrupt () |
| Get the Signal Quality Interrupt status. More...
|
|
bool | getRadioDataSystemInterrupt () |
| Get the Radio Data System (RDS) Interrupt status. More...
|
|
bool | getTuneCompleteTriggered () |
| Get the Tune Complete status. More...
|
|
bool | getStatusError () |
| Get the Status Error. More...
|
|
bool | getStatusCTS () |
| Gets the Error flag Clear to Send. More...
|
|
bool | getACFIndicator () |
| Returns true if the AFC rails (AFC Rail Indicator). More...
|
|
bool | getBandLimit () |
| Returns true if a seek hit the band limit. More...
|
|
bool | getStatusValid () |
| Gets the channel status. More...
|
|
uint8_t | getReceivedSignalStrengthIndicator () |
| Returns the value of Received Signal Strength Indicator (dBμV). More...
|
|
uint8_t | getStatusSNR () |
| Gets the SNR metric when tune is complete (dB) More...
|
|
uint8_t | getStatusMULT () |
| Get the Status the M U L T. More...
|
|
uint8_t | getAntennaTuningCapacitor () |
| Get the Antenna Tuning Capacitor value. More...
|
|
void | getAutomaticGainControl () |
| Queries Automatic Gain Control STATUS. More...
|
|
void | setAvcAmMaxGain () |
| Sets the Avc Am Max Gain to 48dB. More...
|
|
void | setAvcAmMaxGain (uint8_t gain) |
| Sets the maximum gain for automatic volume control. More...
|
|
uint8_t | getCurrentAvcAmMaxGain () |
| Get the current Avc Am Max Gain. More...
|
|
void | setAmSoftMuteMaxAttenuation (uint8_t smattn=0) |
| Sets the Am Soft Mute Max Attenuation. More...
|
|
void | setSsbSoftMuteMaxAttenuation (uint8_t smattn=0) |
| Sets the SSB Soft Mute Max Attenuation object. More...
|
|
bool | isAgcEnabled () |
| Checks if the AGC is enabled. More...
|
|
uint8_t | getAgcGainIndex () |
| Gets the current AGC gain index. More...
|
|
void | setAutomaticGainControl (uint8_t AGCDIS, uint8_t AGCIDX) |
| Automatic Gain Control setup. More...
|
|
void | getCurrentReceivedSignalQuality (uint8_t INTACK) |
| Queries the status of the Received Signal Quality (RSQ) of the current channel. More...
|
|
void | getCurrentReceivedSignalQuality (void) |
| Queries the status of the Received Signal Quality (RSQ) of the current channel (FM_RSQ_STATUS) More...
|
|
uint8_t | getCurrentRSSI () |
| Get the current receive signal strength (0–127 dBμV) More...
|
|
uint8_t | getCurrentSNR () |
| Gets the current SNR metric (0–127 dB). More...
|
|
bool | getCurrentRssiDetectLow () |
| Checks if RSSI detected is LOW. More...
|
|
bool | getCurrentRssiDetectHigh () |
| Checks if RSSI detected is high. More...
|
|
bool | getCurrentSnrDetectLow () |
| Checks if SNR detect is low. More...
|
|
bool | getCurrentSnrDetectHigh () |
| Checks if SNR detect is high. More...
|
|
bool | getCurrentValidChannel () |
| Checks if the current channel is valid. More...
|
|
bool | getCurrentAfcRailIndicator () |
| AFC Rail Indicator. More...
|
|
bool | getCurrentSoftMuteIndicator () |
| Soft Mute Indicator. More...
|
|
uint8_t | getCurrentStereoBlend () |
| Gets the value of the amount of stereo blend in % (100 = full stereo, 0 = full mono). More...
|
|
bool | getCurrentPilot () |
| Checks the current pilot. More...
|
|
uint8_t | getCurrentMultipath () |
| Gets the current Multipath. More...
|
|
uint8_t | getCurrentSignedFrequencyOffset () |
|
bool | getCurrentMultipathDetectLow () |
| Signed frequency offset (kHz). More...
|
|
bool | getCurrentMultipathDetectHigh () |
| Multipath Detect Low. More...
|
|
bool | getCurrentBlendDetectInterrupt () |
| Multipath Detect High. More...
|
|
uint8_t | getFirmwarePN () |
| Blend Detect Interrupt. More...
|
|
uint8_t | getFirmwareFWMAJOR () |
| RESP1 - Part Number (HEX) More...
|
|
uint8_t | getFirmwareFWMINOR () |
| RESP2 - Returns the Firmware Major Revision (ASCII). More...
|
|
uint8_t | getFirmwarePATCHH () |
| RESP3 - Returns the Firmware Minor Revision (ASCII). More...
|
|
uint8_t | getFirmwarePATCHL () |
| RESP4 - Returns the Patch ID High byte (HEX). More...
|
|
uint8_t | getFirmwareCMPMAJOR () |
| RESP5 - Returns the Patch ID Low byte (HEX). More...
|
|
uint8_t | getFirmwareCMPMINOR () |
| RESP6 - Returns the Component Major Revision (ASCII). More...
|
|
uint8_t | getFirmwareCHIPREV () |
| RESP7 - Returns the Component Minor Revision (ASCII). More...
|
|
void | setVolume (uint8_t volume) |
| RESP8 - Returns the Chip Revision (ASCII). More...
|
|
uint8_t | getVolume () |
| Gets the current volume level. More...
|
|
void | volumeDown () |
| Set sound volume level Down
More...
|
|
void | volumeUp () |
| Set sound volume level Up
More...
|
|
uint8_t | getCurrentVolume () |
|
void | setAudioMode (uint8_t audioMode) |
| Returns the current volume level. More...
|
|
void | digitalOutputFormat (uint8_t OSIZE, uint8_t OMONO, uint8_t OMODE, uint8_t OFALL) |
| Configures the digital audio output format. More...
|
|
void | digitalOutputSampleRate (uint16_t DOSR) |
| Enables digital audio output and configures digital audio output sample rate in samples per second (sps). More...
|
|
void | setAudioMute (bool off) |
| Sets the audio on or off. More...
|
|
void | setAM () |
| Sets the radio to AM function. It means: LW MW and SW. More...
|
|
void | setFM () |
| Sets the radio to FM function. More...
|
|
void | setAM (uint16_t fromFreq, uint16_t toFreq, uint16_t intialFreq, uint16_t step) |
| Sets the radio to AM (LW/MW/SW) function. More...
|
|
void | setFM (uint16_t fromFreq, uint16_t toFreq, uint16_t initialFreq, uint16_t step) |
| Sets the radio to FM function. More...
|
|
void | setFMDeEmphasis (uint8_t parameter) |
| Sets the FM Receive de-emphasis to 50 or 75 μs. More...
|
|
bool | isCurrentTuneFM () |
| Returns true if the current function is FM (FM_TUNE_FREQ). More...
|
|
bool | isCurrentTuneAM () |
| Returns true if the current function is AM (AM_TUNE_FREQ). More...
|
|
bool | isCurrentTuneSSB () |
| Returns true if the current function is SSB (SSB_TUNE_FREQ). More...
|
|
void | setBandwidth (uint8_t AMCHFLT, uint8_t AMPLFLT) |
| Selects the bandwidth of the channel filter for AM reception. More...
|
|
uint8_t | getTuneFrequencyFast () |
|
void | setTuneFrequencyFast (uint8_t FAST) |
| Returns the FAST tuning status. More...
|
|
uint8_t | getTuneFrequencyFreeze () |
| FAST Tuning. If set, executes fast and invalidated tune. The tune status will not be accurate. More...
|
|
void | setTuneFrequencyFreeze (uint8_t FREEZE) |
| Returns the FREEZE status. More...
|
|
void | setTuneFrequencyAntennaCapacitor (uint16_t capacitor) |
| Only FM. Freeze Metrics During Alternate Frequency Jump. More...
|
|
void | frequencyUp () |
| Increments the current frequency on current band/function by using the current step. More...
|
|
void | frequencyDown () |
| Decrements the current frequency on current band/function by using the current step. More...
|
|
void | getFirmware (void) |
| Gets firmware information. More...
|
|
void | seekStation (uint8_t SEEKUP, uint8_t WRAP) |
| Look for a station (Automatic tune) More...
|
|
void | setMaxSeekTime (long time_in_ms) |
| Sets the maximum time in milliseconds for seeking. The default value is 8000ms (8s). More...
|
|
void | seekStationUp () |
| Search for the next station. More...
|
|
void | seekStationDown () |
| Search the previous station. More...
|
|
void | seekNextStation () |
| Search for the next station. More...
|
|
void | seekPreviousStation () |
| Search the previous station. More...
|
|
void | seekStationProgress (void(*showFunc)(uint16_t f), uint8_t up_down) |
| Seeks a station up or down. More...
|
|
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. More...
|
|
void | setSeekAmSpacing (uint16_t spacing) |
| Selects frequency spacingfor AM seek. Default is 10 kHz spacing. More...
|
|
void | setSeekAmSrnThreshold (uint16_t value) |
| Sets the SNR threshold for a valid AM Seek/Tune. More...
|
|
void | setSeekAmRssiThreshold (uint16_t value) |
| Sets the RSSI threshold for a valid AM Seek/Tune. More...
|
|
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. More...
|
|
void | setSeekFmSpacing (uint16_t spacing) |
| Selects frequency spacingfor FM seek. Default is 100 kHz kHz spacing. There are only 3 valid values: 5, 10, and 20. More...
|
|
void | setSeekFmSrnThreshold (uint16_t value) |
| Sets the SNR threshold for a valid FM Seek/Tune. More...
|
|
void | setSeekFmRssiThreshold (uint16_t value) |
| Sets the RSSI threshold for a valid FM Seek/Tune. More...
|
|
void | setFmBlendStereoThreshold (uint8_t parameter) |
| Sets RSSI threshold for stereo blend (Full stereo above threshold, blend below threshold). More...
|
|
void | setFmBlendMonoThreshold (uint8_t parameter) |
| Sets RSSI threshold for mono blend (Full mono below threshold, blend above threshold). More...
|
|
void | setFmBlendRssiStereoThreshold (uint8_t parameter) |
| Sets RSSI threshold for stereo blend. (Full stereo above threshold, blend below threshold.) More...
|
|
void | setFmBLendRssiMonoThreshold (uint8_t parameter) |
| Sets RSSI threshold for mono blend (Full mono below threshold, blend above threshold). More...
|
|
void | setFmBlendSnrStereoThreshold (uint8_t parameter) |
| Sets SNR threshold for stereo blend (Full stereo above threshold, blend below threshold). More...
|
|
void | setFmBLendSnrMonoThreshold (uint8_t parameter) |
| Sets SNR threshold for mono blend (Full mono below threshold, blend above threshold). More...
|
|
void | setFmBlendMultiPathStereoThreshold (uint8_t parameter) |
| Sets multipath threshold for stereo blend (Full stereo below threshold, blend above threshold). More...
|
|
void | setFmBlendMultiPathMonoThreshold (uint8_t parameter) |
| Sets Multipath threshold for mono blend (Full mono above threshold, blend below threshold). More...
|
|
void | setFmStereoOn () |
| Turn Off Stereo operation. More...
|
|
void | setFmStereoOff () |
| Turn Off Stereo operation. More...
|
|
void | RdsInit () |
| Starts the control member variables for RDS. More...
|
|
void | setRdsIntSource (uint8_t RDSNEWBLOCKB, uint8_t RDSNEWBLOCKA, uint8_t RDSSYNCFOUND, uint8_t RDSSYNCLOST, uint8_t RDSRECV) |
| Configures interrupt related to RDS. More...
|
|
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. More...
|
|
void | getRdsStatus () |
| Gets RDS Status. More...
|
|
bool | getRdsReceived () |
| Get the Rds Received FIFO. More...
|
|
bool | getRdsSyncLost () |
| Get the Rds Sync Lost object. More...
|
|
bool | getRdsSyncFound () |
| Get the Rds Sync Found. More...
|
|
bool | getRdsNewBlockA () |
| Get the Rds New Block A. More...
|
|
bool | getRdsNewBlockB () |
| Get the Rds New Block B. More...
|
|
bool | getRdsSync () |
| Get the Rds Sync. More...
|
|
bool | getGroupLost () |
| Get the Group Lost. More...
|
|
uint8_t | getNumRdsFifoUsed () |
| Get the Num Rds Fifo Used. More...
|
|
void | setRdsConfig (uint8_t RDSEN, uint8_t BLETHA, uint8_t BLETHB, uint8_t BLETHC, uint8_t BLETHD) |
| Sets RDS property. More...
|
|
uint16_t | getRdsPI (void) |
| Returns the programa type. More...
|
|
uint8_t | getRdsGroupType (void) |
| Returns the Group Type (extracted from the Block B) More...
|
|
uint8_t | getRdsFlagAB (void) |
| Returns the current Text Flag A/B
More...
|
|
uint8_t | getRdsVersionCode (void) |
| Gets the version code (extracted from the Block B) More...
|
|
uint8_t | getRdsProgramType (void) |
| Returns the Program Type (extracted from the Block B) More...
|
|
uint8_t | getRdsTextSegmentAddress (void) |
| Returns the address of the text segment. More...
|
|
char * | getRdsText (void) |
| Gets the RDS Text when the message is of the Group Type 2 version A. More...
|
|
char * | getRdsText0A (void) |
| Gets the station name and other messages. More...
|
|
char * | getRdsText2A (void) |
| Gets the Text processed for the 2A group. More...
|
|
char * | getRdsText2B (void) |
| Gets the Text processed for the 2B group. More...
|
|
char * | getRdsTime (void) |
| Gets the RDS time and date when the Group type is 4. More...
|
|
void | getNext2Block (char *) |
| Process data received from group 2B. More...
|
|
void | getNext4Block (char *) |
| Process data received from group 2A. More...
|
|
void | ssbSetup () |
| Starts the Si473X device on SSB (same AM Mode). More...
|
|
void | setSSBBfo (int offset) |
| Sets the SSB Beat Frequency Offset (BFO). More...
|
|
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. More...
|
|
void | setSSB (uint16_t fromFreq, uint16_t toFreq, uint16_t intialFreq, uint16_t step, uint8_t usblsb) |
|
void | setSSB (uint8_t usblsb) |
| Set the radio to AM function. More...
|
|
void | setSSBAudioBandwidth (uint8_t AUDIOBW) |
| SSB Audio Bandwidth for SSB mode. More...
|
|
void | setSSBAutomaticVolumeControl (uint8_t AVCEN) |
| Sets SSB Automatic Volume Control (AVC) for SSB mode. More...
|
|
void | setSBBSidebandCutoffFilter (uint8_t SBCUTFLT) |
| Sets SBB Sideband Cutoff Filter for band pass and low pass filters. More...
|
|
void | setSSBAvcDivider (uint8_t AVC_DIVIDER) |
| Sets AVC Divider. More...
|
|
void | setSSBDspAfc (uint8_t DSP_AFCDIS) |
| Sets DSP AFC disable or enable. More...
|
|
void | setSSBSoftMute (uint8_t SMUTESEL) |
| Sets SSB Soft-mute Based on RSSI or SNR Selection: More...
|
|
si47x_firmware_query_library | queryLibraryId () |
| Query the library information of the Si47XX device. More...
|
|
void | patchPowerUp () |
| This method can be used to prepare the device to apply SSBRX patch. More...
|
|
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. More...
|
|
si4735_eeprom_patch_header | downloadPatchFromEeprom (int eeprom_i2c_address) |
| Transfers the content of a patch stored in an eeprom to the SI4735 device. More...
|
|
void | ssbPowerUp () |
| This function can be useful for debug and test. More...
|
|
void | setMaxDelayPowerUp (uint16_t ms) |
| Set the Max Delay Power Up. More...
|
|
void | setMaxDelaySetFrequency (uint16_t ms) |
| Set the Max Delay after Set Frequency. More...
|
|
void | setFrequencyStep (uint16_t step) |
| Sets the current step value. More...
|
|
uint16_t | getCurrentFrequency () |
| Gets the current frequency saved in memory. More...
|
|
void | getStatus () |
| Gets the current status of the Si47XX (AM, FM or SSB) More...
|
|
void | setDeviceI2CAddress (uint8_t senPin) |
| Sets the I2C Bus Address. More...
|
|
int16_t | getDeviceI2CAddress (uint8_t resetPin) |
| I2C bus address setup. More...
|
|
void | setDeviceOtherI2CAddress (uint8_t i2cAddr) |
| Sets the onther I2C Bus Address (for Si470X) More...
|
|
void | setI2CLowSpeedMode (void) |
| Sets I2C bus to 10KHz. More...
|
|
void | setI2CStandardMode (void) |
| Sets I2C bus to 100KHz. More...
|
|
void | setI2CFastMode (void) |
| Sets I2C bus to 400KHz. More...
|
|
void | setI2CFastModeCustom (long value=500000) |
| Sets the I2C bus to a given value. ATTENTION: use this function with cation. More...
|
|
virtual void | setMcuControl (bool value) |
| Enables MCU control resource. More...
|
|
virtual void | setMcuWakeUpPin (uint8_t pin) |
| Sets pin used to wake the MCU up. More...
|
|
virtual void | mcuWakeUp () |
| Sets the pin that controls some MCU features. You might do something with that. More...
|
|
virtual void | mcuSleepDown () |
| You might want to do something when MCU wakes up. More...
|
|
virtual void | setMcuClockSpeed (uint32_t clock) |
| Sets the Mcu Clock Speed if the platform supports this resource. More...
|
|
void | setAudioMuteMcuPin (int8_t pin) |
| Sets the Audio Mute Mcu Pin. More...
|
|
void | setHardwareAudioMute (bool on) |
| Sets the Hardware Audio Mute. More...
|
|