Macros | Functions
vl53l1_core_support.c File Reference

EwokPlus25 core function definition. More...

#include "vl53l1_ll_def.h"
#include "vl53l1_ll_device.h"
#include "vl53l1_platform_log.h"
#include "vl53l1_core_support.h"
#include "vl53l1_platform_user_data.h"
#include "vl53l1_platform_user_defines.h"
Include dependency graph for vl53l1_core_support.c:

Go to the source code of this file.

Macros

#define LOG_FUNCTION_END(status, ...)   _LOG_FUNCTION_END(VL53L1_TRACE_MODULE_CORE, status, ##__VA_ARGS__)
 
#define LOG_FUNCTION_END_FMT(status, fmt, ...)
 
#define LOG_FUNCTION_START(fmt, ...)   _LOG_FUNCTION_START(VL53L1_TRACE_MODULE_CORE, fmt, ##__VA_ARGS__)
 
#define trace_print(level, ...)
 

Functions

uint32_t VL53L1_calc_pll_period_us (uint16_t fast_osc_frequency)
 Calculates the PLL period in [us] from the input fast_osc_frequency. More...
 
void VL53L1_decode_row_col (uint8_t spad_number, uint8_t *prow, uint8_t *pcol)
 Decodes the Byte.Bit coord encoding into an (x,y) coord value. More...
 
uint8_t VL53L1_decode_vcsel_period (uint8_t vcsel_period_reg)
 Decodes VCSEL period register value into the real period in PLL clocks. More...
 

Detailed Description

EwokPlus25 core function definition.

Definition in file vl53l1_core_support.c.

Macro Definition Documentation

◆ LOG_FUNCTION_END

#define LOG_FUNCTION_END (   status,
  ... 
)    _LOG_FUNCTION_END(VL53L1_TRACE_MODULE_CORE, status, ##__VA_ARGS__)

Definition at line 83 of file vl53l1_core_support.c.

◆ LOG_FUNCTION_END_FMT

#define LOG_FUNCTION_END_FMT (   status,
  fmt,
  ... 
)
Value:
_LOG_FUNCTION_END_FMT(VL53L1_TRACE_MODULE_CORE, \
status, fmt, ##__VA_ARGS__)

Definition at line 85 of file vl53l1_core_support.c.

◆ LOG_FUNCTION_START

#define LOG_FUNCTION_START (   fmt,
  ... 
)    _LOG_FUNCTION_START(VL53L1_TRACE_MODULE_CORE, fmt, ##__VA_ARGS__)

Definition at line 81 of file vl53l1_core_support.c.

◆ trace_print

#define trace_print (   level,
  ... 
)
Value:
_LOG_TRACE_PRINT(VL53L1_TRACE_MODULE_CORE, \
level, VL53L1_TRACE_FUNCTION_NONE, ##__VA_ARGS__)

Definition at line 89 of file vl53l1_core_support.c.

Function Documentation

◆ VL53L1_calc_pll_period_us()

uint32_t VL53L1_calc_pll_period_us ( uint16_t  fast_osc_frequency)

Calculates the PLL period in [us] from the input fast_osc_frequency.

Parameters
[in]fast_osc_frequency: fast oscillator frequency in 4.12 MHz format
Returns
pll_period_us : PLL period in [us] 8.24 format

Definition at line 94 of file vl53l1_core_support.c.

◆ VL53L1_decode_row_col()

void VL53L1_decode_row_col ( uint8_t  spad_number,
uint8_t prow,
uint8_t pcol 
)

Decodes the Byte.Bit coord encoding into an (x,y) coord value.

Parameters
[in]spad_number: Coord location in Byte.Bit format
[out]prow: Decoded row
[out]pcol: Decoded column

Decodes the array (row,col) location from the input SPAD number

Definition at line 426 of file vl53l1_core_support.c.

◆ VL53L1_decode_vcsel_period()

uint8_t VL53L1_decode_vcsel_period ( uint8_t  vcsel_period_reg)

Decodes VCSEL period register value into the real period in PLL clocks.

Parameters
[in]vcsel_period_reg: 8 -bit register value
Returns
vcsel_period_pclks : 8-bit decoded value

Definition at line 411 of file vl53l1_core_support.c.

_LOG_FUNCTION_END_FMT
#define _LOG_FUNCTION_END_FMT(module, status, fmt,...)
Definition: vl53l1_platform_log.h:250
_LOG_TRACE_PRINT
#define _LOG_TRACE_PRINT(module, level, function,...)
Definition: vl53l1_platform_log.h:247


vl53l1x
Author(s):
autogenerated on Fri Aug 2 2024 08:35:54