Implements the I/O hardware necessary to do USART transfers. More...
#include <hwuart.h>


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< HWUsart > | ucsrc_reg |
| IOReg< HWUsart > | ubrrh_reg |
| IOReg< HWUsart > | ucsrc_ubrrh_reg |
Protected Attributes | |
| PinAtPort | pinXck |
| Clock pin for synchronous mode. | |
Implements the I/O hardware necessary to do USART transfers.
Definition at line 149 of file hwuart.h.
| 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.

| unsigned char HWUsart::GetUcsrc | ( | ) |
Definition at line 638 of file hwuart.cpp.
References HWUart::ucsrc.
Referenced by GetUcsrcUbrrh().

| unsigned char HWUsart::GetUcsrcUbrrh | ( | ) |
Definition at line 640 of file hwuart.cpp.
References HWUart::GetUbrrhi(), GetUcsrc(), and HWUart::regSeq.

| void HWUsart::SetUcsrc | ( | unsigned char | val | ) |
Definition at line 625 of file hwuart.cpp.
References HWUart::SetFrameLengthFromRegister(), and HWUart::ucsrc.
Referenced by SetUcsrcUbrrh().


| void HWUsart::SetUcsrcUbrrh | ( | unsigned char | val | ) |
Definition at line 630 of file hwuart.cpp.
References HWUart::SetUbrrhi(), SetUcsrc(), and URSEL.

PinAtPort HWUsart::pinXck [protected] |
Definition at line 173 of file hwuart.h.
Referenced by AvrDevice_attiny2313::AvrDevice_attiny2313(), and HWUsart().
Definition at line 173 of file hwuart.h.
Referenced by AvrDevice_at90canbase::AvrDevice_at90canbase(), AvrDevice_atmega128::AvrDevice_atmega128(), AvrDevice_atmega1284Abase::AvrDevice_atmega1284Abase(), AvrDevice_atmega668base::AvrDevice_atmega668base(), AvrDevice_attiny2313::AvrDevice_attiny2313(), and HWUsart().
Definition at line 173 of file hwuart.h.
Referenced by AvrDevice_atmega16_32::AvrDevice_atmega16_32(), AvrDevice_atmega8::AvrDevice_atmega8(), and HWUsart().
1.6.3