PU2CLR KT0915 Arduino Library
1.0.1
This is an Arduino Library to control the KT0915 device
|
#include <KT0915.h>
Public Member Functions | |
void | setRegister (uint8_t reg, uint16_t parameter) |
Sets the a value to a given KT09XX register. More... | |
uint16_t | getRegister (uint8_t reg) |
Gets a given KT09XX register content. More... | |
char * | getDeviceId () |
Gets the Device Id. More... | |
void | reset () |
Resets the system. More... | |
void | setI2CBusAddress (int deviceAddress) |
Set I2C bus address. More... | |
void | setCrystalType (uint8_t crystal, uint8_t ref_clock=0) |
Sets the Crystal Type. More... | |
bool | isCrystalReady () |
Gets the Crystal Status information. More... | |
void | setup (int reset_pin, uint8_t crystal_type=CRYSTAL_32KHZ, uint8_t ref_clock=REF_CLOCK_DISABLE) |
Receiver startup. More... | |
void | setFM (uint32_t minimum_frequency, uint32_t maximum_frequency, uint32_t default_frequency, uint16_t step) |
Sets the receiver to FM mode. More... | |
void | setAM (uint32_t minimum_frequency, uint32_t maximum_frequency, uint32_t default_frequency, uint16_t step) |
Sets the receiver to AM mode. More... | |
void | setFrequency (uint32_t frequency) |
Sets the current frequency. More... | |
void | setStep (uint16_t step) |
Sets the frequency step. More... | |
void | frequencyUp () |
Increments the frequency one step. More... | |
void | frequencyDown () |
Decrements the frequency one step. More... | |
uint32_t | getFrequency () |
void | setAntennaTuneCapacitor (uint16_t capacitor) |
Set AM the Antenna Tune Capacitor. More... | |
Protected Attributes | |
int | deviceAddress = AKC595X_I2C_ADRESS |
int | resetPin = -1 |
uint8_t | volume |
Store the current volume. More... | |
uint16_t | currentStep |
Strore the current step. More... | |
uint16_t | currentFrequency |
Store the current frequency. More... | |
uint16_t | minimumFrequency |
Stores the minimum frequency for the current band. More... | |
uint16_t | maximumFrequency |
Stores the maximum frequency for the current band. More... | |
uint8_t | currentMode |
Store the current mode. More... | |
uint8_t | currentCrystalType = CRYSTAL_32KHZ |
Store the crystal type. More... | |
char | deviceId [3] |
bool KT0915::isCrystalReady | ( | ) |
Gets the Crystal Status information.
uint32_t KT0915::getFrequency | ( | ) |
|
protected |
Referenced by setI2CBusAddress().
|
protected |
Store the current volume.
|
protected |
Strore the current step.
|
protected |
Store the current frequency.
|
protected |
Stores the minimum frequency for the current band.
|
protected |
Stores the maximum frequency for the current band.
|
protected |
Store the current mode.
|
protected |
Store the crystal type.
|
protected |
Referenced by getDeviceId().