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

Subversion Repositories thor

[/] [thor/] [trunk/] [software/] [emuThor/] [source/] [clsUart.h] - Diff between revs 32 and 35

Only display areas with differences | Details | Blame | View Log

Rev 32 Rev 35
#pragma once
#pragma once
 
 
#include "clsDevice.h"
#include "clsDevice.h"
 
 
class clsUart : public clsDevice
class clsUart : public clsDevice
{
{
public:
public:
        __int8 tb;
        unsigned __int8 tb;
        __int8 rb;
        unsigned __int8 rb;
        __int8 is;
        unsigned __int8 is;
        __int8 ier;
        unsigned __int8 ier;
        __int8 ls;
        unsigned __int8 ls;
        __int8 ms;
        unsigned __int8 ms;
        __int8 mc;
        unsigned __int8 mc;
        __int8 ctrl;
        unsigned __int8 ctrl;
        __int8 cm0,cm1,cm2,cm3;
        unsigned __int8 cm0,cm1,cm2,cm3;
        __int8 ff;
        unsigned __int8 ff;
        __int8 fc;
        unsigned __int8 fc;
        bool irq;
        bool irq;
public:
public:
        void Reset();
        void Reset();
        bool IsSelected(unsigned int ad);
        bool IsSelected(unsigned int ad);
        unsigned int Read(unsigned int ad);
        unsigned int Read(unsigned int ad);
        int Write(unsigned int ad, unsigned int dat, unsigned int mask=1);
        int Write(unsigned int ad, unsigned int dat, unsigned int mask=1);
        void RxPort(unsigned int dat);
        void RxPort(unsigned int dat);
        int TxPort();
        int TxPort();
        void Step(void) {};
        void Step(void) {};
};
};
 
 

powered by: WebSVN 2.1.0

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