mirror of
https://github.com/HendrikRauh/dmx-interface.git
synced 2025-12-16 07:34:09 +00:00
Other ETH lib
This commit is contained in:
parent
3ce1df2136
commit
c295017495
70 changed files with 21645 additions and 67 deletions
32
lib/ArtNet/Artnet/Manager.h
Normal file
32
lib/ArtNet/Artnet/Manager.h
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
#pragma once
|
||||
#ifndef ARTNET_MANAGER_H
|
||||
|
||||
#include "Common.h"
|
||||
#include "Receiver.h"
|
||||
#include "Sender.h"
|
||||
|
||||
namespace art_net {
|
||||
|
||||
template <typename S>
|
||||
class Manager : public Sender_<S>, public Receiver_<S>
|
||||
{
|
||||
S stream;
|
||||
|
||||
public:
|
||||
void begin(uint16_t recv_port = DEFAULT_PORT)
|
||||
{
|
||||
this->stream.begin(recv_port);
|
||||
this->Sender_<S>::attach(this->stream);
|
||||
this->Receiver_<S>::attach(this->stream);
|
||||
}
|
||||
|
||||
void parse()
|
||||
{
|
||||
this->Receiver_<S>::parse();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
} // namespace art_net
|
||||
|
||||
#endif // ARTNET_MANAGER_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue