Go to the documentation of this file.
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";
volatile uint8_t * pxl_raw
const char * ws2811_get_return_t_str(const ws2811_return_t state)
void ws2811_fini(ws2811_t *ws2811)
ws2811_return_t ws2811_render(ws2811_t *ws2811)
const char * ws2811_return_state_strings[]
struct ws2811_device ws2811_device_t
ws2811_channel_t channel[RPI_PWM_CHANNELS]
struct ws2811_device * device
ws2811_return_t ws2811_init(ws2811_t *ws2811)
#define ROS_INFO_STREAM(args)
#define WS2811_RETURN_STATES(X)
ws2811_return_t ws2811_wait(ws2811_t *ws2811)
#define WS2811_RETURN_STR(state, name, str)
ws281x
Author(s): Alexey Rogachevskiy
, Oleg Kalachev
autogenerated on Wed Jun 15 2022 02:21:36