ATmega328p
Hardware definitions
Loading...
Searching...
No Matches
atmega328p::fuse Namespace Reference

Fuse byte identifiers and bit masks. More...

Enumerations

enum class  Byte : uint8_t { Low , High , Extended }
 Fuse byte identifiers. More...
enum  LowMask : uint8_t {
  ckdiv8 = 0x80 , ckout = 0x40 , sut1 = 0x20 , sut0 = 0x10 ,
  cksel3 = 0x08 , cksel2 = 0x04 , cksel1 = 0x02 , cksel0 = 0x01
}
 Bit masks in the Low Fuse byte. More...
enum  HighMask : uint8_t {
  rstdisbl = 0x80 , dwen = 0x40 , spien = 0x20 , wdton = 0x10 ,
  eesave = 0x08 , bootsz1 = 0x04 , bootsz0 = 0x02 , bootrst = 0x01
}
 Bit masks in the High Fuse byte. More...
enum  ExtendedMask : uint8_t { bodlevel2 = 0x04 , bodlevel1 = 0x02 , bodlevel0 = 0x01 }
 Bit masks in the Extended Fuse byte. More...
enum  : uint8_t {
  default_low = 0x62 , default_high = 0xD9 , default_ext = 0xFF , programmed_value = 0 ,
  programmed_value_is_zero = 1
}

Detailed Description

Fuse byte identifiers and bit masks.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum : uint8_t
Enumerator
default_low 

Default low.

default_high 

Default high.

default_ext 

Default ext.

programmed_value 

Programmed value.

programmed_value_is_zero 

Programmed value is zero.

◆ Byte

enum class atmega328p::fuse::Byte : uint8_t
strong

Fuse byte identifiers.

Enumerator
Low 

Low fuse byte.

High 

High fuse byte.

Extended 

Extended fuse byte.

◆ ExtendedMask

Bit masks in the Extended Fuse byte.

Enumerator
bodlevel2 

0x04 - Brown-out level bit 2.

bodlevel1 

0x02 - Brown-out level bit 1.

bodlevel0 

0x01 - Brown-out level bit 0.

◆ HighMask

Bit masks in the High Fuse byte.

Enumerator
rstdisbl 

0x80 - Disable external RESET pin.

dwen 

0x40 - Enable debugWIRE.

spien 

0x20 - Enable serial programming.

wdton 

0x10 - Force watchdog always on.

eesave 

0x08 - Preserve EEPROM during chip erase.

bootsz1 

0x04 - Boot size selection bit 1.

bootsz0 

0x02 - Boot size selection bit 0.

bootrst 

0x01 - Start execution in boot section.

◆ LowMask

enum atmega328p::fuse::LowMask : uint8_t

Bit masks in the Low Fuse byte.

Enumerator
ckdiv8 

0x80 - Divide startup clock by eight.

ckout 

0x40 - Output system clock on CLKO.

sut1 

0x20 - Startup-time selection bit 1.

sut0 

0x10 - Startup-time selection bit 0.

cksel3 

0x08 - Clock-source selection bit 3.

cksel2 

0x04 - Clock-source selection bit 2.

cksel1 

0x02 - Clock-source selection bit 1.

cksel0 

0x01 - Clock-source selection bit 0.