Fork, renaming of VL53L1CB-2
Dependencies: X_NUCLEO_COMMON ST_INTERFACES
inc/vl53l1_hist_map.h@7:1add29d51e72, 2021-06-08 (annotated)
- Committer:
- Charles MacNeill
- Date:
- Tue Jun 08 10:34:47 2021 +0100
- Revision:
- 7:1add29d51e72
- Parent:
- 0:3ac96e360672
Update to v6.6.5 of bare_driver
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
charlesmn | 0:3ac96e360672 | 1 | |
Charles MacNeill |
7:1add29d51e72 | 2 | /* SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause */ |
Charles MacNeill |
7:1add29d51e72 | 3 | /****************************************************************************** |
charlesmn | 0:3ac96e360672 | 4 | * Copyright (c) 2020, STMicroelectronics - All Rights Reserved |
charlesmn | 0:3ac96e360672 | 5 | |
Charles MacNeill |
7:1add29d51e72 | 6 | This file is part of VL53L1 and is dual licensed, |
Charles MacNeill |
7:1add29d51e72 | 7 | either GPL-2.0+ |
charlesmn | 0:3ac96e360672 | 8 | or 'BSD 3-clause "New" or "Revised" License' , at your option. |
Charles MacNeill |
7:1add29d51e72 | 9 | ****************************************************************************** |
Charles MacNeill |
7:1add29d51e72 | 10 | */ |
charlesmn | 0:3ac96e360672 | 11 | |
charlesmn | 0:3ac96e360672 | 12 | |
charlesmn | 0:3ac96e360672 | 13 | |
charlesmn | 0:3ac96e360672 | 14 | |
charlesmn | 0:3ac96e360672 | 15 | |
charlesmn | 0:3ac96e360672 | 16 | #ifndef _VL53L1_HIST_MAP_H_ |
charlesmn | 0:3ac96e360672 | 17 | #define _VL53L1_HIST_MAP_H_ |
charlesmn | 0:3ac96e360672 | 18 | |
charlesmn | 0:3ac96e360672 | 19 | #include "vl53l1_register_map.h" |
charlesmn | 0:3ac96e360672 | 20 | |
charlesmn | 0:3ac96e360672 | 21 | #ifdef __cplusplus |
charlesmn | 0:3ac96e360672 | 22 | extern "C" |
charlesmn | 0:3ac96e360672 | 23 | { |
charlesmn | 0:3ac96e360672 | 24 | #endif |
charlesmn | 0:3ac96e360672 | 25 | |
charlesmn | 0:3ac96e360672 | 26 | |
charlesmn | 0:3ac96e360672 | 27 | |
charlesmn | 0:3ac96e360672 | 28 | |
charlesmn | 0:3ac96e360672 | 29 | #define VL53L1_HISTOGRAM_CONFIG__OPCODE_SEQUENCE_0 \ |
charlesmn | 0:3ac96e360672 | 30 | VL53L1_SIGMA_ESTIMATOR__EFFECTIVE_PULSE_WIDTH_NS |
charlesmn | 0:3ac96e360672 | 31 | |
charlesmn | 0:3ac96e360672 | 32 | #define VL53L1_HISTOGRAM_CONFIG__OPCODE_SEQUENCE_1 \ |
charlesmn | 0:3ac96e360672 | 33 | VL53L1_SIGMA_ESTIMATOR__EFFECTIVE_AMBIENT_WIDTH_NS |
charlesmn | 0:3ac96e360672 | 34 | |
charlesmn | 0:3ac96e360672 | 35 | #define VL53L1_HISTOGRAM_CONFIG__OPCODE_SEQUENCE_2 \ |
charlesmn | 0:3ac96e360672 | 36 | VL53L1_SIGMA_ESTIMATOR__SIGMA_REF_MM |
charlesmn | 0:3ac96e360672 | 37 | |
charlesmn | 0:3ac96e360672 | 38 | #define VL53L1_HISTOGRAM_CONFIG__AMB_THRESH_HIGH \ |
charlesmn | 0:3ac96e360672 | 39 | VL53L1_ALGO__RANGE_IGNORE_THRESHOLD_MCPS |
charlesmn | 0:3ac96e360672 | 40 | |
charlesmn | 0:3ac96e360672 | 41 | |
charlesmn | 0:3ac96e360672 | 42 | |
charlesmn | 0:3ac96e360672 | 43 | |
charlesmn | 0:3ac96e360672 | 44 | #define VL53L1_RESULT__HISTOGRAM_BIN_0_2 0x008E |
charlesmn | 0:3ac96e360672 | 45 | #define VL53L1_RESULT__HISTOGRAM_BIN_0_1 0x008F |
charlesmn | 0:3ac96e360672 | 46 | #define VL53L1_RESULT__HISTOGRAM_BIN_0_0 0x0090 |
charlesmn | 0:3ac96e360672 | 47 | |
charlesmn | 0:3ac96e360672 | 48 | #define VL53L1_RESULT__HISTOGRAM_BIN_23_2 0x00D3 |
charlesmn | 0:3ac96e360672 | 49 | #define VL53L1_RESULT__HISTOGRAM_BIN_23_1 0x00D4 |
charlesmn | 0:3ac96e360672 | 50 | #define VL53L1_RESULT__HISTOGRAM_BIN_23_0 0x00D5 |
charlesmn | 0:3ac96e360672 | 51 | |
charlesmn | 0:3ac96e360672 | 52 | #define VL53L1_RESULT__HISTOGRAM_BIN_23_0_MSB 0x00D9 |
charlesmn | 0:3ac96e360672 | 53 | #define VL53L1_RESULT__HISTOGRAM_BIN_23_0_LSB 0x00DA |
charlesmn | 0:3ac96e360672 | 54 | |
charlesmn | 0:3ac96e360672 | 55 | |
charlesmn | 0:3ac96e360672 | 56 | |
charlesmn | 0:3ac96e360672 | 57 | #define VL53L1_HISTOGRAM_BIN_DATA_I2C_INDEX \ |
charlesmn | 0:3ac96e360672 | 58 | VL53L1_RESULT__INTERRUPT_STATUS |
charlesmn | 0:3ac96e360672 | 59 | #define VL53L1_HISTOGRAM_BIN_DATA_I2C_SIZE_BYTES \ |
charlesmn | 0:3ac96e360672 | 60 | (VL53L1_RESULT__HISTOGRAM_BIN_23_0_LSB - \ |
charlesmn | 0:3ac96e360672 | 61 | VL53L1_RESULT__INTERRUPT_STATUS + 1) |
charlesmn | 0:3ac96e360672 | 62 | |
charlesmn | 0:3ac96e360672 | 63 | #ifdef __cplusplus |
charlesmn | 0:3ac96e360672 | 64 | } |
charlesmn | 0:3ac96e360672 | 65 | #endif |
charlesmn | 0:3ac96e360672 | 66 | |
charlesmn | 0:3ac96e360672 | 67 | #endif |
charlesmn | 0:3ac96e360672 | 68 |