Searched refs:i2c_buffer (Results 1 – 3 of 3) sorted by relevance
/Zephyr-Core-3.6.0/tests/drivers/i2c/i2c_target_api/src/ |
D | main.c | 27 static uint8_t i2c_buffer[TEST_DATA_SIZE]; variable 54 ret = i2c_burst_read(i2c, addr, 0, i2c_buffer, TEST_DATA_SIZE); in run_full_read() 57 if (memcmp(i2c_buffer, comp_buffer, TEST_DATA_SIZE)) { in run_full_read() 58 to_display_format(i2c_buffer, TEST_DATA_SIZE, in run_full_read() 81 offset, i2c_buffer, TEST_DATA_SIZE-offset); in run_partial_read() 84 if (memcmp(i2c_buffer, &comp_buffer[offset], TEST_DATA_SIZE-offset)) { in run_partial_read() 85 to_display_format(i2c_buffer, TEST_DATA_SIZE-offset, in run_partial_read() 108 i2c_buffer[i] = i; in run_program_read() 112 offset, i2c_buffer, TEST_DATA_SIZE-offset); in run_program_read() 115 (void)memset(i2c_buffer, 0xFF, TEST_DATA_SIZE); in run_program_read() [all …]
|
/Zephyr-Core-3.6.0/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-Core-3.6.0/drivers/sensor/tmag5273/ |
D | tmag5273.c | 515 uint8_t i2c_buffer[TMAG5273_I2C_BUFFER_SIZE] = {0}; in tmag5273_sample_fetch() local 528 while ((i2c_buffer[0] & TMAG5273_RESULT_STATUS_MSK) != in tmag5273_sample_fetch() 531 &drv_cfg->i2c, TMAG5273_REG_CONV_STATUS | conv_bit, &i2c_buffer[0]); in tmag5273_sample_fetch() 654 retval = i2c_burst_read_dt(&drv_cfg->i2c, start_address, &i2c_buffer[offset], in tmag5273_sample_fetch() 665 const uint8_t crc = crc8_ccitt(0xFF, &i2c_buffer[offset], block_size); in tmag5273_sample_fetch() 667 if (i2c_buffer[offset + block_size] != crc) { in tmag5273_sample_fetch() 669 i2c_buffer[offset + block_size], crc); in tmag5273_sample_fetch() 684 drv_cfg, &i2c_buffer[TMAG5273_REG_CONV_STATUS - TMAG5273_REG_RESULT_BEGIN]); in tmag5273_sample_fetch() 689 if ((i2c_buffer[TMAG5273_REG_CONV_STATUS - TMAG5273_REG_RESULT_BEGIN] & in tmag5273_sample_fetch() 700 &i2c_buffer[TMAG5273_REG_X_MSB_RESULT - TMAG5273_REG_RESULT_BEGIN]); in tmag5273_sample_fetch() [all …]
|