mirror of
https://github.com/eddyem/STM8_samples.git
synced 2025-12-06 10:45:12 +03:00
7 lines
142 B
Mathematica
7 lines
142 B
Mathematica
function [u dmax] = K(U, ADU)
|
|
adu = uint32(ADU);
|
|
U = uint32(bitshift(U*1000,17));
|
|
u = uint32(U/adu);
|
|
dmax = 2*uint32(2^31/u);
|
|
endfunction
|