nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
vars_internal.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2022 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#include <zephyr/sys/slist.h>
8
10
11/* Expose internal variables in UI module for testing purposes. */
12extern enum state_type {
21
22extern enum sub_state_type {
26
27extern enum sub_sub_state_type {
31
32extern struct led_pattern {
33 /* Variable used to construct a linked list of led patterns. */
34 sys_snode_t header;
35 /* LED state. */
37 /* Duration of the LED state. */
38 int16_t duration_sec;
40
41extern sys_slist_t pattern_transition_list;
42
43extern void transition_list_clear(void);
led_state
Asset Tracker led states in the application.
Definition: led_state_event.h:21
@ LED_STATE_COUNT
Definition: led_state_event.h:34
enum led_state led_state
Definition: vars_internal.h:36
sys_snode_t header
Definition: vars_internal.h:34
int16_t duration_sec
Definition: vars_internal.h:38
Definition: vars_internal.h:32
enum state_type state
sys_slist_t pattern_transition_list
enum sub_sub_state_type sub_sub_state
sub_sub_state_type
Definition: vars_internal.h:27
@ SUB_SUB_STATE_LOCATION_ACTIVE
Definition: vars_internal.h:29
@ SUB_SUB_STATE_LOCATION_INACTIVE
Definition: vars_internal.h:28
state_type
Definition: vars_internal.h:12
@ STATE_CLOUD_CONNECTING
Definition: vars_internal.h:16
@ STATE_CLOUD_ASSOCIATING
Definition: vars_internal.h:17
@ STATE_FOTA_UPDATING
Definition: vars_internal.h:18
@ STATE_INIT
Definition: vars_internal.h:13
@ STATE_LTE_CONNECTING
Definition: vars_internal.h:15
@ STATE_SHUTDOWN
Definition: vars_internal.h:19
@ STATE_RUNNING
Definition: vars_internal.h:14
void transition_list_clear(void)
enum sub_state_type sub_state
struct led_pattern led_pattern_list[LED_STATE_COUNT]
sub_state_type
Definition: vars_internal.h:22
@ SUB_STATE_ACTIVE
Definition: vars_internal.h:23
@ SUB_STATE_PASSIVE
Definition: vars_internal.h:24