Documentation ¶
Index ¶
- Constants
- type AKC695X
- func (r *AKC695X) Configure(config Config) (err error)
- func (r AKC695X) GetCNR() (CNR uint8)
- func (r AKC695X) GetFreq() (kHz uint32)
- func (r AKC695X) GetFreqString() (freq string)
- func (r AKC695X) GetFrequencyDeviation() int8
- func (r AKC695X) GetRSSIdBuV() (dBu int8)
- func (r AKC695X) GetStereoDemodulate() bool
- func (r AKC695X) GetVCCMilliVolt() uint16
- func (r AKC695X) GetVolume() (vol uint8)
- func (r AKC695X) IsFM() bool
- func (r AKC695X) IsPowerOn() bool
- func (r AKC695X) IsSeekComplete() bool
- func (r AKC695X) IsStereo() bool
- func (r AKC695X) IsTuned() bool
- func (r AKC695X) PowerOff() (err error)
- func (r AKC695X) PowerOn(khz uint32, Volume uint8, VolumeControlI2C bool) (err error)
- func (r AKC695X) Seek(seekup bool) (err error)
- func (r AKC695X) SetAMCNRThreshold(th uint8)
- func (r AKC695X) SetAutoStereo()
- func (r AKC695X) SetBandWidth(bw uint8)
- func (r AKC695X) SetBaseBoost(b bool)
- func (r AKC695X) SetChannelADC(b bool)
- func (r AKC695X) SetDeEmphasis(b bool)
- func (r AKC695X) SetFMCNRThreshold(th uint8)
- func (r AKC695X) SetFMStereoCNRThreshold(th uint8)
- func (r AKC695X) SetFreq(kHz uint32) (err error)
- func (r AKC695X) SetFreqencyDiffThreshold(th uint8)
- func (r AKC695X) SetLine(b bool)
- func (r AKC695X) SetMono()
- func (r AKC695X) SetOscillatorSourceCrystal(b bool)
- func (r AKC695X) SetPhaseInv(b bool)
- func (r AKC695X) SetRXEnable(b bool)
- func (r AKC695X) SetStereo()
- func (r AKC695X) SetVolume(vol uint8) error
- func (r AKC695X) VolumeDown() (err error)
- func (r AKC695X) VolumeUp() (err error)
- type Config
Constants ¶
const Address = 0x10
Address is I2C address of AKC695X
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AKC695X ¶
type AKC695X struct {
// contains filtered or unexported fields
}
AKC695X is instance of Chip.
func (AKC695X) GetFreqString ¶
GetFreqString returns the string of GetFreq.
func (AKC695X) GetFrequencyDeviation ¶
GetFrequencyDeviation returns Status of frequncy deviation. The number 1 is scaled to 1KHz for FM and scaled to 100Hz for AM.
func (AKC695X) GetRSSIdBuV ¶
GetRSSIdBuV returns Pin(dBuV)
func (AKC695X) GetStereoDemodulate ¶
GetStereoDemodulate returns that the stereo signal is more than 30% percent.
func (AKC695X) GetVCCMilliVolt ¶
GetVCCMilliVolt returns VCC Voltage
func (AKC695X) IsSeekComplete ¶
IsSeekComplete returns whether Seek or Tune is complete or not.
func (AKC695X) SetAMCNRThreshold ¶
SetAMCNRThreshold . if th=0 -6dB, th=1 -10dB, th=2 -14dB, th=3 -18dB.
func (AKC695X) SetAutoStereo ¶
func (r AKC695X) SetAutoStereo()
SetAutoStereo sets Auto stereo,*Stereo_rh
func (AKC695X) SetBandWidth ¶
SetBandWidth . bw=0 means 150kHz, bw=1 means 200kHz, bw=2 means 50kHz, bw=3 means 100kHz.
func (AKC695X) SetBaseBoost ¶
SetBaseBoost sets Setting of base boost false: Inactive (default) true: Active
func (AKC695X) SetChannelADC ¶
SetChannelADC set Setting of channel ADC true; ADC enable false: ADC disable
func (AKC695X) SetDeEmphasis ¶
SetDeEmphasis ... true means 50us. false means 75us.
func (AKC695X) SetFMCNRThreshold ¶
SetFMCNRThreshold . if th=0 -2dB, th=1 -3dB, th=2 -4dB, th=3 -5dB.
func (AKC695X) SetFMStereoCNRThreshold ¶
SetFMStereoCNRThreshold . if th=0 -4dB, th=1 -8dB, th=2 -12dB, th=3 -16dB.
func (AKC695X) SetFreqencyDiffThreshold ¶
SetFreqencyDiffThreshold . see datasheet.
func (AKC695X) SetLine ¶
SetLine set the Operation mode. false: Radio mode (default) true: Line input mode (*In order to reduce the power consumption, Please set pd_rx & pd_adc to 1 when you use line input)
func (AKC695X) SetOscillatorSourceCrystal ¶
SetOscillatorSourceCrystal set Oscillator source selection. false External XO true: Crystal
func (AKC695X) SetPhaseInv ¶
SetPhaseInv set Setting of audio output signal phase. false: in-phase output,for dual speaker true: opposite phase, for single speaker (default)
func (AKC695X) SetRXEnable ¶
SetRXEnable set Setting of RX true: analog & RF enable false: anlog & RF disable