acc_definitions_common.h
Go to the documentation of this file.
1 // Copyright (c) Acconeer AB, 2018-2025
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  * @brief Type representing a sensor ID
12  */
13 typedef uint32_t acc_sensor_id_t;
14 
15 /**
16  * @brief Macro for printing sensor id
17  */
18 #define PRIsensor_id PRIu32
19 
20 /**
21  * @brief This enum represents the different log levels for RSS
22  */
23 typedef enum
24 {
25  /*! ERROR log level. */
27  /*! WARNING log level. */
29  /*! INFO log level. */
31  /*! VERBOSE log level. */
33  /*! DEBUG log level. */
36 
37 /**
38  * @brief Data type for interger-based representation of complex numbers
39  */
40 typedef struct
41 {
42  int16_t real;
43  int16_t imag;
45 
46 #endif
ACC_LOG_LEVEL_INFO
@ ACC_LOG_LEVEL_INFO
Definition: acc_definitions_common.h:30
acc_int16_complex_t
Data type for interger-based representation of complex numbers.
Definition: acc_definitions_common.h:40
ACC_LOG_LEVEL_DEBUG
@ ACC_LOG_LEVEL_DEBUG
Definition: acc_definitions_common.h:34
ACC_LOG_LEVEL_VERBOSE
@ ACC_LOG_LEVEL_VERBOSE
Definition: acc_definitions_common.h:32
ACC_LOG_LEVEL_WARNING
@ ACC_LOG_LEVEL_WARNING
Definition: acc_definitions_common.h:28
acc_log_level_t
acc_log_level_t
This enum represents the different log levels for RSS.
Definition: acc_definitions_common.h:23
acc_int16_complex_t::real
int16_t real
Definition: acc_definitions_common.h:42
acc_sensor_id_t
uint32_t acc_sensor_id_t
Type representing a sensor ID.
Definition: acc_definitions_common.h:13
acc_int16_complex_t::imag
int16_t imag
Definition: acc_definitions_common.h:43
ACC_LOG_LEVEL_ERROR
@ ACC_LOG_LEVEL_ERROR
Definition: acc_definitions_common.h:26