@WSAR1-V1@;@COMMENT@iView: Show a Text @DPS@ 2)b[:Us_~fohDPy& tY:-KBd_M=Y *ks[M=Y *krSͽpٍ!|YD:-K\`Q}mPy& yR}@umPuCuY޽@NOTE@iv_Text Show a Text on the LCD of iView controller call: X_ : Integer X position, 1 ~ 16 Y_ : Integer Y position, 1 ~ 8 LEN_ : Integer Number of char. to show, 1 ~ 16 ULINE_ : Integer Should be a constant value. Nmber of char. (0 ~ LEN_) to show with a under line. for ex. if ULINE_=2, TEXT_='This', the first 2 char. 'Th' will be displayed with a under line TEXT_ : Message The message to show, only the first 'LEN' char. are displayed, for ex. if setting LEN_=6, TEXT_='How are you', the displayed text will be 'How ar' return: Q_ : boolean TRUE: ok. , FALSE: error ICP DAS , Taiwan July.01, 2002 @PARAM@2#AQ @SRC@/* user procedure name: iv_Lamp */ #include #include void USP_iv_lamp (str_arg *arg) { } UFP uspdef_iv_lamp (char *name) { sys_strcpy (name, "IV_LAMP"); return (USP_iv_lamp); } @DEFS@e/* user procedure interface name: iv_Text */ 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 _x_; /* CALL */ T_ANA _y_; /* CALL */ T_ANA _len_; /* CALL */ T_ANA _uline_; /* CALL */ T_MSG _text_; /* RETURN */ T_BOO _q; } str_arg; #define X_ (arg->_x_) #define Y_ (arg->_y_) #define LEN_ (arg->_len_) #define ULINE_ (arg->_uline_) #define TEXT_ (arg->_text_) #define Q (arg->_q) @END@