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

📄 hal_param_new.3hal

📁 CNC 的开放码,EMC2 V2.2.8版
💻 3HAL
字号:
.TH hal_param_new "3hal" "2006-10-12" "EMC Documentation" "HAL".SH NAMEhal_param_new \- Create a HAL parameter.SH SYNTAX.HP int hal_param_bit_new(char *\fIname\fR, hal_param_dir_t \fIdir\fR, hal_bit_t * \fIdata_addr\fR, int \fIcomp_id\fR).HP int hal_param_float_new(char *\fIname\fR, hal_param_dir_t \fIdir\fR, hal_float_t * \fIdata_addr\fR, int \fIcomp_id\fR).HP int hal_param_u32_new(char *\fIname\fR, hal_param_dir_t \fIdir\fR, hal_u32_t * \fIdata_addr\fR, int \fIcomp_id\fR).HP int hal_param_s32_new(char *\fIname\fR, hal_param_dir_t \fIdir\fR, hal_s32_t * \fIdata_addr\fR, int \fIcomp_id\fR).HP int hal_param_bit_newf(hal_param_dir_t \fIdir\fR, hal_bit_t * \fIdata_addr\fR, int \fIcomp_id\fR).HP int hal_param_float_newf(hal_param_dir_t \fIdir\fR, hal_float_t * \fIdata_addr\fR, int \fIcomp_id\fR).HP int hal_param_u32_newf(hal_param_dir_t \fIdir\fR, hal_u32_t * \fIdata_addr\fR, int \fIcomp_id\fR, char *\fIfmt\fR, \fI...\fR).HP int hal_param_s32_newf(hal_param_dir_t \fIdir\fR, hal_s32_t * \fIdata_addr\fR, int \fIcomp_id\fR, char *\fIfmt\fR, \fI...\fR).HP int hal_param_new(char *\fIname\fR, hal_type_t \fItype\fR, hal_in_dir_t \fIdir\fR, void *\fIdata_addr\fR, int \fIcomp_id\fR) .SH  ARGUMENTS.TP\fIname\fRThe name to give to the created parameter.TP\fIdir\fRThe direction of the parameter, from the viewpoint of the component.  It may beone of \fBHAL_RO\fR, or \fBHAL_RW\fR A component may assign a value to anyparameter, but other programs (such as halcmd) may only assign a value to aparameter that is \fBHAL_RW\fR..TP\fIdata_addr\fRThe address of the data, which must lie within memory allocated by\fBhal_malloc\fR..TP\fIcomp_id\fRA HAL component identifier returned by an earlier call to \fBhal_init\fR..TP\fIfmt,\ ...\fRA printf-style format string and arguments.TP\fItype\fRThe type of the parameter, as specified in \fBhal_type_t(3hal)\fR..SH DESCRIPTIONThe \fBhal_param_new\fR family of functions create a new \fIparam\fR object.There are functions for each of the data types that the HAL supports.  Pins mayonly be linked to signals of the same type..SH RETURN VALUEReturns a HAL status code..SH SEE ALSO\fBhal_type_t(3hal)\fR

⌨️ 快捷键说明

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