ESP-IDF
_i2c_hal_set_bus_timing()
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading (3/5)...
Files
loading (4/5)...
Summary
Syntax
Arguments
Related
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
_i2c_hal_set_bus_timing()
_i2c_hal_set_bus_timing() function
Set I2C bus timing with the given frequency
Syntax
Show:
Summary
Declaration
Definition
from
i2c_hal.h:96
void
_i2c_hal_set_bus_timing
(
i2c_hal_context_t
*
hal
,
int
scl_freq
,
i2c_clock_source_t
src_clk
,
int
source_freq
)
;
Implemented in
i2c_hal.c:25
Arguments
Argument
Description
hal
Context of the HAL layer
scl_freq
The scl frequency to be set
src_clk
The source clock of I2C
source_freq
Source clock frequency of I2C
Return value
None
Related Functions
Found 11 other functions taking a
i2c_hal_context_t
argument:
Function
Description
i2c_hal_master_trans_start()
Start I2C master transaction
i2c_hal_master_init()
Init the I2C master.
i2c_hal_slave_init()
Init the I2C slave.
_i2c_hal_init()
Init I2C hal layer
i2c_hal_get_timing_config()
Get timing configuration
i2c_hal_set_timing_config()
Set timing configuration
i2c_hal_master_handle_tx_event()
I2C master handle tx interrupt event
i2c_hal_master_handle_rx_event()
I2C master handle rx interrupt event
i2c_hal_master_set_scl_timeout_val()
Set scl timeout reg value according to given timeout us and source clock frequency
_i2c_hal_deinit()
Deinit I2C hal layer
i2c_hal_master_fsm_rst()
I2C hardware FSM reset
Examples
References
from
examples
Code
Location
Referrer
void
_i2c_hal_set_bus_timing
(
i2c_hal_context_t
*
hal
,
int
scl_freq
,
i2c_clock_source_t
src_clk
,
int
source_freq
)
i2c_hal.c:25
void
_i2c_hal_set_bus_timing
(
i2c_hal_context_t
*
hal
,
int
scl_freq
,
i2c_clock_source_t
src_clk
,
int
source_freq
)
;
i2c_hal.h:96
i2c_hal_set_bus_timing
(
&
(
i2c_context
[
i2c_num
]
.
hal
)
,
i2c_conf
->
master
.
clk_speed
,
src_clk
,
s_get_src_clk_freq
(
src_clk
)
)
;
i2c.c:831
i2c_param_config()
i2c_hal_set_bus_timing
(
hal
,
i2c_dev
->
scl_speed_hz
,
i2c_master
->
base
->
clk_src
,
i2c_master
->
base
->
clk_src_freq_hz
)
;
i2c_master.c:609
s_i2c_transaction_start()
i2c_hal_set_bus_timing
(
hal
,
100000
,
bus_handle
->
base
->
clk_src
,
bus_handle
->
base
->
clk_src_freq_hz
)
;
i2c_master.c:1271
i2c_master_probe()
Call Tree
from
examples
_i2c_hal_set_bus_timing()
is called by 3 functions and calls 2 functions:
i2c_param_config()
s_i2c_transaction_start()
i2c_master_probe()
All items filtered out
_i2c_hal_set_bus_timing()
i2c_ll_master_cal_bus_clk()
i2c_ll_master_set_bus_timing()
All items filtered out
Data Use
from
examples
_i2c_hal_set_bus_timing()
reads 1 variable:
i2c_hal_context_t::dev
All items filtered out
_i2c_hal_set_bus_timing()
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
Lifecycle
from
examples
All items filtered out
All items filtered out