21 #ifndef SELKIELoggerI2C_SN3218
22 #define SELKIELoggerI2C_SN3218
33 #define SN3218_ADDR_DEFAULT 0x54
43 #define SN3218_REG_ENABLE 0x00
57 #define SN3218_REG_PWM_01 0x01
60 #define SN3218_REG_PWM_02 0x02
63 #define SN3218_REG_PWM_03 0x03
66 #define SN3218_REG_PWM_04 0x04
69 #define SN3218_REG_PWM_05 0x05
72 #define SN3218_REG_PWM_06 0x06
75 #define SN3218_REG_PWM_07 0x07
78 #define SN3218_REG_PWM_08 0x08
81 #define SN3218_REG_PWM_09 0x09
84 #define SN3218_REG_PWM_10 0x0A
87 #define SN3218_REG_PWM_11 0x0B
90 #define SN3218_REG_PWM_12 0x0C
93 #define SN3218_REG_PWM_13 0x0D
96 #define SN3218_REG_PWM_14 0x0E
99 #define SN3218_REG_PWM_15 0x0F
102 #define SN3218_REG_PWM_16 0x10
105 #define SN3218_REG_PWM_17 0x11
108 #define SN3218_REG_PWM_18 0x12
123 #define SN3218_REG_LED_01 0x13
126 #define SN3218_REG_LED_02 0x14
129 #define SN3218_REG_LED_03 0x15
133 #define SN3218_REG_UPDATE 0x16
136 #define SN3218_REG_RESET 0x17
bool i2c_sn3218_reset(const int busHandle)
Reset device to defaults.
bool i2c_sn3218_update(const int busHandle, const i2c_sn3218_state *state)
Configure SN3218 chip to match state object.
SN3218 State representation.
bool global_enable
Global on/off switch.