bleTimeFromMs (Function)

Top  Previous  Next

Architecture:

NX32L

Device support:

LX2

Firmware version:

2.20.00


 

This helper function converts a time interval provided in milliseconds to the number of 0.625ms Bluetooth ticks it corresponds to.

 

 

Input:

v : INT

The time interval in milliseconds to convert.

 

Returns: INT

The time interval in Bluetooth ticks.

 

Declaration:

FUNCTION bleTimeFromMs : INT;
VAR_INPUT
  v       : INT;
END_VAR;

 

Example:

...
// Get 10 ms in ticks
rc := bleTimeFromMs(v:=10);
...