PU2CLR Si4735 Arduino Library
2.0.0
Arduino Library for Si47XX Devices - By Ricardo Lima Caratti
|
Sets some MCU configurations (Arduino, DUE, SMT32, ESP32 etc);. More...
Functions | |
void | SI4735::setI2CLowSpeedMode (void) |
Sets I2C bus to 10KHz. More... | |
void | SI4735::setI2CStandardMode (void) |
Sets I2C bus to 100KHz. More... | |
void | SI4735::setI2CFastMode (void) |
Sets I2C bus to 400KHz. More... | |
void | SI4735::setI2CFastModeCustom (long value=500000) |
Sets the I2C bus to a given value. ATTENTION: use this function with cation. More... | |
void | SI4735::setAudioMuteMcuPin (int8_t pin) |
Sets the Audio Mute Mcu Pin. More... | |
void | SI4735::setHardwareAudioMute (bool on) |
Sets the Hardware Audio Mute. More... | |
virtual void | SI4735::setMcuControl (bool value) |
Enables MCU control resource. More... | |
virtual void | SI4735::setMcuWakeUpPin (uint8_t pin) |
Sets pin used to wake the MCU up. More... | |
virtual void | SI4735::mcuWakeUp () |
Sets the pin that controls some MCU features. You might do something with that. More... | |
virtual void | SI4735::mcuSleepDown () |
You might want to do something when MCU wakes up. More... | |
virtual void | SI4735::setMcuClockSpeed (uint32_t clock) |
Sets the Mcu Clock Speed if the platform supports this resource. More... | |
Sets some MCU configurations (Arduino, DUE, SMT32, ESP32 etc);.
|
inline |
Sets I2C bus to 10KHz.
The functions below modify the clock frequency for I2C communication. 100KHz is usually the baseline. Use one of these funcition if you have problem on you default configuration.
|
inline |
Sets I2C bus to 100KHz.
|
inline |
Sets I2C bus to 400KHz.
|
inline |
Sets the I2C bus to a given value. ATTENTION: use this function with cation.
value | in Hz. For example: The values 500000 sets the bus to 500KHz. |
|
inline |
Sets the Audio Mute Mcu Pin.
This function sets the mcu digital pin you want to use to control the external audio mute circuit.
Some users may be uncomfortable with the loud popping of the speaker during some transitions caused by some SI47XX commands.
This problem occurs during the transition from the power down to power up.
Every time the user changes the mode (FM to AM or AM to FM) the power down and power up commands are required by the Si47XX devices.
If you have a extra circuit in your receiver to mute the audio on amplifier input, you can configure a MCU pin to control it by using this function.
pin | if 0 ou greater sets the MCU digital pin will be used to control de external circuit. |
|
inline |
Sets the Hardware Audio Mute.
Turns the Hardware audio mute on or off
on | True or false |
Referenced by SI4735::powerDown(), SI4735::radioPowerUp(), and SI4735::setup().
|
virtual |
Enables MCU control resource.
If enabled, the user can make, for example, the MCU sleep or do something when it wakes up.
ATTENTION: This function is virtual and should be implemented in derived class
value | If true, Enable MCU control; If false (default), no MCU control. |
References SI4735::controlMcu.
|
virtual |
Sets pin used to wake the MCU up.
The MCU should have a pin used to contol its condition.
ATTENTION: This function is virtual and should be implemented in derived class
pin | MCU pin used to control the MCU |
|
virtual |
Sets the pin that controls some MCU features. You might do something with that.
You might want to do something when MCU wakes up.
ATTENTION: This function is virtual and should be implemented in derived class
|
virtual |
You might want to do something when MCU wakes up.
You can handle something after MCU wakes up.
ATTENTION: This function is virtual and should be implemented in derived class
|
virtual |
Sets the Mcu Clock Speed if the platform supports this resource.
If the MCU platform support, this function sets the CPU clock speed. ATTENTION: This function is virtual and should be implemented in derived class
param | CPU parameter |