ESP-IDF
i2c_cmd_desc_t
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading (3/5)...
Files
loading (4/5)...
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_cmd_desc_t
i2c_cmd_desc_t struct
Syntax
Show:
Summary
Declaration
from
i2c.c:156
typedef
struct
{
i2c_cmd_link_t
*
head
;
i2c_cmd_link_t
*
cur
;
i2c_cmd_link_t
*
free
;
void
*
free_buffer
;
uint32_t
free_size
;
}
i2c_cmd_desc_t
;
Fields
Field
Declared as
Description
i2c_cmd_desc_t::head
i2c_cmd_link_t
*
head of the command link.
i2c_cmd_desc_t::cur
i2c_cmd_link_t
*
last node of the command link.
i2c_cmd_desc_t::free
i2c_cmd_link_t
*
the first node to free of the command link.
i2c_cmd_desc_t::free_buffer
void
*
pointer to the next free data in user's buffer.
i2c_cmd_desc_t::free_size
uint32_t
remaining size of the user's buffer.
Related Functions
Found 3 other functions taking a
i2c_cmd_desc_t
argument:
Function
i2c_cmd_link_is_static()
i2c_cmd_allocate()
i2c_cmd_log_alloc_error()
Examples
References
from
examples
Code
Location
Scope
Referrer
typedef
struct
{
i2c.c:156
}
i2c_cmd_desc_t
;
i2c.c:163
i2c_cmd_desc_t
i2c_cmd_desc_t
cmd_link
;
/*!< I2C command link */
i2c.c:191
i2c_obj_t
i2c_obj_t::cmd_link
uint8_t
buffer
[
I2C_TRANS_BUF_MINIMUM_SIZE
]
=
{
0
}
;
i2c.c:1032
i2c_master_write_to_device()
uint8_t
buffer
[
I2C_TRANS_BUF_MINIMUM_SIZE
]
=
{
0
}
;
i2c.c:1065
i2c_master_read_from_device()
uint8_t
buffer
[
I2C_TRANS_BUF_MINIMUM_SIZE
]
=
{
0
}
;
i2c.c:1099
i2c_master_write_read_device()
static
inline
bool
i2c_cmd_link_is_static
(
i2c_cmd_desc_t
*
cmd_desc
)
i2c.c:1142
i2c_cmd_link_is_static()
i2c_cmd_link_is_static()::cmd_desc
if
(
buffer
==
NULL
||
size
<=
sizeof
(
i2c_cmd_desc_t
)
)
{
i2c.c:1149
i2c_cmd_link_create_static()
i2c_cmd_desc_t
*
cmd_desc
=
(
i2c_cmd_desc_t
*
)
buffer
;
i2c.c:1153
i2c_cmd_link_create_static()
cmd_desc
->
free_size
=
size
-
sizeof
(
i2c_cmd_desc_t
)
;
i2c.c:1158
i2c_cmd_link_create_static()
i2c_cmd_desc_t
*
cmd_desc
=
(
i2c_cmd_desc_t
*
)
heap_caps_calloc
(
1
,
sizeof
(
i2c_cmd_desc_t
)
,
alloc_caps
)
;
i2c.c:1171
i2c_cmd_link_create()
i2c_cmd_desc_t
*
cmd
=
(
i2c_cmd_desc_t
*
)
cmd_handle
;
i2c.c:1177
i2c_cmd_link_delete_static()
i2c_cmd_desc_t
*
cmd
=
(
i2c_cmd_desc_t
*
)
cmd_handle
;
i2c.c:1187
i2c_cmd_link_delete()
static
esp_err_t
i2c_cmd_allocate
(
i2c_cmd_desc_t
*
cmd_desc
,
size_t
n
,
size_t
size
,
void
*
*
outptr
)
i2c.c:1208
i2c_cmd_allocate()
i2c_cmd_allocate()::cmd_desc
static
inline
void
i2c_cmd_log_alloc_error
(
i2c_cmd_desc_t
*
cmd_desc
)
i2c.c:1242
i2c_cmd_log_alloc_error()
i2c_cmd_log_alloc_error()::cmd_desc
i2c_cmd_desc_t
*
cmd_desc
=
(
i2c_cmd_desc_t
*
)
cmd_handle
;
i2c.c:1254
i2c_cmd_link_append()
!
is_cmd_link_buffer_internal
(
(
(
const
i2c_cmd_desc_t
*
)
cmd_handle
)
->
head
)
)
{
i2c.c:1542
i2c_master_cmd_begin()
const
i2c_cmd_desc_t
*
cmd
=
(
const
i2c_cmd_desc_t
*
)
cmd_handle
;
i2c.c:1566
i2c_master_cmd_begin()
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_obj_t::cmd_link
i2c_obj_t
i2c.c:191
i2c_cmd_link_is_static()::cmd_desc
i2c_cmd_link_is_static()
i2c.c:1142
i2c_cmd_allocate()::cmd_desc
i2c_cmd_allocate()
i2c.c:1208
i2c_cmd_log_alloc_error()::cmd_desc
i2c_cmd_log_alloc_error()
i2c.c:1242
Lifecycle
from
examples
All items filtered out
All items filtered out