I am trying to use radio_mac to capture packets from a transmitting device. I want it to scan through some channels as quickly as possible, only waiting on each channel long enough to determine if a Carrier is present, or to receive a whole fixed length packet. I have been looking at both the CC2511 datasheet and radio_mac.[ch] and the documentation thereof.
I have created a radioMacEventHandler function in my code, but it is never being called. Other than including radio_mac.h, and calling radioMaxRx(pkt_ptr, timeout), to initiate the first channel scan, do I need to do/call anything to have it processed?
I cannot find the info within the datasheet that explains how to use DMA and the radio to send/receive packets. I am only interested in receiving the packets.
I did find information in the datasheet that indicates that you can reliably calibrate the FS for each “channel” first up and store these, occasionally re-calibrating them, and reusing them to enable a much faster scan through the channels, such as frequency hopping, and am using this method.
But the issue right now is that the ISR never seems to call the radioMacEventHandler.
Thanks in advance.