62 #ifndef __S2LP_RADIO_H 63 #define __S2LP_RADIO_H 136 AFC_MODE_LOOP_CLOSED_ON_SLICER = 0,
137 AFC_MODE_LOOP_CLOSED_ON_2ND_CONV_STAGE
158 ISI_EQUALIZATION_DISABLED = 0,
159 ISI_EQUALIZATION_SINGLE_PASS,
160 ISI_EQUALIZATION_DUAL_PASS
void S2LPRadioGetAfcInfo(SAfcInit *xSAfcInit)
Return the AFC struct that corresponds to the AFC block parameters set on the chip.
void S2LPRadioSetChannelBW(uint32_t lBandwidth)
Set the channel filter bandwidth.
void S2LPRadioSetRefDiv(SFunctionalState xNewState)
Set the reference divider value.
uint32_t S2LPRadioGetFrequencyDev(void)
Return the frequency deviation.
uint8_t S2LPRadioInit(SRadioInit *pxSRadioInitStruct)
Initializes the S2LP analog and digital radio part according to the specified parameters in the pxSRa...
ModulationSelect xModulationSelect
void S2LPRadioSetChannelSpace(uint32_t lChannelSpace)
Set the channel space factor in channel space register. The channel spacing step is computed as F_Xo/...
void S2LPRadioSetDatarate(uint32_t lDatarate)
Set the datarate.
SFunctionalState
S2LP Functional state. Used to enable or disable a specific option.
uint32_t S2LPRadioGetXtalFrequency(void)
Return the XTAL frequency.
uint8_t S2LPRadioGetChannel(void)
Returns the actual channel number.
void S2LPRadioCalibrationVco(SFunctionalState xAmplitudeCalibration, SFunctionalState xFrequencyCalibration)
Enable the calibration of the VCO frequency and amplitude.
void S2LPRadioAfcInit(SAfcInit *xSAfcInit)
Initialize the AFC block according to the passed parameters.
SFunctionalState xAfcEnable
ModulationSelect S2LPRadioGetModulation(void)
Return the modulation type used.
SFunctionalState S2LPRadioGetRefDiv(void)
To know if the reference deivider is enabled or disabled.
uint32_t S2LPRadioGetChannelBW(void)
Return the channel filter bandwidth.
SIsiEqu
S2LP ISI Equalization type enumeration.
SIsiEqu S2LPRadioGetIsiEqualizationMode(void)
Returnthe ISI equalization.
int32_t S2LPRadioGetPALeveldBm(uint8_t cIndex)
Returns a specific PA_LEVEL register, returning a value in dBm.
uint8_t S2LPRadioGetPALevelMaxIndex(void)
Returns the actual PA_LEVEL_MAX_INDEX.
S2LP Radio Init structure definition.
void S2LPRadioSetTxCalibVcoAmpWord(uint8_t value)
Set calibration word of the aplitude in TX.
S2LP AFC Init structure definition.
void S2LPRadioSetTxCalibVcoFreqWord(uint8_t value)
Set calibration word of the frequency in TX.
ModulationSelect
S2LP Modulation enumeration.
SClkRecMode
S2LP Clock Recovery mode enumeration.
This file contains all the registers address and masks.
SFunctionalState cClkRec16SymPostFlt
void S2LPRadioSetPALeveldBm(uint8_t cIndex, int32_t wPowerdBm)
Sets a specific PA_LEVEL register, with a value given in dBm.
void S2LPRadioSetRxCalibVcoFreqWord(uint8_t value)
Set calibration word of the frequency in RX.
uint8_t S2LPRadioSetFrequencyBase(uint32_t lFBase)
Set the Synth word and the Band Select register according to desired base carrier frequency....
void S2LPRadioSetRxCalibVcoAmpWord(uint8_t value)
Set calibration word of the aplitude in RX.
uint32_t S2LPRadioGetChannelSpace(void)
Return the channel space register.
void S2LPRadioSetChannel(uint8_t cChannel)
Sets the channel number.
void S2LPRadioSetIsiEqualizationMode(SIsiEqu xSIsiMode)
Set the ISI equalizer.
void S2LPRadioSetPALevelMaxIndex(uint8_t cIndex)
Sets a specific PA_LEVEL_MAX_INDEX.
void S2LPRadioSetFrequencyDev(uint32_t lFDev)
Set the frequency deviation.
void S2LPRadioSetXtalFrequency(uint32_t lXtalFrequency)
Set the XTAL frequency.
SAfcMode
S2LP AFC mode enumeration.
void S2LPRadioGetSymClkRecoverInfo(SSymClkRecInit *xSSymClkRecInit)
Return the clock recovery configuration.
uint32_t S2LPRadioGetFrequencyBase(void)
Return the base carrier frequency.
uint32_t S2LPRadioGetDatarate(void)
Return the datarate.
void S2LPRadioSetModulation(ModulationSelect xModulation)
Set the modulation type.
void S2LPRadioSetMaxPALevel(SFunctionalState xNewState)
Set the MAX_DBM bit. This will allow to transmit at the maximum power.
void S2LPRadioSetDigDiv(SFunctionalState xNewState)
Set the digital divider .
void S2LPRadioSetAutoRampingMode(SFunctionalState xNewState)
Set the autoramping mode. If enabled:
S2LP Clock Recovery Init structure definition.
void S2LPRadioSetManualRampingMode(SFunctionalState xNewState)
Set the manual ramping mode.
Header file for S2-LP types.
uint32_t S2LPRadioGetSynthWord(void)
Returns the synth word.
SFunctionalState S2LPRadioGetDigDiv(void)
Get the digital divider .
void S2LPRadioSymClkRecoverInit(SSymClkRecInit *xSSymClkRecInit)
Clock recovery configuration.
SFunctionalState xAfcFreezeOnSync
void S2LPRadioGetInfo(SRadioInit *pxSRadioInitStruct)
Returns the S2LP analog and digital radio structure according to the registers value.
void S2LPRadioSetSynthWord(uint32_t lSynthWord)
Sets the SYNTH registers.