NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ws2811_unittest.cc File Reference
#include <stdint.h>
#include <stdlib.h>
#include <limits.h>
#include <platform.h>
#include "build_config.h"
#include "common/color.h"
#include "drivers/dma.h"
#include "drivers/light_ws2811strip.h"
#include "unittest_macros.h"
#include "gtest/gtest.h"
Include dependency graph for ws2811_unittest.cc:

Functions

void fastUpdateLEDDMABuffer (uint8_t **dst, rgbColor24bpp_t color)
 
 TEST (WS2812, updateDMABuffer)
 
rgbColor24bpp_t hsvToRgb24 (const hsvColor_t *c)
 
void ws2811LedStripHardwareInit (void)
 
void ws2811LedStripDMAEnable (void)
 
void dmaSetHandler (dmaHandlerIdentifier_e, dmaCallbackHandlerFuncPtr)
 
uint8_t DMA_GetFlagStatus (uint32_t)
 
void DMA_Cmd (DMA_Channel_TypeDef *, FunctionalState)
 
void DMA_ClearFlag (uint32_t)
 

Variables

uint16_t dmaBufferOffset
 

Function Documentation

void DMA_ClearFlag ( uint32_t  )
void DMA_Cmd ( DMA_Channel_TypeDef ,
FunctionalState   
)
uint8_t DMA_GetFlagStatus ( uint32_t  )
void dmaSetHandler ( dmaHandlerIdentifier_e  ,
dmaCallbackHandlerFuncPtr   
)
void fastUpdateLEDDMABuffer ( uint8_t **  dst,
rgbColor24bpp_t  color 
)
rgbColor24bpp_t hsvToRgb24 ( const hsvColor_t c)
TEST ( WS2812  ,
updateDMABuffer   
)

Here is the call graph for this function:

void ws2811LedStripDMAEnable ( void  )
void ws2811LedStripHardwareInit ( void  )

Variable Documentation

uint16_t dmaBufferOffset