NHS31xx SW API
accel_params.h
1 /*
2  * Copyright 2018-2019 NXP
3  * This software is owned or controlled by NXP and may only be used strictly
4  * in accordance with the applicable license terms. By expressly accepting
5  * such terms or by downloading, installing, activating and/or otherwise using
6  * the software, you are agreeing that you have read, and that you agree to
7  * comply with and are bound by, such license terms. If you do not agree to
8  * be bound by the applicable license terms, then you may not retain, install,
9  * activate or otherwise use the software.
10  */
11 
12 #ifndef __ACCEL_PARAMS_H_
13 #define __ACCEL_PARAMS_H_
14 
15 #include <stdbool.h>
16 #include <stdint.h>
17 
23 #pragma pack(push, 1)
24 
26 typedef struct ACCEL_SHOCK_PARAMS_S {
33  uint16_t amplitude;
34 
40  uint16_t waitTime;
41 
47  uint16_t ringingAmplitude;
48 
54  uint8_t ringingCount;
55 
61  uint16_t ringingDuration;
63 
65 typedef struct ACCEL_SHAKE_PARAMS_S {
72  uint16_t amplitude;
73 
78  uint8_t count;
79 
86  uint16_t duration;
88 
90 typedef struct ACCEL_VIBRATION_PARAMS_S {
97  uint16_t amplitude;
98 
107  uint8_t frequency;
108 
117  uint16_t duration;
119 
121 typedef struct ACCEL_TILT_PARAMS_S {
129  uint16_t waitTime;
131 
132 #pragma pack(pop)
133 
134 #endif
uint8_t frequency
Definition: accel_params.h:107
uint8_t ringingCount
Definition: accel_params.h:54
uint16_t waitTime
Definition: accel_params.h:40
uint16_t ringingDuration
Definition: accel_params.h:61
uint8_t count
Definition: accel_params.h:78
uint16_t amplitude
Definition: accel_params.h:33
Definition: accel_params.h:121
Definition: accel_params.h:26
Definition: accel_params.h:65
Definition: accel_params.h:90
uint16_t duration
Definition: accel_params.h:86
uint16_t ringingAmplitude
Definition: accel_params.h:47