PU2CLR KT0915 Arduino Library  1.0.1
This is an Arduino Library to control the KT0915 device
Tune Methods

Functions

void KT0915::setAntennaTuneCapacitor (uint16_t capacitor)
 Set AM the Antenna Tune Capacitor. More...
 
void KT0915::setMono (bool on_off)
 Sets the receiver Stereo or Mono. More...
 
void KT0915::setDeEmphasis (uint8_t value)
 Sets the De-emphasis Time Constant Selection. More...
 
void KT0915::setFM (uint32_t minimum_frequency, uint32_t maximum_frequency, uint32_t default_frequency, uint16_t step)
 Sets the receiver to FM mode. More...
 
void KT0915::setAM (uint32_t minimum_frequency, uint32_t maximum_frequency, uint32_t default_frequency, uint16_t step)
 Sets the receiver to AM mode. More...
 
void KT0915::setFrequency (uint32_t frequency)
 Sets the current frequency. More...
 
void KT0915::frequencyUp ()
 Increments the frequency one step. More...
 
void KT0915::frequencyDown ()
 Decrements the frequency one step. More...
 
void KT0915::setStep (uint16_t step)
 Sets the frequency step. More...
 
uint32_t KT0915::getFrequency ()
 Gets the current frequency. More...
 

Detailed Description

Tune Methods


Methods to tune and set the receiver mode

Function Documentation

◆ setAntennaTuneCapacitor()

void KT0915::setAntennaTuneCapacitor ( uint16_t  capacitor)

Set AM the Antenna Tune Capacitor.

Sets a value between 0 and 16383 for AM Antenna Calibration

Parameters
capacitorvalue between 0 and 16383

Definition at line 344 of file KT0915.cpp.

◆ setMono()

void KT0915::setMono ( bool  on_off)

Sets the receiver Stereo or Mono.

Set this parameter to true to force mono or false to stereo

Parameters
on_offtrue = mono; fale = stereo

Definition at line 357 of file KT0915.cpp.

◆ setDeEmphasis()

void KT0915::setDeEmphasis ( uint8_t  value)

Sets the De-emphasis Time Constant Selection.

Parameters
value0 = 75us; 1 = 50us

Definition at line 370 of file KT0915.cpp.

◆ setFM()

void KT0915::setFM ( uint32_t  minimum_frequency,
uint32_t  maximum_frequency,
uint32_t  default_frequency,
uint16_t  step 
)

Sets the receiver to FM mode.

Todo:
Adjust setTuneDialOn()

Configures the receiver on FM mode; Also sets the band limits, defaul frequency and step.

Parameters
minimum_frequencyminimum frequency for the band
maximum_frequencymaximum frequency for the band
default_frequencydefault freuency
stepincrement and decrement frequency step

Definition at line 389 of file KT0915.cpp.

◆ setAM()

void KT0915::setAM ( uint32_t  minimum_frequency,
uint32_t  maximum_frequency,
uint32_t  default_frequency,
uint16_t  step 
)

Sets the receiver to AM mode.

Todo:
Adjust setTuneDialOn()

Configures the receiver on AM mode; Also sets the band limits, defaul frequency and step.

Parameters
minimum_frequencyminimum frequency for the band
maximum_frequencymaximum frequency for the band
default_frequencydefault freuency
stepincrement and decrement frequency step

Definition at line 429 of file KT0915.cpp.

◆ setFrequency()

void KT0915::setFrequency ( uint32_t  frequency)

Sets the current frequency.

Parameters
frequency

Definition at line 459 of file KT0915.cpp.

◆ frequencyUp()

void KT0915::frequencyUp ( )

Increments the frequency one step.

if the frequency plus the step value is greater than the maximum frequency for the band,

tne current frequency will be set to minimum frequency.

See also
setFrequency

Definition at line 489 of file KT0915.cpp.

◆ frequencyDown()

void KT0915::frequencyDown ( )

Decrements the frequency one step.

if the frequency minus the step value is less than the minimum frequency for the band,

tne current frequency will be set to minimum frequency.

See also
setFrequency

Definition at line 505 of file KT0915.cpp.

◆ setStep()

void KT0915::setStep ( uint16_t  step)

Sets the frequency step.

Sets increment and decrement frequency

Parameters
stepValues: 1, 5, 9, 10, 100, 200 in KHz

Definition at line 519 of file KT0915.cpp.

◆ getFrequency()

uint32_t KT0915::getFrequency ( )

Gets the current frequency.

Returns
frequency in KHz

Definition at line 529 of file KT0915.cpp.