Rename library
Dependencies: X_NUCLEO_COMMON ST_INTERFACES
Dependents: VL53L3CX_NoShield_1Sensor_poll_Mb06x VL53L3_NoShield_1Sensor_polling_Mb63 X_NUCLEO_53L3A2 53L3A2_Ranging
modules/vl53lx_register_funcs.h
- Committer:
- charlesmn
- Date:
- 2021-07-21
- Revision:
- 7:7f1bbf370283
- Parent:
- 5:89031b2f5316
File content as of revision 7:7f1bbf370283:
/* SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause */ /****************************************************************************** * Copyright (c) 2020, STMicroelectronics - All Rights Reserved This file is part of VL53LX and is dual licensed, either GPL-2.0+ or 'BSD 3-clause "New" or "Revised" License' , at your option. ****************************************************************************** */ #ifndef _VL53LX_REGISTER_FUNCS_H_ #define _VL53LX_REGISTER_FUNCS_H_ #include "vl53lx_platform.h" #ifdef __cplusplus extern "C" { #endif VL53LX_Error VL53LX_i2c_encode_static_nvm_managed( VL53LX_static_nvm_managed_t *pdata, uint16_t buf_size, uint8_t *pbuffer); VL53LX_Error VL53LX_i2c_decode_static_nvm_managed( uint16_t buf_size, uint8_t *pbuffer, VL53LX_static_nvm_managed_t *pdata); VL53LX_Error VL53LX_set_static_nvm_managed( VL53LX_DEV Dev, VL53LX_static_nvm_managed_t *pdata); VL53LX_Error VL53LX_get_static_nvm_managed( VL53LX_DEV Dev, VL53LX_static_nvm_managed_t *pdata); VL53LX_Error VL53LX_i2c_encode_customer_nvm_managed( VL53LX_customer_nvm_managed_t *pdata, uint16_t buf_size, uint8_t *pbuffer); VL53LX_Error VL53LX_i2c_decode_customer_nvm_managed( uint16_t buf_size, uint8_t *pbuffer, VL53LX_customer_nvm_managed_t *pdata); VL53LX_Error VL53LX_set_customer_nvm_managed( VL53LX_DEV Dev, VL53LX_customer_nvm_managed_t *pdata); VL53LX_Error VL53LX_get_customer_nvm_managed( VL53LX_DEV Dev, VL53LX_customer_nvm_managed_t *pdata); VL53LX_Error VL53LX_i2c_encode_static_config( VL53LX_static_config_t *pdata, uint16_t buf_size, uint8_t *pbuffer); VL53LX_Error VL53LX_i2c_decode_static_config( uint16_t buf_size, uint8_t *pbuffer, VL53LX_static_config_t *pdata); VL53LX_Error VL53LX_set_static_config( VL53LX_DEV Dev, VL53LX_static_config_t *pdata); VL53LX_Error VL53LX_get_static_config( VL53LX_DEV Dev, VL53LX_static_config_t *pdata); VL53LX_Error VL53LX_i2c_encode_general_config( VL53LX_general_config_t *pdata, uint16_t buf_size, uint8_t *pbuffer); VL53LX_Error VL53LX_i2c_decode_general_config( uint16_t buf_size, uint8_t *pbuffer, VL53LX_general_config_t *pdata); VL53LX_Error VL53LX_set_general_config( VL53LX_DEV Dev, VL53LX_general_config_t *pdata); VL53LX_Error VL53LX_get_general_config( VL53LX_DEV Dev, VL53LX_general_config_t *pdata); VL53LX_Error VL53LX_i2c_encode_timing_config( VL53LX_timing_config_t *pdata, uint16_t buf_size, uint8_t *pbuffer); VL53LX_Error VL53LX_i2c_decode_timing_config( uint16_t buf_size, uint8_t *pbuffer, VL53LX_timing_config_t *pdata); VL53LX_Error VL53LX_set_timing_config( VL53LX_DEV Dev, VL53LX_timing_config_t *pdata); VL53LX_Error VL53LX_get_timing_config( VL53LX_DEV Dev, VL53LX_timing_config_t *pdata); VL53LX_Error VL53LX_i2c_encode_dynamic_config( VL53LX_dynamic_config_t *pdata, uint16_t buf_size, uint8_t *pbuffer); VL53LX_Error VL53LX_i2c_decode_dynamic_config( uint16_t buf_size, uint8_t *pbuffer, VL53LX_dynamic_config_t *pdata); VL53LX_Error VL53LX_set_dynamic_config( VL53LX_DEV Dev, VL53LX_dynamic_config_t *pdata); VL53LX_Error VL53LX_get_dynamic_config( VL53LX_DEV Dev, VL53LX_dynamic_config_t *pdata); VL53LX_Error VL53LX_i2c_encode_system_control( VL53LX_system_control_t *pdata, uint16_t buf_size, uint8_t *pbuffer); VL53LX_Error VL53LX_i2c_decode_system_control( uint16_t buf_size, uint8_t *pbuffer, VL53LX_system_control_t *pdata); VL53LX_Error VL53LX_set_system_control( VL53LX_DEV Dev, VL53LX_system_control_t *pdata); VL53LX_Error VL53LX_get_system_control( VL53LX_DEV Dev, VL53LX_system_control_t *pdata); VL53LX_Error VL53LX_i2c_encode_system_results( VL53LX_system_results_t *pdata, uint16_t buf_size, uint8_t *pbuffer); VL53LX_Error VL53LX_i2c_decode_system_results( uint16_t buf_size, uint8_t *pbuffer, VL53LX_system_results_t *pdata); VL53LX_Error VL53LX_set_system_results( VL53LX_DEV Dev, VL53LX_system_results_t *pdata); VL53LX_Error VL53LX_get_system_results( VL53LX_DEV Dev, VL53LX_system_results_t *pdata); VL53LX_Error VL53LX_i2c_encode_core_results( VL53LX_core_results_t *pdata, uint16_t buf_size, uint8_t *pbuffer); VL53LX_Error VL53LX_i2c_decode_core_results( uint16_t buf_size, uint8_t *pbuffer, VL53LX_core_results_t *pdata); VL53LX_Error VL53LX_set_core_results( VL53LX_DEV Dev, VL53LX_core_results_t *pdata); VL53LX_Error VL53LX_get_core_results( VL53LX_DEV Dev, VL53LX_core_results_t *pdata); VL53LX_Error VL53LX_i2c_encode_debug_results( VL53LX_debug_results_t *pdata, uint16_t buf_size, uint8_t *pbuffer); VL53LX_Error VL53LX_i2c_decode_debug_results( uint16_t buf_size, uint8_t *pbuffer, VL53LX_debug_results_t *pdata); VL53LX_Error VL53LX_set_debug_results( VL53LX_DEV Dev, VL53LX_debug_results_t *pdata); VL53LX_Error VL53LX_get_debug_results( VL53LX_DEV Dev, VL53LX_debug_results_t *pdata); VL53LX_Error VL53LX_i2c_encode_nvm_copy_data( VL53LX_nvm_copy_data_t *pdata, uint16_t buf_size, uint8_t *pbuffer); VL53LX_Error VL53LX_i2c_decode_nvm_copy_data( uint16_t buf_size, uint8_t *pbuffer, VL53LX_nvm_copy_data_t *pdata); VL53LX_Error VL53LX_set_nvm_copy_data( VL53LX_DEV Dev, VL53LX_nvm_copy_data_t *pdata); VL53LX_Error VL53LX_get_nvm_copy_data( VL53LX_DEV Dev, VL53LX_nvm_copy_data_t *pdata); VL53LX_Error VL53LX_i2c_encode_prev_shadow_system_results( VL53LX_prev_shadow_system_results_t *pdata, uint16_t buf_size, uint8_t *pbuffer); VL53LX_Error VL53LX_i2c_decode_prev_shadow_system_results( uint16_t buf_size, uint8_t *pbuffer, VL53LX_prev_shadow_system_results_t *pdata); VL53LX_Error VL53LX_set_prev_shadow_system_results( VL53LX_DEV Dev, VL53LX_prev_shadow_system_results_t *pdata); VL53LX_Error VL53LX_get_prev_shadow_system_results( VL53LX_DEV Dev, VL53LX_prev_shadow_system_results_t *pdata); VL53LX_Error VL53LX_i2c_encode_prev_shadow_core_results( VL53LX_prev_shadow_core_results_t *pdata, uint16_t buf_size, uint8_t *pbuffer); VL53LX_Error VL53LX_i2c_decode_prev_shadow_core_results( uint16_t buf_size, uint8_t *pbuffer, VL53LX_prev_shadow_core_results_t *pdata); VL53LX_Error VL53LX_set_prev_shadow_core_results( VL53LX_DEV Dev, VL53LX_prev_shadow_core_results_t *pdata); VL53LX_Error VL53LX_get_prev_shadow_core_results( VL53LX_DEV Dev, VL53LX_prev_shadow_core_results_t *pdata); VL53LX_Error VL53LX_i2c_encode_patch_debug( VL53LX_patch_debug_t *pdata, uint16_t buf_size, uint8_t *pbuffer); VL53LX_Error VL53LX_i2c_decode_patch_debug( uint16_t buf_size, uint8_t *pbuffer, VL53LX_patch_debug_t *pdata); VL53LX_Error VL53LX_set_patch_debug( VL53LX_DEV Dev, VL53LX_patch_debug_t *pdata); VL53LX_Error VL53LX_get_patch_debug( VL53LX_DEV Dev, VL53LX_patch_debug_t *pdata); VL53LX_Error VL53LX_i2c_encode_gph_general_config( VL53LX_gph_general_config_t *pdata, uint16_t buf_size, uint8_t *pbuffer); VL53LX_Error VL53LX_i2c_decode_gph_general_config( uint16_t buf_size, uint8_t *pbuffer, VL53LX_gph_general_config_t *pdata); VL53LX_Error VL53LX_set_gph_general_config( VL53LX_DEV Dev, VL53LX_gph_general_config_t *pdata); VL53LX_Error VL53LX_get_gph_general_config( VL53LX_DEV Dev, VL53LX_gph_general_config_t *pdata); VL53LX_Error VL53LX_i2c_encode_gph_static_config( VL53LX_gph_static_config_t *pdata, uint16_t buf_size, uint8_t *pbuffer); VL53LX_Error VL53LX_i2c_decode_gph_static_config( uint16_t buf_size, uint8_t *pbuffer, VL53LX_gph_static_config_t *pdata); VL53LX_Error VL53LX_set_gph_static_config( VL53LX_DEV Dev, VL53LX_gph_static_config_t *pdata); VL53LX_Error VL53LX_get_gph_static_config( VL53LX_DEV Dev, VL53LX_gph_static_config_t *pdata); VL53LX_Error VL53LX_i2c_encode_gph_timing_config( VL53LX_gph_timing_config_t *pdata, uint16_t buf_size, uint8_t *pbuffer); VL53LX_Error VL53LX_i2c_decode_gph_timing_config( uint16_t buf_size, uint8_t *pbuffer, VL53LX_gph_timing_config_t *pdata); VL53LX_Error VL53LX_set_gph_timing_config( VL53LX_DEV Dev, VL53LX_gph_timing_config_t *pdata); VL53LX_Error VL53LX_get_gph_timing_config( VL53LX_DEV Dev, VL53LX_gph_timing_config_t *pdata); VL53LX_Error VL53LX_i2c_encode_fw_internal( VL53LX_fw_internal_t *pdata, uint16_t buf_size, uint8_t *pbuffer); VL53LX_Error VL53LX_i2c_decode_fw_internal( uint16_t buf_size, uint8_t *pbuffer, VL53LX_fw_internal_t *pdata); VL53LX_Error VL53LX_set_fw_internal( VL53LX_DEV Dev, VL53LX_fw_internal_t *pdata); VL53LX_Error VL53LX_get_fw_internal( VL53LX_DEV Dev, VL53LX_fw_internal_t *pdata); VL53LX_Error VL53LX_i2c_encode_patch_results( VL53LX_patch_results_t *pdata, uint16_t buf_size, uint8_t *pbuffer); VL53LX_Error VL53LX_i2c_decode_patch_results( uint16_t buf_size, uint8_t *pbuffer, VL53LX_patch_results_t *pdata); VL53LX_Error VL53LX_set_patch_results( VL53LX_DEV Dev, VL53LX_patch_results_t *pdata); VL53LX_Error VL53LX_get_patch_results( VL53LX_DEV Dev, VL53LX_patch_results_t *pdata); VL53LX_Error VL53LX_i2c_encode_shadow_system_results( VL53LX_shadow_system_results_t *pdata, uint16_t buf_size, uint8_t *pbuffer); VL53LX_Error VL53LX_i2c_decode_shadow_system_results( uint16_t buf_size, uint8_t *pbuffer, VL53LX_shadow_system_results_t *pdata); VL53LX_Error VL53LX_set_shadow_system_results( VL53LX_DEV Dev, VL53LX_shadow_system_results_t *pdata); VL53LX_Error VL53LX_get_shadow_system_results( VL53LX_DEV Dev, VL53LX_shadow_system_results_t *pdata); VL53LX_Error VL53LX_i2c_encode_shadow_core_results( VL53LX_shadow_core_results_t *pdata, uint16_t buf_size, uint8_t *pbuffer); VL53LX_Error VL53LX_i2c_decode_shadow_core_results( uint16_t buf_size, uint8_t *pbuffer, VL53LX_shadow_core_results_t *pdata); VL53LX_Error VL53LX_set_shadow_core_results( VL53LX_DEV Dev, VL53LX_shadow_core_results_t *pdata); VL53LX_Error VL53LX_get_shadow_core_results( VL53LX_DEV Dev, VL53LX_shadow_core_results_t *pdata); #ifdef __cplusplus } #endif #endif