text
stringlengths
0
234
Write (This, 16#27#, UInt8'(16#00#), Status);
Write (This, 16#50#, UInt8'(16#06#), Status);
Write (This, 16#51#, UInt8'(16#00#), Status);
Write (This, 16#52#, UInt8'(16#96#), Status);
Write (This, 16#56#, UInt8'(16#08#), Status);
Write (This, 16#57#, UInt8'(16#30#), Status);
Write (This, 16#61#, UInt8'(16#00#), Status);
Write (This, 16#62#, UInt8'(16#00#), Status);
Write (This, 16#64#, UInt8'(16#00#), Status);
Write (This, 16#65#, UInt8'(16#00#), Status);
Write (This, 16#66#, UInt8'(16#A0#), Status);
Write (This, 16#FF#, UInt8'(16#01#), Status);
Write (This, 16#22#, UInt8'(16#32#), Status);
Write (This, 16#47#, UInt8'(16#14#), Status);
Write (This, 16#49#, UInt8'(16#FF#), Status);
Write (This, 16#4A#, UInt8'(16#00#), Status);
Write (This, 16#FF#, UInt8'(16#00#), Status);
Write (This, 16#7A#, UInt8'(16#0A#), Status);
Write (This, 16#7B#, UInt8'(16#00#), Status);
Write (This, 16#78#, UInt8'(16#21#), Status);
Write (This, 16#FF#, UInt8'(16#01#), Status);
Write (This, 16#23#, UInt8'(16#34#), Status);
Write (This, 16#42#, UInt8'(16#00#), Status);
Write (This, 16#44#, UInt8'(16#FF#), Status);
Write (This, 16#45#, UInt8'(16#26#), Status);
Write (This, 16#46#, UInt8'(16#05#), Status);
Write (This, 16#40#, UInt8'(16#40#), Status);
Write (This, 16#0E#, UInt8'(16#06#), Status);
Write (This, 16#20#, UInt8'(16#1A#), Status);
Write (This, 16#43#, UInt8'(16#40#), Status);
Write (This, 16#FF#, UInt8'(16#00#), Status);
Write (This, 16#34#, UInt8'(16#03#), Status);
Write (This, 16#35#, UInt8'(16#44#), Status);
Write (This, 16#FF#, UInt8'(16#01#), Status);
Write (This, 16#31#, UInt8'(16#04#), Status);
Write (This, 16#4B#, UInt8'(16#09#), Status);
Write (This, 16#4C#, UInt8'(16#05#), Status);
Write (This, 16#4D#, UInt8'(16#04#), Status);
Write (This, 16#FF#, UInt8'(16#00#), Status);
Write (This, 16#44#, UInt8'(16#00#), Status);
Write (This, 16#45#, UInt8'(16#20#), Status);
Write (This, 16#47#, UInt8'(16#08#), Status);
Write (This, 16#48#, UInt8'(16#28#), Status);
Write (This, 16#67#, UInt8'(16#00#), Status);
Write (This, 16#70#, UInt8'(16#04#), Status);
Write (This, 16#71#, UInt8'(16#01#), Status);
Write (This, 16#72#, UInt8'(16#FE#), Status);
Write (This, 16#76#, UInt8'(16#00#), Status);
Write (This, 16#77#, UInt8'(16#00#), Status);
Write (This, 16#FF#, UInt8'(16#01#), Status);
Write (This, 16#0D#, UInt8'(16#01#), Status);
Write (This, 16#FF#, UInt8'(16#00#), Status);
Write (This, 16#80#, UInt8'(16#01#), Status);
Write (This, 16#01#, UInt8'(16#F8#), Status);
Write (This, 16#FF#, UInt8'(16#01#), Status);
Write (This, 16#8E#, UInt8'(16#01#), Status);
Write (This, 16#00#, UInt8'(16#01#), Status);
Write (This, 16#FF#, UInt8'(16#00#), Status);
Write (This, 16#80#, UInt8'(16#00#), Status);
end if;
Set_GPIO_Config (This, GPIO_Function, Polarity_High, Status);
if Status then
Timing_Budget := Measurement_Timing_Budget (This);
-- Disable MSRC and TCC by default
-- MSRC = Minimum Signal Rate Check
-- TCC = Target CenterCheck
Write (This, REG_SYSTEM_SEQUENCE_CONFIG, UInt8'(16#E8#), Status);
end if;
-- Recalculate the timing Budget
if Status then
Set_Measurement_Timing_Budget (This, Timing_Budget, Status);
end if;
end Static_Init;
------------------------------------
-- Perform_Single_Ref_Calibration --
------------------------------------
procedure Perform_Single_Ref_Calibration
(This : VL53L0X_Ranging_Sensor;
VHV_Init : UInt8;
Status : out Boolean)
is
Val : UInt8;
begin