Hardware Abstraction Layer for FreeRTOS
Collaboration diagram for TLC5947 Driver:

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)
 

Detailed Description

#include <tlc5947.h>

This is the TLC5947 Driver.

Macro Definition Documentation

◆ TLC5947_ADDDEV

#define TLC5947_ADDDEV (   id)

◆ TLC5947_GPIO_ID

#define TLC5947_GPIO_ID (   id)    HAL_GET_ID(gpio, tlc5947, tlc5947_##id##_gpio)

◆ TLC5947_ID

#define TLC5947_ID (   id)    HAL_GET_ID(hal, tlc5947, tlc5947_##id)

◆ TLC5947_PWM_ID

#define TLC5947_PWM_ID (   id,
  channelID 
)    HAL_GET_ID(pwm, tlc5947, tlc5947_##id##_pwm_##channelID)

Function Documentation

◆ tlc5947_deinit()

int32_t tlc5947_deinit ( int32_t  index)

◆ tlc5947_init()

int32_t tlc5947_init ( int32_t  index,
struct spi *  spi,
uint32_t  cs,
uint32_t  spi_gpio,
struct gpio *  gpio,
uint32_t  black 
)
tlc5947.h