hal_init.3hal

来自「CNC 的开放码,EMC2 V2.2.8版」· 3HAL 代码 · 共 32 行

3HAL
32
字号
.TH hal_init "3hal" "2006-10-12" "EMC Documentation" "HAL".SH NAMEhal_init \- Sets up HAL and RTAPI.SH SYNTAX.HP int hal_init(char *\fImodname\fR).SH ARGUMENTS.IP \fImodname\fRThe name of this hal module.SH DESCRIPTION\fBhal_init\fR sets up HAL and RTAPI.  It must be called by anymodule that intends to use the API, before any other RTAPIcalls.\fImodname\fR can optionally point to a string that identifiesthe module.  The string will be truncated at \fBRTAPI_NAME_LEN\fRcharacters.  If \fImodname\fR is \fBNULL\fR, the system will assign aname..SH REALTIME CONSIDERATIONSCall only from within user or init/cleanup code, not from relatime tasks..SH RETURN VALUEOn success, returns a positive integer module ID, which isused for subsequent calls to hal and rtapi APIs.On failure, returns a HAL error code.

⌨️ 快捷键说明

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