Skip to content

Commit

Permalink
updated ODR labels
Browse files Browse the repository at this point in the history
  • Loading branch information
albezanc committed Jun 25, 2021
1 parent f9b9b45 commit 11d7057
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
28 changes: 14 additions & 14 deletions lsm6dsrx_reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -530,28 +530,28 @@ int32_t lsm6dsrx_xl_data_rate_get(stmdev_ctx_t *ctx,
*val = LSM6DSRX_XL_ODR_208Hz;
break;

case LSM6DSRX_XL_ODR_417Hz:
*val = LSM6DSRX_XL_ODR_417Hz;
case LSM6DSRX_XL_ODR_416Hz:
*val = LSM6DSRX_XL_ODR_416Hz;
break;

case LSM6DSRX_XL_ODR_833Hz:
*val = LSM6DSRX_XL_ODR_833Hz;
break;

case LSM6DSRX_XL_ODR_1667Hz:
*val = LSM6DSRX_XL_ODR_1667Hz;
case LSM6DSRX_XL_ODR_1666Hz:
*val = LSM6DSRX_XL_ODR_1666Hz;
break;

case LSM6DSRX_XL_ODR_3333Hz:
*val = LSM6DSRX_XL_ODR_3333Hz;
case LSM6DSRX_XL_ODR_3332Hz:
*val = LSM6DSRX_XL_ODR_3332Hz;
break;

case LSM6DSRX_XL_ODR_6667Hz:
*val = LSM6DSRX_XL_ODR_6667Hz;
break;

case LSM6DSRX_XL_ODR_6Hz5:
*val = LSM6DSRX_XL_ODR_6Hz5;
case LSM6DSRX_XL_ODR_1Hz6:
*val = LSM6DSRX_XL_ODR_1Hz6;
break;

default:
Expand Down Expand Up @@ -935,20 +935,20 @@ int32_t lsm6dsrx_gy_data_rate_get(stmdev_ctx_t *ctx,
*val = LSM6DSRX_GY_ODR_208Hz;
break;

case LSM6DSRX_GY_ODR_417Hz:
*val = LSM6DSRX_GY_ODR_417Hz;
case LSM6DSRX_GY_ODR_416Hz:
*val = LSM6DSRX_GY_ODR_416Hz;
break;

case LSM6DSRX_GY_ODR_833Hz:
*val = LSM6DSRX_GY_ODR_833Hz;
break;

case LSM6DSRX_GY_ODR_1667Hz:
*val = LSM6DSRX_GY_ODR_1667Hz;
case LSM6DSRX_GY_ODR_1666Hz:
*val = LSM6DSRX_GY_ODR_1666Hz;
break;

case LSM6DSRX_GY_ODR_3333Hz:
*val = LSM6DSRX_GY_ODR_3333Hz;
case LSM6DSRX_GY_ODR_3332Hz:
*val = LSM6DSRX_GY_ODR_3332Hz;
break;

case LSM6DSRX_GY_ODR_6667Hz:
Expand Down
14 changes: 7 additions & 7 deletions lsm6dsrx_reg.h
Original file line number Diff line number Diff line change
Expand Up @@ -2928,12 +2928,12 @@ typedef enum
LSM6DSRX_XL_ODR_52Hz = 3,
LSM6DSRX_XL_ODR_104Hz = 4,
LSM6DSRX_XL_ODR_208Hz = 5,
LSM6DSRX_XL_ODR_417Hz = 6,
LSM6DSRX_XL_ODR_416Hz = 6,
LSM6DSRX_XL_ODR_833Hz = 7,
LSM6DSRX_XL_ODR_1667Hz = 8,
LSM6DSRX_XL_ODR_3333Hz = 9,
LSM6DSRX_XL_ODR_1666Hz = 8,
LSM6DSRX_XL_ODR_3332Hz = 9,
LSM6DSRX_XL_ODR_6667Hz = 10,
LSM6DSRX_XL_ODR_6Hz5 = 11, /* (low power only) */
LSM6DSRX_XL_ODR_1Hz6 = 11, /* (low power only) */
} lsm6dsrx_odr_xl_t;
int32_t lsm6dsrx_xl_data_rate_set(stmdev_ctx_t *ctx,
lsm6dsrx_odr_xl_t val);
Expand Down Expand Up @@ -2962,10 +2962,10 @@ typedef enum
LSM6DSRX_GY_ODR_52Hz = 3,
LSM6DSRX_GY_ODR_104Hz = 4,
LSM6DSRX_GY_ODR_208Hz = 5,
LSM6DSRX_GY_ODR_417Hz = 6,
LSM6DSRX_GY_ODR_416Hz = 6,
LSM6DSRX_GY_ODR_833Hz = 7,
LSM6DSRX_GY_ODR_1667Hz = 8,
LSM6DSRX_GY_ODR_3333Hz = 9,
LSM6DSRX_GY_ODR_1666Hz = 8,
LSM6DSRX_GY_ODR_3332Hz = 9,
LSM6DSRX_GY_ODR_6667Hz = 10,
} lsm6dsrx_odr_g_t;
int32_t lsm6dsrx_gy_data_rate_set(stmdev_ctx_t *ctx,
Expand Down

0 comments on commit 11d7057

Please sign in to comment.