30 #ifdef WS2812_TARGET_PLATFORM_STM8S
ALL PLATFORMS: Data structure to configure a WS2812 device struct.
uint8_t n_dev
Number of WS2812 device to drive.
uint8_t rst_time_us
Time required for the WS2812 device(s) to reset in us.
uint16_t port_baseaddr
Base address of the port used to drive WS2812 devices (ex. GPIOA_BASE, GPIOB_BASE,...
GPIO_Pin_TypeDef * pins
Array of pins used to drive WS2812 devices (ex. GPIO_PIN_1, GPIO_PIN_2, etc...)
ws2812_order order
CoColor order of the WS2812 device(s) (ex. rgb, grb, bgr...)
ALL PLATFORMS: WS2812 device struct to drive one or more WS2812 devices.
uint16_t port_baseaddr
Base address of the port used to drive WS2812 devices (ex. GPIOA_BASE, GPIOB_BASE,...
uint8_t rgbmap[3]
RGB map to map/convert RGB values to another color order.
uint8_t rst_time_us
Time required for WS2812 to reset in us.
uint8_t masklo
PORT masks to toggle the data pins low.
uint8_t maskhi
PORT masks to toggle the data pins high.
Definitions required by all platform specific headers.
ws2812_order
Enum to specify the WS2812 device's color order.
struct ws2812 ws2812
ALL PLATFORMS: WS2812 device struct to drive one or more WS2812 devices.
struct ws2812_cfg ws2812_cfg
ALL PLATFORMS: Data structure to configure a WS2812 device struct.