summaryrefslogtreecommitdiff
path: root/test/uat-common.h
blob: f009d544bda721214e9f6ab190cf83dc16f896b2 (plain)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*
 * Copyright (c) 2018 Samsung Electronics Co., Ltd. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */
#ifndef __UAT_COMMON_H__
#define __UAT_COMMON_H__

#ifdef __cplusplus
extern "C" {
#endif

typedef enum {
	UAT_SENSOR_TYPE_BT = 1,
	UAT_SENSOR_TYPE_BLE = 2,
	UAT_SENSOR_TYPE_WIFI = 3,
	UAT_SENSOR_TYPE_MOTION = 4,
	UAT_SENSOR_TYPE_LIGHT = 5,
	UAT_SENSOR_TYPE_AUDIO = 6,
	UAT_SENSOR_TYPE_MAX
} uat_sensor_type_e;

typedef enum {
	UAT_MAC_TYPE_BT = 1,
	UAT_MAC_TYPE_BLE = 2,
	UAT_MAC_TYPE_WIFI = 3,
	UAT_MAC_TYPE_P2P = 4,
	UAT_MAC_TYPE_MAX
} uat_mac_type_e;

typedef enum {
	UAT_PRESENCE = 1,
	UAT_ABSENCE = 2
} uat_detection_type_e;

const char* uat_get_error_str(int err);
const char* uat_get_sensor_str(int sensors);
const char* uat_get_mac_type_str(int sensor);
const char* uat_get_str_from_uat_mac_type(int mac_type);
const char* uat_get_sensor_bitmask_str(ua_sensor_e sensor);
char* uat_get_time(void);
const char * __convert_device_mac_type_to_txt(ua_mac_type_e mac_type);

#ifdef __cplusplus
}
#endif

#endif /* __UAT_COMMON_H__ */