50 #include "sw/modules/types/src/types.h"
70 #define OSC_BASE_ADDR (0x00007014)
75 #define OSC_INTOSCnTRIM_COARSE_BITS (255 << 0)
79 #define OSC_INTOSCnTRIM_FINE_BITS (63 << 9)
141 extern OSC_Handle
OSC_init(
void *pMemory,
const size_t numBytes);
150 const uint_least8_t trimValue);
159 const uint_least8_t trimValue);
168 const uint16_t trimValue);
176 #endif // end of _OSC_H_ definition
OSC_Handle OSC_init(void *pMemory, const size_t numBytes)
Initializes the oscillator (OSC) handle.
struct _OSC_Obj_ * OSC_Handle
Defines the oscillator (OSC) handle.
Denotes oscillator number 2.
volatile uint16_t INTOSC1TRIM
Internal Oscillator 1 Trim Register.
Denotes an internal oscillator.
Defines the oscillator (OSC) object.
OSC_Src_e
Enumeration to define the oscillator (OSC) source.
void OSC_setCoarseTrim(OSC_Handle clkHandle, const OSC_Number_e oscNumber, const uint_least8_t trimValue)
Sets the coarse trim value for a specified oscillator.
Denotes an internal oscillator source for oscillator 2.
Denotes an external oscillator source for oscillator 2.
OSC_Osc2Src_e
Enumeration to define the oscillator (OSC) 2 source.
Denotes oscillator number 1.
void OSC_setTrim(OSC_Handle clkHandle, const OSC_Number_e oscNumber, const uint16_t trimValue)
Sets the trim value for a specified oscillator.
volatile uint16_t INTOSC2TRIM
Internal Oscillator 2 Trim Register.
void OSC_setFineTrim(OSC_Handle clkHandle, const OSC_Number_e oscNumber, const uint_least8_t trimValue)
Sets the fine trim value for a specified oscillator.
OSC_Number_e
Enumeration to define the oscillator (OSC) number.
Contains public interface to various functions related to the central processing unit (CPU) object...
Denotes an external oscillator.
volatile uint16_t rsvd_1
Reserved.
struct _OSC_Obj_ OSC_Obj
Defines the oscillator (OSC) object.