NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
light_ws2811strip.c File Reference
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include <platform.h>
#include "build_config.h"
#include "common/color.h"
#include "common/colorconversion.h"
#include "drivers/dma.h"
#include "drivers/light_ws2811strip.h"
Include dependency graph for light_ws2811strip.c:

Functions

void setLedHsv (int index, const hsvColor_t *color)
 
void getLedHsv (int index, hsvColor_t *color)
 
void setLedValue (int index, const uint8_t value)
 
void scaleLedValue (int index, const uint8_t scalePercent)
 
void setStripColor (const hsvColor_t *color)
 
void setStripColors (const hsvColor_t *colors)
 
void ws2811LedStripInit (void)
 
bool isWS2811LedStripReady (void)
 
void fastUpdateLEDDMABuffer (uint8_t **buffer, rgbColor24bpp_t color)
 
void ws2811UpdateStrip (void)
 

Variables

uint8_t ledStripDMABuffer [WS2811_DMA_BUFFER_SIZE]
 
volatile uint8_t ws2811LedDataTransferInProgress = 0
 

Function Documentation

void fastUpdateLEDDMABuffer ( uint8_t **  buffer,
rgbColor24bpp_t  color 
)
void getLedHsv ( int  index,
hsvColor_t color 
)
bool isWS2811LedStripReady ( void  )
void scaleLedValue ( int  index,
const uint8_t  scalePercent 
)
void setLedHsv ( int  index,
const hsvColor_t color 
)
void setLedValue ( int  index,
const uint8_t  value 
)
void setStripColor ( const hsvColor_t color)
void setStripColors ( const hsvColor_t colors)

Here is the call graph for this function:

void ws2811LedStripInit ( void  )
void ws2811UpdateStrip ( void  )

Variable Documentation

uint8_t ledStripDMABuffer[WS2811_DMA_BUFFER_SIZE]
volatile uint8_t ws2811LedDataTransferInProgress = 0