mathertel / Radio

An Arduino library to control FM radio chips like SI4703, SI4705, RDA5807M, TEA5767.
http://mathertel.github.io/Radio
BSD 3-Clause "New" or "Revised" License
300 stars 91 forks source link

Where is the actual register access code? #19

Closed cgrund1 closed 5 years ago

cgrund1 commented 5 years ago

Forgive my poor grasp of how include files work. I have been successfully including and using the radio.h and RDA5807M.h files with my project (Arduino Nano drives 3 FM radios, and reads back RSSI info to select best signal for audio output). For speed, I would like to directly read/write single RDA registers , and got very confused reading the RDA spec sheet. So I tried to use the *.h files for examples of how to do this, but don't understand how to find the actual low level code that does the register communication. I see a lines like this:

// ----- combined status functions ----- 183 virtual void getRadioInfo(RADIO_INFO *info);

I am successfully using getRadioInfo() using a pointer to the structure, but can't find the actual function code. Also would like to set or read some items not defined in the *.h files. Can anyone point me to where the actual register access code is? Thanks, Chris

mathertel commented 5 years ago

The getRadioInfo implementation can be found in src\RDA5807M.cpp.