PU2CLR AKC695X Arduino Library  1.0.2
This is an Arduino Library to control the AKC695X / M695X DSP radio devices
Status and Configuration Methods

Functions

void AKC695X::setMode3k (bool on_off)
 Sets the current AM channel spacing. More...
 
bool AKC695X::isTuned ()
 Gets the result of tune processing. More...
 
bool AKC695X::isTuningComplete ()
 Gets the Status of seeking or tuning process. More...
 
uint8_t AKC695X::isCurrentModeFM ()
 Gets the current operation mode;. More...
 
uint16_t AKC695X::getCurrentChannel ()
 Gets the current channel. More...
 
uint16_t AKC695X::channelToFrequency ()
 Converts the channel stored in the registers 20 and 21 to frequency. More...
 
uint8_t AKC695X::getAmCarrierNoiseRatio ()
 Gets the current AM carrier to noise ratio. More...
 
uint8_t AKC695X::getAmCurrentSpace ()
 Gets the current AM space. More...
 
bool AKC695X::isFmStereo ()
 Gets the current FM stereo status. More...
 
uint8_t AKC695X::getFmCarrierNoiseRatio ()
 Gets the current FM carrier to noise ratio. More...
 
void AKC695X::setFmEmphasis (uint8_t de)
 Sets de-emphasis. More...
 
void AKC695X::setFmStereoMono (uint8_t value)
 Sets the FM stereo or mono. More...
 
void AKC695X::setFmBandwidth (uint8_t value)
 Sets the FM Bandwidth. More...
 

Detailed Description

Status and Configuration Methods

Function Documentation

◆ setMode3k()

void AKC695X::setMode3k ( bool  on_off)
inline

Sets the current AM channel spacing.

Use this function to change the AM channel spacing

◆ isTuned()

bool AKC695X::isTuned ( )

Gets the result of tune processing.

This method gets the result of a tune process (seek or tune).

Returns
true Catched a channel. You are tuned.
false No channel

◆ isTuningComplete()

bool AKC695X::isTuningComplete ( )

Gets the Status of seeking or tuning process.

Return the status of tunning process

Returns
true Completed
false Not completed

◆ isCurrentModeFM()

uint8_t AKC695X::isCurrentModeFM ( )

Gets the current operation mode;.

This method returns the current mode stored on register 20.

Returns
1 FM mode
0 AM mode

◆ getCurrentChannel()

uint16_t AKC695X::getCurrentChannel ( )

Gets the current channel.

Returns the current channel stored in the registers 20 and 21.

Returns
unit16_t current channel

◆ channelToFrequency()

uint16_t AKC695X::channelToFrequency ( )

Converts the channel stored in the registers 20 and 21 to frequency.

Returns the calculated current frequency based on current channel

See also
getCurrentChannel, akc595x_reg20, akc595x_reg21
Returns
unit16_t current frequency

◆ getAmCarrierNoiseRatio()

uint8_t AKC695X::getAmCarrierNoiseRatio ( )

Gets the current AM carrier to noise ratio.

Return the current AM carrier to noise ratio in dB.

See also
akc595x_reg22
Returns
uint8_t value in dB of carrier to noise ratio.

◆ getAmCurrentSpace()

uint8_t AKC695X::getAmCurrentSpace ( )

Gets the current AM space.

Returns the AM current space stored in the register 22.

See also
akc595x_reg22
Returns
uint8_t current space 3kHz or 5kHz

◆ isFmStereo()

bool AKC695X::isFmStereo ( )

Gets the current FM stereo status.

Returns true when the FM stereo signal is more than 30% percent

See also
akc595x_reg23
Returns
true if stereo is detected.

◆ getFmCarrierNoiseRatio()

uint8_t AKC695X::getFmCarrierNoiseRatio ( )

Gets the current FM carrier to noise ratio.

Return the current FM carrier to noise ratio in dB.

See also
akc595x_reg23
Returns
uint8_t value in dB of carrier to noise ratio.

◆ setFmEmphasis()

void AKC695X::setFmEmphasis ( uint8_t  de)

Sets de-emphasis.

Sets de-emphasis to 50us (Asia) or 75us (USA).

Parameters
de0 = 75us; 1 = 50us

◆ setFmStereoMono()

void AKC695X::setFmStereoMono ( uint8_t  value)

Sets the FM stereo or mono.

This method configures the stereo behavior

Parameter vaue Description
0 Auto stereo
2 Force stereo
1 Mono
Parameters
valuesee table above

◆ setFmBandwidth()

void AKC695X::setFmBandwidth ( uint8_t  value)

Sets the FM Bandwidth.

This method configures FM Bandwidth

Parameter vaue Bandwidth
0 150kHz
1 200kHz
2 50kHz
3 100kHz
Parameters
valuesee table above