Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: WNC14A2AInterface
Dependents: http-example-wnc http-example-wnc-modified
Calibration Private Functions
[SPIRIT_Calibration]
  | Functions | |
| void | SpiritCalibrationRco (SpiritFunctionalState xNewState) | 
| Enables or Disables the RCO calibration. | |
| void | SpiritCalibrationVco (SpiritFunctionalState xNewState) | 
| Enables or Disables the VCO calibration. | |
| void | SpiritCalibrationSetRcoCalWords (uint8_t cRwt, uint8_t cRfb) | 
| Sets the RCO calibration words. | |
| void | SpiritCalibrationGetRcoCalWords (uint8_t *pcRwt, uint8_t *pcRfb) | 
| Returns the RCO calibration words. | |
| uint8_t | SpiritCalibrationGetVcoCalData (void) | 
| Returns the VCO calibration data from internal VCO calibrator. | |
| void | SpiritCalibrationSetVcoCalDataTx (uint8_t cVcoCalData) | 
| Sets the VCO calibration data to be used in TX mode. | |
| uint8_t | SpiritCalibrationGetVcoCalDataTx (void) | 
| Returns the actual VCO calibration data used in TX mode. | |
| void | SpiritCalibrationSetVcoCalDataRx (uint8_t cVcoCalData) | 
| Sets the VCO calibration data to be used in RX mode. | |
| uint8_t | SpiritCalibrationGetVcoCalDataRx (void) | 
| Returns the actual VCO calibration data used in RX mode. | |
| void | SpiritCalibrationSetVcoWindow (VcoWin xRefWord) | 
| Sets the VCO calibration window. | |
| VcoWin | SpiritCalibrationGetVcoWindow (void) | 
| Returns the VCO calibration window. | |
| void | SpiritCalibrationSelectVco (VcoSel xVco) | 
| Selects a VCO. | |
| VcoSel | SpiritCalibrationGetVcoSelecttion (void) | 
| Returns the VCO selected. | |
Function Documentation
| void SpiritCalibrationGetRcoCalWords | ( | uint8_t * | pcRwt, | 
| uint8_t * | pcRfb | ||
| ) | 
Returns the RCO calibration words.
- Parameters:
- 
  pcRwt pointer to the variable in which the RWT word has to be stored. This parameter is a variable of uint8_t*. pcRfb pointer to the variable in which the RFB word has to be stored. This parameter is a variable of uint8_t*. 
- Return values:
- 
  None. 
Definition at line 209 of file SPIRIT_Calibration.c.
| uint8_t SpiritCalibrationGetVcoCalData | ( | void | ) | 
Returns the VCO calibration data from internal VCO calibrator.
- Parameters:
- 
  None. 
- Return values:
- 
  uint8_t VCO calibration data word. 
Definition at line 229 of file SPIRIT_Calibration.c.
| uint8_t SpiritCalibrationGetVcoCalDataRx | ( | void | ) | 
Returns the actual VCO calibration data used in RX mode.
- Parameters:
- 
  None. 
- Return values:
- 
  uint8_t Calibration data word used in RX mode. 
Definition at line 311 of file SPIRIT_Calibration.c.
| uint8_t SpiritCalibrationGetVcoCalDataTx | ( | void | ) | 
Returns the actual VCO calibration data used in TX mode.
- Parameters:
- 
  None. 
- Return values:
- 
  uint8_t Calibration data word used in TX mode. 
Definition at line 270 of file SPIRIT_Calibration.c.
| VcoSel SpiritCalibrationGetVcoSelecttion | ( | void | ) | 
Returns the VCO selected.
- Parameters:
- 
  void. 
- Return values:
- 
  VCO_H or VCO_L according to which VCO selected. This parameter can be a value of VcoSel. 
Definition at line 455 of file SPIRIT_Calibration.c.
| VcoWin SpiritCalibrationGetVcoWindow | ( | void | ) | 
Returns the VCO calibration window.
- Parameters:
- 
  None. 
- Return values:
- 
  VcoWin Value of REFWORD corresponding to the Ref_period according to the formula: CALIBRATION_WIN = 11*Ref_period/fxo. This parameter can be a value of VcoWin. 
Definition at line 356 of file SPIRIT_Calibration.c.
| void SpiritCalibrationRco | ( | SpiritFunctionalState | xNewState ) | 
Enables or Disables the RCO calibration.
- Parameters:
- 
  xNewState new state for RCO calibration. This parameter can be S_ENABLE or S_DISABLE. 
- Return values:
- 
  None. 
Definition at line 120 of file SPIRIT_Calibration.c.
| void SpiritCalibrationSelectVco | ( | VcoSel | xVco ) | 
Selects a VCO.
- Parameters:
- 
  xVco can be VCO_H or VCO_L according to which VCO select. This parameter can be a value of VcoSel. 
- Return values:
- 
  None. 
Definition at line 423 of file SPIRIT_Calibration.c.
| void SpiritCalibrationSetRcoCalWords | ( | uint8_t | cRwt, | 
| uint8_t | cRfb | ||
| ) | 
Sets the RCO calibration words.
- Parameters:
- 
  cRwt RWT word for RCO calibration. This parameter can be a value of uint8_t. cRfb RFB word for RCO calibration. This parameter can be a value of uint8_t. 
- Return values:
- 
  None. 
Definition at line 182 of file SPIRIT_Calibration.c.
| void SpiritCalibrationSetVcoCalDataRx | ( | uint8_t | cVcoCalData ) | 
Sets the VCO calibration data to be used in RX mode.
- Parameters:
- 
  cVcoCalData calibration data word to be set. This parameter is a variable of uint8_t. 
- Return values:
- 
  None. 
Definition at line 289 of file SPIRIT_Calibration.c.
| void SpiritCalibrationSetVcoCalDataTx | ( | uint8_t | cVcoCalData ) | 
Sets the VCO calibration data to be used in TX mode.
- Parameters:
- 
  cVcoCalData calibration data word to be set. This parameter is a variable of uint8_t. 
- Return values:
- 
  None. 
Definition at line 248 of file SPIRIT_Calibration.c.
| void SpiritCalibrationSetVcoWindow | ( | VcoWin | xRefWord ) | 
Sets the VCO calibration window.
- Parameters:
- 
  xRefWord value of REFWORD corresponding to the Ref_period according to the formula: CALIBRATION_WIN = 11*Ref_period/fxo. This parameter can be a value of VcoWin. 
- Return values:
- 
  None. 
Definition at line 330 of file SPIRIT_Calibration.c.
| void SpiritCalibrationVco | ( | SpiritFunctionalState | xNewState ) | 
Enables or Disables the VCO calibration.
- Parameters:
- 
  xNewState new state for VCO calibration. This parameter can be S_ENABLE or S_DISABLE. 
- Return values:
- 
  None. 
Definition at line 152 of file SPIRIT_Calibration.c.
Generated on Tue Jul 12 2022 17:40:26 by
 1.7.2
 1.7.2