Searched refs:i2c_buffer (Results 1 – 3 of 3) sorted by relevance
/Zephyr-latest/tests/drivers/i2c/i2c_target_api/src/ |
D | main.c | 28 static uint8_t i2c_buffer[TEST_DATA_SIZE]; variable 57 ret = i2c_write_read(i2c, addr, start_addr, (addr_width >> 3), i2c_buffer, TEST_DATA_SIZE); in run_full_read() 60 if (memcmp(i2c_buffer, comp_buffer, TEST_DATA_SIZE)) { in run_full_read() 61 to_display_format(i2c_buffer, TEST_DATA_SIZE, in run_full_read() 96 start_addr, (addr_width >> 3), i2c_buffer, TEST_DATA_SIZE-offset); in run_partial_read() 99 if (memcmp(i2c_buffer, &comp_buffer[offset], TEST_DATA_SIZE-offset)) { in run_partial_read() 100 to_display_format(i2c_buffer, TEST_DATA_SIZE-offset, in run_partial_read() 125 i2c_buffer[i] = i; in run_program_read() 142 msg[1].buf = &i2c_buffer[0]; in run_program_read() 149 (void)memset(i2c_buffer, 0xFF, TEST_DATA_SIZE); in run_program_read() [all …]
|
/Zephyr-latest/drivers/led/ |
D | is31fl3216a.c | 74 uint8_t i2c_buffer[IS31FL3216A_MAX_LEDS + 1]; in is31fl3216a_led_write_channels() local 87 i2c_buffer[0] = IS31FL3216A_REG_PWM_LAST - start_channel - in is31fl3216a_led_write_channels() 93 i2c_buffer[i + 1] = is31fl3216a_brightness_to_pwm( in is31fl3216a_led_write_channels() 97 status = is31fl3216a_write_buffer(&config->i2c, i2c_buffer, in is31fl3216a_led_write_channels()
|
/Zephyr-latest/drivers/sensor/ti/tmag5273/ |
D | tmag5273.c | 538 uint8_t i2c_buffer[TMAG5273_I2C_BUFFER_SIZE] = {0}; in tmag5273_sample_fetch() local 551 while ((i2c_buffer[0] & TMAG5273_RESULT_STATUS_MSK) != in tmag5273_sample_fetch() 554 &drv_cfg->i2c, TMAG5273_REG_CONV_STATUS | conv_bit, &i2c_buffer[0]); in tmag5273_sample_fetch() 677 retval = i2c_burst_read_dt(&drv_cfg->i2c, start_address, &i2c_buffer[offset], in tmag5273_sample_fetch() 688 const uint8_t crc = crc8_ccitt(0xFF, &i2c_buffer[offset], block_size); in tmag5273_sample_fetch() 690 if (i2c_buffer[offset + block_size] != crc) { in tmag5273_sample_fetch() 692 i2c_buffer[offset + block_size], crc); in tmag5273_sample_fetch() 707 drv_cfg, &i2c_buffer[TMAG5273_REG_CONV_STATUS - TMAG5273_REG_RESULT_BEGIN]); in tmag5273_sample_fetch() 718 &i2c_buffer[TMAG5273_REG_X_MSB_RESULT - TMAG5273_REG_RESULT_BEGIN]); in tmag5273_sample_fetch() 723 &i2c_buffer[TMAG5273_REG_Y_MSB_RESULT - TMAG5273_REG_RESULT_BEGIN]); in tmag5273_sample_fetch() [all …]
|