CRINSA-team2025 V1
Documentation du Club Robot INSA Rennes 2025
Chargement...
Recherche...
Aucune correspondance
platform.h
1
12
13
14#ifndef _PLATFORM_H_
15#define _PLATFORM_H_
16#pragma once
17
18#include <Wire.h>
19
27
28typedef struct {
29 uint16_t address;
30
31 i2c_t *dev_i2c;
32
34
35/*
36 * @brief The macro below is used to define the number of target per zone sent
37 * through I2C. This value can be changed by user, in order to tune I2C
38 * transaction, and also the total memory size (a lower number of target per
39 * zone means a lower RAM). The value must be between 1 and 4.
40 */
41
42#define VL53L5CX_NB_TARGET_PER_ZONE 1U
43
44/*
45 * @brief The macro below can be used to avoid data conversion into the driver.
46 * By default there is a conversion between firmware and user data. Using this macro
47 * allows to use the firmware format instead of user format. The firmware format allows
48 * an increased precision.
49 */
50
51// #define VL53L5CX_USE_RAW_FORMAT
52
53/*
54 * @brief All macro below are used to configure the sensor output. User can
55 * define some macros if he wants to disable selected output, in order to reduce
56 * I2C access.
57 */
58
59#define VL53L5CX_DISABLE_AMBIENT_PER_SPAD
60#define VL53L5CX_DISABLE_NB_SPADS_ENABLED
61#define VL53L5CX_DISABLE_NB_TARGET_DETECTED
62#define VL53L5CX_DISABLE_SIGNAL_PER_SPAD
63#define VL53L5CX_DISABLE_RANGE_SIGMA_MM
64// #define VL53L5CX_DISABLE_DISTANCE_MM
65// #define VL53L5CX_DISABLE_REFLECTANCE_PERCENT
66// #define VL53L5CX_DISABLE_TARGET_STATUS
67#define VL53L5CX_DISABLE_MOTION_INDICATOR
68
69#endif // _PLATFORM_H_
Structure VL53L5CX_Platform needs to be filled by the customer, depending on his platform....
Definition platform.h:28