PU2CLR AKC695X Arduino Library
1.0.2
This is an Arduino Library to control the AKC695X / M695X DSP radio devices
|
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... | |
|
inline |
Sets the current AM channel spacing.
Use this function to change the AM channel spacing
bool AKC695X::isTuned | ( | ) |
Gets the result of tune processing.
This method gets the result of a tune process (seek or tune).
bool AKC695X::isTuningComplete | ( | ) |
Gets the Status of seeking or tuning process.
Return the status of tunning process
uint8_t AKC695X::isCurrentModeFM | ( | ) |
Gets the current operation mode;.
This method returns the current mode stored on register 20.
uint16_t AKC695X::getCurrentChannel | ( | ) |
Gets the current channel.
Returns the current channel stored in the registers 20 and 21.
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
uint8_t AKC695X::getAmCarrierNoiseRatio | ( | ) |
Gets the current AM carrier to noise ratio.
Return the current AM carrier to noise ratio in dB.
uint8_t AKC695X::getAmCurrentSpace | ( | ) |
Gets the current AM space.
Returns the AM current space stored in the register 22.
bool AKC695X::isFmStereo | ( | ) |
Gets the current FM stereo status.
Returns true when the FM stereo signal is more than 30% percent
uint8_t AKC695X::getFmCarrierNoiseRatio | ( | ) |
Gets the current FM carrier to noise ratio.
Return the current FM carrier to noise ratio in dB.
void AKC695X::setFmEmphasis | ( | uint8_t | de | ) |
Sets de-emphasis.
Sets de-emphasis to 50us (Asia) or 75us (USA).
de | 0 = 75us; 1 = 50us |
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 |
value | see table above |
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 |
value | see table above |