-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathranging_sensor.h
83 lines (71 loc) · 1.9 KB
/
ranging_sensor.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/**
******************************************************************************
* @file ranging_sensor.h
* @author IMG SW Application Team
* @brief This header file contains the common defines and functions prototypes
* for the ranging sensor driver.
******************************************************************************
* @attention
*
* Copyright (c) 2021 STMicroelectronics.
* All rights reserved.
*
* This software is licensed under terms that can be found in the LICENSE file
* in the root directory of this software component.
* If no LICENSE file comes with this software, it is provided AS-IS.
*
******************************************************************************
*/
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef RANGING_SENSOR_H
#define RANGING_SENSOR_H
#ifdef __cplusplus
extern "C" {
#endif
/* Includes ------------------------------------------------------------------*/
#include <stdint.h>
/** @addtogroup BSP
* @{
*/
/** @addtogroup Components
* @{
*/
/** @addtogroup RANGING_SENSOR
* @{
*/
/** @defgroup RANGING_SENSOR_Driver_structure Ranging sensor Driver structure
* @{
*/
typedef struct
{
int32_t (*Init)(void *);
int32_t (*DeInit)(void *);
int32_t (*ReadID)(void *, uint32_t *);
int32_t (*GetCapabilities)(void *, void *);
int32_t (*ConfigProfile)(void *, void *);
int32_t (*ConfigROI)(void *, void *);
int32_t (*ConfigIT)(void *, void *);
int32_t (*GetDistance)(void *, void *);
int32_t (*Start)(void *, uint32_t);
int32_t (*Stop)(void *);
int32_t (*SetAddress)(void *, uint32_t);
int32_t (*GetAddress)(void *, uint32_t *);
int32_t (*SetPowerMode)(void *, uint32_t);
int32_t (*GetPowerMode)(void *, uint32_t *);
} RANGING_SENSOR_Drv_t;
/**
* @}
*/
/**
* @}
*/
/**
* @}
*/
/**
* @}
*/
#ifdef __cplusplus
}
#endif
#endif /* RANGING_SENSOR_H */