111 unsigned int rx_interrupt,
112 unsigned int udre_interrupt,
113 unsigned int tx_interrupt,
114 int instance_id = 0);
119 void SetUdr(
unsigned char val);
120 void SetUsr(
unsigned char val);
121 void SetUcr(
unsigned char val);
122 void SetUbrr(
unsigned char val);
161 unsigned int rx_interrupt,
162 unsigned int udre_interrupt,
163 unsigned int tx_interrupt,
167 void SetUcsrc(
unsigned char val);
168 void SetUcsrcUbrrh(
unsigned char val);
170 unsigned char GetUcsrc();
171 unsigned char GetUcsrcUbrrh();
Basic AVR device, contains the core functionality.
unsigned char usr
USR register value, also used as UCSRA register value.
HWIrqSystem * irqSystem
Connection to interrupt system.
bool writeParity
The write parity flag for usart.
unsigned int vectorRx
Interrupt vector ID for receive interrupt.
void SetUdr(unsigned char val)
unsigned int vectorUdre
Interrupt vector ID for UDR empty interrupt.
unsigned int vectorTx
Interrupt vector ID for sent byte interrupt.
IOReg< HWUart > ubrrhi_reg
IO register "UBRRxH" - baudrate.
virtual unsigned int CpuCycle()
bool readParity
The read parity flag for usart.
void SetUbrr(unsigned char val)
unsigned int CpuCycleTx()
void SetUcr(unsigned char val)
PinAtPort pinXck
Clock pin for synchronous mode.
IOReg< HWUart > ubrr_reg
IO register "UBRRxL" - baudrate.
void SetUbrrhi(unsigned char val)
unsigned char regSeq
Cycle timer for controling read access to UCSRC/UBRRH combined register.
unsigned char udrWrite
Write stage of UDR register value.
Implements the I/O hardware necessary to do USART transfers.
IOReg< HWUart > ucsra_reg
void SetFrameLengthFromRegister()
Build a register for TraceValue's.
IOReg< HWUart > ucsrb_reg
void SetUsr(unsigned char val)
HWUart(AvrDevice *core, HWIrqSystem *, PinAtPort tx, PinAtPort rx, unsigned int rx_interrupt, unsigned int udre_interrupt, unsigned int tx_interrupt, int instance_id=0)
Creates a instance of HWUart class.
void ClearIrqFlag(unsigned int)
IOReg< HWUsart > ucsrc_ubrrh_reg
void CheckForNewClearIrq(unsigned char)
unsigned char ucr
UCR register value, also used as UCSRB register value.
unsigned char GetUbrrhi()
int frameLength
Hold length of UART frame.
Implements the I/O hardware necessary to do UART transfers.
void CheckForNewSetIrq(unsigned char)
unsigned short ubrr
Baud rate register value (UBRR)
unsigned char ucsrc
UCSRC register value.
unsigned char udrRead
Read stage of UDR register value.
unsigned int CpuCycleRx()