PU2CLR SI4844 Arduino Library  1.0.9
Arduino Library for Si4844 Devices - By Ricardo Lima Caratti
SI4844 Class Reference

SI4844 Class. More...

#include <SI4844.h>

Public Member Functions

void setStatusInterruptFromDevice (bool value)
 Set the Data Status From Device. More...
 
bool getDataStatusInterruptFromDevice ()
 Get the Data Status From Device. More...
 
void setProperty (uint16_t propertyNumber, uint16_t parameter)
 Sends (sets) property to the SI48XX. More...
 
uint16_t getProperty (uint16_t propertyNumber)
 Gets a given property from the SI4844. More...
 
void sendCommand (uint8_t cmd, int parameter_size, const uint8_t *parameter)
 Sends a given command to the SI4844 device. More...
 
void getCommandResponse (int response_size, uint8_t *response)
 Returns with the command response.
More...
 
void setup (uint16_t resetPin, int interruptPin, byte defaultBand)
 Initiates the SI4844 instance and connect the device (SI4844) to Arduino. More...
 
void debugDevice (uint16_t resetPin, uint16_t interruptPin, uint8_t defaultBand, void(*showFunc)(char *msg))
 Used to debug
More...
 
void reset (void)
 Resets the SI4844 device. More...
 
void setBand (byte)
 Sets a new band to the device. More...
 
void changeVolume (char)
 Up or down the sound volume level. More...
 
void volumeUp (void)
 Increases the volume level. More...
 
void volumeDown (void)
 Decreases the volume level. More...
 
void setVolume (byte)
 Sets the volume level. More...
 
void setBassTreble (uint8_t bass_treble)
 Set the sound volume level, bass and treble. More...
 
void bassTrebleUp ()
 More treble, less bass. More...
 
void bassTrebleDown ()
 Less treble, more bass. More...
 
void audioMute (uint8_t value)
 Mutes the audio output. More...
 
void setAudioMute (bool on)
 Mutes the audio output. More...
 
void setAmSoftMuteMaxAttenuation (uint8_t value)
 Sets AM Soft Mute Max Attenuation..
More...
 
void setFmSoftMuteMaxAttenuation (uint8_t value)
 FM Soft Mute Maximum Attenuation. More...
 
void setFmDeemphasis (uint8_t value)
 Sets de-emphasis time constant. More...
 
si4844_audiomode_status_response setAudioMode (uint8_t audiomode, uint8_t fm_mono, uint8_t adjpt_attn, uint8_t adjpt_steo, uint8_t opcode)
 Set audio mode. More...
 
si4844_status_responsegetStatus (void)
 Get tune freq, band, and others information, status of the device. More...
 
si4844_firmware_responsegetFirmware (void)
 Get part number, chip revision, firmware, patch, and component revision numbers. More...
 
void setCustomBand (byte, uint16_t, uint16_t, byte)
 This method allows you to customize the frequency range of a band. More...
 
void powerDown (void)
 Power the device down. More...
 
void powerUp (void)
 Power the device up. More...
 
float getFrequency (void)
 Get the current frequency of the radio in KHz. More...
 
bool hasStatusChanged (void)
 Checks whether the SI4844 has its status changed. More...
 
void resetStatus (void)
 set the interrupr status to false. It will turn true after next interrupr
More...
 
uint8_t getVolume ()
 Gets the current audio volume level. More...
 
uint8_t getVolumeProperty ()
 Gets the current volume value stored in SI4844 device. More...
 
char * getBandMode ()
 Get the Band Mode. More...
 
char * getStereoIndicator ()
 Get the Stereo Indicator. More...
 
uint16_t getStatusBCFG0 ()
 
uint16_t getStatusBCFG1 ()
 
uint16_t getStatusStereo ()
 
uint16_t getStatusStationIndicator ()
 
uint16_t getStatusInformationReady ()
 
uint16_t getStatusHostPowerUp ()
 
uint16_t getStatusHostReset ()
 
uint16_t getStatusBandMode ()
 
uint16_t getStatusBandIndex ()
 
uint16_t getStatusCTS ()
 
uint16_t getFirmwareReserved ()
 
uint16_t getFirmwareErr ()
 
uint16_t getFirmwareCTS ()
 
uint16_t getFirmwarePartNumber ()
 
uint16_t getFirmwareMajorRevision ()
 
uint16_t getFirmwareMinorRevision ()
 
uint16_t getFirmwareComponentMajorRevision ()
 
uint16_t getFirmwareComponentMinorRevision ()
 
uint16_t getFirmwareChipRevision ()
 

Detailed Description

SI4844 Class.

This class implements all functions to help you to control the Si4844 devices.

Member Function Documentation

◆ getStatusBCFG0()

uint16_t SI4844::getStatusBCFG0 ( )
inline

◆ getStatusBCFG1()

uint16_t SI4844::getStatusBCFG1 ( )
inline

◆ getStatusStereo()

uint16_t SI4844::getStatusStereo ( )
inline

◆ getStatusStationIndicator()

uint16_t SI4844::getStatusStationIndicator ( )
inline

◆ getStatusInformationReady()

uint16_t SI4844::getStatusInformationReady ( )
inline

◆ getStatusHostPowerUp()

uint16_t SI4844::getStatusHostPowerUp ( )
inline

◆ getStatusHostReset()

uint16_t SI4844::getStatusHostReset ( )
inline

◆ getStatusBandMode()

uint16_t SI4844::getStatusBandMode ( )
inline

◆ getStatusBandIndex()

uint16_t SI4844::getStatusBandIndex ( )
inline

◆ getStatusCTS()

uint16_t SI4844::getStatusCTS ( )
inline

◆ getFirmwareReserved()

uint16_t SI4844::getFirmwareReserved ( )
inline

◆ getFirmwareErr()

uint16_t SI4844::getFirmwareErr ( )
inline

◆ getFirmwareCTS()

uint16_t SI4844::getFirmwareCTS ( )
inline

◆ getFirmwarePartNumber()

uint16_t SI4844::getFirmwarePartNumber ( )
inline

◆ getFirmwareMajorRevision()

uint16_t SI4844::getFirmwareMajorRevision ( )
inline

◆ getFirmwareMinorRevision()

uint16_t SI4844::getFirmwareMinorRevision ( )
inline

◆ getFirmwareComponentMajorRevision()

uint16_t SI4844::getFirmwareComponentMajorRevision ( )
inline

◆ getFirmwareComponentMinorRevision()

uint16_t SI4844::getFirmwareComponentMinorRevision ( )
inline

◆ getFirmwareChipRevision()

uint16_t SI4844::getFirmwareChipRevision ( )
inline

The documentation for this class was generated from the following files: