NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
light_ws2811strip.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define WS2811_LED_STRIP_LENGTH   32
 
#define WS2811_BITS_PER_LED   24
 
#define WS2811_DELAY_BUFFER_LENGTH   42
 
#define WS2811_DATA_BUFFER_SIZE   (WS2811_BITS_PER_LED * WS2811_LED_STRIP_LENGTH)
 
#define WS2811_DMA_BUFFER_SIZE   (WS2811_DATA_BUFFER_SIZE + WS2811_DELAY_BUFFER_LENGTH)
 
#define BIT_COMPARE_1   17
 
#define BIT_COMPARE_0   9
 

Functions

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

Variables

uint8_t ledStripDMABuffer [WS2811_DMA_BUFFER_SIZE]
 
volatile uint8_t ws2811LedDataTransferInProgress
 

Macro Definition Documentation

#define BIT_COMPARE_0   9
#define BIT_COMPARE_1   17
#define WS2811_BITS_PER_LED   24
#define WS2811_DATA_BUFFER_SIZE   (WS2811_BITS_PER_LED * WS2811_LED_STRIP_LENGTH)
#define WS2811_DELAY_BUFFER_LENGTH   42
#define WS2811_DMA_BUFFER_SIZE   (WS2811_DATA_BUFFER_SIZE + WS2811_DELAY_BUFFER_LENGTH)
#define WS2811_LED_STRIP_LENGTH   32

Function Documentation

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)

Here is the call graph for this function:

void setStripColors ( const hsvColor_t colors)

Here is the call graph for this function:

void ws2811LedStripDMAEnable ( void  )

Here is the call graph for this function:

void ws2811LedStripHardwareInit ( void  )

Here is the call graph for this function:

void ws2811LedStripInit ( void  )

Here is the call graph for this function:

void ws2811UpdateStrip ( void  )

Here is the call graph for this function:

Variable Documentation

uint8_t ledStripDMABuffer[WS2811_DMA_BUFFER_SIZE]
volatile uint8_t ws2811LedDataTransferInProgress