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

Usart definitions. More...

Namespaces

namespace  usart0
 USART0 logical pins.
namespace  usart1
 USART1 logical pins.
namespace  usart2
 USART2 logical pins.
namespace  usart3
 USART3 logical pins.
namespace  pins
 Pins definitions.

Enumerations

enum class  Id : uint8_t { USART0 = 0 , USART1 = 1 , USART2 = 2 , USART3 = 3 }
 Hardware USART instances. More...
enum class  Mode : uint8_t { Asynchronous = 0 , Synchronous = 1 , MasterSPI = 3 }
 USART mode encodings. More...
enum class  DataBits : uint8_t {
  Five = 5 , Six = 6 , Seven = 7 , Eight = 8 ,
  Nine = 9
}
 Frame widths. More...
enum class  Parity : uint8_t { Disabled = 0 , Even = 2 , Odd = 3 }
 Parity selections. More...
enum class  StopBits : uint8_t { One = 1 , Two = 2 }
 Stop-bit counts. More...
enum  : uint8_t { module_count = 4 , baud_register_bits = 12 , async_oversampling = 16 , async_double_speed_oversampling = 8 }
 USART characteristics. More...

Detailed Description

Usart definitions.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum : uint8_t

USART characteristics.

Enumerator
module_count 

Number of USART controllers.

baud_register_bits 

Baud divisor width.

async_oversampling 

Normal asynchronous oversampling.

async_double_speed_oversampling 

Double-speed oversampling.

◆ DataBits

enum class atmega2560::usart::DataBits : uint8_t
strong

Frame widths.

Enumerator
Five 

5 data bits.

Six 

6 data bits.

Seven 

7 data bits.

Eight 

8 data bits.

Nine 

9 data bits.

◆ Id

enum class atmega2560::usart::Id : uint8_t
strong

Hardware USART instances.

Enumerator
USART0 

USART channel 0.

USART1 

USART channel 1.

USART2 

USART channel 2.

USART3 

USART channel 3.

◆ Mode

enum class atmega2560::usart::Mode : uint8_t
strong

USART mode encodings.

Enumerator
Asynchronous 

Asynchronous serial.

Synchronous 

Synchronous serial.

MasterSPI 

Master SPI via USART.

◆ Parity

enum class atmega2560::usart::Parity : uint8_t
strong

Parity selections.

Enumerator
Disabled 

No parity.

Even 

Even parity.

Odd 

Odd parity.

◆ StopBits

enum class atmega2560::usart::StopBits : uint8_t
strong

Stop-bit counts.

Enumerator
One 

One stop bit.

Two 

Two stop bits.