WICED Sense - Programming Accel Thresholds

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hello,

Is there any way to program the accel thresholds through the SDK?

Thanks,

Robert

1 Solution
JacobT_81
Employee
Employee
250 replies posted 100 replies posted 50 replies posted

Hi Robert,

Have you taken a look at the accelerometer driver ("lis3dsh_driver.c") in the wiced_sense app's driver folder?

Response1_1.PNG

In the driver, there is a function called 'SetThrsSM' which takes an argument of type 'THRS_t'. This argument type is unique to this function. The type-definition of THRS_t and the function declaration of SetThrsSM can be found in the header file ("lis3dsh_driver.c").


Function Declaration in Header File:

Response1_2.PNG




Type Definition:

Response1_3.PNG


Jacob

View solution in original post

0 Likes
3 Replies
JacobT_81
Employee
Employee
250 replies posted 100 replies posted 50 replies posted

Hi Robert,

Have you taken a look at the accelerometer driver ("lis3dsh_driver.c") in the wiced_sense app's driver folder?

Response1_1.PNG

In the driver, there is a function called 'SetThrsSM' which takes an argument of type 'THRS_t'. This argument type is unique to this function. The type-definition of THRS_t and the function declaration of SetThrsSM can be found in the header file ("lis3dsh_driver.c").


Function Declaration in Header File:

Response1_2.PNG




Type Definition:

Response1_3.PNG


Jacob

0 Likes
BoonT_56
Employee
Employee
500 likes received 250 likes received 100 likes received

rlombardi

Have you managed to figure out Jacob's suggestion?

0 Likes
Anonymous
Not applicable

Yes, thanks!

0 Likes