acc_definitions_common.h
Go to the documentation of this file.
1 // Copyright (c) Acconeer AB, 2018-2023
2 // All rights reserved
3
4 #ifndef ACC_DEFINITIONS_COMMON_H_
5 #define ACC_DEFINITIONS_COMMON_H_
6
7 #include <inttypes.h>
8 #include <stdint.h>
9
10
11 /**
12 * @brief Type representing a sensor ID
13 */
14 typedef uint32_t acc_sensor_id_t;
15
16 /**
17 * @brief Macro for printing sensor id
18 */
19 #define PRIsensor_id PRIu32
20
21
22 /**
23 * @brief This enum represents the different log levels for RSS
24 */
25 typedef enum
26 {
27 /*! ERROR log level. */
28 ACC_LOG_LEVEL_ERROR,
29 /*! WARNING log level. */
30 ACC_LOG_LEVEL_WARNING,
31 /*! INFO log level. */
32 ACC_LOG_LEVEL_INFO,
33 /*! VERBOSE log level. */
34 ACC_LOG_LEVEL_VERBOSE,
35 /*! DEBUG log level. */
36 ACC_LOG_LEVEL_DEBUG
37 } acc_log_level_t;
38
39
40 /**
41 * @brief Data type for interger-based representation of complex numbers
42 */
43 typedef struct
44 {
45 int16_t real;
46 int16_t imag;
47 } acc_int16_complex_t;
48
49
50 #endif
ACC_LOG_LEVEL_INFO
@ ACC_LOG_LEVEL_INFO
Definition: acc_definitions_common.h:32
acc_int16_complex_t
Data type for interger-based representation of complex numbers.
Definition: acc_definitions_common.h:43
ACC_LOG_LEVEL_DEBUG
@ ACC_LOG_LEVEL_DEBUG
Definition: acc_definitions_common.h:36
ACC_LOG_LEVEL_VERBOSE
@ ACC_LOG_LEVEL_VERBOSE
Definition: acc_definitions_common.h:34
ACC_LOG_LEVEL_WARNING
@ ACC_LOG_LEVEL_WARNING
Definition: acc_definitions_common.h:30
acc_log_level_t
acc_log_level_t
This enum represents the different log levels for RSS.
Definition: acc_definitions_common.h:25
acc_int16_complex_t::real
int16_t real
Definition: acc_definitions_common.h:45
acc_sensor_id_t
uint32_t acc_sensor_id_t
Type representing a sensor ID.
Definition: acc_definitions_common.h:14
acc_int16_complex_t::imag
int16_t imag
Definition: acc_definitions_common.h:46
ACC_LOG_LEVEL_ERROR
@ ACC_LOG_LEVEL_ERROR
Definition: acc_definitions_common.h:28