Open Lighting Architecture  0.9.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Member Functions | List of all members
ola::plugin::artnet::ArtNetNodeImpl Class Reference

Classes

struct  DMXSource
class  InputPort
struct  OutputPort

Public Member Functions

 ArtNetNodeImpl (const ola::network::Interface &iface, ola::io::SelectServerInterface *ss, const ArtNetNodeOptions &options, ola::network::UDPSocketInterface *socket=NULL)
bool Start ()
bool Stop ()
bool EnterConfigurationMode ()
bool ExitConfigurationMode ()
bool SetShortName (const std::string &name)
std::string ShortName () const
bool SetLongName (const std::string &name)
std::string LongName () const
uint8_t NetAddress () const
bool SetNetAddress (uint8_t net_address)
bool SetSubnetAddress (uint8_t subnet_address)
uint8_t SubnetAddress () const
uint8_t InputPortCount () const
bool SetInputPortUniverse (uint8_t port_id, uint8_t universe_id)
uint8_t GetInputPortUniverse (uint8_t port_id) const
void DisableInputPort (uint8_t port_id)
bool InputPortState (uint8_t port_id) const
bool SetOutputPortUniverse (uint8_t port_id, uint8_t universe_id)
uint8_t GetOutputPortUniverse (uint8_t port_id)
void DisableOutputPort (uint8_t port_id)
bool OutputPortState (uint8_t port_id) const
void SetBroadcastThreshold (unsigned int threshold)
bool SetMergeMode (uint8_t port_id, artnet_merge_mode merge_mode)
bool SendPoll ()
bool SendDMX (uint8_t port_id, const ola::DmxBuffer &buffer)
void RunFullDiscovery (uint8_t port_id, ola::rdm::RDMDiscoveryCallback *callback)
void RunIncrementalDiscovery (uint8_t port_id, ola::rdm::RDMDiscoveryCallback *callback)
void SendRDMRequest (uint8_t port_id, const ola::rdm::RDMRequest *request, ola::rdm::RDMCallback *on_complete)
bool SetUnsolicitedUIDSetHandler (uint8_t port_id, ola::Callback1< void, const ola::rdm::UIDSet & > *on_tod)
void GetSubscribedNodes (uint8_t port_id, std::vector< ola::network::IPV4Address > *node_addresses)
bool SetDMXHandler (uint8_t port_id, DmxBuffer *buffer, ola::Callback0< void > *handler)
bool SendTod (uint8_t port_id, const ola::rdm::UIDSet &uid_set)
bool SetOutputPortRDMHandlers (uint8_t port_id, ola::Callback0< void > *on_discover, ola::Callback0< void > *on_flush, ola::Callback2< void, const ola::rdm::RDMRequest *, ola::rdm::RDMCallback * > *on_rdm_request)
bool SendTimeCode (const ola::timecode::TimeCode &timecode)

Member Function Documentation

bool ola::plugin::artnet::ArtNetNodeImpl::EnterConfigurationMode ( )

Start the configuration transaction.

Returns
false if there is already a transaction pending.
bool ola::plugin::artnet::ArtNetNodeImpl::ExitConfigurationMode ( )

End the configuration transaction.

Returns
false if we weren't in a transaction.
uint8_t ola::plugin::artnet::ArtNetNodeImpl::GetInputPortUniverse ( uint8_t  port_id) const

Return the 8bit universe address for a port. This does not include the ArtNet III net-address. Invalid port_ids return 0.

void ola::plugin::artnet::ArtNetNodeImpl::GetSubscribedNodes ( uint8_t  port_id,
std::vector< ola::network::IPV4Address > *  node_addresses 
)

Populate the vector with a list of IP addresses that are known to be listening for the universe that this port is sending

bool ola::plugin::artnet::ArtNetNodeImpl::SendTimeCode ( const ola::timecode::TimeCode timecode)

Send a timecode packet

bool ola::plugin::artnet::ArtNetNodeImpl::SetInputPortUniverse ( uint8_t  port_id,
uint8_t  universe_id 
)

Set the universe address of an input port


The documentation for this class was generated from the following files: