Skip to content

Commit

Permalink
Update lsm6dsv16x_reg.h
Browse files Browse the repository at this point in the history
Signed-off-by: Carlo Parata <[email protected]>
  • Loading branch information
cparata authored Sep 11, 2023
1 parent def1f0a commit 91f134f
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions src/lsm6dsv16x_reg.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,33 +100,6 @@ typedef struct {
#define PROPERTY_DISABLE (0U)
#define PROPERTY_ENABLE (1U)

/** @addtogroup Interfaces_Functions
* @brief This section provide a set of functions used to read and
* write a generic register of the device.
* MANDATORY: return 0 -> no Error.
* @{
*
*/

typedef int32_t (*lsm6dsv16x_write_ptr)(void *, uint8_t, uint8_t *, uint16_t);
typedef int32_t (*lsm6dsv16x_read_ptr)(void *, uint8_t, uint8_t *, uint16_t);
typedef void (*lsm6dsv16x_mdelay_ptr)(uint32_t millisec);

typedef struct {
/** Component mandatory fields **/
lsm6dsv16x_write_ptr write_reg;
lsm6dsv16x_read_ptr read_reg;
/** Component optional fields **/
lsm6dsv16x_mdelay_ptr mdelay;
/** Customizable optional pointer **/
void *handle;
} lsm6dsv16x_ctx_t;

/**
* @}
*
*/

#endif /* MEMS_SHARED_TYPES */

#ifndef MEMS_UCF_SHARED_TYPES
Expand Down Expand Up @@ -155,6 +128,33 @@ typedef struct {

#endif /* MEMS_UCF_SHARED_TYPES */

/**
* @}
*
*/

/** @addtogroup LSM6DSV16X_Interfaces_Functions
* @brief This section provide a set of functions used to read and
* write a generic register of the device.
* MANDATORY: return 0 -> no Error.
* @{
*
*/

typedef int32_t (*lsm6dsv16x_write_ptr)(void *, uint8_t, uint8_t *, uint16_t);
typedef int32_t (*lsm6dsv16x_read_ptr)(void *, uint8_t, uint8_t *, uint16_t);
typedef void (*lsm6dsv16x_mdelay_ptr)(uint32_t millisec);

typedef struct {
/** Component mandatory fields **/
lsm6dsv16x_write_ptr write_reg;
lsm6dsv16x_read_ptr read_reg;
/** Component optional fields **/
lsm6dsv16x_mdelay_ptr mdelay;
/** Customizable optional pointer **/
void *handle;
} lsm6dsv16x_ctx_t;

/**
* @}
*
Expand Down Expand Up @@ -4923,4 +4923,4 @@ int32_t lsm6dsv16x_act_wkup_time_windows_get(lsm6dsv16x_ctx_t *ctx,

#endif /*LSM6DSV16X_DRIVER_H */

/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

0 comments on commit 91f134f

Please sign in to comment.