Numworks Epsilon  1.4.1
Graphing Calculator Operating System
RCC::CFGR Class Reference

#include <rcc.h>

Inheritance diagram for RCC::CFGR:
Register< T >

Public Types

enum  SW { SW::HSI = 0, SW::HSE = 1, SW::PLL = 2 }
 
enum  AHBRatio {
  AHBRatio::One = 0, AHBRatio::DivideBy2 = 4, AHBRatio::DivideBy4 = 5, AHBRatio::DivideBy8 = 6,
  AHBRatio::DivideBy16 = 7
}
 

Public Member Functions

void setSW (SW s) volatile
 
SW getSWS () volatile
 
void setPPRE1 (AHBRatio r) volatile
 
- Public Member Functions inherited from Register< T >
 Register ()=delete
 
 Register (T v)
 
void set (Register< T > value) volatile
 
void set (T value) volatile
 
T get () volatile
 
void setBitRange (uint8_t high, uint8_t low, T value) volatile
 
T getBitRange (uint8_t high, uint8_t low) volatile
 

Additional Inherited Members

- Static Protected Member Functions inherited from Register< T >
static constexpr T bit_range_mask (uint8_t high, uint8_t low)
 
static constexpr T bit_range_value (T value, uint8_t high, uint8_t low)
 
static constexpr T bit_range_set_value (uint8_t high, uint8_t low, T originalValue, T targetValue)
 

Detailed Description

Definition at line 31 of file rcc.h.

Member Enumeration Documentation

◆ AHBRatio

enum RCC::CFGR::AHBRatio
strong
Enumerator
One 
DivideBy2 
DivideBy4 
DivideBy8 
DivideBy16 

Definition at line 40 of file rcc.h.

◆ SW

enum RCC::CFGR::SW
strong
Enumerator
HSI 
HSE 
PLL 

Definition at line 33 of file rcc.h.

Member Function Documentation

◆ getSWS()

SW RCC::CFGR::getSWS ( ) volatile
inline

Definition at line 39 of file rcc.h.

◆ setPPRE1()

void RCC::CFGR::setPPRE1 ( AHBRatio  r) volatile
inline

Definition at line 47 of file rcc.h.

◆ setSW()

void RCC::CFGR::setSW ( SW  s) volatile
inline

Definition at line 38 of file rcc.h.


The documentation for this class was generated from the following file: