XPoint 0.1.0
Hardware-agnostic crosspoint matrix routing library
Loading...
Searching...
No Matches
TLC59711Driver.h File Reference

Driver for the TLC59711 12-channel 16-bit PWM constant-current LED driver. More...

#include "XPointDriver.h"
#include <stdint.h>

Go to the source code of this file.

Classes

class  TLC59711Driver
 XPointDriver implementation for the TLC59711 SPI PWM driver. More...
 

Detailed Description

Driver for the TLC59711 12-channel 16-bit PWM constant-current LED driver.

SPI packet format (28 bytes per chip, sent MSB first):

Bytes Field Description
0–3 Control word (32-bit) CMD=0x25, OUTTMG=1, TMGRST=1, DSPRPT=1, BC=0x7F all
4–27 GS11 down to GS0 16 bits each, MSB first

Resulting control bytes: 0x96 0xDF 0xFF 0xFF.

Daisy-chain byte order: in a chain of N chips the first bytes shifted out propagate to the last physical chip. commitPhysicalUpdates() sends chip Nāˆ’1 data first so that mapper channel 0 always maps to the first physical chip (nearest MOSI).

  • connect() / disconnect() drive the channel to 0xFFFF / 0x0000.
  • setLevel() sets any 16-bit value without clamping.
  • setPWM() provides direct channel access bypassing the matrix state table.