-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathchecks.h
More file actions
32 lines (22 loc) · 853 Bytes
/
checks.h
File metadata and controls
32 lines (22 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
* Copyright (c) 2025 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/
#include "location.h"
#include "network.h"
#include "power.h"
void check_location_event(enum location_msg_type expected_location_type);
void check_network_event(enum network_msg_type expected_network_type);
void check_power_event(enum power_msg_type expected_power_type);
void check_no_events(uint32_t timeout_sec);
void purge_location_events(void);
void purge_network_events(void);
void purge_power_events(void);
void purge_all_events(void);
/* Wait for a location event of the expected type.
*
* Returns the time in seconds it took to receive the event if it is received within the timeout.
* Otherwise, it returns a negative value.
*/
int wait_for_location_event(enum location_msg_type expected_type, uint32_t timeout_sec);