ESP-IDF
K_SECONDS
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Arguments
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
K_SECONDS
K_SECONDS macro
Generate timeout delay from seconds. This macro generates a timeout delay that that instructs a kernel API to wait up to @a s seconds to perform the requested operation.
Syntax
Show:
Summary
Declaration
from
timer.h:96
#define
K_SECONDS
(
s
)
K_MSEC
(
(
s
)
*
MSEC_PER_SEC
)
Arguments
Argument
Description
s
Duration in seconds.
Return value
Timeout delay value.
Examples
References
from
examples
Code
Location
#define
K_SECONDS
(
s
)
K_MSEC
(
(
s
)
*
MSEC_PER_SEC
)
glue.h:179
#define
K_SECONDS
(
s
)
K_MSEC
(
(
s
)
*
MSEC_PER_SEC
)
timer.h:96
period
=
K_SECONDS
(
mod
->
pub
->
period
&
BIT_MASK
(
6
)
)
;
access.c:86
period
=
K_SECONDS
(
(
mod
->
pub
->
period
&
BIT_MASK
(
6
)
)
*
10U
)
;
access.c:90
period
=
K_SECONDS
(
mod
->
pub
->
period
&
BIT_MASK
(
6
)
)
;
access.c:93
period
=
K_SECONDS
(
(
mod
->
pub
->
period
&
BIT_MASK
(
6
)
)
*
10
)
;
access.c:97
#define
UNPROV_BEACON_INTERVAL
K_SECONDS
(
CONFIG_BLE_MESH_UNPROVISIONED_BEACON_INTERVAL
)
beacon.c:33
#define
UNPROV_BEACON_INTERVAL
K_SECONDS
(
5
)
beacon.c:35
#define
SECURE_BEACON_INTERVAL
K_SECONDS
(
10
)
beacon.c:41
if
(
time_diff
<
K_SECONDS
(
600
)
&&
beacon.c:169
#define
PROVISIONED_INTERVAL
(
K_SECONDS
(
10
)
)
beacon.c:26
#define
BEACON_THRESHOLD
(
sub
)
(
K_SECONDS
(
10
*
(
(
sub
)
->
beacons_last
+
1
)
)
-
\
beacon.c:85
K_SECONDS
(
5
)
)
beacon.c:86
k_work_schedule
(
&
beacon_timer
,
K_SECONDS
(
MYNEWT_VAL
(
BLE_MESH_UNPROV_BEACON_INT
)
)
)
;
beacon.c:254
#define
BEACON_THRESHOLD
(
last
)
(
K_SECONDS
(
10
*
(
(
last
)
+
1
)
)
-
K_SECONDS
(
5
)
)
beacon.h:26
#define
GET_ALL_NODE_ADDR_TIMEOUT
K_SECONDS
(
60
)
ble_mesh_fast_prov_client_model.c:21
#define
SEND_SELF_PROV_NODE_ADDR_TIMEOUT
K_SECONDS
(
5
)
ble_mesh_fast_prov_client_model.h:21
k_delayed_work_submit
(
&
srv
->
gatt_proxy_enable_timer
,
K_SECONDS
(
3
)
)
;
ble_mesh_fast_prov_server_model.c:533
#define
DISABLE_FAST_PROV_TIMEOUT
K_SECONDS
(
10
)
ble_mesh_fast_prov_server_model.h:16
#define
GATT_PROXY_ENABLE_TIMEOUT
K_SECONDS
(
10
)
ble_mesh_fast_prov_server_model.h:17
K_SECONDS
(
frnd
->
clear
.
repeat_sec
)
)
;
friend.c:780
k_work_reschedule
(
&
frnd
->
timer
,
K_SECONDS
(
1
)
)
;
friend.c:1173
#define
K_MINUTES
(
m
)
K_SECONDS
(
(
m
)
*
60
)
glue.h:180
static
int32_t
msg_timeout
=
K_SECONDS
(
5
)
;
health_cli.c:24
k_work_reschedule
(
&
srv
->
attn_timer
,
K_SECONDS
(
time
)
)
;
health_srv.c:474
k_work_reschedule
(
&
pub_timer
,
K_SECONDS
(
pub
.
period
)
)
;
heartbeat.c:51
k_work_reschedule
(
&
sub_timer
,
K_SECONDS
(
sub
.
period
)
)
;
heartbeat.c:317
static
int32_t
msg_timeout
=
K_SECONDS
(
5
)
;
model_cli.c:14
#define
TRANSACTION_TIMEOUT
K_SECONDS
(
30
)
pb_adv.c:54
#define
PROTOCOL_TIMEOUT
K_SECONDS
(
60
)
prov_bearer.h:9
timeout
=
K_SECONDS
(
30
)
;
prov_common.c:420
timeout
=
K_SECONDS
(
link
->
pb_remote_timeout
)
;
prov_common.c:427
timeout
=
K_SECONDS
(
60
)
;
prov_common.c:638
#define
TRANSACTION_TIMEOUT
K_SECONDS
(
3
)
prov_common.h:133
#define
PROTOCOL_TIMEOUT
K_SECONDS
(
6
)
prov_common.h:134
#define
TRANSACTION_TIMEOUT
K_SECONDS
(
30
)
prov_common.h:137
#define
PROTOCOL_TIMEOUT
K_SECONDS
(
60
)
prov_common.h:138
#define
BLE_MESH_PROXY_SAR_TIMEOUT
K_SECONDS
(
20
)
proxy_common.h:59
#define
PROXY_SAR_TIMEOUT
K_SECONDS
(
20
)
proxy_msg.c:40
#define
NODE_ID_TIMEOUT
K_SECONDS
(
CONFIG_BLE_MESH_NODE_ID_TIMEOUT
)
proxy_server.c:1388
max_timeout
=
MAX
(
max_timeout
,
K_SECONDS
(
1
)
)
;
proxy_server.c:1742
if
(
k_uptime_get_32
(
)
-
prov_start_time
<
K_SECONDS
(
60
)
)
{
proxy_server.c:1849
return
K_SECONDS
(
60
)
;
proxy_server.c:1864
max_timeout
=
MAX
(
max_timeout
,
K_SECONDS
(
1
)
)
;
proxy_srv.c:593
(
*
now
-
last
->
timestamp
<=
K_SECONDS
(
6
)
)
)
{
server_common.c:202
timeout
=
K_SECONDS
(
CONFIG_BLE_MESH_RPL_STORE_TIMEOUT
)
;
settings.c:1543
timeout
=
K_SECONDS
(
CONFIG_BLE_MESH_STORE_TIMEOUT
)
;
settings.c:1545
#define
K_MINUTES
(
m
)
K_SECONDS
(
(
m
)
*
60
)
timer.h:108
timeout
=
K_SECONDS
(
10
)
;
transport.c:1273
return
MIN
(
timeout
,
K_SECONDS
(
60
)
)
;
transport.c:1278
if
(
k_uptime_get_32
(
)
-
rx
->
last
>
K_SECONDS
(
60
)
)
{
transport.c:1160
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
Lifecycle
from
examples
All items filtered out
All items filtered out