ATmega2560
Hardware definitions
Loading...
Searching...
No Matches
atmega2560::pwm Namespace Reference

Pwm definitions. More...

Enumerations

enum class  Channel : uint8_t {
  OC0A = 0 , OC0B = 1 , OC1A = 2 , OC1B = 3 ,
  OC1C = 4 , OC2A = 5 , OC2B = 6 , OC3A = 7 ,
  OC3B = 8 , OC3C = 9 , OC4A = 10 , OC4B = 11 ,
  OC4C = 12 , OC5A = 13 , OC5B = 14 , OC5C = 15
}
 16 hardware compare outputs. More...
enum class  OutputPin : uint8_t {
  OC0A = 0x17 , OC0B = 0x65 , OC1A = 0x15 , OC1B = 0x16 ,
  OC1C = 0x17 , OC2A = 0x14 , OC2B = 0x76 , OC3A = 0x43 ,
  OC3B = 0x44 , OC3C = 0x45 , OC4A = 0x73 , OC4B = 0x74 ,
  OC4C = 0x75 , OC5A = 0xA3 , OC5B = 0xA4 , OC5C = 0xA5
}
 Physical GPIO mapping for compare outputs. More...
enum  : uint8_t {
  channel_count = 16 , distinct_pin_count = 15 , timer0_channel_count = 2 , timer1_channel_count = 3 ,
  timer2_channel_count = 2 , timer3_channel_count = 3 , timer4_channel_count = 3 , timer5_channel_count = 3
}
 Output counts. More...

Detailed Description

Pwm definitions.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum : uint8_t

Output counts.

Enumerator
channel_count 

channel count.

distinct_pin_count 

distinct pin count.

timer0_channel_count 

timer0 channel count.

timer1_channel_count 

timer1 channel count.

timer2_channel_count 

timer2 channel count.

timer3_channel_count 

timer3 channel count.

timer4_channel_count 

timer4 channel count.

timer5_channel_count 

timer5 channel count.

◆ Channel

enum class atmega2560::pwm::Channel : uint8_t
strong

16 hardware compare outputs.

Enumerator
OC0A 

Timer0 compare A.

OC0B 

Timer0 compare B.

OC1A 

Timer1 compare A.

OC1B 

Timer1 compare B.

OC1C 

Timer1 compare C.

OC2A 

Timer2 compare A.

OC2B 

Timer2 compare B.

OC3A 

Timer3 compare A.

OC3B 

Timer3 compare B.

OC3C 

Timer3 compare C.

OC4A 

Timer4 compare A.

OC4B 

Timer4 compare B.

OC4C 

Timer4 compare C.

OC5A 

Timer5 compare A.

OC5B 

Timer5 compare B.

OC5C 

Timer5 compare C.

◆ OutputPin

enum class atmega2560::pwm::OutputPin : uint8_t
strong

Physical GPIO mapping for compare outputs.

Enumerator
OC0A 

OC0A on PB7.

OC0B 

OC0B on PG5.

OC1A 

OC1A on PB5.

OC1B 

OC1B on PB6.

OC1C 

OC1C on PB7.

OC2A 

OC2A on PB4.

OC2B 

OC2B on PH6.

OC3A 

OC3A on PE3.

OC3B 

OC3B on PE4.

OC3C 

OC3C on PE5.

OC4A 

OC4A on PH3.

OC4B 

OC4B on PH4.

OC4C 

OC4C on PH5.

OC5A 

OC5A on PL3.

OC5B 

OC5B on PL4.

OC5C 

OC5C on PL5.