⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rtapi_clock_set_period.3rtapi

📁 CNC 的开放码,EMC2 V2.2.8版
💻 3RTAPI
字号:
.TH rtapi_clock_set_period "3rtapi" "2006-10-12" "EMC Documentation" "RTAPI".SH NAMErtapi_clock_set_period \- set the basic time interval for realtime tasks.SH SYNTAX.HP rtapi_clock_set_period(long int \fInsec\fR).SH ARGUMENTS.IP \fInsec\fBThe desired basic time interval for realtime tasks..SH DESCRIPTION\fBrtapi_clock_set_period\fR sets the basic time interval for realtime tasks.All periodic tasks will run at an integer multiple of this period.  The firstcall to \fBrtapi_clock_set_period\fR with \fInsec\fR greater than zero willstart the clock, using \fInsec\fR as the clock period in nano-seconds.  Due tohardware and RTOS limitations, the actual period may not be exactly what wasrequested.  On success, the function will return the actual clock period if itis available, otherwise it returns the requested period.  If the requestedperiod is outside the limits imposed by the hardware or RTOS, it returns\fBRTAPI_INVAL\fR and does not start the clock.  Once the clock is started,subsequent calls with non-zero \fInsec\fR return \fBRTAPI_INVAL\fR and have noeffect.  Calling \fBrtapi_clock_set_period\fR with \fInsec\fR set to zeroqueries the clock, returning the current clock period, or zero if the clock hasnot yet been started.  .SH REALTIME CONSIDERATIONSCall only from within init/cleanup code, not from realtime tasks.  Thisfunction is not available from user (non-realtime) code..SH RETURN VALUEThe actual period provided by the RTOS, which may be different than therequested period, or a RTAPI status code.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -