simulavr  1.1.0
hwuart.cpp File Reference
#include "hwuart.h"
#include "helper.h"

Go to the source code of this file.

Macros

#define RXC   0x80
 
#define TXC   0x40
 
#define UDRE   0x20
 
#define FE   0x10
 
#define OR   0x08
 
#define DOR   0x08
 
#define UPE   0x04
 
#define U2X   0x02
 
#define MPCM   0x01
 
#define RXCIE   0x80
 
#define TXCIE   0x40
 
#define UDRIE   0x20
 
#define RXEN   0x10
 
#define TXEN   0x08
 
#define CHR9   0x04
 
#define UCSZ2   0x04
 
#define RXB8   0x02
 
#define TXB8   0x01
 
#define URSEL   0x80
 
#define UMSEL   0x40
 
#define UPM1   0x20
 
#define UPM0   0x10
 
#define USBS   0x08
 
#define UCSZ1   0x04
 
#define UCSZ0   0x02
 
#define UCPOL   0x01
 

Macro Definition Documentation

◆ CHR9

#define CHR9   0x04

Definition at line 47 of file hwuart.cpp.

Referenced by HWUart::CpuCycleRx().

◆ DOR

#define DOR   0x08

Definition at line 35 of file hwuart.cpp.

◆ FE

#define FE   0x10

Definition at line 33 of file hwuart.cpp.

Referenced by HWUart::CpuCycleRx().

◆ MPCM

#define MPCM   0x01

Definition at line 38 of file hwuart.cpp.

◆ OR

#define OR   0x08

Definition at line 34 of file hwuart.cpp.

Referenced by HWUart::CpuCycleRx().

◆ RXB8

#define RXB8   0x02

Definition at line 49 of file hwuart.cpp.

Referenced by HWUart::CpuCycleRx().

◆ RXC

#define RXC   0x80

◆ RXCIE

#define RXCIE   0x80

Definition at line 42 of file hwuart.cpp.

◆ RXEN

#define RXEN   0x10

Definition at line 45 of file hwuart.cpp.

Referenced by HWUart::CpuCycleRx(), and HWUart::SetUcr().

◆ TXB8

#define TXB8   0x01

Definition at line 50 of file hwuart.cpp.

Referenced by HWUart::CpuCycleTx().

◆ TXC

◆ TXCIE

#define TXCIE   0x40

Definition at line 43 of file hwuart.cpp.

◆ TXEN

#define TXEN   0x08

Definition at line 46 of file hwuart.cpp.

Referenced by HWUart::CpuCycleTx(), and HWUart::SetUcr().

◆ U2X

#define U2X   0x02

Definition at line 37 of file hwuart.cpp.

◆ UCPOL

#define UCPOL   0x01

Definition at line 60 of file hwuart.cpp.

◆ UCSZ0

#define UCSZ0   0x02

Definition at line 59 of file hwuart.cpp.

Referenced by HWUart::Reset(), and HWUart::SetFrameLengthFromRegister().

◆ UCSZ1

#define UCSZ1   0x04

Definition at line 58 of file hwuart.cpp.

Referenced by HWUart::Reset(), and HWUart::SetFrameLengthFromRegister().

◆ UCSZ2

#define UCSZ2   0x04

Definition at line 48 of file hwuart.cpp.

Referenced by HWUart::SetFrameLengthFromRegister().

◆ UDRE

#define UDRE   0x20

◆ UDRIE

#define UDRIE   0x20

Definition at line 44 of file hwuart.cpp.

Referenced by HWUart::SetUdr().

◆ UMSEL

#define UMSEL   0x40

Definition at line 54 of file hwuart.cpp.

◆ UPE

#define UPE   0x04

Definition at line 36 of file hwuart.cpp.

Referenced by HWUart::CpuCycleRx().

◆ UPM0

#define UPM0   0x10

Definition at line 56 of file hwuart.cpp.

Referenced by HWUart::CpuCycleRx(), and HWUart::CpuCycleTx().

◆ UPM1

#define UPM1   0x20

Definition at line 55 of file hwuart.cpp.

Referenced by HWUart::CpuCycleRx(), and HWUart::CpuCycleTx().

◆ URSEL

#define URSEL   0x80

Definition at line 53 of file hwuart.cpp.

Referenced by HWUsart::SetUcsrcUbrrh().

◆ USBS

#define USBS   0x08

Definition at line 57 of file hwuart.cpp.

Referenced by HWUart::CpuCycleRx(), and HWUart::CpuCycleTx().