![]() |
![]() |
|
CC23x0R5DriverLibrary
|
|
Macros | |
| #define | CKMD_WATCHDOG_UNLOCK 0x1ACCE551 |
| Watchdog unlocking value. More... | |
Functions | |
| __STATIC_INLINE void | CKMDEnableHighPerformanceClockBuffer (void) |
| Enable high performance clock buffer. More... | |
| __STATIC_INLINE void | CKMDDisableHighPerformanceClockBuffer (void) |
| Disable high performance clock buffer. More... | |
| __STATIC_INLINE void | CKMDSetInitialCapTrim (uint32_t q1CapTrim, uint32_t q2CapTrim) |
| Sets initial HFXT capacitor ramp trims. More... | |
| __STATIC_INLINE void | CKMDSetInitialQ1CapTrim (uint32_t q1Cap) |
| Sets initial HFXT Q1 capacitor ramp trim. More... | |
| __STATIC_INLINE void | CKMDSetInitialQ2CapTrim (uint32_t q2Cap) |
| Sets initial HFXT Q2 capacitor ramp trim. More... | |
| __STATIC_INLINE void | CKMDSetInitialIrefTrim (uint32_t iref) |
| Sets initial HFXT IREF ramp trim. More... | |
| __STATIC_INLINE void | CKMDSetInitialIdacTrim (uint32_t idac) |
| Sets initial HFXT IDAC ramp trim. More... | |
| __STATIC_INLINE void | CKMDSetInitialAmplitudeThresholdTrim (uint32_t amplitudeThreshold) |
| Sets initial HFXT amplitude threshold ramp trim. More... | |
| __STATIC_INLINE uint32_t | CKMDGetInitialQ1CapTrim (void) |
| Gets initial HFXT Q1 capacitor ramp trim. More... | |
| __STATIC_INLINE uint32_t | CKMDGetInitialQ2CapTrim (void) |
| Gets initial HFXT Q2 capacitor ramp trim. More... | |
| __STATIC_INLINE uint32_t | CKMDGetInitialIrefTrim (void) |
| Gets initial HFXT IREF ramp trim. More... | |
| __STATIC_INLINE uint32_t | CKMDGetInitialIdacTrim (void) |
| Gets initial HFXT IDAC ramp trim. More... | |
| __STATIC_INLINE uint32_t | CKMDGetInitialAmplitudeThresholdTrim (void) |
| Gets initial HFXT amplitude threshold ramp trim. More... | |
| __STATIC_INLINE void | CKMDSetTargetCapTrim (uint32_t q1CapTrim, uint32_t q2CapTrim) |
| Sets target HFXT capacitor ramp trims. More... | |
| __STATIC_INLINE void | CKMDSetTargetQ1CapTrim (uint32_t q1Cap) |
| Sets target HFXT Q1 capacitor ramp trim. More... | |
| __STATIC_INLINE void | CKMDSetTargetQ2CapTrim (uint32_t q2Cap) |
| Sets target HFXT Q2 capacitor ramp trim. More... | |
| __STATIC_INLINE void | CKMDSetTargetIrefTrim (uint32_t iref) |
| Sets target HFXT IREF ramp trim. More... | |
| __STATIC_INLINE void | CKMDSetTargetIdacTrim (uint32_t idac) |
| Sets target HFXT IDAC ramp trim. More... | |
| __STATIC_INLINE void | CKMDSetTargetAmplitudeThresholdTrim (uint32_t amplitudeThreshold) |
| Sets target HFXT amplitude threshold ramp trim. More... | |
| __STATIC_INLINE uint32_t | CKMDGetTargetQ1CapTrim (void) |
| Gets target HFXT Q1 capacitor ramp trim. More... | |
| __STATIC_INLINE uint32_t | CKMDGetTargetQ2CapTrim (void) |
| Gets target HFXT Q2 capacitor ramp trim. More... | |
| __STATIC_INLINE uint32_t | CKMDGetTargetIrefTrim (void) |
| Gets target HFXT IREF ramp trim. More... | |
| __STATIC_INLINE uint32_t | CKMDGetTargetIdacTrim (void) |
| Gets target HFXT IDAC ramp trim. More... | |
| __STATIC_INLINE uint32_t | CKMDGetTargetAmplitudeThresholdTrim (void) |
| Gets target HFXT amplitude threshold ramp trim. More... | |
| __STATIC_INLINE uint_least16_t | CKMDGetLfoscRtnPpm (void) |
| Gets the worst-case LFOSC frequency jump due to RTN. More... | |
| __STATIC_INLINE uint_least16_t | CKMDGetLfoscMidTempCoefficientPpmPerC (void) |
| Gets the the worst-case LFOSC temperature coefficient in the "middle" temperature range. More... | |
| __STATIC_INLINE uint_least16_t | CKMDGetLfoscExtTempCoefficientPpmPerC (void) |
| Gets the the worst-case LFOSC temperature coefficient in the "extended" temperature range. More... | |
| __STATIC_INLINE void | CKMDUnlockWatchdog (void) |
| Unlock write access to the Watchdog. More... | |
| __STATIC_INLINE void | CKMDLockWatchdog (void) |
| Lock write access to the Watchdog. More... | |
| __STATIC_INLINE void | CKMDSetWatchdogCounter (uint32_t value) |
| Set watchdog counter value. More... | |
| __STATIC_INLINE void | CKMDSetWatchdogDebugConfig (bool stopWhenCpuIsHalted) |
| Configure if the Watchdog should stop when the CPU is halted by a debugger. More... | |
LFOSC Temperature Coefficient Temperature Limits | |
If the temperature in Celsius is within the range [ CKMD_LFOSC_MID_TEMP_COEFFICIENT_RANGE_MIN, CKMD_LFOSC_MID_TEMP_COEFFICIENT_RANGE_MAX ], inclusive, then the temperature coefficient CKMDGetLfoscMidTempCoefficientPpmPerC() shall be used, otherwise CKMDGetLfoscExtTempCoefficientPpmPerC(). If CKMD_LFOSC_MID_TEMP_COEFFICIENT_RANGE_MIN is INT16_MIN, then there is no lower limit for the above mentioned temperature range. If CKMD_LFOSC_MID_TEMP_COEFFICIENT_RANGE_MAX is INT16_MAX, then there is no upper limit for the above mentioned temperature range. | |
| #define | CKMD_LFOSC_MID_TEMP_COEFFICIENT_RANGE_MIN (INT16_MIN) |
| #define | CKMD_LFOSC_MID_TEMP_COEFFICIENT_RANGE_MAX (70) |
| #define CKMD_LFOSC_MID_TEMP_COEFFICIENT_RANGE_MIN (INT16_MIN) |
| #define CKMD_LFOSC_MID_TEMP_COEFFICIENT_RANGE_MAX (70) |
| #define CKMD_WATCHDOG_UNLOCK 0x1ACCE551 |
Watchdog unlocking value.
Referenced by CKMDUnlockWatchdog().
| __STATIC_INLINE void CKMDEnableHighPerformanceClockBuffer | ( | void | ) |
Enable high performance clock buffer.
| __STATIC_INLINE void CKMDDisableHighPerformanceClockBuffer | ( | void | ) |
Disable high performance clock buffer.
| __STATIC_INLINE void CKMDSetInitialCapTrim | ( | uint32_t | q1CapTrim, |
| uint32_t | q2CapTrim | ||
| ) |
Sets initial HFXT capacitor ramp trims.
This function sets the initial HFXT capacitor ramp trims. It will overwrite the initial HFXT ramp trim values set during startup.
This trim value is used when initially turning on the HFXT.
capTrim must be found experimentally based on the chosen crystal and desired ramp behaviour.| q1CapTrim | Initial Q1 capacitor trim. |
| q2CapTrim | Initial Q2 capacitor trim. |
| __STATIC_INLINE void CKMDSetInitialQ1CapTrim | ( | uint32_t | q1Cap | ) |
Sets initial HFXT Q1 capacitor ramp trim.
This function sets the initial HFXT Q1 capacitor ramp trim. It will overwrite the initial HFXT ramp trim value set during startup.
This trim value is used when initially turning on the HFXT.
q1Cap must be found experimentally based on the chosen crystal and desired ramp behaviour.| q1Cap | Initial Q1 capacitor trim. |
| __STATIC_INLINE void CKMDSetInitialQ2CapTrim | ( | uint32_t | q2Cap | ) |
Sets initial HFXT Q2 capacitor ramp trim.
This function sets the initial HFXT Q2 capacitor ramp trim. It will overwrite the initial HFXT ramp trim value set during startup.
This trim value is used when initially turning on the HFXT.
q2Cap must be found experimentally based on the chosen crystal and desired ramp behaviour.| q2Cap | Initial Q2 capacitor trim. |
| __STATIC_INLINE void CKMDSetInitialIrefTrim | ( | uint32_t | iref | ) |
Sets initial HFXT IREF ramp trim.
This function sets initial HFXT IREF ramp trim. It will overwrite the initial HFXT ramp trim value set during startup.
This trim value is used when initially turning on the HFXT.
iref must be found experimentally based on the chosen crystal and desired ramp behaviour.| iref | Initial IREF trim. |
| __STATIC_INLINE void CKMDSetInitialIdacTrim | ( | uint32_t | idac | ) |
Sets initial HFXT IDAC ramp trim.
This function sets the initial HFXT IDAC ramp trim. It will overwrite the initial HFXT ramp trim value set during startup.
This trim value is used when initially turning on the HFXT.
idac must be found experimentally based on the chosen crystal and desired ramp behaviour.| idac | Initial IDAC trim. |
| __STATIC_INLINE void CKMDSetInitialAmplitudeThresholdTrim | ( | uint32_t | amplitudeThreshold | ) |
Sets initial HFXT amplitude threshold ramp trim.
This function sets the initial HFXT amplitude threshold ramp trim. It will overwrite the initial HFXT ramp trim value set during startup.
This trim value is used when initially turning on the HFXT.
amplitudeThreshold must be found experimentally based on the chosen crystal and desired ramp behaviour.| amplitudeThreshold | Initial amplitude threshold trim. |
| __STATIC_INLINE uint32_t CKMDGetInitialQ1CapTrim | ( | void | ) |
Gets initial HFXT Q1 capacitor ramp trim.
This function gets the initial HFXT Q1 capacitor ramp trim.
| __STATIC_INLINE uint32_t CKMDGetInitialQ2CapTrim | ( | void | ) |
Gets initial HFXT Q2 capacitor ramp trim.
This function gets the initial HFXT Q2 capacitor ramp trim.
| __STATIC_INLINE uint32_t CKMDGetInitialIrefTrim | ( | void | ) |
Gets initial HFXT IREF ramp trim.
This function gets the initial HFXT IREF ramp trim.
| __STATIC_INLINE uint32_t CKMDGetInitialIdacTrim | ( | void | ) |
Gets initial HFXT IDAC ramp trim.
This function gets the initial HFXT IDAC ramp trim.
| __STATIC_INLINE uint32_t CKMDGetInitialAmplitudeThresholdTrim | ( | void | ) |
Gets initial HFXT amplitude threshold ramp trim.
This function initial HFXT amplitude threshold ramp trim.
| __STATIC_INLINE void CKMDSetTargetCapTrim | ( | uint32_t | q1CapTrim, |
| uint32_t | q2CapTrim | ||
| ) |
Sets target HFXT capacitor ramp trims.
This function sets the target HFXT capacitor ramp trims. It will overwrite the target HFXT ramp trim values set during startup.
This trim value is used when target turning on the HFXT.
capTrim must be found experimentally based on the chosen crystal and desired ramp behaviour.| q1CapTrim | Target Q1 capacitor trim. |
| q2CapTrim | Target Q2 capacitor trim. |
| __STATIC_INLINE void CKMDSetTargetQ1CapTrim | ( | uint32_t | q1Cap | ) |
Sets target HFXT Q1 capacitor ramp trim.
This function target HFXT Q1 capacitor ramp trim. It will overwrite the target HFXT ramp trim value set during startup.
This trim value is used after HFXT has ramped to change crystal performance.
q1Cap must be found experimentally based on the chosen crystal and desired ramp behaviour.| q1Cap | Target Q1 capacitor trim. |
| __STATIC_INLINE void CKMDSetTargetQ2CapTrim | ( | uint32_t | q2Cap | ) |
Sets target HFXT Q2 capacitor ramp trim.
This function target HFXT Q2 capacitor ramp trim. It will overwrite the target HFXT ramp trim value set during startup.
This trim value is used after HFXT has ramped to change crystal performance.
q2Cap must be found experimentally based on the chosen crystal and desired ramp behaviour.| q2Cap | Target Q2 capacitor trim. |
| __STATIC_INLINE void CKMDSetTargetIrefTrim | ( | uint32_t | iref | ) |
Sets target HFXT IREF ramp trim.
This function target HFXT IREF ramp trim. It will overwrite the target HFXT ramp trim value set during startup.
This trim value is used after HFXT has ramped to change crystal performance.
iref must be found experimentally based on the chosen crystal and desired ramp behaviour.| iref | Target IREF trim. |
| __STATIC_INLINE void CKMDSetTargetIdacTrim | ( | uint32_t | idac | ) |
Sets target HFXT IDAC ramp trim.
This function target HFXT IDAC ramp trim. It will overwrite the target HFXT ramp trim value set during startup.
This trim value is used after HFXT has ramped to change crystal performance.
idac must be found experimentally based on the chosen crystal and desired ramp behaviour.| idac | Target IDAC trim. |
| __STATIC_INLINE void CKMDSetTargetAmplitudeThresholdTrim | ( | uint32_t | amplitudeThreshold | ) |
Sets target HFXT amplitude threshold ramp trim.
This function target HFXT amplitude threshold ramp trim. It will overwrite the target HFXT ramp trim value set during startup.
This trim value is used after HFXT has ramped to change crystal performance.
amplitudeThreshold must be found experimentally based on the chosen crystal and desired ramp behaviour.| amplitudeThreshold | Target amplitude threshold trim. |
| __STATIC_INLINE uint32_t CKMDGetTargetQ1CapTrim | ( | void | ) |
Gets target HFXT Q1 capacitor ramp trim.
This function gets the target HFXT Q1 capacitor ramp trim.
| __STATIC_INLINE uint32_t CKMDGetTargetQ2CapTrim | ( | void | ) |
Gets target HFXT Q2 capacitor ramp trim.
This function gets the target HFXT Q2 capacitor ramp trim.
| __STATIC_INLINE uint32_t CKMDGetTargetIrefTrim | ( | void | ) |
Gets target HFXT IREF ramp trim.
This function gets the target HFXT IREF ramp trim.
| __STATIC_INLINE uint32_t CKMDGetTargetIdacTrim | ( | void | ) |
Gets target HFXT IDAC ramp trim.
This function gets the target HFXT IDAC ramp trim.
| __STATIC_INLINE uint32_t CKMDGetTargetAmplitudeThresholdTrim | ( | void | ) |
Gets target HFXT amplitude threshold ramp trim.
This function target HFXT amplitude threshold ramp trim.
| __STATIC_INLINE uint_least16_t CKMDGetLfoscRtnPpm | ( | void | ) |
Gets the worst-case LFOSC frequency jump due to RTN.
| __STATIC_INLINE uint_least16_t CKMDGetLfoscMidTempCoefficientPpmPerC | ( | void | ) |
Gets the the worst-case LFOSC temperature coefficient in the "middle" temperature range.
This function can be used to determine the the worst-case LFOSC temperature coefficient in units of ppm/C in the temperature range [ CKMD_LFOSC_MID_TEMP_COEFFICIENT_RANGE_MIN, CKMD_LFOSC_MID_TEMP_COEFFICIENT_RANGE_MAX ].
| __STATIC_INLINE uint_least16_t CKMDGetLfoscExtTempCoefficientPpmPerC | ( | void | ) |
Gets the the worst-case LFOSC temperature coefficient in the "extended" temperature range.
This function can be used to determine the the worst-case LFOSC temperature coefficient in units of ppm/C when the temperature is outside of the temperature range [ CKMD_LFOSC_MID_TEMP_COEFFICIENT_RANGE_MIN, CKMD_LFOSC_MID_TEMP_COEFFICIENT_RANGE_MAX ].
| __STATIC_INLINE void CKMDUnlockWatchdog | ( | void | ) |
Unlock write access to the Watchdog.
The function will wait until the Watchdog has actually been unlocked, before returning.
References CKMD_WATCHDOG_UNLOCK.
| __STATIC_INLINE void CKMDLockWatchdog | ( | void | ) |
Lock write access to the Watchdog.
| __STATIC_INLINE void CKMDSetWatchdogCounter | ( | uint32_t | value | ) |
Set watchdog counter value.
Calling this function will immediately start (or restart) the counter. It will count down from the value
| value | is the value to write to the Watchdog counter. |
| __STATIC_INLINE void CKMDSetWatchdogDebugConfig | ( | bool | stopWhenCpuIsHalted | ) |
Configure if the Watchdog should stop when the CPU is halted by a debugger.
| stopWhenCpuIsHalted | if true, the Watchdog will stop counting while the CPU is stopped by a debugger. If false, the Watchdog will continue counting while the CPU is stopped by a debugger. |