hal_set_constructor.3hal

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

3HAL
36
字号
.TH hal_set_constructor "3hal" "2006-10-12" "EMC Documentation" "HAL".SH NAMEhal_set_constructor \- Set the constructor function for this component.SH SYNTAX.HPtypedef int (*hal_constructor_t)(char *prefix, char *arg);int hal_set_constructor(int \fIcomp_id\fR, hal_constructor_t \fIconstructor\fR).SH  ARGUMENTS.HP\fIcomp_id\fRA HAL component identifier returned by an earlier call to \fBhal_init\fR..HP\fIprefix\fRThe prefix to be given to the pins, parameters, and functions in the newinstance.HP\fParg\fRAn argument that may be used by the component to customize this istance..SH DESCRIPTIONAs an experimental feature in HAL 2.1, components may be \fIconstructable\fR.Such a component may create pins and parameters not only at the time the moduleis loaded, but it may create additional pins and parameters, and functions ondemand..SH RETURN VALUEReturns a HAL status code..SH SEE ALSO\fBhalcmd(1)\fR

⌨️ 快捷键说明

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