rogue
Loading...
Searching...
No Matches
Transport.h
Go to the documentation of this file.
1
17#ifndef __ROGUE_PROTOCOLS_RSSI_TRANSPORT_H__
18#define __ROGUE_PROTOCOLS_RSSI_TRANSPORT_H__
19#include "rogue/Directives.h"
20
21#include <stdint.h>
22
23#include <memory>
24
25#include "rogue/Queue.h"
28
29namespace rogue {
30namespace protocols {
31namespace rssi {
32
33class Controller;
34
46 // RSSI controller backend.
47 std::shared_ptr<rogue::protocols::rssi::Controller> cntl_;
48
49 public:
60 static std::shared_ptr<rogue::protocols::rssi::Transport> create();
61
63 static void setup_python();
64
72 Transport();
73
75 ~Transport();
76
81 void setController(std::shared_ptr<rogue::protocols::rssi::Controller> cntl);
82
87 void acceptFrame(std::shared_ptr<rogue::interfaces::stream::Frame> frame);
88};
89
90// Convienence
91typedef std::shared_ptr<rogue::protocols::rssi::Transport> TransportPtr;
92
93} // namespace rssi
94} // namespace protocols
95}; // namespace rogue
96
97#endif
Stream master endpoint.
Definition Master.h:65
Stream slave endpoint and default frame pool.
Definition Slave.h:72
RSSI transport endpoint.
Definition Transport.h:45
void acceptFrame(std::shared_ptr< rogue::interfaces::stream::Frame > frame)
Accepts a frame from the upstream stream interface.
Definition Transport.cpp:67
static std::shared_ptr< rogue::protocols::rssi::Transport > create()
Creates a new transport endpoint instance.
Definition Transport.cpp:39
Transport()
Constructs a transport endpoint.
Definition Transport.cpp:56
static void setup_python()
Registers Python bindings for this class.
Definition Transport.cpp:44
~Transport()
Destroys the transport endpoint.
Definition Transport.cpp:59
void setController(std::shared_ptr< rogue::protocols::rssi::Controller > cntl)
Attaches the RSSI controller.
Definition Transport.cpp:62
std::shared_ptr< rogue::protocols::rssi::Transport > TransportPtr
Definition Transport.h:91