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

Subversion Repositories riscv_vhdl

[/] [riscv_vhdl/] [trunk/] [debugger/] [src/] [common/] [coreservices/] [iioport.h] - Blame information for rev 5

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 5 sergeykhbr
/**
2
 * @file
3
 * @copyright  Copyright 2016 GNSS Sensor Ltd. All right reserved.
4
 * @author     Sergey Khabarov - sergeykhbr@gmail.com
5
 * @brief      IO-port interface declaration.
6
 */
7
 
8
#ifndef __DEBUGGER_COMMON_CORESERVICES_IIOPORT_H__
9
#define __DEBUGGER_COMMON_CORESERVICES_IIOPORT_H__
10
 
11
#include <iface.h>
12
 
13
namespace debugger {
14
 
15
static const char *IFACE_IOPORT = "IIOPort";
16
 
17
class IIOPort : public IFace {
18
 public:
19
    IIOPort() : IFace(IFACE_IOPORT) {}
20
 
21
    virtual void registerPortListener(IFace *listener) = 0;
22
    virtual void unregisterPortListener(IFace *listener) = 0;
23
};
24
 
25
static const char *IFACE_IOPORT_LISTENER = "IIOPortListener";
26
 
27
class IIOPortListener : public IFace {
28
 public:
29
    IIOPortListener() : IFace(IFACE_IOPORT_LISTENER) {}
30
 
31
    virtual void readData(uint8_t *val, uint8_t mask) = 0;
32
    virtual void writeData(uint8_t val, uint8_t mask) = 0;
33
    virtual void latch() = 0;
34
};
35
 
36
}  // namespace debugger
37
 
38
#endif  // __DEBUGGER_COMMON_CORESERVICES_IIOPORT_H__

powered by: WebSVN 2.1.0

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