Open Lighting Architecture  Latest Git
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | List of all members
ola::plugin::uartdmx::UartWidget Class Reference

Detailed Description

An UART widget (i.e. a serial port with suitable hardware attached)

Public Member Functions

 UartWidget (const std::string &path)
virtual ~UartWidget ()
std::string Name () const
std::string Description () const
bool Open ()
bool Close ()
bool IsOpen () const
bool SetBreak (bool on)
bool Write (const ola::DmxBuffer &data)
bool Read (unsigned char *buff, int size)
bool SetupOutput ()

Constructor & Destructor Documentation

ola::plugin::uartdmx::UartWidget::UartWidget ( const std::string &  path)

Construct a new UartWidget instance for one widget.

pathThe device file path of the serial port
ola::plugin::uartdmx::UartWidget::~UartWidget ( )


Member Function Documentation

bool ola::plugin::uartdmx::UartWidget::Close ( )

Close the widget

bool ola::plugin::uartdmx::UartWidget::IsOpen ( ) const

Check if the widget is open

std::string ola::plugin::uartdmx::UartWidget::Name ( ) const

Get the widget's device name

bool ola::plugin::uartdmx::UartWidget::Open ( )

Open the widget

bool ola::plugin::uartdmx::UartWidget::Read ( unsigned char *  buff,
int  size 

Read data from a previously-opened line

bool ola::plugin::uartdmx::UartWidget::SetBreak ( bool  on)

Toggle communications line BREAK condition on/off

bool ola::plugin::uartdmx::UartWidget::SetupOutput ( )

Setup device for DMX Output

Setup our device for DMX send Also used to test if device is working correctly before AddDevice()

bool ola::plugin::uartdmx::UartWidget::Write ( const ola::DmxBuffer data)

Write data to a previously-opened line

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