ST Expansion SW Team / VL53L1

Dependencies:   X_NUCLEO_COMMON ST_INTERFACES

Dependents:   X_NUCLEO_53L1CB

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers vl53l1_register_funcs.h Source File

vl53l1_register_funcs.h

00001 
00002 /* SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause */
00003 /******************************************************************************
00004  * Copyright (c) 2020, STMicroelectronics - All Rights Reserved
00005 
00006  This file is part of VL53L1 and is dual licensed,
00007  either GPL-2.0+
00008  or 'BSD 3-clause "New" or "Revised" License' , at your option.
00009  ******************************************************************************
00010  */
00011 
00012 
00013 
00014 
00015 #ifndef _VL53L1_REGISTER_FUNCS_H_
00016 #define _VL53L1_REGISTER_FUNCS_H_
00017 
00018 #include "vl53l1_platform.h"
00019 
00020 #ifdef __cplusplus
00021 extern "C"
00022 {
00023 #endif
00024 
00025 
00026 
00027 
00028 VL53L1_Error VL53L1_i2c_encode_static_nvm_managed(
00029     VL53L1_static_nvm_managed_t  *pdata,
00030     uint16_t                   buf_size,
00031     uint8_t                   *pbuffer);
00032 
00033 
00034 
00035 
00036 VL53L1_Error VL53L1_i2c_decode_static_nvm_managed(
00037     uint16_t                   buf_size,
00038     uint8_t                   *pbuffer,
00039     VL53L1_static_nvm_managed_t  *pdata);
00040 
00041 
00042 
00043 
00044 VL53L1_Error VL53L1_set_static_nvm_managed(
00045     VL53L1_DEV                 Dev,
00046     VL53L1_static_nvm_managed_t  *pdata);
00047 
00048 
00049 
00050 
00051 VL53L1_Error VL53L1_get_static_nvm_managed(
00052     VL53L1_DEV                 Dev,
00053     VL53L1_static_nvm_managed_t  *pdata);
00054 
00055 
00056 
00057 
00058 VL53L1_Error VL53L1_i2c_encode_customer_nvm_managed(
00059     VL53L1_customer_nvm_managed_t  *pdata,
00060     uint16_t                   buf_size,
00061     uint8_t                   *pbuffer);
00062 
00063 
00064 
00065 
00066 VL53L1_Error VL53L1_i2c_decode_customer_nvm_managed(
00067     uint16_t                   buf_size,
00068     uint8_t                   *pbuffer,
00069     VL53L1_customer_nvm_managed_t  *pdata);
00070 
00071 
00072 
00073 
00074 VL53L1_Error VL53L1_set_customer_nvm_managed(
00075     VL53L1_DEV                 Dev,
00076     VL53L1_customer_nvm_managed_t  *pdata);
00077 
00078 
00079 
00080 
00081 VL53L1_Error VL53L1_get_customer_nvm_managed(
00082     VL53L1_DEV                 Dev,
00083     VL53L1_customer_nvm_managed_t  *pdata);
00084 
00085 
00086 
00087 
00088 VL53L1_Error VL53L1_i2c_encode_static_config(
00089     VL53L1_static_config_t    *pdata,
00090     uint16_t                   buf_size,
00091     uint8_t                   *pbuffer);
00092 
00093 
00094 
00095 
00096 VL53L1_Error VL53L1_i2c_decode_static_config(
00097     uint16_t                   buf_size,
00098     uint8_t                   *pbuffer,
00099     VL53L1_static_config_t    *pdata);
00100 
00101 
00102 
00103 
00104 VL53L1_Error VL53L1_set_static_config(
00105     VL53L1_DEV                 Dev,
00106     VL53L1_static_config_t    *pdata);
00107 
00108 
00109 
00110 
00111 VL53L1_Error VL53L1_get_static_config(
00112     VL53L1_DEV                 Dev,
00113     VL53L1_static_config_t    *pdata);
00114 
00115 
00116 
00117 
00118 VL53L1_Error VL53L1_i2c_encode_general_config(
00119     VL53L1_general_config_t   *pdata,
00120     uint16_t                   buf_size,
00121     uint8_t                   *pbuffer);
00122 
00123 
00124 
00125 
00126 VL53L1_Error VL53L1_i2c_decode_general_config(
00127     uint16_t                   buf_size,
00128     uint8_t                   *pbuffer,
00129     VL53L1_general_config_t   *pdata);
00130 
00131 
00132 
00133 
00134 VL53L1_Error VL53L1_set_general_config(
00135     VL53L1_DEV                 Dev,
00136     VL53L1_general_config_t   *pdata);
00137 
00138 
00139 
00140 
00141 VL53L1_Error VL53L1_get_general_config(
00142     VL53L1_DEV                 Dev,
00143     VL53L1_general_config_t   *pdata);
00144 
00145 
00146 
00147 
00148 VL53L1_Error VL53L1_i2c_encode_timing_config(
00149     VL53L1_timing_config_t    *pdata,
00150     uint16_t                   buf_size,
00151     uint8_t                   *pbuffer);
00152 
00153 
00154 
00155 
00156 VL53L1_Error VL53L1_i2c_decode_timing_config(
00157     uint16_t                   buf_size,
00158     uint8_t                   *pbuffer,
00159     VL53L1_timing_config_t    *pdata);
00160 
00161 
00162 
00163 
00164 VL53L1_Error VL53L1_set_timing_config(
00165     VL53L1_DEV                 Dev,
00166     VL53L1_timing_config_t    *pdata);
00167 
00168 
00169 
00170 
00171 VL53L1_Error VL53L1_get_timing_config(
00172     VL53L1_DEV                 Dev,
00173     VL53L1_timing_config_t    *pdata);
00174 
00175 
00176 
00177 
00178 VL53L1_Error VL53L1_i2c_encode_dynamic_config(
00179     VL53L1_dynamic_config_t   *pdata,
00180     uint16_t                   buf_size,
00181     uint8_t                   *pbuffer);
00182 
00183 
00184 
00185 
00186 VL53L1_Error VL53L1_i2c_decode_dynamic_config(
00187     uint16_t                   buf_size,
00188     uint8_t                   *pbuffer,
00189     VL53L1_dynamic_config_t   *pdata);
00190 
00191 
00192 
00193 
00194 VL53L1_Error VL53L1_set_dynamic_config(
00195     VL53L1_DEV                 Dev,
00196     VL53L1_dynamic_config_t   *pdata);
00197 
00198 
00199 
00200 
00201 VL53L1_Error VL53L1_get_dynamic_config(
00202     VL53L1_DEV                 Dev,
00203     VL53L1_dynamic_config_t   *pdata);
00204 
00205 
00206 
00207 
00208 VL53L1_Error VL53L1_i2c_encode_system_control(
00209     VL53L1_system_control_t   *pdata,
00210     uint16_t                   buf_size,
00211     uint8_t                   *pbuffer);
00212 
00213 
00214 
00215 
00216 VL53L1_Error VL53L1_i2c_decode_system_control(
00217     uint16_t                   buf_size,
00218     uint8_t                   *pbuffer,
00219     VL53L1_system_control_t   *pdata);
00220 
00221 
00222 
00223 
00224 VL53L1_Error VL53L1_set_system_control(
00225     VL53L1_DEV                 Dev,
00226     VL53L1_system_control_t   *pdata);
00227 
00228 
00229 
00230 
00231 VL53L1_Error VL53L1_get_system_control(
00232     VL53L1_DEV                 Dev,
00233     VL53L1_system_control_t   *pdata);
00234 
00235 
00236 
00237 
00238 VL53L1_Error VL53L1_i2c_encode_system_results(
00239     VL53L1_system_results_t   *pdata,
00240     uint16_t                   buf_size,
00241     uint8_t                   *pbuffer);
00242 
00243 
00244 
00245 
00246 VL53L1_Error VL53L1_i2c_decode_system_results(
00247     uint16_t                   buf_size,
00248     uint8_t                   *pbuffer,
00249     VL53L1_system_results_t   *pdata);
00250 
00251 
00252 
00253 
00254 VL53L1_Error VL53L1_set_system_results(
00255     VL53L1_DEV                 Dev,
00256     VL53L1_system_results_t   *pdata);
00257 
00258 
00259 
00260 
00261 VL53L1_Error VL53L1_get_system_results(
00262     VL53L1_DEV                 Dev,
00263     VL53L1_system_results_t   *pdata);
00264 
00265 
00266 
00267 
00268 VL53L1_Error VL53L1_i2c_encode_core_results(
00269     VL53L1_core_results_t     *pdata,
00270     uint16_t                   buf_size,
00271     uint8_t                   *pbuffer);
00272 
00273 
00274 
00275 
00276 VL53L1_Error VL53L1_i2c_decode_core_results(
00277     uint16_t                   buf_size,
00278     uint8_t                   *pbuffer,
00279     VL53L1_core_results_t     *pdata);
00280 
00281 
00282 
00283 
00284 VL53L1_Error VL53L1_set_core_results(
00285     VL53L1_DEV                 Dev,
00286     VL53L1_core_results_t     *pdata);
00287 
00288 
00289 
00290 
00291 VL53L1_Error VL53L1_get_core_results(
00292     VL53L1_DEV                 Dev,
00293     VL53L1_core_results_t     *pdata);
00294 
00295 
00296 
00297 
00298 VL53L1_Error VL53L1_i2c_encode_debug_results(
00299     VL53L1_debug_results_t    *pdata,
00300     uint16_t                   buf_size,
00301     uint8_t                   *pbuffer);
00302 
00303 
00304 
00305 
00306 VL53L1_Error VL53L1_i2c_decode_debug_results(
00307     uint16_t                   buf_size,
00308     uint8_t                   *pbuffer,
00309     VL53L1_debug_results_t    *pdata);
00310 
00311 
00312 
00313 
00314 VL53L1_Error VL53L1_set_debug_results(
00315     VL53L1_DEV                 Dev,
00316     VL53L1_debug_results_t    *pdata);
00317 
00318 
00319 
00320 
00321 VL53L1_Error VL53L1_get_debug_results(
00322     VL53L1_DEV                 Dev,
00323     VL53L1_debug_results_t    *pdata);
00324 
00325 
00326 
00327 
00328 VL53L1_Error VL53L1_i2c_encode_nvm_copy_data(
00329     VL53L1_nvm_copy_data_t    *pdata,
00330     uint16_t                   buf_size,
00331     uint8_t                   *pbuffer);
00332 
00333 
00334 
00335 
00336 VL53L1_Error VL53L1_i2c_decode_nvm_copy_data(
00337     uint16_t                   buf_size,
00338     uint8_t                   *pbuffer,
00339     VL53L1_nvm_copy_data_t    *pdata);
00340 
00341 
00342 
00343 
00344 VL53L1_Error VL53L1_set_nvm_copy_data(
00345     VL53L1_DEV                 Dev,
00346     VL53L1_nvm_copy_data_t    *pdata);
00347 
00348 
00349 
00350 
00351 VL53L1_Error VL53L1_get_nvm_copy_data(
00352     VL53L1_DEV                 Dev,
00353     VL53L1_nvm_copy_data_t    *pdata);
00354 
00355 
00356 
00357 
00358 VL53L1_Error VL53L1_i2c_encode_prev_shadow_system_results(
00359     VL53L1_prev_shadow_system_results_t  *pdata,
00360     uint16_t                   buf_size,
00361     uint8_t                   *pbuffer);
00362 
00363 
00364 
00365 
00366 VL53L1_Error VL53L1_i2c_decode_prev_shadow_system_results(
00367     uint16_t                   buf_size,
00368     uint8_t                   *pbuffer,
00369     VL53L1_prev_shadow_system_results_t  *pdata);
00370 
00371 
00372 
00373 
00374 VL53L1_Error VL53L1_set_prev_shadow_system_results(
00375     VL53L1_DEV                 Dev,
00376     VL53L1_prev_shadow_system_results_t  *pdata);
00377 
00378 
00379 
00380 
00381 VL53L1_Error VL53L1_get_prev_shadow_system_results(
00382     VL53L1_DEV                 Dev,
00383     VL53L1_prev_shadow_system_results_t  *pdata);
00384 
00385 
00386 
00387 
00388 VL53L1_Error VL53L1_i2c_encode_prev_shadow_core_results(
00389     VL53L1_prev_shadow_core_results_t  *pdata,
00390     uint16_t                   buf_size,
00391     uint8_t                   *pbuffer);
00392 
00393 
00394 
00395 
00396 VL53L1_Error VL53L1_i2c_decode_prev_shadow_core_results(
00397     uint16_t                   buf_size,
00398     uint8_t                   *pbuffer,
00399     VL53L1_prev_shadow_core_results_t  *pdata);
00400 
00401 
00402 
00403 
00404 VL53L1_Error VL53L1_set_prev_shadow_core_results(
00405     VL53L1_DEV                 Dev,
00406     VL53L1_prev_shadow_core_results_t  *pdata);
00407 
00408 
00409 
00410 
00411 VL53L1_Error VL53L1_get_prev_shadow_core_results(
00412     VL53L1_DEV                 Dev,
00413     VL53L1_prev_shadow_core_results_t  *pdata);
00414 
00415 
00416 
00417 
00418 VL53L1_Error VL53L1_i2c_encode_patch_debug(
00419     VL53L1_patch_debug_t      *pdata,
00420     uint16_t                   buf_size,
00421     uint8_t                   *pbuffer);
00422 
00423 
00424 
00425 
00426 VL53L1_Error VL53L1_i2c_decode_patch_debug(
00427     uint16_t                   buf_size,
00428     uint8_t                   *pbuffer,
00429     VL53L1_patch_debug_t      *pdata);
00430 
00431 
00432 
00433 
00434 VL53L1_Error VL53L1_set_patch_debug(
00435     VL53L1_DEV                 Dev,
00436     VL53L1_patch_debug_t      *pdata);
00437 
00438 
00439 
00440 
00441 VL53L1_Error VL53L1_get_patch_debug(
00442     VL53L1_DEV                 Dev,
00443     VL53L1_patch_debug_t      *pdata);
00444 
00445 
00446 
00447 
00448 VL53L1_Error VL53L1_i2c_encode_gph_general_config(
00449     VL53L1_gph_general_config_t  *pdata,
00450     uint16_t                   buf_size,
00451     uint8_t                   *pbuffer);
00452 
00453 
00454 
00455 
00456 VL53L1_Error VL53L1_i2c_decode_gph_general_config(
00457     uint16_t                   buf_size,
00458     uint8_t                   *pbuffer,
00459     VL53L1_gph_general_config_t  *pdata);
00460 
00461 
00462 
00463 
00464 VL53L1_Error VL53L1_set_gph_general_config(
00465     VL53L1_DEV                 Dev,
00466     VL53L1_gph_general_config_t  *pdata);
00467 
00468 
00469 
00470 
00471 VL53L1_Error VL53L1_get_gph_general_config(
00472     VL53L1_DEV                 Dev,
00473     VL53L1_gph_general_config_t  *pdata);
00474 
00475 
00476 
00477 
00478 VL53L1_Error VL53L1_i2c_encode_gph_static_config(
00479     VL53L1_gph_static_config_t  *pdata,
00480     uint16_t                   buf_size,
00481     uint8_t                   *pbuffer);
00482 
00483 
00484 
00485 
00486 VL53L1_Error VL53L1_i2c_decode_gph_static_config(
00487     uint16_t                   buf_size,
00488     uint8_t                   *pbuffer,
00489     VL53L1_gph_static_config_t  *pdata);
00490 
00491 
00492 
00493 
00494 VL53L1_Error VL53L1_set_gph_static_config(
00495     VL53L1_DEV                 Dev,
00496     VL53L1_gph_static_config_t  *pdata);
00497 
00498 
00499 
00500 
00501 VL53L1_Error VL53L1_get_gph_static_config(
00502     VL53L1_DEV                 Dev,
00503     VL53L1_gph_static_config_t  *pdata);
00504 
00505 
00506 
00507 
00508 VL53L1_Error VL53L1_i2c_encode_gph_timing_config(
00509     VL53L1_gph_timing_config_t  *pdata,
00510     uint16_t                   buf_size,
00511     uint8_t                   *pbuffer);
00512 
00513 
00514 
00515 
00516 VL53L1_Error VL53L1_i2c_decode_gph_timing_config(
00517     uint16_t                   buf_size,
00518     uint8_t                   *pbuffer,
00519     VL53L1_gph_timing_config_t  *pdata);
00520 
00521 
00522 
00523 
00524 VL53L1_Error VL53L1_set_gph_timing_config(
00525     VL53L1_DEV                 Dev,
00526     VL53L1_gph_timing_config_t  *pdata);
00527 
00528 
00529 
00530 
00531 VL53L1_Error VL53L1_get_gph_timing_config(
00532     VL53L1_DEV                 Dev,
00533     VL53L1_gph_timing_config_t  *pdata);
00534 
00535 
00536 
00537 
00538 VL53L1_Error VL53L1_i2c_encode_fw_internal(
00539     VL53L1_fw_internal_t      *pdata,
00540     uint16_t                   buf_size,
00541     uint8_t                   *pbuffer);
00542 
00543 
00544 
00545 
00546 VL53L1_Error VL53L1_i2c_decode_fw_internal(
00547     uint16_t                   buf_size,
00548     uint8_t                   *pbuffer,
00549     VL53L1_fw_internal_t      *pdata);
00550 
00551 
00552 
00553 
00554 VL53L1_Error VL53L1_set_fw_internal(
00555     VL53L1_DEV                 Dev,
00556     VL53L1_fw_internal_t      *pdata);
00557 
00558 
00559 
00560 
00561 VL53L1_Error VL53L1_get_fw_internal(
00562     VL53L1_DEV                 Dev,
00563     VL53L1_fw_internal_t      *pdata);
00564 
00565 
00566 
00567 
00568 VL53L1_Error VL53L1_i2c_encode_patch_results(
00569     VL53L1_patch_results_t    *pdata,
00570     uint16_t                   buf_size,
00571     uint8_t                   *pbuffer);
00572 
00573 
00574 
00575 
00576 VL53L1_Error VL53L1_i2c_decode_patch_results(
00577     uint16_t                   buf_size,
00578     uint8_t                   *pbuffer,
00579     VL53L1_patch_results_t    *pdata);
00580 
00581 
00582 
00583 
00584 VL53L1_Error VL53L1_set_patch_results(
00585     VL53L1_DEV                 Dev,
00586     VL53L1_patch_results_t    *pdata);
00587 
00588 
00589 
00590 
00591 VL53L1_Error VL53L1_get_patch_results(
00592     VL53L1_DEV                 Dev,
00593     VL53L1_patch_results_t    *pdata);
00594 
00595 
00596 
00597 
00598 VL53L1_Error VL53L1_i2c_encode_shadow_system_results(
00599     VL53L1_shadow_system_results_t  *pdata,
00600     uint16_t                   buf_size,
00601     uint8_t                   *pbuffer);
00602 
00603 
00604 
00605 
00606 VL53L1_Error VL53L1_i2c_decode_shadow_system_results(
00607     uint16_t                   buf_size,
00608     uint8_t                   *pbuffer,
00609     VL53L1_shadow_system_results_t  *pdata);
00610 
00611 
00612 
00613 
00614 VL53L1_Error VL53L1_set_shadow_system_results(
00615     VL53L1_DEV                 Dev,
00616     VL53L1_shadow_system_results_t  *pdata);
00617 
00618 
00619 
00620 
00621 VL53L1_Error VL53L1_get_shadow_system_results(
00622     VL53L1_DEV                 Dev,
00623     VL53L1_shadow_system_results_t  *pdata);
00624 
00625 
00626 
00627 
00628 VL53L1_Error VL53L1_i2c_encode_shadow_core_results(
00629     VL53L1_shadow_core_results_t  *pdata,
00630     uint16_t                   buf_size,
00631     uint8_t                   *pbuffer);
00632 
00633 
00634 
00635 
00636 VL53L1_Error VL53L1_i2c_decode_shadow_core_results(
00637     uint16_t                   buf_size,
00638     uint8_t                   *pbuffer,
00639     VL53L1_shadow_core_results_t  *pdata);
00640 
00641 
00642 
00643 
00644 VL53L1_Error VL53L1_set_shadow_core_results(
00645     VL53L1_DEV                 Dev,
00646     VL53L1_shadow_core_results_t  *pdata);
00647 
00648 
00649 
00650 
00651 VL53L1_Error VL53L1_get_shadow_core_results(
00652     VL53L1_DEV                 Dev,
00653     VL53L1_shadow_core_results_t  *pdata);
00654 
00655 
00656 #ifdef __cplusplus
00657 }
00658 #endif
00659 
00660 #endif
00661 
00662