uart
Dependencies: MAX32620FTHR USBDevice
gesture_config.h@0:c62425b2f286, 18 months ago (annotated)
- Committer:
- rsjawale24
- Date:
- Sun Oct 16 15:35:01 2022 +0000
- Revision:
- 0:c62425b2f286
ok
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
rsjawale24 | 0:c62425b2f286 | 1 | /******************************************************************************* |
rsjawale24 | 0:c62425b2f286 | 2 | * Copyright (C) Maxim Integrated Products, Inc., All rights Reserved. |
rsjawale24 | 0:c62425b2f286 | 3 | * |
rsjawale24 | 0:c62425b2f286 | 4 | * This software is protected by copyright laws of the United States and |
rsjawale24 | 0:c62425b2f286 | 5 | * of foreign countries. This material may also be protected by patent laws |
rsjawale24 | 0:c62425b2f286 | 6 | * and technology transfer regulations of the United States and of foreign |
rsjawale24 | 0:c62425b2f286 | 7 | * countries. This software is furnished under a license agreement and/or a |
rsjawale24 | 0:c62425b2f286 | 8 | * nondisclosure agreement and may only be used or reproduced in accordance |
rsjawale24 | 0:c62425b2f286 | 9 | * with the terms of those agreements. Dissemination of this information to |
rsjawale24 | 0:c62425b2f286 | 10 | * any party or parties not specified in the license agreement and/or |
rsjawale24 | 0:c62425b2f286 | 11 | * nondisclosure agreement is expressly prohibited. |
rsjawale24 | 0:c62425b2f286 | 12 | * |
rsjawale24 | 0:c62425b2f286 | 13 | * The above copyright notice and this permission notice shall be included |
rsjawale24 | 0:c62425b2f286 | 14 | * in all copies or substantial portions of the Software. |
rsjawale24 | 0:c62425b2f286 | 15 | * |
rsjawale24 | 0:c62425b2f286 | 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
rsjawale24 | 0:c62425b2f286 | 17 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
rsjawale24 | 0:c62425b2f286 | 18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
rsjawale24 | 0:c62425b2f286 | 19 | * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES |
rsjawale24 | 0:c62425b2f286 | 20 | * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
rsjawale24 | 0:c62425b2f286 | 21 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
rsjawale24 | 0:c62425b2f286 | 22 | * OTHER DEALINGS IN THE SOFTWARE. |
rsjawale24 | 0:c62425b2f286 | 23 | * |
rsjawale24 | 0:c62425b2f286 | 24 | * Except as contained in this notice, the name of Maxim Integrated |
rsjawale24 | 0:c62425b2f286 | 25 | * Products, Inc. shall not be used except as stated in the Maxim Integrated |
rsjawale24 | 0:c62425b2f286 | 26 | * Products, Inc. Branding Policy. |
rsjawale24 | 0:c62425b2f286 | 27 | * |
rsjawale24 | 0:c62425b2f286 | 28 | * The mere transfer of this software does not imply any licenses |
rsjawale24 | 0:c62425b2f286 | 29 | * of trade secrets, proprietary technology, copyrights, patents, |
rsjawale24 | 0:c62425b2f286 | 30 | * trademarks, maskwork rights, or any other form of intellectual |
rsjawale24 | 0:c62425b2f286 | 31 | * property whatsoever. Maxim Integrated Products, Inc. retains all |
rsjawale24 | 0:c62425b2f286 | 32 | * ownership rights. |
rsjawale24 | 0:c62425b2f286 | 33 | ******************************************************************************* |
rsjawale24 | 0:c62425b2f286 | 34 | */ |
rsjawale24 | 0:c62425b2f286 | 35 | |
rsjawale24 | 0:c62425b2f286 | 36 | /* Paramaters for gesture configuration */ |
rsjawale24 | 0:c62425b2f286 | 37 | #define FLIP_SENSOR_PIXELS 0 |
rsjawale24 | 0:c62425b2f286 | 38 | #define PIXEL_DATA_MODE 0 |
rsjawale24 | 0:c62425b2f286 | 39 | #define SAMPLE_PERIOD_MS 19.8F /*Changed from 12.5f for 400um device*/ |
rsjawale24 | 0:c62425b2f286 | 40 | #define ADC_FULL_SCALE 16384 /*Changed from 8192 for 400um device*/ |
rsjawale24 | 0:c62425b2f286 | 41 | #define BACKGROUND_FILTER_ALPHA 0.05F /*Changed from 0.10f for 400um device*/ |
rsjawale24 | 0:c62425b2f286 | 42 | #define LOW_PASS_FILTER_ALPHA 1.0F |
rsjawale24 | 0:c62425b2f286 | 43 | #define ZERO_CLAMP_THRESHOLD 10 |
rsjawale24 | 0:c62425b2f286 | 44 | #define ZERO_CLAMP_THRESHOLD_FACTOR 6 |
rsjawale24 | 0:c62425b2f286 | 45 | #define ENABLE_WINDOW_FILTER 1 |
rsjawale24 | 0:c62425b2f286 | 46 | #define WINDOW_FILTER_ALPHA 0.5F |
rsjawale24 | 0:c62425b2f286 | 47 | #define START_DETECTION_THRESHOLD 150 /*Changed from 400 for 400um device*/ |
rsjawale24 | 0:c62425b2f286 | 48 | #define END_DETECTION_THRESHOLD 50 /*Changed from 250 for 400um device*/ |
rsjawale24 | 0:c62425b2f286 | 49 | |
rsjawale24 | 0:c62425b2f286 | 50 | |
rsjawale24 | 0:c62425b2f286 | 51 | |
rsjawale24 | 0:c62425b2f286 | 52 | /* Paramaters for tracking configuration */ |
rsjawale24 | 0:c62425b2f286 | 53 | #define ENABLE_AUTO_BIAS_CALIBRATION 1 |
rsjawale24 | 0:c62425b2f286 | 54 | #define STATIC_STATE_BIAS_MS 2000 |
rsjawale24 | 0:c62425b2f286 | 55 | #define TRACKING_LOW_PASS_FILTER_ALPHA 1.0F |
rsjawale24 | 0:c62425b2f286 | 56 | #define TRACKING_ZERO_CLAMP_THRESHOLD 50 |
rsjawale24 | 0:c62425b2f286 | 57 | #define TRACKING_ZERO_CLAMP_THRESHOLD_FACTOR 6 |
rsjawale24 | 0:c62425b2f286 | 58 | #define TRACKING_START_DETECTION_THRESHOLD 400 |
rsjawale24 | 0:c62425b2f286 | 59 | #define TRACKING_END_DETECTION_THRESHOLD 300 |
rsjawale24 | 0:c62425b2f286 | 60 | #define STATIC_STATE_BIAS_DELTA_MAX 200 |
rsjawale24 | 0:c62425b2f286 | 61 | #define BIAS_FULLSCALE_FACTOR_MAX 2 |
rsjawale24 | 0:c62425b2f286 | 62 | #define TRACK_WIDTH 6.0F |
rsjawale24 | 0:c62425b2f286 | 63 | #define TRACK_HEIGHT 3.0F |
rsjawale24 | 0:c62425b2f286 | 64 | #define ENABLE_GAIN_CORRECTION 1 |
rsjawale24 | 0:c62425b2f286 | 65 | #define GAIN_FACTOR_0 0.5; |
rsjawale24 | 0:c62425b2f286 | 66 | #define GAIN_FACTOR_1 0.75; |
rsjawale24 | 0:c62425b2f286 | 67 | #define GAIN_FACTOR_2 1.0; |