Appiko
|
Functions | |
void | S2LPRadioSearchDatarateME (uint32_t lDatarate, uint16_t *pcM, uint8_t *pcE) |
Returns the mantissa and exponent, whose value used in the datarate formula will give the datarate value closer to the given datarate. More... | |
void | S2LPRadioSearchFreqDevME (uint32_t lFDev, uint8_t *pcM, uint8_t *pcE) |
Returns the mantissa and exponent, whose value used in the frequency deviation formula will give a frequency deviation value most closer to the given frequency deviation. More... | |
void | S2LPRadioSearchChannelBwME (uint32_t lBandwidth, uint8_t *pcM, uint8_t *pcE) |
Returns the mantissa and exponent for a given bandwidth. Even if it is possible to pass as parameter any value in the below mentioned range, the API will search the closer value according to a fixed table of channel bandwidth values (s_vectnBandwidth), as defined in the datasheet, returning the corresponding mantissa and exponent value. More... | |
uint32_t | S2LPRadioComputeDatarate (uint16_t cM, uint8_t cE) |
Returns the mantissa and exponent, whose value used in the datarate formula will give the datarate value closer to the given datarate. More... | |
uint32_t | S2LPRadioComputeFreqDeviation (uint8_t cM, uint8_t cE, uint8_t bs, uint8_t refdiv) |
Returns the mantissa and exponent, whose value used in the datarate formula will give the datarate value closer to the given datarate. More... | |
uint32_t | S2LPRadioComputeChannelFilterBw (uint8_t cM, uint8_t cE) |
Computes the channel filter value starting from mantissa and exponent. More... | |
uint32_t | S2LPRadioComputeFrequencyBase (uint32_t lSynthWord, uint8_t bs, uint8_t refdiv) |
Computes a frequency from a given SYNTH word. More... | |
uint32_t | S2LPRadioComputeSynthWord (uint32_t frequency, uint8_t refdiv) |
Computes the synth word from a given frequency. More... | |
uint8_t | S2LPRadioComputeChannelSpacingRegValue (uint32_t lChannelSpace) |
Computes the channel space register staring from the channel space value in Hz. The channel spacing step is F_Xo/32768. More... | |
uint32_t | S2LPRadioComputeChannelSpacing (uint8_t cChSpaceRegVal) |
Compute the channel spacing register from the channel spacing given in Hz. The channel spacing step is F_Xo/32768. More... | |
void | S2LPRadioComputeIF (uint32_t nIF, uint8_t *pcAnaIf, uint8_t *pcDigIf) |
Computes the ANALOG_IF and DIGITAL_IF register values staring from a image frequency value in Hz. More... | |
void | S2LPRadioSearchWCP (uint8_t *cp_isel, uint8_t *pfd_split, uint32_t lFc, uint8_t refdiv) |
Returns the charge pump word for a given VCO frequency. More... | |
uint32_t S2LPRadioComputeChannelFilterBw | ( | uint8_t | cM, |
uint8_t | cE | ||
) |
cM | mantissa value. |
cE | exponent value. |
uint32_t | the channel filter value in Hz. |
Definition at line 386 of file S2LP_Radio.c.
uint32_t S2LPRadioComputeChannelSpacing | ( | uint8_t | cChSpaceRegVal | ) |
cChSpaceRegVal | the channel spacing register |
uint32_t | The channel specing value in Hz. |
Definition at line 461 of file S2LP_Radio.c.
uint8_t S2LPRadioComputeChannelSpacingRegValue | ( | uint32_t | lChannelSpace | ) |
lChannelSpace | the channel spacing expressed in Hz. |
uint8_t | The channel specing register value . |
Definition at line 449 of file S2LP_Radio.c.
Referenced by S2LPRadioSetChannelSpace().
uint32_t S2LPRadioComputeDatarate | ( | uint16_t | cM, |
uint8_t | cE | ||
) |
fDatarate | datarate expressed in bps. This parameter ranging between 100 and 500000. |
pcM | pointer to the returned mantissa value. |
pcE | pointer to the returned exponent value. |
None. |
Definition at line 341 of file S2LP_Radio.c.
uint32_t S2LPRadioComputeFreqDeviation | ( | uint8_t | cM, |
uint8_t | cE, | ||
uint8_t | bs, | ||
uint8_t | refdiv | ||
) |
fDatarate | datarate expressed in bps. This parameter ranging between 100 and 500000. |
pcM | pointer to the returned mantissa value. |
pcE | pointer to the returned exponent value. |
None. |
Definition at line 368 of file S2LP_Radio.c.
uint32_t S2LPRadioComputeFrequencyBase | ( | uint32_t | lSynthWord, |
uint8_t | bs, | ||
uint8_t | refdiv | ||
) |
lSynthWord | the given SYNTH word. |
bs | value of the PLL divider. |
refdiv | reference divider value value (it can be only 1 or 2). |
uint32_t | the frequency base filter value in Hz. |
Definition at line 406 of file S2LP_Radio.c.
void S2LPRadioComputeIF | ( | uint32_t | nIF, |
uint8_t * | pcAnaIf, | ||
uint8_t * | pcDigIf | ||
) |
nIF | datarate expressed in bps. This parameter ranging between 100 and 500000. |
pcAnaIf | pointer to the register of analog IF. |
pcDigIf | pointer to the returned of digital IF. |
None. |
Definition at line 475 of file S2LP_Radio.c.
uint32_t S2LPRadioComputeSynthWord | ( | uint32_t | frequency, |
uint8_t | refdiv | ||
) |
frequency | Target frequency value expressed in Hz. |
refdiv | reference divider value value (it can be only 1 or 2). |
uint32_t | SYNTH_WORD. |
Definition at line 418 of file S2LP_Radio.c.
void S2LPRadioSearchChannelBwME | ( | uint32_t | lBandwidth, |
uint8_t * | pcM, | ||
uint8_t * | pcE | ||
) |
lBandwidth | bandwidth expressed in Hz. This parameter ranging between 1100 and 800100. |
pcM | pointer to the returned mantissa value. |
pcE | pointer to the returned exponent value. |
None. |
Definition at line 291 of file S2LP_Radio.c.
void S2LPRadioSearchDatarateME | ( | uint32_t | lDatarate, |
uint16_t * | pcM, | ||
uint8_t * | pcE | ||
) |
fDatarate | datarate expressed in bps. This parameter ranging between 100 and 500000. |
pcM | pointer to the returned mantissa value. |
pcE | pointer to the returned exponent value. |
None. |
Definition at line 192 of file S2LP_Radio.c.
void S2LPRadioSearchFreqDevME | ( | uint32_t | lFDev, |
uint8_t * | pcM, | ||
uint8_t * | pcE | ||
) |
fFDev | frequency deviation expressed in Hz. This parameter can be a value in the range [F_Xo*8/2^18, F_Xo*7680/2^18]. |
pcM | pointer to the returned mantissa value. |
pcE | pointer to the returned exponent value. |
None. |
Definition at line 236 of file S2LP_Radio.c.
References MIDDLE_BAND_FACTOR.
void S2LPRadioSearchWCP | ( | uint8_t * | cp_isel, |
uint8_t * | pfd_split, | ||
uint32_t | lFc, | ||
uint8_t | refdiv | ||
) |
cp_isel | pointer to the charge pump register value. |
pfd_split | pointer to the pfd register value. |
lFc | channel center frequency expressed in Hz. This parameter can be a value in one of the following ranges:
|
refdiv | reference divider value value (it can be only 1 or 2). |
uint8_t | Charge pump word. |
Definition at line 499 of file S2LP_Radio.c.
References MIDDLE_BAND_FACTOR.