PU2CLR AKC695X Arduino Library  1.0.1
This is an Arduino Library to control the AKC695X / M695X DSP radio devices
AKC695X Class Reference

Public Member Functions

void reset ()
 Resets the system.
 
void setI2CBusAddress (int deviceAddress)
 Sets the I2C bus device address. More...
 
void setup (int reset_pin)
 Receiver startup. More...
 
void powerOn (uint8_t fm_en, uint8_t tune, uint8_t mute, uint8_t seek, uint8_t seekup)
 Power the device on. More...
 
void setRegister (uint8_t reg, uint8_t parameter)
 Sets a given register with a given value. More...
 
uint8_t getRegister (uint8_t reg)
 Gets a given register content. More...
 
bool isTuned ()
 Gets the result of tune processing. More...
 
bool isTuningComplete ()
 Gets the Status of seeking or tuning process. More...
 
uint8_t isCurrentModeFM ()
 Gets the current operation mode;. More...
 
uint16_t getCurrentChannel ()
 Gets the current channel. More...
 
void setFM (uint8_t akc695x_fm_band, uint16_t minimum_freq, uint16_t maximum_freq, uint16_t default_frequency, uint8_t default_step)
 Sets the AKC695X to FM mode. More...
 
void setAM (uint8_t akc695x_am_band, uint16_t minimum_freq, uint16_t maximum_freq, uint16_t default_frequency, uint8_t default_step)
 Sets the AKC695X to AM mode and selects the band. More...
 
void setStep (uint8_t step)
 Sets the step that will be used to increment and decrement the current frequency. More...
 
void setFmSeekStep (uint8_t value)
 Sets FM step for seeking. More...
 
void seekFmStation (uint8_t up_down)
 Seeks a FM station. More...
 
void setFrequency (uint16_t frequency)
 Sets the the device to a given frequency. More...
 
uint16_t getFrequency ()
 Returns the current frequency value. More...
 
void frequencyUp ()
 Adds the current step to the current frequency and sets the new frequency. More...
 
void frequencyDown ()
 Subtracts the current step from the current frequency and assign the new frequency. More...
 
void setAudio (uint8_t phase_inv, uint8_t line, uint8_t volume)
 Configures the audio output. More...
 
void setAudio ()
 Configures the audio output with default values. More...
 
void setVolume (uint8_t volume)
 Sets the output audio volume. More...
 
void setVolumeControl (uint8_t type)
 Sets the kind of audio volume control will be used. More...
 
void setVolumeUp ()
 Increments the audio volume. More...
 
void setVolumeDown ()
 Decrements the audio volume. More...
 
int getVolume ()
 
int getRSSI ()
 Gets the current RSSI. More...
 
float getSupplyVoltage ()
 Gets the supply voltage. More...
 
uint8_t getCurrentMode ()
 
void commitTune ()
 Sets the STC bit to high when the tune operation completes. More...
 

Protected Attributes

int deviceAddress = AKC595X_I2C_ADRESS
 
int resetPin = -1
 
uint8_t volume
 
uint16_t currentStep
 
uint16_t currentFrequency
 
uint8_t currentMode = 0
 
uint8_t currentBand = 0
 
uint16_t currentBandMinimumFrequency
 
uint16_t currentBandMaximumFrequency
 
uint8_t fmCurrentBand = 0
 

Member Function Documentation

◆ setVolumeControl()

void AKC695X::setVolumeControl ( uint8_t  type)

Sets the kind of audio volume control will be used.

This method configures the kind of audio volume control will be used.

You can control the audio volume by potentiometer or by MCU (Arduino).

If you choose volume conttolled by Arduino (type 1), you can set the volume from 25 to 63 levels.

See also
setVolume, akc595x_reg9
Parameters
type0 = controlled by poteciometer; 1 controlled by the MCU

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