25 ROS_INFO(
"Initializing mock ws2811");
32 return ws2811_return_t::WS2811_ERROR_OUT_OF_MEMORY;
42 for(
int led = 0; led < ledcnt; ++led)
46 ws2811->
channel[channel].
gamma = (uint8_t*)malloc(256*
sizeof(uint8_t));
47 for(
int i = 0; i < 256; ++i)
58 return ws2811_return_t::WS2811_SUCCESS;
83 std::stringstream ledbuf;
85 for(
int led = 0; led < ledcnt; ++led)
95 return ws2811_return_t::WS2811_SUCCESS;
101 return ws2811_return_t::WS2811_SUCCESS;
105 #define WS2811_RETURN_STR(state, name, str) str 114 return "Unknown/unexpected failure state";
struct ws2811_device * device
void ws2811_fini(ws2811_t *ws2811)
ws2811_return_t ws2811_wait(ws2811_t *ws2811)
ws2811_channel_t channel[RPI_PWM_CHANNELS]
const char * ws2811_return_state_strings[]
#define WS2811_RETURN_STATES(X)
ws2811_return_t ws2811_init(ws2811_t *ws2811)
const char * ws2811_get_return_t_str(const ws2811_return_t state)
volatile uint8_t * pxl_raw
struct ws2811_device ws2811_device_t
#define WS2811_RETURN_STR(state, name, str)
#define ROS_INFO_STREAM(args)
ws2811_return_t ws2811_render(ws2811_t *ws2811)