Hardware Abstraction Layer for FreeRTOS
tlc5947.h File Reference
#include <stdint.h>
#include <spi.h>
#include <pwm.h>
#include <gpio.h>
Include dependency graph for tlc5947.h:

Go to the source code of this file.

Macros

#define TLC5947_ADDDEV(id)
 
#define TLC5947_ID(id)   HAL_GET_ID(hal, tlc5947, tlc5947_##id)
 
#define TLC5947_GPIO_ID(id)   HAL_GET_ID(gpio, tlc5947, tlc5947_##id##_gpio)
 
#define TLC5947_PWM_ID(id, channelID)   HAL_GET_ID(pwm, tlc5947, tlc5947_##id##_pwm_##channelID)
 

Functions

int32_t tlc5947_init (int32_t index, struct spi *spi, uint32_t cs, uint32_t spi_gpio, struct gpio *gpio, uint32_t black)
 
int32_t tlc5947_deinit (int32_t index)