rtapi_delay.3rtapi
来自「CNC 的开放码,EMC2 V2.2.8版」· 3RTAPI 代码 · 共 37 行
3RTAPI
37 行
.TH rtapi_delay "3rtapi" "2006-10-12" "EMC Documentation" "RTAPI".SH NAMErtapi_delay \- one-line description of rtapi_delay.SH SYNTAX.HPvoid rtapi_delay(long int \fInsec\fR).HPvoid rtapi_delay_max().SH ARGUMENTS.IP \fInsec\fRThe desired delay length in nanoseconds.SH DESCRIPTION\fBrtapi_delay\fR is a simple delay. It is intended only for shortdelays, since it simply loops, wasting CPU cycles.\fBrtapi_delay_max\fR returns the max delay permitted (usuallyapproximately 1/4 of the clock period). Any call to \fBrtapi_delay\fRrequesting a delay longer than the max will delay for the max time only.\fBrtapi_delay_max\fR should be called before using \fBrtapi_delay\fR tomake sure the required delays can be achieved. The actual resolutionof the delay may be as good as one nano-second, or as bad as a severalmicroseconds..SH REALTIME CONSIDERATIONSMay be called from init/cleanup code, and from within realtime tasks..SH RETURN VALUE\fBrtapi_delay_max\fB returns the maximum delay permitted..SH SEE ALSO\fBrtapi_clock_set_period(3rtapi)\fR
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?