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

Subversion Repositories riscv_vhdl

[/] [riscv_vhdl/] [trunk/] [debugger/] [src/] [common/] [ihap.h] - Blame information for rev 2

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

Line No. Rev Author Line
1 2 sergeykhbr
/**
2
 * @file
3
 * @copyright  Copyright 2016 GNSS Sensor Ltd. All right reserved.
4
 * @author     Sergey Khabarov - sergeykhbr@gmail.com
5
 * @brief      Hap interface declaration.
6
 */
7
 
8
#ifndef __DEBUGGER_IHAP_H__
9
#define __DEBUGGER_IHAP_H__
10
 
11
#include "iface.h"
12
#include <stdarg.h>
13
 
14
namespace debugger {
15
 
16
static const char *const IFACE_HAP = "IHap";
17
 
18
enum EHapType {
19
    HAP_All,
20
    HAP_ConfigDone,
21
    HAP_BreakSimulation
22
};
23
 
24
class IHap : public IFace {
25
public:
26
    IHap(EHapType type = HAP_All) : IFace(IFACE_HAP), type_(type) {}
27
 
28
    EHapType getType() { return type_; }
29
 
30
    virtual void hapTriggered(IFace *isrc, EHapType type,
31
                             const char *descr) =0;
32
 
33
protected:
34
    EHapType type_;
35
};
36
 
37
}  // namespace debugger
38
 
39
#endif  // __DEBUGGER_IHAP_H__

powered by: WebSVN 2.1.0

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