Metal Detector
 
Loading...
Searching...
No Matches
metal_detecting.h
Go to the documentation of this file.
1
13#ifndef SIGNALSPROCESSING_INC_METAL_DETECTING_H_
14#define SIGNALSPROCESSING_INC_METAL_DETECTING_H_
15
16#include <stdint.h>
17#include "arm_math.h"
18
27
31typedef struct
32{
33 float32_t tx_signal_phase;
35 float32_t rx_signal_phase;
36} MD_Data_t;
37
41typedef struct
42{
43 float32_t last_magnitude;
44 float32_t gnd_balance;
45 float32_t sensitivity;
47
50
63MD_DetectStatus_t md_detect(MD_Handle_t *const handle, const MD_Data_t *const data, int16_t *const phase_difference);
64
73void md_set_gndbalance(MD_Handle_t *const handle, uint16_t new_balance);
74
83void md_set_sensitivity(MD_Handle_t *const handle, uint16_t new_sens);
84
85#endif /* SIGNALSPROCESSING_INC_METAL_DETECTING_H_ */
void md_set_sensitivity(MD_Handle_t *const handle, uint16_t new_sens)
Sets the sensitivity parameter for metal detection.
Definition metal_detecting.c:94
void md_set_gndbalance(MD_Handle_t *const handle, uint16_t new_balance)
Sets the ground balance parameter for metal detection.
Definition metal_detecting.c:80
MD_Handle_t md_handle
Global handle for metal detecting operations.
Definition metal_detecting.c:17
MD_DetectStatus_t
Detection status for metal detecting.
Definition metal_detecting.h:23
@ TARGET_DETECTED
Definition metal_detecting.h:24
@ NO_TARGET
Definition metal_detecting.h:25
MD_DetectStatus_t md_detect(MD_Handle_t *const handle, const MD_Data_t *const data, int16_t *const phase_difference)
Detects the presence of a target based on signal data.
Definition metal_detecting.c:32
Structure to hold signal data for metal detection.
Definition metal_detecting.h:32
float32_t rx_signal_magnitude
Definition metal_detecting.h:34
float32_t rx_signal_phase
Definition metal_detecting.h:35
float32_t tx_signal_phase
Definition metal_detecting.h:33
Structure to hold detection parameters and state.
Definition metal_detecting.h:42
float32_t last_magnitude
Definition metal_detecting.h:43
float32_t sensitivity
Definition metal_detecting.h:45
float32_t gnd_balance
Definition metal_detecting.h:44