Herzog Library 00.00.01
rel_libdev.herzog.00.00.01.10606
|
Go to the source code of this file.
Data Structures | |
struct | CLOCK_SFRS_t |
A structure to represent Special Function Registers for Clock. More... | |
Macros | |
#define | CLOCK_SFRS ((__IO CLOCK_SFRS_t *)(ASIC_7B_BASE + 0)) |
The starting address of Clock SFRS. More... | |
#define | E_CLOCK_SOURCE_RC10KHZ 0x00 |
#define | E_CLOCK_SOURCE_RC12MHZ 0x01 |
#define | E_CLOCK_SOURCE_XTCLOCK 0x02 |
#define | E_CLOCK_SOURCE_RCAUX 0x03 |
Functions | |
static __INLINE void | f_CLOCK_SelectSource (uint8_t src) |
Select clock source. More... | |
static __INLINE uint8_t | f_CLOCK_GetClockSource (void) |
Get clock source. More... | |
static __INLINE void | f_CLOCK_EnableXTClock (void) |
Enable crystal clock source. More... | |
static __INLINE void | f_CLOCK_DisableXTClock (void) |
Disable crystal clock source. More... | |
static __INLINE void | f_CLOCK_EnableXTClock32K (void) |
Enable 32K crystal clock source. More... | |
static __INLINE void | f_CLOCK_DisableXTClock32K (void) |
Disable 32K crystal clock source. More... | |
static __INLINE uint8_t | f_CLOCK_IsXTClockEnabled (void) |
Check if crystal clock source enabled. More... | |
static __INLINE void | f_CLOCK_EnableRCClock (void) |
Enable RC clock source. More... | |
static __INLINE void | f_CLOCK_DisableRCClock (void) |
Disable RC clock source. More... | |
static __INLINE uint8_t | f_CLOCK_IsRCClockEnabled (void) |
Check if RC clock source enabled. More... | |
static __INLINE void | f_CLOCK_RCTrim (uint8_t val) |
Trim RC clock. More... | |
static __INLINE void | f_CLOCK_RC10KTrim (uint8_t val) |
Trim 10K RC clock. More... | |
This file is proprietary to Indie Semiconductor. All rights reserved. Reproduction or distribution, in whole or in part, is forbidden except by express written permission of Indie Semiconductor.
#define CLOCK_SFRS ((__IO CLOCK_SFRS_t *)(ASIC_7B_BASE + 0)) |
The starting address of Clock SFRS.
#define E_CLOCK_SOURCE_RC10KHZ 0x00 |
#define E_CLOCK_SOURCE_RC12MHZ 0x01 |
#define E_CLOCK_SOURCE_RCAUX 0x03 |
#define E_CLOCK_SOURCE_XTCLOCK 0x02 |
|
static |
Disable RC clock source.
|
static |
Disable crystal clock source.
|
static |
Disable 32K crystal clock source.
|
static |
Enable RC clock source.
|
static |
Enable crystal clock source.
|
static |
Enable 32K crystal clock source.
|
static |
Get clock source.
return The enumeration of clock source.
|
static |
Check if RC clock source enabled.
return The status of RC clock source.
|
static |
Check if crystal clock source enabled.
return The status of crystal clock source.
|
static |
Trim 10K RC clock.
val | The trim setting for 10K RC clock. |
|
static |
Trim RC clock.
val | The trim setting for RC clock. |
|
static |
Select clock source.
param src The enumeration of clock source.