@WSAR1-V1@r@COMMENT@Get controller information@DPS@ 2)b[:Us_~uD~Vpٍ!uTM=Y *kcDumPy& qS`mPy& yR:-K\~_M=Y *kr@q]ͽpٍ!|Y]|UͽpTcDy:@NOTE@ get_info : Get the controller information call: TYPE_ : Integer Get What ? return: DATA_ : Integer information value returned. The following is the meanning of "TYPE_" V.S. "DATA_" TYPE_ DATA_ 1 Get the controller ID (slave No.) 1 - 255 2 reserved for the future 0 3 reserved for the future 0 4 reserved for the future 0 . . . . ICP DAS , Taiwan May.04,2006 @PARAM@#ADATA_ @SRC@/* user procedure name: get_ID */ #include #include void USP_get_id (str_arg *arg) { } UFP uspdef_get_id (char *name) { sys_strcpy (name, "GET_ID"); return (USP_get_id); } @DEFS@Z/* user procedure interface name: get_info */ typedef long T_BOO; typedef long T_ANA; typedef float T_REAL; typedef long T_TMR; typedef char *T_MSG; typedef struct { /* CALL */ T_ANA _type_; /* RETURN */ T_ANA _data_; } str_arg; #define TYPE_ (arg->_type_) #define DATA_ (arg->_data_) @END@