ATmega2560
Hardware definitions
Loading...
Searching...
No Matches
USART.h File Reference

USART frame modes, channel numbers and pin multiplexing. More...

#include <stdint.h>
#include "Config.h"
#include "Pin.h"
Include dependency graph for USART.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  atmega2560
 ATmega2560 hardware definitions.
namespace  atmega2560::usart
 Usart definitions.
namespace  atmega2560::usart::usart0
 USART0 logical pins.
namespace  atmega2560::usart::usart1
 USART1 logical pins.
namespace  atmega2560::usart::usart2
 USART2 logical pins.
namespace  atmega2560::usart::usart3
 USART3 logical pins.
namespace  atmega2560::usart::pins
 Pins definitions.

Enumerations

enum class  atmega2560::usart::Id : uint8_t { atmega2560::usart::USART0 = 0 , atmega2560::usart::USART1 = 1 , atmega2560::usart::USART2 = 2 , atmega2560::usart::USART3 = 3 }
 Hardware USART instances. More...
enum class  atmega2560::usart::Mode : uint8_t { atmega2560::usart::Asynchronous = 0 , atmega2560::usart::Synchronous = 1 , atmega2560::usart::MasterSPI = 3 }
 USART mode encodings. More...
enum class  atmega2560::usart::DataBits : uint8_t {
  atmega2560::usart::Five = 5 , atmega2560::usart::Six = 6 , atmega2560::usart::Seven = 7 , atmega2560::usart::Eight = 8 ,
  atmega2560::usart::Nine = 9
}
 Frame widths. More...
enum class  atmega2560::usart::Parity : uint8_t { atmega2560::usart::Disabled = 0 , atmega2560::usart::Even = 2 , atmega2560::usart::Odd = 3 }
 Parity selections. More...
enum class  atmega2560::usart::StopBits : uint8_t { atmega2560::usart::One = 1 , atmega2560::usart::Two = 2 }
 Stop-bit counts. More...
enum  : uint8_t { atmega2560::usart::usart0::module_number = 0 , atmega2560::usart::usart0::rx_pin_value = 0x40 , atmega2560::usart::usart0::tx_pin_value = 0x41 , atmega2560::usart::usart0::xck_pin_value = 0x42 }
enum  : uint8_t { atmega2560::usart::usart1::module_number = 1 , atmega2560::usart::usart1::rx_pin_value = 0x32 , atmega2560::usart::usart1::tx_pin_value = 0x33 , atmega2560::usart::usart1::xck_pin_value = 0x35 }
enum  : uint8_t { atmega2560::usart::usart2::module_number = 2 , atmega2560::usart::usart2::rx_pin_value = 0x70 , atmega2560::usart::usart2::tx_pin_value = 0x71 , atmega2560::usart::usart2::xck_pin_value = 0x72 }
enum  : uint8_t { atmega2560::usart::usart3::module_number = 3 , atmega2560::usart::usart3::rx_pin_value = 0x80 , atmega2560::usart::usart3::tx_pin_value = 0x81 , atmega2560::usart::usart3::xck_pin_value = 0x82 }
enum  : uint8_t { atmega2560::usart::module_count = 4 , atmega2560::usart::baud_register_bits = 12 , atmega2560::usart::async_oversampling = 16 , atmega2560::usart::async_double_speed_oversampling = 8 }
 USART characteristics. More...
enum  : uint8_t {
  atmega2560::usart::pins::usart0_rxd = 0x40 , atmega2560::usart::pins::usart0_txd = 0x41 , atmega2560::usart::pins::usart0_xck = 0x42 , atmega2560::usart::pins::usart1_rxd = 0x32 ,
  atmega2560::usart::pins::usart1_txd = 0x33 , atmega2560::usart::pins::usart1_xck = 0x35 , atmega2560::usart::pins::usart2_rxd = 0x70 , atmega2560::usart::pins::usart2_txd = 0x71 ,
  atmega2560::usart::pins::usart2_xck = 0x72 , atmega2560::usart::pins::usart3_rxd = 0x80 , atmega2560::usart::pins::usart3_txd = 0x81 , atmega2560::usart::pins::usart3_xck = 0x82
}
 USART pin mapping. More...

Detailed Description

USART frame modes, channel numbers and pin multiplexing.