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

USART modes and frame-format definitions. 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  atmega328p
 Device-specific definitions for the ATmega328P.
namespace  atmega328p::usart
 USART interface definitions.

Enumerations

enum class  atmega328p::usart::Mode : uint8_t { atmega328p::usart::Asynchronous , atmega328p::usart::Synchronous , atmega328p::usart::MasterSPI }
 Peripheral operating modes. More...
enum class  atmega328p::usart::DataBits : uint8_t {
  atmega328p::usart::Five = 5 , atmega328p::usart::Six = 6 , atmega328p::usart::Seven = 7 , atmega328p::usart::Eight = 8 ,
  atmega328p::usart::Nine = 9
}
 USART frame data-bit counts. More...
enum class  atmega328p::usart::Parity : uint8_t { atmega328p::usart::Disabled , atmega328p::usart::Even , atmega328p::usart::Odd }
 USART parity modes. More...
enum class  atmega328p::usart::StopBits : uint8_t { atmega328p::usart::One = 1 , atmega328p::usart::Two = 2 }
 USART frame stop-bit counts. More...
enum  : uint8_t {
  atmega328p::usart::module_count = 1U , atmega328p::usart::module_number = 0U , atmega328p::usart::rx_pin_value = 0x20U , atmega328p::usart::tx_pin_value = 0x21U ,
  atmega328p::usart::xck_pin_value = 0x24U , atmega328p::usart::baud_register_bits = 12U , atmega328p::usart::async_oversampling = 16U , atmega328p::usart::async_double_speed_oversampling = 8U ,
  atmega328p::usart::sync_clock_divisor = 2U , atmega328p::usart::supports_full_duplex = 1 , atmega328p::usart::supports_multiprocessor_mode = 1 , atmega328p::usart::supports_double_speed_async = 1 ,
  atmega328p::usart::supports_master_spi_mode = 1 , atmega328p::usart::supports_rx_complete_interrupt = 1 , atmega328p::usart::supports_data_register_empty_interrupt = 1 , atmega328p::usart::supports_tx_complete_interrupt = 1
}
enum  : uint16_t { atmega328p::usart::baud_register_max = 4095U }

Detailed Description

USART modes and frame-format definitions.