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

Subversion Repositories riscv_vhdl

[/] [riscv_vhdl/] [trunk/] [debugger/] [src/] [common/] [coreservices/] [isensor.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      Sensor's interface.
6
 */
7
 
8
#ifndef __DEBUGGER_PLUGIN_ISENSOR_H__
9
#define __DEBUGGER_PLUGIN_ISENSOR_H__
10
 
11
#include <iface.h>
12
#include <inttypes.h>
13
 
14
namespace debugger {
15
 
16
static const char *const IFACE_SENSOR = "ISensor";
17
 
18
class ISensor : public IFace {
19
 public:
20
    ISensor() : IFace(IFACE_SENSOR) {}
21
 
22
    virtual void changeSensorValue(double rate) = 0;
23
    virtual double getSensorValue() = 0;
24
    virtual double getPhysicalValue() {
25
        return getSensorValue();
26
    }
27
};
28
 
29
}  // namespace debugger
30
 
31
#endif  // __DEBUGGER_PLUGIN_ISENSOR_H__

powered by: WebSVN 2.1.0

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