Home
last modified time | relevance | path

Searched refs:lsb (Results 1 – 16 of 16) sorted by relevance

/hal_espressif-3.6.0/components/esp_hw_support/port/esp32s2/
Dregi2c_ctrl.c114 …_t i2c_rtc_read_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t lsb) in i2c_rtc_read_reg_mask() argument
116 assert(msb - lsb < 8); in i2c_rtc_read_reg_mask()
124 return (uint8_t)((data >> lsb) & (~(0xFFFFFFFF << (msb - lsb + 1)))); in i2c_rtc_read_reg_mask()
139 …e_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t lsb, uint8_t data) in i2c_rtc_write_reg_mask() argument
141 assert(msb - lsb < 8); in i2c_rtc_write_reg_mask()
151 temp &= ((~(0xFFFFFFFF << lsb)) | (0xFFFFFFFF << (msb + 1))); in i2c_rtc_write_reg_mask()
152 temp = (((uint32_t)data & (~(0xFFFFFFFF << (msb - lsb + 1)))) << lsb) | temp; in i2c_rtc_write_reg_mask()
Dregi2c_ctrl.h35 …t i2c_rtc_read_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t lsb);
37 …_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t lsb, uint8_t data);
59 …gi2c_ctrl_read_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t lsb);
61 …_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t lsb, uint8_t data);
/hal_espressif-3.6.0/components/esp_hw_support/
Dregi2c_ctrl.c25 …egi2c_ctrl_read_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t lsb) in regi2c_ctrl_read_reg_mask() argument
28 uint8_t value = i2c_read_reg_mask_raw(block, host_id, reg_add, msb, lsb); in regi2c_ctrl_read_reg_mask()
40 …e_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t lsb, uint8_t data) in regi2c_ctrl_write_reg_mask() argument
43 i2c_write_reg_mask_raw(block, host_id, reg_add, msb, lsb, data); in regi2c_ctrl_write_reg_mask()
/hal_espressif-3.6.0/components/esp_hw_support/port/esp32/
Dregi2c_ctrl.h28 …_t rom_i2c_readReg_Mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t lsb);
30 …eReg_Mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t lsb, uint8_t data);
51 …gi2c_ctrl_read_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t lsb);
53 …_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t lsb, uint8_t data);
/hal_espressif-3.6.0/components/esp_hw_support/port/esp32c3/
Dregi2c_ctrl.h41 …_t rom_i2c_readReg_Mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t lsb);
43 …eReg_Mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t lsb, uint8_t data);
64 …gi2c_ctrl_read_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t lsb);
66 …_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t lsb, uint8_t data);
Di2c_rtc_clk.h23 …_t rom_i2c_readReg_Mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t lsb);
25 …eReg_Mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t lsb, uint8_t data);
/hal_espressif-3.6.0/components/esp_hw_support/port/esp32h2/
Dregi2c_ctrl.h55 …_t rom_i2c_readReg_Mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t lsb);
57 …eReg_Mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t lsb, uint8_t data);
78 …gi2c_ctrl_read_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t lsb);
80 …_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t lsb, uint8_t data);
Di2c_rtc_clk.h23 …_t rom_i2c_readReg_Mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t lsb);
25 …eReg_Mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t lsb, uint8_t data);
/hal_espressif-3.6.0/components/esp_hw_support/port/esp32s3/
Dregi2c_ctrl.h39 …_t rom_i2c_readReg_Mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t lsb);
41 …eReg_Mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t lsb, uint8_t data);
62 …gi2c_ctrl_read_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t lsb);
64 …_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t lsb, uint8_t data);
/hal_espressif-3.6.0/examples/cxx/experimental/sensor_mcp9808/main/
Dsensor_mcp9808.cpp26 float calc_temp(uint8_t msb, uint8_t lsb) { in calc_temp() argument
32 temperature = 256 - (msb * 16 + (float) lsb / 16); in calc_temp()
34 temperature = (msb * 16 + (float) lsb / 16); in calc_temp()
/hal_espressif-3.6.0/components/hal/esp32h2/include/hal/
Dadc_ll.h666 uint8_t lsb = param & 0xFF; in adc_ll_set_calibration_param() local
669 REGI2C_WRITE_MASK(I2C_SAR_ADC, ADC_SAR1_INITIAL_CODE_LOW_ADDR, lsb); in adc_ll_set_calibration_param()
672 REGI2C_WRITE_MASK(I2C_SAR_ADC, ADC_SAR2_INITIAL_CODE_LOW_ADDR, lsb); in adc_ll_set_calibration_param()
/hal_espressif-3.6.0/components/hal/esp32c3/include/hal/
Dadc_ll.h666 uint8_t lsb = param & 0xFF; in adc_ll_set_calibration_param() local
669 REGI2C_WRITE_MASK(I2C_SAR_ADC, ADC_SAR1_INITIAL_CODE_LOW_ADDR, lsb); in adc_ll_set_calibration_param()
672 REGI2C_WRITE_MASK(I2C_SAR_ADC, ADC_SAR2_INITIAL_CODE_LOW_ADDR, lsb); in adc_ll_set_calibration_param()
/hal_espressif-3.6.0/components/hal/esp32s3/include/hal/
Dadc_ll.h761 uint8_t lsb = param & 0xFF; in adc_ll_set_calibration_param() local
764 REGI2C_WRITE_MASK(I2C_SAR_ADC, ADC_SAR1_INITIAL_CODE_LOW_ADDR, lsb); in adc_ll_set_calibration_param()
767 REGI2C_WRITE_MASK(I2C_SAR_ADC, ADC_SAR2_INITIAL_CODE_LOW_ADDR, lsb); in adc_ll_set_calibration_param()
/hal_espressif-3.6.0/components/hal/esp32s2/include/hal/
Dadc_ll.h1087 uint8_t lsb = param & 0xFF; in adc_ll_set_calibration_param() local
1095 REGI2C_WRITE_MASK(I2C_SAR_ADC, ADC_SAR1_INITIAL_CODE_LOW_ADDR, lsb); in adc_ll_set_calibration_param()
1098 REGI2C_WRITE_MASK(I2C_SAR_ADC, ADC_SAR2_INITIAL_CODE_LOW_ADDR, lsb); in adc_ll_set_calibration_param()
/hal_espressif-3.6.0/components/esptool_py/esptool/espefuse/efuse/esp32/
Dfields.py346 lsb = result & 1
348 if lsb != 0:
/hal_espressif-3.6.0/components/bt/esp_ble_mesh/mesh_models/server/
Dlighting_server.c2643 uint16_t lsb = net_buf_simple_pull_le16(buf); in light_lc_sensor_status() local
2645 srv->lc->state.ambient_luxlevel = (msb << 16) | lsb; in light_lc_sensor_status()