dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pios_ws2811.h File Reference
#include <pios_ws2811_cfg.h>

Go to the source code of this file.

Typedefs

typedef struct ws2811_dev_sws2811_dev_t
 

Functions

int PIOS_WS2811_init (ws2811_dev_t *dev_out, const struct pios_ws2811_cfg *cfg, int max_leds)
 Allocate and initialise WS2811 device. More...
 
void PIOS_WS2811_trigger_update (ws2811_dev_t dev)
 Trigger an update of the LED strand. More...
 
void PIOS_WS2811_set (ws2811_dev_t dev, int idx, uint8_t r, uint8_t g, uint8_t b)
 Set a given LED to a color value. More...
 
void PIOS_WS2811_set_all (ws2811_dev_t dev, uint8_t r, uint8_t g, uint8_t b)
 Sets all LEDs to a color value. More...
 
void PIOS_WS2811_dma_interrupt_handler (ws2811_dev_t dev)
 Handles a DMA completion interrupt on bit_clear_dma_stream. More...
 
int PIOS_WS2811_get_num_leds (ws2811_dev_t dev)
 Find out how many LEDs are configured on an interface. More...
 

Detailed Description

Author
dRonin, http://dronin.org Copyright (C) 2016-2017
See Also
The GNU Public License (GPL) Version 3

Definition in file pios_ws2811.h.