HWUsart Class Reference

Implements the I/O hardware necessary to do USART transfers. More...

#include <hwuart.h>

Inheritance diagram for HWUsart:
Inheritance graph
[legend]
Collaboration diagram for HWUsart:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 HWUsart (AvrDevice *core, HWIrqSystem *, PinAtPort tx, PinAtPort rx, PinAtPort xck, unsigned int rx_interrupt, unsigned int udre_interrupt, unsigned int tx_interrupt, int instance_id=0, bool mxReg=true)
 Creates a instance of HWUsart class.
void SetUcsrc (unsigned char val)
void SetUcsrcUbrrh (unsigned char val)
unsigned char GetUcsrc ()
unsigned char GetUcsrcUbrrh ()

Public Attributes

IOReg< HWUsartucsrc_reg
IOReg< HWUsartubrrh_reg
IOReg< HWUsartucsrc_ubrrh_reg

Protected Attributes

PinAtPort pinXck
 Clock pin for synchronous mode.

Detailed Description

Implements the I/O hardware necessary to do USART transfers.

Definition at line 149 of file hwuart.h.


Constructor & Destructor Documentation

HWUsart::HWUsart ( AvrDevice core,
HWIrqSystem s,
PinAtPort  tx,
PinAtPort  rx,
PinAtPort  xck,
unsigned int  rx_interrupt,
unsigned int  udre_interrupt,
unsigned int  tx_interrupt,
int  instance_id = 0,
bool  mxReg = true 
)

Creates a instance of HWUsart class.

Definition at line 650 of file hwuart.cpp.

References IOReg< P >::releaseTraceValue(), HWUart::Reset(), ubrrh_reg, ucsrc_reg, and ucsrc_ubrrh_reg.

Here is the call graph for this function:


Member Function Documentation

unsigned char HWUsart::GetUcsrc (  ) 

Definition at line 638 of file hwuart.cpp.

References HWUart::ucsrc.

Referenced by GetUcsrcUbrrh().

Here is the caller graph for this function:

unsigned char HWUsart::GetUcsrcUbrrh (  ) 

Definition at line 640 of file hwuart.cpp.

References HWUart::GetUbrrhi(), GetUcsrc(), and HWUart::regSeq.

Here is the call graph for this function:

void HWUsart::SetUcsrc ( unsigned char  val  ) 

Definition at line 625 of file hwuart.cpp.

References HWUart::SetFrameLengthFromRegister(), and HWUart::ucsrc.

Referenced by SetUcsrcUbrrh().

Here is the call graph for this function:

Here is the caller graph for this function:

void HWUsart::SetUcsrcUbrrh ( unsigned char  val  ) 

Definition at line 630 of file hwuart.cpp.

References HWUart::SetUbrrhi(), SetUcsrc(), and URSEL.

Here is the call graph for this function:


Member Data Documentation

Clock pin for synchronous mode.

Definition at line 152 of file hwuart.h.

Definition at line 173 of file hwuart.h.

Referenced by AvrDevice_attiny2313::AvrDevice_attiny2313(), and HWUsart().


The documentation for this class was generated from the following files:
Generated on Sun Feb 12 16:52:35 2012 for Simulavr by  doxygen 1.6.3