ESP-IDF
i2c_hal_clk_config_t
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Related
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
i2c_hal_clk_config_t
i2c_hal_clk_config_t struct
Data structure for calculating I2C bus timing.
Syntax
Show:
Summary
Declaration
from
i2c_types.h:46
typedef
struct
{
uint16_t
clkm_div
;
uint16_t
scl_low
;
uint16_t
scl_high
;
uint16_t
scl_wait_high
;
uint16_t
sda_hold
;
uint16_t
sda_sample
;
uint16_t
setup
;
uint16_t
hold
;
uint16_t
tout
;
}
i2c_hal_clk_config_t
;
Fields
Field
Declared as
Description
i2c_hal_clk_config_t::clkm_div
uint16_t
I2C core clock divider.
i2c_hal_clk_config_t::scl_low
uint16_t
I2C scl low period.
i2c_hal_clk_config_t::scl_high
uint16_t
I2C scl high period.
i2c_hal_clk_config_t::scl_wait_high
uint16_t
I2C scl wait_high period.
i2c_hal_clk_config_t::sda_hold
uint16_t
I2C scl low period.
i2c_hal_clk_config_t::sda_sample
uint16_t
I2C sda sample time.
i2c_hal_clk_config_t::setup
uint16_t
I2C start and stop condition setup period.
i2c_hal_clk_config_t::hold
uint16_t
I2C start and stop condition hold period.
i2c_hal_clk_config_t::tout
uint16_t
I2C bus timeout period.
Related Functions
Found 2 other functions taking a
i2c_hal_clk_config_t
argument:
Function
Description
i2c_ll_master_cal_bus_clk()
Calculate I2C bus frequency
i2c_ll_master_set_bus_timing()
Configure the I2C bus timing related register.
Examples
References
from
examples
Code
Location
Scope
Referrer
typedef
struct
{
i2c_types.h:46
}
i2c_hal_clk_config_t
;
i2c_types.h:56
i2c_hal_clk_config_t
clk_cal
=
{
0
}
;
i2c_hal.c:27
_i2c_hal_set_bus_timing()
static
inline
void
i2c_ll_master_cal_bus_clk
(
uint32_t
source_clk
,
uint32_t
bus_freq
,
i2c_hal_clk_config_t
*
clk_cal
)
i2c_ll.h:86
i2c_ll_master_cal_bus_clk()
i2c_ll_master_cal_bus_clk()::clk_cal
static
inline
void
i2c_ll_master_set_bus_timing
(
i2c_dev_t
*
hw
,
i2c_hal_clk_config_t
*
bus_cfg
)
i2c_ll.h:106
i2c_ll_master_set_bus_timing()
i2c_ll_master_set_bus_timing()::bus_cfg
}
i2c_hal_clk_config_t
;
i2c_types.h:56
i2c_hal_clk_config_t
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
All items filtered out
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Instance
Scope
Location
Project
i2c_ll_master_cal_bus_clk()::clk_cal
i2c_ll_master_cal_bus_clk()
i2c_ll.h:86
i2c_ll_master_set_bus_timing()::bus_cfg
i2c_ll_master_set_bus_timing()
i2c_ll.h:106
Lifecycle
from
examples
All items filtered out
All items filtered out