Functions
vl53l1_core_support.h File Reference

EwokPlus25 core function definitions. More...

#include "vl53l1_types.h"
Include dependency graph for vl53l1_core_support.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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 definitions.

Definition in file vl53l1_core_support.h.

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.



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