Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
MS35 Class Reference

#include <ms35.h>

Inheritance diagram for MS35:
Inheritance graph
[legend]

Public Member Functions

bool init ()
 
 MS35 (SerialIO *serialIO)
 
void setColor (color::rgba color)
 
void setColorMulti (std::vector< color::rgba > &colors)
 
virtual ~MS35 ()
 
- Public Member Functions inherited from IColorO
int getNumLeds ()
 
 IColorO ()
 
void setMask (int mask)
 
void setNumLeds (size_t num_leds)
 
boost::signals2::signal< void(color::rgba color)> * signalColorSet ()
 
boost::signals2::signal< void(std::vector< color::rgba > colors) > * signalColorsSet ()
 
virtual ~IColorO ()
 

Private Member Functions

unsigned short int getChecksum (const char *data, size_t len)
 
int sendData (const char *data, size_t len)
 

Private Attributes

SerialIO_serialIO
 
std::stringstream _ssOut
 
char buffer [PACKAGE_SIZE]
 

Static Private Attributes

static const int PACKAGE_SIZE = 9
 

Additional Inherited Members

- Protected Attributes inherited from IColorO
bool _initialized
 
int _invertMask
 
int _num_leds
 
boost::signals2::signal< void(color::rgba color)> m_sigColorSet
 
boost::signals2::signal< void(std::vector< color::rgba > colors) > m_sigColorsSet
 

Detailed Description

Definition at line 27 of file ms35.h.

Constructor & Destructor Documentation

MS35::MS35 ( SerialIO serialIO)

Definition at line 24 of file ms35.cpp.

MS35::~MS35 ( )
virtual

Definition at line 29 of file ms35.cpp.

Member Function Documentation

unsigned short int MS35::getChecksum ( const char *  data,
size_t  len 
)
private

Definition at line 63 of file ms35.cpp.

bool MS35::init ( )
virtual

Implements IColorO.

Definition at line 33 of file ms35.cpp.

int MS35::sendData ( const char *  data,
size_t  len 
)
private

Definition at line 71 of file ms35.cpp.

void MS35::setColor ( color::rgba  color)
virtual

Implements IColorO.

Definition at line 90 of file ms35.cpp.

void MS35::setColorMulti ( std::vector< color::rgba > &  colors)
virtual

Implements IColorO.

Definition at line 85 of file ms35.cpp.

Member Data Documentation

SerialIO* MS35::_serialIO
private

Definition at line 38 of file ms35.h.

std::stringstream MS35::_ssOut
private

Definition at line 39 of file ms35.h.

char MS35::buffer[PACKAGE_SIZE]
private

Definition at line 41 of file ms35.h.

const int MS35::PACKAGE_SIZE = 9
staticprivate

Definition at line 40 of file ms35.h.


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


cob_light
Author(s): Benjamin Maidel
autogenerated on Wed Apr 7 2021 02:11:39