FuSa 8-Bit Libraries Safety Framework
Loading...
Searching...
No Matches
CLKCTRL Driver

Contains API prototypes for the CLKCTRL (Clock Controller) driver. More...

Files

file  driver_clkctrl.c
 Implements APIs for the CLKCTRL (Clock Controller) driver.

Functions

void CLKCTRL_ModifyMainControlA (uint8_t groupMask, uint8_t groupConfig)
 Modifies specific bit field(s) in the MCLKCTRLA register.
void CLKCTRL_WriteMainControlB (uint8_t value)
 Overwrites the MCLKCTRLB register value.
void CLKCTRL_SetMainControlC (uint8_t bitmask)
 Sets specific bits in the MCLKCTRLC register.
uint8_t CLKCTRL_ReadIntControl (void)
 Reads the MCLKINTCTRL register value.
void CLKCTRL_WriteIntControl (uint8_t value)
 Overwrites the MCLKINTCTRL register value.
void CLKCTRL_SetIntControl (uint8_t bitmask)
 Sets specific bits in the MCLKINTCTRL register.
void CLKCTRL_ClearIntControl (uint8_t bitmask)
 Clears specific bits in the MCLKINTCTRL register.
uint8_t CLKCTRL_ReadIntFlags (void)
 Reads the MCLKINTFLAGS register value.
void CLKCTRL_WriteIntFlags (uint8_t value)
 Overwrites the MCLKINTFLAGS register value.
uint8_t CLKCTRL_ReadCfd0ControlA (void)
 Reads the MCLKCFD0CTRLA register value.
void CLKCTRL_WriteCfd0ControlA (uint8_t value)
 Overwrites the MCLKCFD0CTRLA register value.
void CLKCTRL_SetCfd0ControlA (uint8_t bitmask)
 Sets specific bits in the MCLKCFD0CTRLA register.
void CLKCTRL_ClearCfd0ControlA (uint8_t bitmask)
 Clears specific bits in the MCLKCFD0CTRLA register.
uint8_t CLKCTRL_ReadCfd1ControlA (void)
 Reads the MCLKCFD1CTRLA register value.
void CLKCTRL_WriteCfd1ControlA (uint8_t value)
 Overwrites the MCLKCFD1CTRLA register value.
void CLKCTRL_SetCfd1ControlA (uint8_t bitmask)
 Sets specific bits in the MCLKCFD1CTRLA register.
void CLKCTRL_ClearCfd1ControlA (uint8_t bitmask)
 Clears specific bits in the MCLKCFD1CTRLA register.
uint16_t CLKCTRL_ReadCfm0WindowLow (void)
 Reads the MCLKCFM0WINLT register value.
void CLKCTRL_WriteCfm0WindowLow (uint16_t value)
 Overwrites the MCLKCFM0WINLT register value.
uint16_t CLKCTRL_ReadCfm0WindowHigh (void)
 Reads the MCLKCFM0WINHT register value.
void CLKCTRL_WriteCfm0WindowHigh (uint16_t value)
 Overwrites the MCLKCFM0WINHT register value.
uint16_t CLKCTRL_ReadCfm0RefNum (void)
 Reads the MCLKCFM0REFNUM register value.
void CLKCTRL_WriteCfm0RefNum (uint16_t value)
 Overwrites the MCLKCFM0REFNUM register value.
uint8_t CLKCTRL_ReadCfm0ControlA (void)
 Reads the MCLKCFM0CTRLA register value.
void CLKCTRL_WriteCfm0ControlA (uint8_t value)
 Overwrites the MCLKCFM0CTRLA register value.
void CLKCTRL_ClearCfm0ControlA (uint8_t bitmask)
 Clears specific bits in the MCLKCFM0CTRLA register.
uint8_t CLKCTRL_ReadCfm0ControlB (void)
 Reads the MCLKCFM0CTRLB register value.
void CLKCTRL_WriteCfm0ControlB (uint8_t value)
 Overwrites the MCLKCFM0CTRLB register value.
uint16_t CLKCTRL_ReadCfm1WindowLow (void)
 Reads the MCLKCFM1WINLT register value.
void CLKCTRL_WriteCfm1WindowLow (uint16_t value)
 Overwrites the MCLKCFM1WINLT register value.
uint16_t CLKCTRL_ReadCfm1WindowHigh (void)
 Reads the MCLKCFM1WINHT register value.
void CLKCTRL_WriteCfm1WindowHigh (uint16_t value)
 Overwrites the MCLKCFM1WINHT register value.
uint16_t CLKCTRL_ReadCfm1RefNum (void)
 Reads the MCLKCFM1REFNUM register value.
void CLKCTRL_WriteCfm1RefNum (uint16_t value)
 Overwrites the MCLKCFM1REFNUM register value.
uint8_t CLKCTRL_ReadCfm1ControlA (void)
 Reads the MCLKCFM1CTRLA register value.
void CLKCTRL_WriteCfm1ControlA (uint8_t value)
 Overwrites the MCLKCFM1CTRLA register value.
void CLKCTRL_ClearCfm1ControlA (uint8_t bitmask)
 Clears specific bits in the MCLKCFM1CTRLA register.
uint8_t CLKCTRL_ReadCfm1ControlB (void)
 Reads the MCLKCFM1CTRLB register value.
void CLKCTRL_WriteCfm1ControlB (uint8_t value)
 Overwrites the MCLKCFM1CTRLB register value.
void CLKCTRL_ModifyOscHfControlA (uint8_t groupMask, uint8_t groupConfig)
 Modifies specific bit field(s) in the OSCHFCTRLA register.

Detailed Description

Contains API prototypes for the CLKCTRL (Clock Controller) driver.

Version
1.0.0-alpha.1

These APIs provide direct register access and have no functional knowledge of the register interface. No input or output validation is performed in the drivers. It is the responsibility of the calling function to use them correctly according to the register interface specification.

UML Class Diagrams

Function Documentation

◆ CLKCTRL_ClearCfd0ControlA()

void CLKCTRL_ClearCfd0ControlA ( uint8_t bitmask)

Clears specific bits in the MCLKCFD0CTRLA register.

Parameters
bitmaskSpecifies which bits to clear.

Definition at line 103 of file driver_clkctrl.c.

◆ CLKCTRL_ClearCfd1ControlA()

void CLKCTRL_ClearCfd1ControlA ( uint8_t bitmask)

Clears specific bits in the MCLKCFD1CTRLA register.

Parameters
bitmaskSpecifies which bits to clear.

Definition at line 127 of file driver_clkctrl.c.

◆ CLKCTRL_ClearCfm0ControlA()

void CLKCTRL_ClearCfm0ControlA ( uint8_t bitmask)

Clears specific bits in the MCLKCFM0CTRLA register.

Parameters
bitmaskSpecifies which bits to clear.

Definition at line 174 of file driver_clkctrl.c.

◆ CLKCTRL_ClearCfm1ControlA()

void CLKCTRL_ClearCfm1ControlA ( uint8_t bitmask)

Clears specific bits in the MCLKCFM1CTRLA register.

Parameters
bitmaskSpecifies which bits to clear.

Definition at line 231 of file driver_clkctrl.c.

◆ CLKCTRL_ClearIntControl()

void CLKCTRL_ClearIntControl ( uint8_t bitmask)

Clears specific bits in the MCLKINTCTRL register.

Parameters
bitmaskSpecifies which bits to clear.

Definition at line 69 of file driver_clkctrl.c.

◆ CLKCTRL_ModifyMainControlA()

void CLKCTRL_ModifyMainControlA ( uint8_t groupMask,
uint8_t groupConfig )

Modifies specific bit field(s) in the MCLKCTRLA register.

Parameters
groupMaskSpecifies which bit field values to modify (clear and write).
groupConfigSpecifies the bit pattern to write to the specified bit fields.

Definition at line 30 of file driver_clkctrl.c.

◆ CLKCTRL_ModifyOscHfControlA()

void CLKCTRL_ModifyOscHfControlA ( uint8_t groupMask,
uint8_t groupConfig )

Modifies specific bit field(s) in the OSCHFCTRLA register.

Parameters
groupMaskSpecifies which bit field values to modify (clear and write).
groupConfigSpecifies the bit pattern to write to the specified bit fields.

Definition at line 248 of file driver_clkctrl.c.

◆ CLKCTRL_ReadCfd0ControlA()

uint8_t CLKCTRL_ReadCfd0ControlA ( void )

Reads the MCLKCFD0CTRLA register value.

Returns
The read value.

Definition at line 86 of file driver_clkctrl.c.

◆ CLKCTRL_ReadCfd1ControlA()

uint8_t CLKCTRL_ReadCfd1ControlA ( void )

Reads the MCLKCFD1CTRLA register value.

Returns
The read value.

Definition at line 110 of file driver_clkctrl.c.

◆ CLKCTRL_ReadCfm0ControlA()

uint8_t CLKCTRL_ReadCfm0ControlA ( void )

Reads the MCLKCFM0CTRLA register value.

Returns
The read value.

Definition at line 164 of file driver_clkctrl.c.

◆ CLKCTRL_ReadCfm0ControlB()

uint8_t CLKCTRL_ReadCfm0ControlB ( void )

Reads the MCLKCFM0CTRLB register value.

Returns
The read value.

Definition at line 181 of file driver_clkctrl.c.

◆ CLKCTRL_ReadCfm0RefNum()

uint16_t CLKCTRL_ReadCfm0RefNum ( void )

Reads the MCLKCFM0REFNUM register value.

Returns
The read value.

Definition at line 154 of file driver_clkctrl.c.

◆ CLKCTRL_ReadCfm0WindowHigh()

uint16_t CLKCTRL_ReadCfm0WindowHigh ( void )

Reads the MCLKCFM0WINHT register value.

Returns
The read value.

Definition at line 144 of file driver_clkctrl.c.

◆ CLKCTRL_ReadCfm0WindowLow()

uint16_t CLKCTRL_ReadCfm0WindowLow ( void )

Reads the MCLKCFM0WINLT register value.

Returns
The read value.

Definition at line 134 of file driver_clkctrl.c.

◆ CLKCTRL_ReadCfm1ControlA()

uint8_t CLKCTRL_ReadCfm1ControlA ( void )

Reads the MCLKCFM1CTRLA register value.

Returns
The read value.

Definition at line 221 of file driver_clkctrl.c.

◆ CLKCTRL_ReadCfm1ControlB()

uint8_t CLKCTRL_ReadCfm1ControlB ( void )

Reads the MCLKCFM1CTRLB register value.

Returns
The read value.

Definition at line 238 of file driver_clkctrl.c.

◆ CLKCTRL_ReadCfm1RefNum()

uint16_t CLKCTRL_ReadCfm1RefNum ( void )

Reads the MCLKCFM1REFNUM register value.

Returns
The read value.

Definition at line 211 of file driver_clkctrl.c.

◆ CLKCTRL_ReadCfm1WindowHigh()

uint16_t CLKCTRL_ReadCfm1WindowHigh ( void )

Reads the MCLKCFM1WINHT register value.

Returns
The read value.

Definition at line 201 of file driver_clkctrl.c.

◆ CLKCTRL_ReadCfm1WindowLow()

uint16_t CLKCTRL_ReadCfm1WindowLow ( void )

Reads the MCLKCFM1WINLT register value.

Returns
The read value.

Definition at line 191 of file driver_clkctrl.c.

◆ CLKCTRL_ReadIntControl()

uint8_t CLKCTRL_ReadIntControl ( void )

Reads the MCLKINTCTRL register value.

Returns
The read value.

Definition at line 52 of file driver_clkctrl.c.

◆ CLKCTRL_ReadIntFlags()

uint8_t CLKCTRL_ReadIntFlags ( void )

Reads the MCLKINTFLAGS register value.

Returns
The read value.

Definition at line 76 of file driver_clkctrl.c.

◆ CLKCTRL_SetCfd0ControlA()

void CLKCTRL_SetCfd0ControlA ( uint8_t bitmask)

Sets specific bits in the MCLKCFD0CTRLA register.

Parameters
bitmaskSpecifies which bits to set.

Definition at line 96 of file driver_clkctrl.c.

◆ CLKCTRL_SetCfd1ControlA()

void CLKCTRL_SetCfd1ControlA ( uint8_t bitmask)

Sets specific bits in the MCLKCFD1CTRLA register.

Parameters
bitmaskSpecifies which bits to set.

Definition at line 120 of file driver_clkctrl.c.

◆ CLKCTRL_SetIntControl()

void CLKCTRL_SetIntControl ( uint8_t bitmask)

Sets specific bits in the MCLKINTCTRL register.

Parameters
bitmaskSpecifies which bits to set.

Definition at line 62 of file driver_clkctrl.c.

◆ CLKCTRL_SetMainControlC()

void CLKCTRL_SetMainControlC ( uint8_t bitmask)

Sets specific bits in the MCLKCTRLC register.

Parameters
bitmaskSpecifies which bits to set.

Definition at line 45 of file driver_clkctrl.c.

◆ CLKCTRL_WriteCfd0ControlA()

void CLKCTRL_WriteCfd0ControlA ( uint8_t value)

Overwrites the MCLKCFD0CTRLA register value.

Parameters
valueSpecifies the value to write.

Definition at line 91 of file driver_clkctrl.c.

◆ CLKCTRL_WriteCfd1ControlA()

void CLKCTRL_WriteCfd1ControlA ( uint8_t value)

Overwrites the MCLKCFD1CTRLA register value.

Parameters
valueSpecifies the value to write.

Definition at line 115 of file driver_clkctrl.c.

◆ CLKCTRL_WriteCfm0ControlA()

void CLKCTRL_WriteCfm0ControlA ( uint8_t value)

Overwrites the MCLKCFM0CTRLA register value.

Parameters
valueSpecifies the value to write.

Definition at line 169 of file driver_clkctrl.c.

◆ CLKCTRL_WriteCfm0ControlB()

void CLKCTRL_WriteCfm0ControlB ( uint8_t value)

Overwrites the MCLKCFM0CTRLB register value.

Parameters
valueSpecifies the value to write.

Definition at line 186 of file driver_clkctrl.c.

◆ CLKCTRL_WriteCfm0RefNum()

void CLKCTRL_WriteCfm0RefNum ( uint16_t value)

Overwrites the MCLKCFM0REFNUM register value.

Parameters
valueSpecifies the value to write.

Definition at line 159 of file driver_clkctrl.c.

◆ CLKCTRL_WriteCfm0WindowHigh()

void CLKCTRL_WriteCfm0WindowHigh ( uint16_t value)

Overwrites the MCLKCFM0WINHT register value.

Parameters
valueSpecifies the value to write.

Definition at line 149 of file driver_clkctrl.c.

◆ CLKCTRL_WriteCfm0WindowLow()

void CLKCTRL_WriteCfm0WindowLow ( uint16_t value)

Overwrites the MCLKCFM0WINLT register value.

Parameters
valueSpecifies the value to write.

Definition at line 139 of file driver_clkctrl.c.

◆ CLKCTRL_WriteCfm1ControlA()

void CLKCTRL_WriteCfm1ControlA ( uint8_t value)

Overwrites the MCLKCFM1CTRLA register value.

Parameters
valueSpecifies the value to write.

Definition at line 226 of file driver_clkctrl.c.

◆ CLKCTRL_WriteCfm1ControlB()

void CLKCTRL_WriteCfm1ControlB ( uint8_t value)

Overwrites the MCLKCFM1CTRLB register value.

Parameters
valueSpecifies the value to write.

Definition at line 243 of file driver_clkctrl.c.

◆ CLKCTRL_WriteCfm1RefNum()

void CLKCTRL_WriteCfm1RefNum ( uint16_t value)

Overwrites the MCLKCFM1REFNUM register value.

Parameters
valueSpecifies the value to write.

Definition at line 216 of file driver_clkctrl.c.

◆ CLKCTRL_WriteCfm1WindowHigh()

void CLKCTRL_WriteCfm1WindowHigh ( uint16_t value)

Overwrites the MCLKCFM1WINHT register value.

Parameters
valueSpecifies the value to write.

Definition at line 206 of file driver_clkctrl.c.

◆ CLKCTRL_WriteCfm1WindowLow()

void CLKCTRL_WriteCfm1WindowLow ( uint16_t value)

Overwrites the MCLKCFM1WINLT register value.

Parameters
valueSpecifies the value to write.

Definition at line 196 of file driver_clkctrl.c.

◆ CLKCTRL_WriteIntControl()

void CLKCTRL_WriteIntControl ( uint8_t value)

Overwrites the MCLKINTCTRL register value.

Parameters
valueSpecifies the value to write.

Definition at line 57 of file driver_clkctrl.c.

◆ CLKCTRL_WriteIntFlags()

void CLKCTRL_WriteIntFlags ( uint8_t value)

Overwrites the MCLKINTFLAGS register value.

Parameters
valueSpecifies the value to write.

Definition at line 81 of file driver_clkctrl.c.

◆ CLKCTRL_WriteMainControlB()

void CLKCTRL_WriteMainControlB ( uint8_t value)

Overwrites the MCLKCTRLB register value.

Parameters
valueSpecifies the value to write.

Definition at line 40 of file driver_clkctrl.c.