leddriver16 2.1.0.0
LED Driver 16 Registers Settings

Settings for registers of LED Driver 16 Click driver. More...

Macros

#define LEDDRIVER16_MODE1_NORMAL_MODE   0x00
 LED Driver 16 MODE1 register setting.
 
#define LEDDRIVER16_MODE1_LOW_POWER_MODE   0x10
 
#define LEDDRIVER16_MODE2_OVERTEMP   0x80
 LED Driver 16 MODE2 register setting.
 
#define LEDDRIVER16_MODE2_ERROR   0x40
 
#define LEDDRIVER16_MODE2_DMBLNK   0x20
 
#define LEDDRIVER16_MODE2_CLRERR   0x10
 
#define LEDDRIVER16_MODE2_EXP_EN   0x04
 
#define LEDDRIVER16_LEDOUT_OFF   0x00
 LED Driver 16 LEDOUTx register setting.
 
#define LEDDRIVER16_LEDOUT_ON   0x01
 
#define LEDDRIVER16_LEDOUT_PWM_ALL   0x02
 
#define LEDDRIVER16_LEDOUT_PWM_GRPPWM   0x03
 
#define LEDDRIVER16_LEDOUT_MASK   0x03
 
#define LEDDRIVER16_PWM_DUTY_MIN   0x00
 LED Driver 16 PWMx register setting.
 
#define LEDDRIVER16_PWM_DUTY_MAX   0xFF
 
#define LEDDRIVER16_IREF_MIN   0x00
 LED Driver 16 IREFx register setting.
 
#define LEDDRIVER16_IREF_MAX   0xFF
 
#define LEDDRIVER16_LED_CHANNEL_0   0x0001u
 LED Driver 16 LED channel setting.
 
#define LEDDRIVER16_LED_CHANNEL_1   0x0002u
 
#define LEDDRIVER16_LED_CHANNEL_2   0x0004u
 
#define LEDDRIVER16_LED_CHANNEL_3   0x0008u
 
#define LEDDRIVER16_LED_CHANNEL_4   0x0010u
 
#define LEDDRIVER16_LED_CHANNEL_5   0x0020u
 
#define LEDDRIVER16_LED_CHANNEL_6   0x0040u
 
#define LEDDRIVER16_LED_CHANNEL_7   0x0080u
 
#define LEDDRIVER16_LED_CHANNEL_8   0x0100u
 
#define LEDDRIVER16_LED_CHANNEL_9   0x0200u
 
#define LEDDRIVER16_LED_CHANNEL_10   0x0400u
 
#define LEDDRIVER16_LED_CHANNEL_11   0x0800u
 
#define LEDDRIVER16_LED_CHANNEL_12   0x1000u
 
#define LEDDRIVER16_LED_CHANNEL_13   0x2000u
 
#define LEDDRIVER16_LED_CHANNEL_14   0x4000u
 
#define LEDDRIVER16_LED_CHANNEL_15   0x8000u
 
#define LEDDRIVER16_LED_CHANNEL_GRP0   0x000Fu
 
#define LEDDRIVER16_LED_CHANNEL_GRP1   0x00F0u
 
#define LEDDRIVER16_LED_CHANNEL_GRP2   0x0F00u
 
#define LEDDRIVER16_LED_CHANNEL_GRP3   0xF000u
 
#define LEDDRIVER16_LED_CHANNEL_ALL   0xFFFFu
 
#define LEDDRIVER16_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define LEDDRIVER16_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of LED Driver 16 Click driver.

Macro Definition Documentation

◆ LEDDRIVER16_IREF_MAX

#define LEDDRIVER16_IREF_MAX   0xFF

◆ LEDDRIVER16_IREF_MIN

#define LEDDRIVER16_IREF_MIN   0x00

LED Driver 16 IREFx register setting.

Specified setting for IREFx register of LED Driver 16 Click driver.

◆ LEDDRIVER16_LED_CHANNEL_0

#define LEDDRIVER16_LED_CHANNEL_0   0x0001u

LED Driver 16 LED channel setting.

Specified setting for LED channel of LED Driver 16 Click driver.

◆ LEDDRIVER16_LED_CHANNEL_1

#define LEDDRIVER16_LED_CHANNEL_1   0x0002u

◆ LEDDRIVER16_LED_CHANNEL_10

#define LEDDRIVER16_LED_CHANNEL_10   0x0400u

◆ LEDDRIVER16_LED_CHANNEL_11

#define LEDDRIVER16_LED_CHANNEL_11   0x0800u

◆ LEDDRIVER16_LED_CHANNEL_12

#define LEDDRIVER16_LED_CHANNEL_12   0x1000u

◆ LEDDRIVER16_LED_CHANNEL_13

#define LEDDRIVER16_LED_CHANNEL_13   0x2000u

◆ LEDDRIVER16_LED_CHANNEL_14

#define LEDDRIVER16_LED_CHANNEL_14   0x4000u

◆ LEDDRIVER16_LED_CHANNEL_15

#define LEDDRIVER16_LED_CHANNEL_15   0x8000u

◆ LEDDRIVER16_LED_CHANNEL_2

#define LEDDRIVER16_LED_CHANNEL_2   0x0004u

◆ LEDDRIVER16_LED_CHANNEL_3

#define LEDDRIVER16_LED_CHANNEL_3   0x0008u

◆ LEDDRIVER16_LED_CHANNEL_4

#define LEDDRIVER16_LED_CHANNEL_4   0x0010u

◆ LEDDRIVER16_LED_CHANNEL_5

#define LEDDRIVER16_LED_CHANNEL_5   0x0020u

◆ LEDDRIVER16_LED_CHANNEL_6

#define LEDDRIVER16_LED_CHANNEL_6   0x0040u

◆ LEDDRIVER16_LED_CHANNEL_7

#define LEDDRIVER16_LED_CHANNEL_7   0x0080u

◆ LEDDRIVER16_LED_CHANNEL_8

#define LEDDRIVER16_LED_CHANNEL_8   0x0100u

◆ LEDDRIVER16_LED_CHANNEL_9

#define LEDDRIVER16_LED_CHANNEL_9   0x0200u

◆ LEDDRIVER16_LED_CHANNEL_ALL

#define LEDDRIVER16_LED_CHANNEL_ALL   0xFFFFu

◆ LEDDRIVER16_LED_CHANNEL_GRP0

#define LEDDRIVER16_LED_CHANNEL_GRP0   0x000Fu

◆ LEDDRIVER16_LED_CHANNEL_GRP1

#define LEDDRIVER16_LED_CHANNEL_GRP1   0x00F0u

◆ LEDDRIVER16_LED_CHANNEL_GRP2

#define LEDDRIVER16_LED_CHANNEL_GRP2   0x0F00u

◆ LEDDRIVER16_LED_CHANNEL_GRP3

#define LEDDRIVER16_LED_CHANNEL_GRP3   0xF000u

◆ LEDDRIVER16_LEDOUT_MASK

#define LEDDRIVER16_LEDOUT_MASK   0x03

◆ LEDDRIVER16_LEDOUT_OFF

#define LEDDRIVER16_LEDOUT_OFF   0x00

LED Driver 16 LEDOUTx register setting.

Specified setting for LEDOUTx register of LED Driver 16 Click driver.

◆ LEDDRIVER16_LEDOUT_ON

#define LEDDRIVER16_LEDOUT_ON   0x01

◆ LEDDRIVER16_LEDOUT_PWM_ALL

#define LEDDRIVER16_LEDOUT_PWM_ALL   0x02

◆ LEDDRIVER16_LEDOUT_PWM_GRPPWM

#define LEDDRIVER16_LEDOUT_PWM_GRPPWM   0x03

◆ LEDDRIVER16_MODE1_LOW_POWER_MODE

#define LEDDRIVER16_MODE1_LOW_POWER_MODE   0x10

◆ LEDDRIVER16_MODE1_NORMAL_MODE

#define LEDDRIVER16_MODE1_NORMAL_MODE   0x00

LED Driver 16 MODE1 register setting.

Specified setting for MODE1 register of LED Driver 16 Click driver.

◆ LEDDRIVER16_MODE2_CLRERR

#define LEDDRIVER16_MODE2_CLRERR   0x10

◆ LEDDRIVER16_MODE2_DMBLNK

#define LEDDRIVER16_MODE2_DMBLNK   0x20

◆ LEDDRIVER16_MODE2_ERROR

#define LEDDRIVER16_MODE2_ERROR   0x40

◆ LEDDRIVER16_MODE2_EXP_EN

#define LEDDRIVER16_MODE2_EXP_EN   0x04

◆ LEDDRIVER16_MODE2_OVERTEMP

#define LEDDRIVER16_MODE2_OVERTEMP   0x80

LED Driver 16 MODE2 register setting.

Specified setting for MODE2 register of LED Driver 16 Click driver.

◆ LEDDRIVER16_PWM_DUTY_MAX

#define LEDDRIVER16_PWM_DUTY_MAX   0xFF

◆ LEDDRIVER16_PWM_DUTY_MIN

#define LEDDRIVER16_PWM_DUTY_MIN   0x00

LED Driver 16 PWMx register setting.

Specified setting for PWMx register of LED Driver 16 Click driver.

◆ LEDDRIVER16_SET_DATA_SAMPLE_EDGE

#define LEDDRIVER16_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE

Data sample selection.

This macro sets data samples for SPI modules.

Note
Available only on Microchip PIC family devices. This macro will set data sampling for all SPI modules on MCU. Can be overwritten with leddriver16_init which will set SET_SPI_DATA_SAMPLE_MIDDLE by default on the mapped mikrobus.

◆ LEDDRIVER16_SET_DATA_SAMPLE_MIDDLE

#define LEDDRIVER16_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE