ESP-IDF
i2c_obj_t::mode
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
i2c_obj_t::mode
i2c_obj_t::mode field
I2C mode, master or slave
Syntax
Show:
Summary
Declaration
from
i2c.c:184
int
mode
;
Examples
References
from
examples
Code
Location
Referrer
int
mode
;
/*!< I2C mode, master or slave */
i2c.c:184
p_i2c
->
mode
=
mode
;
i2c.c:324
i2c_driver_install()
if
(
p_i2c
->
mode
==
I2C_MODE_MASTER
)
{
i2c.c:574
i2c_isr_handler_default()
ESP_RETURN_ON_FALSE
(
p_i2c_obj
[
i2c_num
]
->
mode
==
I2C_MODE_MASTER
,
ESP_ERR_INVALID_STATE
,
I2C_TAG
,
I2C_MASTER_MODE_ERR_STR
)
;
i2c.c:1535
i2c_master_cmd_begin()
ESP_RETURN_ON_FALSE
(
p_i2c_obj
[
i2c_num
]
->
mode
==
I2C_MODE_SLAVE
,
ESP_FAIL
,
I2C_TAG
,
I2C_MODE_SLAVE_ERR_STR
)
;
i2c.c:1648
i2c_slave_write_buffer()
ESP_RETURN_ON_FALSE
(
p_i2c_obj
[
i2c_num
]
->
mode
==
I2C_MODE_SLAVE
,
ESP_FAIL
,
I2C_TAG
,
I2C_MODE_SLAVE_ERR_STR
)
;
i2c.c:1678
i2c_slave_read_buffer()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
i2c_obj_t::mode
is written by 1 function and is read by 4 functions:
i2c_driver_install()
All items filtered out
i2c_obj_t::mode
i2c_isr_handler_default()
i2c_master_cmd_begin()
i2c_slave_write_buffer()
i2c_slave_read_buffer()
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