O7/rss/include/acc_definitions_common.h

46 lines
717 B
C
Raw Permalink Normal View History

2024-04-08 14:23:48 +08:00
// Copyright (c) Acconeer AB, 2018-2021
// All rights reserved
#ifndef ACC_DEFINITIONS_COMMON_H_
#define ACC_DEFINITIONS_COMMON_H_
#include <inttypes.h>
#include <stdint.h>
/**
* @brief Type representing a sensor ID
*/
typedef uint32_t acc_sensor_id_t;
/**
* @brief Macro for printing sensor id
*/
#define PRIsensor_id PRIu32
/**
* @brief This enum represents the different log levels for RSS
*/
typedef enum
{
ACC_LOG_LEVEL_ERROR,
ACC_LOG_LEVEL_WARNING,
ACC_LOG_LEVEL_INFO,
ACC_LOG_LEVEL_VERBOSE,
ACC_LOG_LEVEL_DEBUG
} acc_log_level_t;
/**
* @brief Data type for interger-based representation of complex numbers
*/
typedef struct
{
int16_t real;
int16_t imag;
} acc_int16_complex_t;
#endif