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

Subversion Repositories riscv_vhdl

[/] [riscv_vhdl/] [trunk/] [debugger/] [src/] [common/] [coreservices/] [ilink.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      Link interface declaration.
6
 */
7
 
8
#ifndef __DEBUGGER_COMMON_CORESERVICES_ILINK_H__
9
#define __DEBUGGER_COMMON_CORESERVICES_ILINK_H__
10
 
11
#include <iface.h>
12
#include <attribute.h>
13
#include "irawlistener.h"
14
 
15
namespace debugger {
16
 
17
static const char *const IFACE_LINK = "ILink";
18
 
19
class ILink : public IFace {
20
 public:
21
    ILink() : IFace(IFACE_LINK) {}
22
 
23
    /** Get opened socket connection settings. */
24
    virtual void getConnectionSettings(AttributeType *settings) = 0;
25
 
26
    /** Setup remote host settings */
27
    virtual void setConnectionSettings(const AttributeType *target) = 0;
28
 
29
    /** Send datagram buffer. */
30
    virtual int sendData(const uint8_t *msg, int len) = 0;
31
 
32
    /** Read datagram buffer. */
33
    virtual int readData(const uint8_t *buf, int maxlen) = 0;
34
};
35
 
36
}  // namespace debugger
37
 
38
#endif  // __DEBUGGER_COMMON_CORESERVICES_ILINK_H__

powered by: WebSVN 2.1.0

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