|
| Adafruit_Si4713 (int8_t rstpin=-1) |
| Instantiates a new Si4713 class. More...
|
|
bool | begin (uint8_t addr=SI4710_ADDR1, TwoWire *theWire=&Wire) |
| Setups the i2c and calls powerUp function. More...
|
|
void | reset () |
| Resets the registers to default settings and puts chip in powerdown mode.
|
|
void | powerUp () |
| Sends power up command to the breakout, than CTS and GPO2 output is disabled and than enable xtal oscilator. Also It sets properties: SI4713_PROP_REFCLK_FREQ: 32.768 SI4713_PROP_TX_PREEMPHASIS: 74uS pre-emph (USA standard) SI4713_PROP_TX_ACOMP_GAIN: max gain SI4713_PROP_TX_ACOMP_ENABLE: turned on limiter and AGC.
|
|
uint8_t | getRev () |
| Get the hardware revision code from the device using SI4710_CMD_GET_REV. More...
|
|
void | tuneFM (uint16_t freqKHz) |
| Tunes to given transmit frequency. More...
|
|
uint8_t | getStatus (void) |
| Read interrupt status bits. More...
|
|
void | readTuneStatus (void) |
| Queries the status of a previously sent TX Tune Freq, TX Tune Power, or TX Tune Measure using SI4710_CMD_TX_TUNE_STATUS command.
|
|
void | readTuneMeasure (uint16_t freq) |
| Measure the received noise level at the specified frequency using SI4710_CMD_TX_TUNE_MEASURE command. More...
|
|
void | setTXpower (uint8_t pwr, uint8_t antcap=0) |
| Sets the output power level and tunes the antenna capacitor. More...
|
|
void | readASQ (void) |
| Queries the TX status and input audio signal metrics.
|
|
void | setProperty (uint16_t p, uint16_t v) |
| Set chip property over I2C. More...
|
|
void | beginRDS (uint16_t programID=0xADAF) |
| Begin RDS Sets properties as follows: SI4713_PROP_TX_AUDIO_DEVIATION: 66.25KHz, SI4713_PROP_TX_RDS_DEVIATION: 2KHz, SI4713_PROP_TX_RDS_INTERRUPT_SOURCE: 1, SI4713_PROP_TX_RDS_PS_MIX: 50% mix (default value), SI4713_PROP_TX_RDS_PS_MISC: 0x1008, SI4713_PROP_TX_RDS_PS_REPEAT_COUNT: 3, SI4713_PROP_TX_RDS_MESSAGE_COUNT: 1, SI4713_PROP_TX_RDS_PS_AF: 0xE0E0, SI4713_PROP_TX_RDS_FIFO_SIZE: 0, SI4713_PROP_TX_COMPONENT_ENABLE: 7. More...
|
|
void | setRDSstation (const char *s) |
| Set up the RDS station string. More...
|
|
void | setRDSbuffer (const char *s) |
| Queries the status of the RDS Group Buffer and loads new data into buffer. More...
|
|
void | setGPIO (uint8_t x) |
| Sets GP1 / GP2 output level (low or high). More...
|
|
void | setGPIOctrl (uint8_t x) |
| Configures GP1 / GP2 as output or Hi-Z. More...
|
|
Class that stores state and functions for interacting with Si4713 breakout.
void Adafruit_Si4713::beginRDS |
( |
uint16_t |
programID = 0xADAF | ) |
|
Begin RDS Sets properties as follows: SI4713_PROP_TX_AUDIO_DEVIATION: 66.25KHz, SI4713_PROP_TX_RDS_DEVIATION: 2KHz, SI4713_PROP_TX_RDS_INTERRUPT_SOURCE: 1, SI4713_PROP_TX_RDS_PS_MIX: 50% mix (default value), SI4713_PROP_TX_RDS_PS_MISC: 0x1008, SI4713_PROP_TX_RDS_PS_REPEAT_COUNT: 3, SI4713_PROP_TX_RDS_MESSAGE_COUNT: 1, SI4713_PROP_TX_RDS_PS_AF: 0xE0E0, SI4713_PROP_TX_RDS_FIFO_SIZE: 0, SI4713_PROP_TX_COMPONENT_ENABLE: 7.
- Parameters
-
programID | sets SI4713_PROP_TX_RDS_PI to parameter value |