Wixel SDK
|
#include <cc2511_types.h>
Go to the source code of this file.
Macros | |
#define | RSSI_OFFSET 71 |
Functions | |
void | radioRegistersInit () |
uint8 | radioLqi () |
int8 | radioRssi () |
BIT | radioCrcPassed () |
This header file provides a function for configuring the radio registers (radioRegistersInit()) and also some small functions for reading information from the radio.
Definition in file radio_registers.h.
#define RSSI_OFFSET 71 |
An offset used by radioRssi() to calculate the RSSI. According to Table 68 of the CC2511F32 datasheet, RSSI offset for 250kbps is 71.
Definition at line 57 of file radio_registers.h.
BIT radioCrcPassed | ( | ) |
If this function returns 0, the data in the last packet received was corrupted and should not be relied upon.
Definition at line 83 of file radio_registers.c.
uint8 radioLqi | ( | ) |
According to the CC2511F32 datasheet, the LQI is a metric of the quality of the received signal. "LQI is best used as a relative measurement of link quality (a high value indicates a better link than what a low value does), since the value is dependent on the modulation format."
Definition at line 88 of file radio_registers.c.
void radioRegistersInit | ( | ) |
Configures the CC2511's radio module using settings that have been tested by Pololu and are known to work.
In summary, these settings are:
This function does not configure the PKTLEN, MCSM0, MCSM1, MCSM2, CHANNR, or ADDR registers or the DMA: That should be done by higher-level code.
Definition at line 4 of file radio_registers.c.
int8 radioRssi | ( | ) |
The RSSI typically be between -100 and -10. A higher number (closer to zero if negative) is better. RSSI stands for Received Signal Strength Indication.
Definition at line 93 of file radio_registers.c.