PU2CLR AKC695X Arduino Library
1.0.1
This is an Arduino Library to control the AKC695X / M695X DSP radio devices
|
Functions | |
void | AKC695X::reset () |
Resets the system. | |
void | AKC695X::setI2CBusAddress (int deviceAddress) |
Sets the I2C bus device address. More... | |
void | AKC695X::setup (int reset_pin) |
Receiver startup. More... | |
void | AKC695X::powerOn (uint8_t fm_en, uint8_t tune, uint8_t mute, uint8_t seek, uint8_t seekup) |
Power the device on. More... | |
void | AKC695X::setRegister (uint8_t reg, uint8_t parameter) |
Sets a given register with a given value. More... | |
uint8_t | AKC695X::getRegister (uint8_t reg) |
Gets a given register content. More... | |
SI47XX Arduino Library implementation
This Library is under construction......
This is an Arduino library for the AKC695X, BROADCAST RECEIVER, IC family.
It works with I2C protocol and can provide an easier interface for controlling the AKC695X devices.
This library was built based on AKC6955 stereo FM / TV / MW / SW / LW digital tuning radio document from "AKC technology". It also intend to be used on all members of the AKC695X family respecting, of course, the features available for each IC version.
This library can be freely distributed using the MIT Free Software model. Copyright (c) 2019 Ricardo Lima Caratti.
Contact: pu2cl r@gm ail.c om
uint8_t AKC695X::getRegister | ( | uint8_t | reg | ) |
Gets a given register content.
It is a basic function to get a value from a given AKC695X device register
reg | register number to be read (0 ~ 26) |
void AKC695X::powerOn | ( | uint8_t | fm_en, |
uint8_t | tune, | ||
uint8_t | mute, | ||
uint8_t | seek, | ||
uint8_t | seekup | ||
) |
Power the device on.
Starts the AKC695X with some parameters.
fm_en | 1 = FM mode; 0 = AM mode |
tune | If 1 Trigger tune process. The STC bit is set high when the tune operation completes |
mute | If 1 mute L/R audio |
seek | If 1 Trigger tune process. The STC bit is set high when the tune operation completes |
seekup | Seek direction control bit. 0 = Seek down; 1 = Seek up |
void AKC695X::setI2CBusAddress | ( | int | deviceAddress | ) |
Sets the I2C bus device address.
You do not need use this function if your i2c device address is 0x10 (default value)
deviceAddress |
void AKC695X::setRegister | ( | uint8_t | reg, |
uint8_t | parameter | ||
) |
Sets a given register with a given value.
It is a basic function to deal with the AKC695X devices
reg | register number to be written (only for RW type registers) |
parameter | value to be written in the register |
void AKC695X::setup | ( | int | resetPin | ) |
Receiver startup.
resetPin | if >= 0, then you control the RESET. if -1, you are using ths MCU RST pin. |