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

Subversion Repositories riscv_vhdl

[/] [riscv_vhdl/] [trunk/] [debugger/] [src/] [common/] [coreservices/] [idisplay.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 2017 GNSS Sensor Ltd. All right reserved.
4
 * @author     Sergey Khabarov - sergeykhbr@gmail.com
5
 * @brief      Dismplay Simulation interface.
6
 */
7
 
8
#ifndef __DEBUGGER_PLUGIN_IDISPLAY_H__
9
#define __DEBUGGER_PLUGIN_IDISPLAY_H__
10
 
11
#include <iface.h>
12
#include <inttypes.h>
13
 
14
namespace debugger {
15
 
16
static const char *const IFACE_DISPLAY = "IDisplay";
17
 
18
class IDisplay : public IFace {
19
 public:
20
    IDisplay() : IFace(IFACE_DISPLAY) {}
21
 
22
    virtual void initFrame() = 0;
23
    virtual void setFramePixel(int x, int y, uint32_t rgb) = 0;
24
    virtual void updateFrame() = 0;
25
};
26
 
27
static const char *const IFACE_LED_CONTROLLER = "ILedController";
28
 
29
class ILedController : public IFace {
30
 public:
31
    ILedController() : IFace(IFACE_LED_CONTROLLER) {}
32
 
33
    virtual void getResolution(int *width, int *height) = 0;
34
    virtual void registerDisplay(IDisplay *led) = 0;
35
    virtual void unregisterDisplay(IDisplay *led) = 0;
36
};
37
 
38
}  // namespace debugger
39
 
40
#endif  // __DEBUGGER_PLUGIN_IDISPLAY_H__

powered by: WebSVN 2.1.0

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