SELKIELogger
1.0.0
|
#include <stdbool.h>
#include <stdint.h>
Go to the source code of this file.
Classes | |
struct | i2c_sn3218_state |
SN3218 State representation. More... | |
Macros | |
#define | SN3218_ADDR_DEFAULT 0x54 |
SN3218 I2C Address. | |
#define | SN3218_REG_ENABLE 0x00 |
Global device enable register. | |
#define | SN3218_REG_PWM_01 0x01 |
LED 1 PWM Intensity (0-255) | |
#define | SN3218_REG_PWM_02 0x02 |
LED 2 PWM Intensity (0-255) | |
#define | SN3218_REG_PWM_03 0x03 |
LED 3 PWM Intensity (0-255) | |
#define | SN3218_REG_PWM_04 0x04 |
LED 4 PWM Intensity (0-255) | |
#define | SN3218_REG_PWM_05 0x05 |
LED 5 PWM Intensity (0-255) | |
#define | SN3218_REG_PWM_06 0x06 |
LED 6 PWM Intensity (0-255) | |
#define | SN3218_REG_PWM_07 0x07 |
LED 7 PWM Intensity (0-255) | |
#define | SN3218_REG_PWM_08 0x08 |
LED 8 PWM Intensity (0-255) | |
#define | SN3218_REG_PWM_09 0x09 |
LED 9 PWM Intensity (0-255) | |
#define | SN3218_REG_PWM_10 0x0A |
LED 10 PWM Intensity (0-255) | |
#define | SN3218_REG_PWM_11 0x0B |
LED 11 PWM Intensity (0-255) | |
#define | SN3218_REG_PWM_12 0x0C |
LED 12 PWM Intensity (0-255) | |
#define | SN3218_REG_PWM_13 0x0D |
LED 13 PWM Intensity (0-255) | |
#define | SN3218_REG_PWM_14 0x0E |
LED 14 PWM Intensity (0-255) | |
#define | SN3218_REG_PWM_15 0x0F |
LED 15 PWM Intensity (0-255) | |
#define | SN3218_REG_PWM_16 0x10 |
LED 16 PWM Intensity (0-255) | |
#define | SN3218_REG_PWM_17 0x11 |
LED 17 PWM Intensity (0-255) | |
#define | SN3218_REG_PWM_18 0x12 |
LED 18 PWM Intensity (0-255) | |
#define | SN3218_REG_LED_01 0x13 |
LEDs 1 - 6 control register. | |
#define | SN3218_REG_LED_02 0x14 |
LEDs 7-12 control register. | |
#define | SN3218_REG_LED_03 0x15 |
LEDs 13-18 control register. | |
#define | SN3218_REG_UPDATE 0x16 |
SN3218 Update register - set high to apply changes. | |
#define | SN3218_REG_RESET 0x17 |
SN3218 Reset register - set high to reset all control registers. | |
Functions | |
bool | i2c_sn3218_reset (const int busHandle) |
Reset device to defaults. More... | |
bool | i2c_sn3218_update (const int busHandle, const i2c_sn3218_state *state) |
Configure SN3218 chip to match state object. More... | |
SN3218 Support functions
Definition in file I2C-SN3218.h.