74 const uint_least8_t trimValue)
105 const uint_least8_t trimValue)
136 const uint16_t trimValue)
OSC_Handle OSC_init(void *pMemory, const size_t numBytes)
Initializes the oscillator (OSC) handle.
#define OSC_INTOSCnTRIM_COARSE_BITS
Defines the location of the COARSETRIM bits in the INTOSCnTRIM register.
struct _OSC_Obj_ * OSC_Handle
Defines the oscillator (OSC) handle.
#define DISABLE_PROTECTED_REGISTER_WRITE_MODE
Define to disable protected register writes.
volatile uint16_t INTOSC1TRIM
Internal Oscillator 1 Trim Register.
Defines the oscillator (OSC) object.
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 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.
#define ENABLE_PROTECTED_REGISTER_WRITE_MODE
Define to allow protected register writes.
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.
#define OSC_INTOSCnTRIM_FINE_BITS
Defines the location of the FINETRIM bits in the INTOSCnTRIM register.
Contains public interface to various functions related to the oscillator (OSC) object.
OSC_Number_e
Enumeration to define the oscillator (OSC) number.