📄 hal_set_constructor.3hal
字号:
.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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -