hal_add_funct_to_thread.3hal
来自「CNC 的开放码,EMC2 V2.2.8版」· 3HAL 代码 · 共 42 行
3HAL
42 行
.TH hal_add_funct_to_thread "3hal" "2006-10-12" "EMC Documentation" "HAL".SH NAMEhal_add_funct_to_thread \- one-line description of hal_add_funct_to_thread.SH SYNTAX.HPint hal_add_funct_to_thread(char *\fIfunct_name\fR, char *\fIthread_name\fR, int position)int hal_del_funct_from_thread(char *\fIfunct_name\fR, char *\fIthread_name\fR).SH ARGUMENTS.IP \fIfunct_name\fRThe name of the function.IP \fIthread_name\fRThe name of the thread.IP \fIposition\fRThe desired location within the thread. This determines when the function willrun, in relation to other functions in the thread. A positive number indicatesthe desired location as measured from the beginning of the thread, and anegative is measured from the end. So +1 means this function will become thefirst one to run, +5 means it will be the fifth one to run, -2 means it will benext to last, and -1 means it will be last. Zero is illegal. .SH DESCRIPTION\fBhal_add_funct_to_thread\fR adds a function exported by a realtime HALcomponent to a realtime thread. This determines how often and in what orderfunctions are executed. \fBhal_del_funct_from_thread\fR removes a function from a thread..SH RETURN VALUEReturns a HAL status code..SH REALTIME CONSIDERATIONSCall only from realtime init code, not from user space or realtime code..SH SEE ALSO\fBhal_thread_new(3hal)\fR, \fBhal_export_funct(3hal)\fR
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?