LibDriver WS2812B
Loading...
Searching...
No Matches
ws2812b link driver function

ws2812b link driver modules More...

Collaboration diagram for ws2812b link driver function:

Macros

#define DRIVER_WS2812B_LINK_INIT(HANDLE, STRUCTURE)
 initialize ws2812b_handle_t structure
#define DRIVER_WS2812B_LINK_SPI_10MHZ_INIT(HANDLE, FUC)
 link spi_10mhz_init function
#define DRIVER_WS2812B_LINK_SPI_DEINIT(HANDLE, FUC)
 link spi_deinit function
#define DRIVER_WS2812B_LINK_SPI_WRITE_COMMAND(HANDLE, FUC)
 link spi_write_cmd function
#define DRIVER_WS2812B_LINK_DELAY_MS(HANDLE, FUC)
 link delay_ms function
#define DRIVER_WS2812B_LINK_DEBUG_PRINT(HANDLE, FUC)
 link debug_print function

Detailed Description

ws2812b link driver modules

Macro Definition Documentation

◆ DRIVER_WS2812B_LINK_DEBUG_PRINT

#define DRIVER_WS2812B_LINK_DEBUG_PRINT ( HANDLE,
FUC )
Value:
(HANDLE)->debug_print = FUC

link debug_print function

Parameters
[in]HANDLEpointer to a ws2812b handle structure
[in]FUCpointer to a debug_print function address
Note
none

Definition at line 152 of file driver_ws2812b.h.

◆ DRIVER_WS2812B_LINK_DELAY_MS

#define DRIVER_WS2812B_LINK_DELAY_MS ( HANDLE,
FUC )
Value:
(HANDLE)->delay_ms = FUC

link delay_ms function

Parameters
[in]HANDLEpointer to a ws2812b handle structure
[in]FUCpointer to a delay_ms function address
Note
none

Definition at line 144 of file driver_ws2812b.h.

◆ DRIVER_WS2812B_LINK_INIT

#define DRIVER_WS2812B_LINK_INIT ( HANDLE,
STRUCTURE )
Value:
memset(HANDLE, 0, sizeof(STRUCTURE))

initialize ws2812b_handle_t structure

Parameters
[in]HANDLEpointer to a ws2812b handle structure
[in]STRUCTUREws2812b_handle_t
Note
none

Definition at line 112 of file driver_ws2812b.h.

◆ DRIVER_WS2812B_LINK_SPI_10MHZ_INIT

#define DRIVER_WS2812B_LINK_SPI_10MHZ_INIT ( HANDLE,
FUC )
Value:
(HANDLE)->spi_10mhz_init = FUC

link spi_10mhz_init function

Parameters
[in]HANDLEpointer to a ws2812b handle structure
[in]FUCpointer to a spi_10mhz_init function address
Note
none

Definition at line 120 of file driver_ws2812b.h.

◆ DRIVER_WS2812B_LINK_SPI_DEINIT

#define DRIVER_WS2812B_LINK_SPI_DEINIT ( HANDLE,
FUC )
Value:
(HANDLE)->spi_deinit = FUC

link spi_deinit function

Parameters
[in]HANDLEpointer to a ws2812b handle structure
[in]FUCpointer to a spi_deinit function address
Note
none

Definition at line 128 of file driver_ws2812b.h.

◆ DRIVER_WS2812B_LINK_SPI_WRITE_COMMAND

#define DRIVER_WS2812B_LINK_SPI_WRITE_COMMAND ( HANDLE,
FUC )
Value:
(HANDLE)->spi_write_cmd = FUC

link spi_write_cmd function

Parameters
[in]HANDLEpointer to a ws2812b handle structure
[in]FUCpointer to a spi_write_cmd function address
Note
none

Definition at line 136 of file driver_ws2812b.h.