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

Subversion Repositories riscv_vhdl

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 sergeykhbr
/**
2
 * @file
3
 * @copyright  Copyright 2016 GNSS Sensor Ltd. All right reserved.
4
 * @author     Sergey Khabarov - sergeykhbr@gmail.com
5
 * @brief      Serial Interface declaration.
6
 */
7
 
8
#ifndef __DEBUGGER_ISERIAL_H__
9
#define __DEBUGGER_ISERIAL_H__
10
 
11
#include <iface.h>
12
 
13
namespace debugger {
14
 
15
static const char *IFACE_SERIAL = "ISerial";
16
 
17
class ISerial : public IFace {
18
 public:
19
    ISerial() : IFace(IFACE_SERIAL) {}
20
 
21
    /**
22
    * @brief Write data buffer from external module.
23
    * @return Number of written bytes.
24
    */
25
    virtual int writeData(const char *buf, int sz) = 0;
26
 
27
    virtual void registerRawListener(IFace *listener) = 0;
28
    virtual void unregisterRawListener(IFace *listener) = 0;
29
 
30
    virtual void getListOfPorts(AttributeType *list) = 0;
31
    virtual int openPort(const char *port, AttributeType settings) = 0;
32
    virtual void closePort() = 0;
33
};
34
 
35
}  // namespace debugger
36
 
37
#endif  // __DEBUGGER_ISERIAL_H__

powered by: WebSVN 2.1.0

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