ToCoNet_u16RcCalib()
Explanation
Calibrate the RC timer.
Performing a calibration
Getting calibration values
Setting the calibration values
You can also use ToCoNet_u16GetRcCalib()
to get the calibration values.
Use of external oscillator at 32768Hz
No calibration is required and a fixed value of 9766 (32000/32768) counts is specified. Use cbAppColdStart()
as shown in the following example.
Argument
Type
Name
Value
Remark
uint16
u16val
0
Calibration is carried out. Calibration takes less than 1 ms, but some time is required.
5000-15000
Sets the calibration value.
0xFFFF
Retrieves the set value.
Returns
Type
Remark
uint16
If the argument u16val == 0xFFFF
, the current setting value is returned. Otherwise undefined.
Sample Code
最終更新