1+ /*
2+ * Copyright 2025 NXP
3+ *
4+ * SPDX-License-Identifier: BSD-3-Clause
5+ *
6+ */
7+
8+ /*! \file event.h
9+ * \brief This file provides essential macro definitions and data structures for processing CSI event data.
10+ */
11+
12+ #ifndef _LIB_CSI_EVENT_H_
13+ #define _LIB_CSI_EVENT_H_
14+
15+ #include <ctype.h>
16+ #include <stdlib.h>
17+ #include "wls_structure_defs.h"
18+
19+ #define PI_ALPHA_FACTOR 0.1f
20+ #define KALMAN_N0 0.2f
21+ #define KALMAN_P0 0.5f
22+ #define KALMAN_ALPHA 0.005f
23+
24+ typedef enum {
25+ AMI_FILTER_NOT_SET = 0 , // Filter not set
26+ AMI_FILTER_SET , // Filter manually set via configuration
27+ AMI_FILTER_AUTO_SET , // Filter auto set from the first packet
28+ } ami_filter_set_status_t ;
29+
30+ typedef enum {
31+ AMI_REF_UNINIT = 0 , // AMI reference not initialized
32+ AMI_REF_INITIALIZED // AMI reference initialized
33+ } ami_reference_status_t ;
34+
35+ typedef enum {
36+ AMI_STOP = 0 , // AMI calculation stopped
37+ AMI_START // AMI calculation started
38+ } ami_start_status_t ;
39+
40+ /** Structure for CSI config data*/
41+ typedef struct wls_csi_cfg
42+ {
43+ /** Channel number for FTM session*/
44+ t_u8 channel ;
45+ /** Indicate whether CSI filter has been set */
46+ ami_filter_set_status_t csiFilterSet ;
47+ /** Indicate whether start to caculate Ambient Motion Index.
48+ * AMI_STOP - stop. AMI_START - start */
49+ ami_start_status_t start ;
50+ /** Indicates whether AMI reference has been initialized */
51+ ami_reference_status_t ami_reference_init ;
52+ /**CSI processing config*/
53+ hal_wls_processing_input_params_t wls_processing_input ;
54+ /**CSI filter parameters*/
55+ csi_filter_param_t gcsi_filter_param ;
56+ } wls_csi_cfg_t , ami_cfg_t ;
57+
58+ #endif /* _LIB_CSI_EVENT_H */
0 commit comments