OpenCores
URL https://opencores.org/ocsvn/thor/thor/trunk

Subversion Repositories thor

[/] [thor/] [trunk/] [software/] [emuThor/] [source/] [clsUart.h] - Blame information for rev 55

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 32 robfinch
#pragma once
2
 
3
#include "clsDevice.h"
4
 
5
class clsUart : public clsDevice
6
{
7
public:
8 35 robfinch
        unsigned __int8 tb;
9
        unsigned __int8 rb;
10
        unsigned __int8 is;
11
        unsigned __int8 ier;
12
        unsigned __int8 ls;
13
        unsigned __int8 ms;
14
        unsigned __int8 mc;
15
        unsigned __int8 ctrl;
16
        unsigned __int8 cm0,cm1,cm2,cm3;
17
        unsigned __int8 ff;
18
        unsigned __int8 fc;
19 32 robfinch
        bool irq;
20
public:
21
        void Reset();
22
        bool IsSelected(unsigned int ad);
23
        unsigned int Read(unsigned int ad);
24
        int Write(unsigned int ad, unsigned int dat, unsigned int mask=1);
25
        void RxPort(unsigned int dat);
26
        int TxPort();
27
        void Step(void) {};
28
};

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.