use the IP Address type from SDT
This commit is contained in:
parent
cf06c0fa9a
commit
c0dded8b94
|
@ -29,6 +29,7 @@ target_sources(${PROJECT_NAME}
|
|||
|
||||
target_link_libraries(${PROJECT_NAME}
|
||||
PRIVATE
|
||||
LCP::ACN::SDT # for IP Address types
|
||||
LCP::BufferStream
|
||||
LCP::RDM
|
||||
)
|
||||
|
|
|
@ -24,9 +24,12 @@
|
|||
#pragma once
|
||||
|
||||
#include "packet.h"
|
||||
#include <udp.h>
|
||||
|
||||
namespace ARTNET {
|
||||
|
||||
using ACN::SDT::UDP::ipAddress;
|
||||
|
||||
/**
|
||||
* @brief The Device class is the base class for ARTNET::Controller
|
||||
* and ARTNET::Node
|
||||
|
@ -45,6 +48,23 @@ protected:
|
|||
virtual void rxArtPoll();
|
||||
virtual void txArtPollReply(std::shared_ptr<ArtPoll> = nullptr);
|
||||
virtual void txArtDiagData();
|
||||
|
||||
/**
|
||||
* @brief deviceIp
|
||||
* @return
|
||||
*
|
||||
* \note Platform aware device types must return a valid IP address.
|
||||
*/
|
||||
virtual ipAddress deviceIp() const = 0;
|
||||
|
||||
/**
|
||||
* @brief broadcastIp
|
||||
* @return
|
||||
*
|
||||
* \note Platform aware device types must return their directed broadcast address.
|
||||
*/
|
||||
virtual ipAddress broadcastIp() const = 0;
|
||||
|
||||
virtual void rxArtTimeCode();
|
||||
virtual void txArtTimeCode();
|
||||
virtual void rxArtCommand();
|
||||
|
|
Loading…
Reference in New Issue