PU2CLR KT0915 Arduino Library
1.0.1
This is an Arduino Library to control the KT0915 device
|
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... | |
Methods to tune and set the receiver mode
void KT0915::setAntennaTuneCapacitor | ( | uint16_t | capacitor | ) |
Set AM the Antenna Tune Capacitor.
Sets a value between 0 and 16383 for AM Antenna Calibration
capacitor | value between 0 and 16383 |
Definition at line 344 of file KT0915.cpp.
void KT0915::setMono | ( | bool | on_off | ) |
Sets the receiver Stereo or Mono.
Set this parameter to true to force mono or false to stereo
on_off | true = mono; fale = stereo |
Definition at line 357 of file KT0915.cpp.
void KT0915::setDeEmphasis | ( | uint8_t | value | ) |
Sets the De-emphasis Time Constant Selection.
value | 0 = 75us; 1 = 50us |
Definition at line 370 of file KT0915.cpp.
void KT0915::setFM | ( | uint32_t | minimum_frequency, |
uint32_t | maximum_frequency, | ||
uint32_t | default_frequency, | ||
uint16_t | step | ||
) |
Sets the receiver to FM mode.
Configures the receiver on FM mode; Also sets the band limits, defaul frequency and step.
minimum_frequency | minimum frequency for the band |
maximum_frequency | maximum frequency for the band |
default_frequency | default freuency |
step | increment and decrement frequency step |
Definition at line 389 of file KT0915.cpp.
void KT0915::setAM | ( | uint32_t | minimum_frequency, |
uint32_t | maximum_frequency, | ||
uint32_t | default_frequency, | ||
uint16_t | step | ||
) |
Sets the receiver to AM mode.
Configures the receiver on AM mode; Also sets the band limits, defaul frequency and step.
minimum_frequency | minimum frequency for the band |
maximum_frequency | maximum frequency for the band |
default_frequency | default freuency |
step | increment and decrement frequency step |
Definition at line 429 of file KT0915.cpp.
void KT0915::setFrequency | ( | uint32_t | frequency | ) |
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.
Definition at line 489 of file KT0915.cpp.
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.
Definition at line 505 of file KT0915.cpp.
void KT0915::setStep | ( | uint16_t | step | ) |
Sets the frequency step.
Sets increment and decrement frequency
step | Values: 1, 5, 9, 10, 100, 200 in KHz |
Definition at line 519 of file KT0915.cpp.
uint32_t KT0915::getFrequency | ( | ) |