PU2CLR KT0915 Arduino Library  1.0.1
This is an Arduino Library to control the KT0915 device
KT0915 Class Reference

#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]
 

Member Function Documentation

◆ isCrystalReady()

bool KT0915::isCrystalReady ( )

Gets the Crystal Status information.

Returns
true
false

◆ getFrequency()

uint32_t KT0915::getFrequency ( )

Field Documentation

◆ deviceAddress

int KT0915::deviceAddress = AKC595X_I2C_ADRESS
protected

Referenced by setI2CBusAddress().

◆ resetPin

int KT0915::resetPin = -1
protected

Referenced by reset(), and setup().

◆ volume

uint8_t KT0915::volume
protected

Store the current volume.

◆ currentStep

uint16_t KT0915::currentStep
protected

Strore the current step.

◆ currentFrequency

uint16_t KT0915::currentFrequency
protected

Store the current frequency.

◆ minimumFrequency

uint16_t KT0915::minimumFrequency
protected

Stores the minimum frequency for the current band.

◆ maximumFrequency

uint16_t KT0915::maximumFrequency
protected

Stores the maximum frequency for the current band.

◆ currentMode

uint8_t KT0915::currentMode
protected

Store the current mode.

◆ currentCrystalType

uint8_t KT0915::currentCrystalType = CRYSTAL_32KHZ
protected

Store the crystal type.

◆ deviceId

char KT0915::deviceId[3]
protected

Referenced by getDeviceId().


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