#include "ws2811.h"
#include <ros/console.h>
#include <memory.h>
#include <string.h>
Go to the source code of this file.
◆ WS2811_RETURN_STR
#define WS2811_RETURN_STR |
( |
|
state, |
|
|
|
name, |
|
|
|
str |
|
) |
| str |
◆ ws2811_device_t
◆ ws2811_fini()
Shut down DMA, PWM, and cleanup memory.
- Parameters
-
ws2811 | ws2811 instance pointer. |
- Returns
- None
Definition at line 61 of file ws2811.cpp.
◆ ws2811_get_return_t_str()
◆ ws2811_init()
Allocate and initialize memory, buffers, pages, PWM, DMA, and GPIO.
- Parameters
-
ws2811 | ws2811 instance pointer. |
- Returns
- 0 on success, -1 otherwise.
Definition at line 23 of file ws2811.cpp.
◆ ws2811_render()
Render the DMA buffer from the user supplied LED arrays and start the DMA controller. This will update all LEDs on both PWM channels.
- Parameters
-
ws2811 | ws2811 instance pointer. |
- Returns
- None
Definition at line 75 of file ws2811.cpp.
◆ ws2811_wait()
Wait for any executing DMA operation to complete before returning.
- Parameters
-
ws2811 | ws2811 instance pointer. |
- Returns
- 0 on success, -1 on DMA competion error
Definition at line 98 of file ws2811.cpp.
◆ ws2811_return_state_strings
const char* ws2811_return_state_strings[] |
Initial value:= {
#define WS2811_RETURN_STR(state, name, str)
}
Definition at line 104 of file ws2811.cpp.