ESPHome  2024.11.1
Data Structures | Enumerations | Variables
esphome::max6956 Namespace Reference

Data Structures

class  MAX6956
 
class  MAX6956GPIOPin
 
class  MAX6956LedChannel
 
class  SetCurrentGlobalAction
 
class  SetCurrentModeAction
 

Enumerations

enum  MAX6956GPIOMode : uint8_t { MAX6956_LED = 0x00, MAX6956_OUTPUT = 0x01, MAX6956_INPUT = 0x02, MAX6956_INPUT_PULLUP = 0x03 }
 Modes for MAX6956 pins. More...
 
enum  MAX6956GPIORange : uint8_t { MAX6956_MIN = 4, MAX6956_MAX = 31 }
 Range for MAX6956 pins. More...
 
enum  MAX6956GPIORegisters {
  MAX6956_GLOBAL_CURRENT = 0x02, MAX6956_CONFIGURATION = 0x04, MAX6956_TRANSITION_DETECT_MASK = 0x06, MAX6956_DISPLAY_TEST = 0x07,
  MAX6956_PORT_CONFIG_START = 0x09, MAX6956_CURRENT_START = 0x12, MAX6956_1PORT_VALUE_START = 0x20, MAX6956_8PORTS_VALUE_START = 0x44
}
 
enum  MAX6956GPIOFlag { FLAG_LED = 0x20 }
 
enum  MAX6956CURRENTMODE { GLOBAL = 0x00, SEGMENT = 0x01 }
 

Variables

const uint32_t MASK_TRANSITION_DETECTION = 0x80
 Masks for MAX6956 Configuration register. More...
 
const uint32_t MASK_INDIVIDUAL_CURRENT = 0x40
 
const uint32_t MASK_NORMAL_OPERATION = 0x01
 
const uint32_t MASK_1PORT_VALUE = 0x03
 
const uint32_t MASK_PORT_CONFIG = 0x03
 
const uint8_t MASK_CONFIG_CURRENT = 0x40
 
const uint8_t MASK_CURRENT_PIN = 0x0F
 

Enumeration Type Documentation

◆ MAX6956CURRENTMODE

Enumerator
GLOBAL 
SEGMENT 

Definition at line 37 of file max6956.h.

◆ MAX6956GPIOFlag

Enumerator
FLAG_LED 

Definition at line 35 of file max6956.h.

◆ MAX6956GPIOMode

Modes for MAX6956 pins.

Enumerator
MAX6956_LED 
MAX6956_OUTPUT 
MAX6956_INPUT 
MAX6956_INPUT_PULLUP 

Definition at line 11 of file max6956.h.

◆ MAX6956GPIORange

Range for MAX6956 pins.

Enumerator
MAX6956_MIN 
MAX6956_MAX 

Definition at line 19 of file max6956.h.

◆ MAX6956GPIORegisters

Enumerator
MAX6956_GLOBAL_CURRENT 
MAX6956_CONFIGURATION 
MAX6956_TRANSITION_DETECT_MASK 
MAX6956_DISPLAY_TEST 
MAX6956_PORT_CONFIG_START 
MAX6956_CURRENT_START 
MAX6956_1PORT_VALUE_START 
MAX6956_8PORTS_VALUE_START 

Definition at line 24 of file max6956.h.

Variable Documentation

◆ MASK_1PORT_VALUE

const uint32_t esphome::max6956::MASK_1PORT_VALUE = 0x03

Definition at line 14 of file max6956.cpp.

◆ MASK_CONFIG_CURRENT

const uint8_t esphome::max6956::MASK_CONFIG_CURRENT = 0x40

Definition at line 16 of file max6956.cpp.

◆ MASK_CURRENT_PIN

const uint8_t esphome::max6956::MASK_CURRENT_PIN = 0x0F

Definition at line 17 of file max6956.cpp.

◆ MASK_INDIVIDUAL_CURRENT

const uint32_t esphome::max6956::MASK_INDIVIDUAL_CURRENT = 0x40

Definition at line 11 of file max6956.cpp.

◆ MASK_NORMAL_OPERATION

const uint32_t esphome::max6956::MASK_NORMAL_OPERATION = 0x01

Definition at line 12 of file max6956.cpp.

◆ MASK_PORT_CONFIG

const uint32_t esphome::max6956::MASK_PORT_CONFIG = 0x03

Definition at line 15 of file max6956.cpp.

◆ MASK_TRANSITION_DETECTION

const uint32_t esphome::max6956::MASK_TRANSITION_DETECTION = 0x80

Masks for MAX6956 Configuration register.

Definition at line 10 of file max6956.cpp.