Home
last modified time | relevance | path

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

/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
28 msb &= 0x1F; in calc_temp()
29 bool sign = msb & 0x10; in calc_temp()
31 msb &= 0x0F; in calc_temp()
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/esp_hw_support/port/esp32s2/
Dregi2c_ctrl.c114 uint8_t i2c_rtc_read_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t… 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 void i2c_rtc_write_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t l… 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 uint8_t i2c_rtc_read_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t…
37 void i2c_rtc_write_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t l…
59 uint8_t regi2c_ctrl_read_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uin…
61 void regi2c_ctrl_write_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8…
/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 …rl_write_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t lsb, uint8… 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 uint8_t rom_i2c_readReg_Mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t …
30 void rom_i2c_writeReg_Mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t ls…
51 uint8_t regi2c_ctrl_read_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uin…
53 void regi2c_ctrl_write_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8…
/hal_espressif-3.6.0/components/esp_hw_support/port/esp32c3/
Dregi2c_ctrl.h41 uint8_t rom_i2c_readReg_Mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t …
43 void rom_i2c_writeReg_Mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t ls…
64 uint8_t regi2c_ctrl_read_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uin…
66 void regi2c_ctrl_write_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8…
Di2c_rtc_clk.h23 uint8_t rom_i2c_readReg_Mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t …
25 void rom_i2c_writeReg_Mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t ls…
/hal_espressif-3.6.0/components/esp_hw_support/port/esp32h2/
Dregi2c_ctrl.h55 uint8_t rom_i2c_readReg_Mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t …
57 void rom_i2c_writeReg_Mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t ls…
78 uint8_t regi2c_ctrl_read_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uin…
80 void regi2c_ctrl_write_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8…
Di2c_rtc_clk.h23 uint8_t rom_i2c_readReg_Mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t …
25 void rom_i2c_writeReg_Mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t ls…
/hal_espressif-3.6.0/components/esp_hw_support/port/esp32s3/
Dregi2c_ctrl.h39 uint8_t rom_i2c_readReg_Mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t …
41 void rom_i2c_writeReg_Mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t ls…
62 uint8_t regi2c_ctrl_read_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uin…
64 void regi2c_ctrl_write_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8…
/hal_espressif-3.6.0/docs/
Dgenerate_chart.py113 msb = number.bit_length()
114 return 3 if number <= 1 else initial << msb - 2 << (1 & number >> msb - 2)
/hal_espressif-3.6.0/components/hal/esp32h2/include/hal/
Dadc_ll.h665 uint8_t msb = param >> 8; in adc_ll_set_calibration_param() local
668 REGI2C_WRITE_MASK(I2C_SAR_ADC, ADC_SAR1_INITIAL_CODE_HIGH_ADDR, msb); in adc_ll_set_calibration_param()
671 REGI2C_WRITE_MASK(I2C_SAR_ADC, ADC_SAR2_INITIAL_CODE_HIGH_ADDR, msb); in adc_ll_set_calibration_param()
/hal_espressif-3.6.0/components/hal/esp32c3/include/hal/
Dadc_ll.h665 uint8_t msb = param >> 8; in adc_ll_set_calibration_param() local
668 REGI2C_WRITE_MASK(I2C_SAR_ADC, ADC_SAR1_INITIAL_CODE_HIGH_ADDR, msb); in adc_ll_set_calibration_param()
671 REGI2C_WRITE_MASK(I2C_SAR_ADC, ADC_SAR2_INITIAL_CODE_HIGH_ADDR, msb); in adc_ll_set_calibration_param()
/hal_espressif-3.6.0/components/hal/esp32s3/include/hal/
Dadc_ll.h760 uint8_t msb = param >> 8; in adc_ll_set_calibration_param() local
763 REGI2C_WRITE_MASK(I2C_SAR_ADC, ADC_SAR1_INITIAL_CODE_HIGH_ADDR, msb); in adc_ll_set_calibration_param()
766 REGI2C_WRITE_MASK(I2C_SAR_ADC, ADC_SAR2_INITIAL_CODE_HIGH_ADDR, msb); in adc_ll_set_calibration_param()
/hal_espressif-3.6.0/components/hal/esp32s2/include/hal/
Dadc_ll.h1086 uint8_t msb = param >> 8; in adc_ll_set_calibration_param() local
1094 REGI2C_WRITE_MASK(I2C_SAR_ADC, ADC_SAR1_INITIAL_CODE_HIGH_ADDR, msb); in adc_ll_set_calibration_param()
1097 REGI2C_WRITE_MASK(I2C_SAR_ADC, ADC_SAR2_INITIAL_CODE_HIGH_ADDR, msb); in adc_ll_set_calibration_param()
/hal_espressif-3.6.0/components/bt/esp_ble_mesh/mesh_models/server/
Dlighting_server.c2561 uint8_t msb = net_buf_simple_pull_u8(buf); in light_lc_sensor_status() local
2562 prop_id = (uint16_t)(msb << 8) | (uint16_t)(mpid >> 8); in light_lc_sensor_status()
2644 uint8_t msb = net_buf_simple_pull_u8(buf); in light_lc_sensor_status() local
2645 srv->lc->state.ambient_luxlevel = (msb << 16) | lsb; in light_lc_sensor_status()