Lines Matching refs:bus
28 struct i2c_dt_spec bus; member
90 i2c_write_dt(&config->bus, buf, sizeof(buf)); in glcd_print()
110 i2c_write_dt(&config->bus, data, 2); in glcd_cursor_pos_set()
119 i2c_write_dt(&config->bus, clear, sizeof(clear)); in glcd_clear()
134 i2c_write_dt(&config->bus, buf, sizeof(buf)); in glcd_display_state_set()
158 i2c_write_dt(&config->bus, buf, sizeof(buf)); in glcd_input_state_set()
187 rgb_reg_set(config->bus.bus, REGISTER_R, r); in glcd_color_set()
188 rgb_reg_set(config->bus.bus, REGISTER_G, g); in glcd_color_set()
189 rgb_reg_set(config->bus.bus, REGISTER_B, b); in glcd_color_set()
202 i2c_write_dt(&config->bus, buf, sizeof(buf)); in glcd_function_set()
224 if (!device_is_ready(config->bus.bus)) { in glcd_initialize()
269 rgb_reg_set(config->bus.bus, 0x00, 0x00); in glcd_initialize()
270 rgb_reg_set(config->bus.bus, 0x01, 0x05); in glcd_initialize()
271 rgb_reg_set(config->bus.bus, 0x08, 0xAA); in glcd_initialize()
275 rgb_reg_set(config->bus.bus, REGISTER_R, color_define[GROVE_RGB_WHITE][0]); in glcd_initialize()
276 rgb_reg_set(config->bus.bus, REGISTER_G, color_define[GROVE_RGB_WHITE][1]); in glcd_initialize()
277 rgb_reg_set(config->bus.bus, REGISTER_B, color_define[GROVE_RGB_WHITE][2]); in glcd_initialize()
283 .bus = I2C_DT_SPEC_INST_GET(0),