diff --git a/src/lsm6dsv16x_reg.h b/src/lsm6dsv16x_reg.h index 499c627..41eaaa2 100644 --- a/src/lsm6dsv16x_reg.h +++ b/src/lsm6dsv16x_reg.h @@ -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 @@ -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; + /** * @} * @@ -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****/ \ No newline at end of file +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/