Library for Silicon Labs Si47xx AM/FM receiver. I tested Si4730 and Si4735.
Diff: MjSi47xx.h
- Revision:
- 3:4873fd430c38
- Parent:
- 2:d0de9c9c66a8
--- a/MjSi47xx.h Sun Aug 30 07:32:54 2015 +0000 +++ b/MjSi47xx.h Sun Sep 06 05:39:04 2015 +0000 @@ -10,11 +10,16 @@ FUNCTION_FM, FUNCTION_AM, }; + + enum PropertyType { + PROPERTY_RX_HARD_MUTE = 0x4001, + }; public: MjSi47xx(I2C* i2c, uint8_t address, DigitalOut* rst_n); void reset(); bool powerUp(FunctionType func); + bool setProperty(PropertyType property, uint16_t value); bool getIntStatus(bool* stcInt); bool fmTuneFrequency(float frequency); bool fmTuneStatus(float* frequency, uint8_t* rssi = NULL, uint8_t* snr = NULL, uint8_t* multipath = NULL);