亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? preform.c

?? LP830 無線識別卡 讀寫程序demo
?? C
?? 第 1 頁 / 共 5 頁
字號:
{
   WORD incom_value;     // Build the value being input here.
   BYTE ascii_number[MAX_BIN_DIG + 2];  // Hold digits being input + CR, terminator.
   BYTE *digit_ptr;      // Point to where the next digit goes.
   WORD ii;              // Local loop counter, for all eight digits.

   incom_value = 0;
   printf("........\10\10\10\10\10\10\10\10"); // Dots to become binary digits.
   if (NOT inp_digstring(ascii_number, MAX_BIN_DIG, BIN, '.'))
       return(TOO_BIG_VAL); // Use is trying to ESCAPE out.
   digit_ptr = ascii_number;        // Point at the character just input.
   if (*digit_ptr EQ CR)       // No digits, only the ENTER key.
      return(ENTER_ALONE);     // Return to caller for a try again, or default.
   for (ii = MAX_BIN_DIG; ii; ii--)
      incom_value = (incom_value << 1) + *digit_ptr++ - '0'; // Add in new value.
   return(incom_value);   // Done imputing, return the input value.
}

// ****************************************************************************
// Input a decimal number, character by character, for a tag range.
// sscanf() would be used, but that waits for a CR.  ESC must be detected, to exit.
// A NULL entry (Enter alone with no digits) must be detected to indicate entire tag.
//
// Input:        The tags valid staring Address. HS tags can not write to address 0.
//               Last valid tag address for this range.  Protected and/or tag type.
// Return:       Number input, 
//               or TOO_BIG_VAL to exit,
//               or ENTER_ALONE if no digits entered, but the ENTER key was pressed.
// Side effects: NONE.
static WORD inp_tag_range(WORD tag_start, WORD tag_end) 
{
   BYTE  ascii_number[MAX_DEC_DIGITS + 2];  // Hold digits being input.
   WORD  this_value;          // Build the value being input here.
   
   this_value = 0;            // Initialize working variables.
   if (NOT inp_decimal(ascii_number, tag_start, tag_end))
       return(TOO_BIG_VAL);   // Use is trying to ESCape out.
   printf("\n");              // Echo the terminating carriage return.
   if (ascii_number[0] EQ CR) // No digits, only the ENTER key.
      return(ENTER_ALONE);    // Thus, done with entering data.
   if (dec_word_val(ascii_number, &this_value))
      return(this_value);     // Valid decimal number entered. Return it!
   return(0);                 // Should never get here, but be safe.
}

// ****************************************************************************
// Delay while something is being displayed.
//
// Input:        None.
// Return:       None.
// Side effects: None.
static void do_delay(time_t delay_time) 
{
   time_t start_time, now_time; // Hold second count for display.

   time(&start_time);       // Get current second count form the runtime.
   time(&now_time);
   while ((start_time + delay_time) >= now_time)
      time(&now_time);      // Get new second value.
}

// ****************************************************************************
// Delay while something is being displayed.
//
// Input:        None.
// Return:       None.
// Side effects: None.
static void display_delay(void) 
{
   do_delay(DISPLAY_TIME);  // Do the display delay 
}

// ****************************************************************************
// Delay while something is being displayed.
//
// Input:        None.
// Return:       None.
// Side effects: None.
void display_delay_sht(void) 
{
   do_delay(SHORT_DELAY);  // Do the display delay 
}

// ****************************************************************************
// Request and save the beginning (lower) and ending (upper) bound of tag data
// to be read. The upper bound is gotten from taking the staring Address and
// adding the length that the user specified.  A length that would exceed
// the end of tag is not taken, and it will be requested again.
//
// Input:        Pointer to start and stop tag addresses to be updated.
//               The tags valid staring Address. HS tags can not write to address 0.
//               The tags valid higher bound. For protected writing.
// Return:       BOOLEAN - TRUE, got a valid range.
//                       - FALSE, Not a valid range, the user gave up.
// Side effects: None.
static BYTE req_tag_range(WORD* lower, WORD* upper, WORD tag_start, WORD high_bound)
{
   WORD length;  // Length (number of bytes) for the tag range.
     
   if (tag_start EQ mem_size)      // Entire tag protected?
   {
      printf("Nothing between\n%u and %u.\n", tag_start, mem_size - 1);
      display_delay();
      return (FALSE);
   }
   printf("Starting address (%u to %u),\nor ENTER for entire %u to %u: ", 
      tag_start, high_bound, tag_start, high_bound);
   if ((*lower = inp_tag_range(tag_start, high_bound)) EQ TOO_BIG_VAL)
      return(FALSE);          // So return to exit this function.
   if (*lower EQ ENTER_ALONE) // Requesting entire tag?
   {
      *lower = tag_start;     // From the first valid tag address.
      *upper = high_bound;    // To the end of the tag.
   } else
   {
      printf("\nNumber of bytes?\nENTER for rest of tag, (1 to %u): ",
         high_bound + 1  - *lower);
      if ((length = inp_tag_range(1, high_bound + 1  - *lower)) EQ TOO_BIG_VAL)
         return(FALSE);          // So return to exit this function.
      else if (length EQ ENTER_ALONE) // Requesting to the end of tag?
         *upper = high_bound;  // To the end of the tag.
      else 
         *upper = *lower + length - 1;
   }
   return(TRUE);      // Got a valid and desired address range.
}

// ****************************************************************************
// Get the line length for the current display format. 
//
// Input:        Implied, display_type.
// Return:       None.
// Side effects: None.
static BYTE format_size(void) 
{
   switch (display_type)
   {
   case HEX:
      return(HMS_HEX_LINES);

   case DEC:
      return(HMS_DEC_LINES);

   case ASCII:
      return(HMS_ASCII_LNS);

   case BIN:
      return(HMS_BIN_LINES);
   }
   return(0);  // Never get here, this is just to make the compiler happy..
}


// ****************************************************************************
// Print, on the console, the current data byte.  Display in it the format
// chosen from the display options menu.
//
// Input:        BYTE to be printed.
// Return:       NONE.
// Side effects: NONE.
static void print_byte(BYTE disp_data) 
{
WORD ii;      // Local loop counter.

   switch (display_type)
   {
   case HEX:
      printf(" %02X", disp_data);
      break;

   case DEC:
      printf(" %3d", disp_data);
      break;

   case ASCII:
      printf("%c", disp_data);
      break;

   case BIN:
      printf(" ");  // Space between numbers.
      for (ii = 0x80; ii; ii = ii >> 1)
         if (ii & disp_data)
            putch('1');
         else
            putch('0');
      break;
   }
}


// ****************************************************************************
// Print the data for a line being dsplayed, in the current format.
// The tag address leader is also printed from this routines.
//
// Input:        Pointer to data to be printed.
//               Number of bytes in the array pointed to.
//               Address in the tag of the data being printed. 
// Return:       None.
// Side effects: None.
static void print_data_line(BYTE* data_ptr, WORD num_bytes, WORD data_adr) 
{
   WORD ii;              // Local loop counter.
   
   putch(CR);  // Be positive to be at the beginning of line.
   printf("A%3d:", data_adr);
   if (display_type EQ ASCII)      // If displaying ASCII, then put a 
      putch(' ');                  // space after the :. Because no spaces later.
   for(ii = num_bytes; ii; ii--)   // for data_adr bytes.
      print_byte(*data_ptr++);
   printf("\n");                  // final CR behind last data.
}

// ****************************************************************************
// Initialize the Display a down counter number. This is for down_count()
//
// Input:        Implied - set_doun() has been called to Initialization.
// Return:       BOOLEAN - TRUE, still down counting Borlands second counter
//                         FALSE, Done waiting.
// Side effects: NONE, outside down count.
//               finished is Initialized to FALSE.
static void start_down(WORD start_value) 
{
   
   display_val = start_value;  // Begin display time.
   time(&last_time);
   finished = FALSE;           // The mikron interface not finished.
}

// ****************************************************************************
// Display a down counter number:
// Do not print new line but back up so the next thing printed prints over
// the number just displayed. It is intended to have the cursor at a location
// and then repetitively call this routine while waiting.
// It looks for a 'change' in the runtime time_t routine and decrements display
// counter.
//
// Input:        Implied - set_doun() has been called to initialization.
// Return:       BOOLEAN - TRUE, still down counting Borlands second couter
//                         FALSE, Done waiting.
// Side effects: NONE, outside .
static BYTE down_count(void) 
{
   time_t now_time;
   time(&now_time);       // Get current second count form the runtime.

   if ((display_val = display_val - (now_time - last_time)) < 0)
      display_val = 0;    // NO underflow.
   last_time = now_time;  // Remember when here last
#if DOWN_DISPLAY
   printf("%4d", display_val);
   putch(BACK_SPACE);
   putch(BACK_SPACE);
   putch(BACK_SPACE);
   putch(BACK_SPACE);
#endif
   return(display_val);
}

// ****************************************************************************
// Ask the user if the current command should be executing again.
//
// Input:        NONE.
// Return:       BOOLEAN - TRUE, YES, the ESCAPE key has just been pressed.
//                         FALSE, NO, the eSCAPE key has NOT been pressed.
// Side effects: NONE.
static BYTE esc_entered(void) 
{
   if (kbhit())
      if (getch_cont() EQ ESC)
         return(TRUE);     // Escape key enterd for the user to giving up.
   return(FALSE);          // Escape key not pressed.
}               

// ****************************************************************************
// Ask the user if the current command should be executing again.
//
// Input:        NONE.
// Return:       BOOLEAN - TRUE, YES, the user desires to do it again.
//                         FALSE, NO, the user is finished.
// Side effects: NONE.
static BYTE ask_again(void) 
{
   printf("\nENTER to repeat.\n");
   return(getch_cont() EQ CR);
}

// ****************************************************************************
// Print the text string for the Error codes in the Reader/Writer manual.
//
// Input:        NONE.
// Return:       BOOLEAN - TRUE,  characters input for a number.
//                         FALSE, ESE entered to exit.
// Side effects: number length BYTES at the ASCII string might be altered.
void print_code(BYTE error_num) 
{
   switch (error_num)
   {
   case NONCON_READFAIL:
      printf("\nNon-Contiguous Read has failed\n");
      break;
   case NONCON_WRITEFAIL:

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲综合色视频| 蜜臀av国产精品久久久久| 4438x亚洲最大成人网| 国产成人精品亚洲日本在线桃色| 亚洲欧美日韩电影| 欧美tk丨vk视频| 色欧美88888久久久久久影院| 美女国产一区二区| 亚洲永久精品国产| 国产精品私人自拍| 日韩小视频在线观看专区| 在线影院国内精品| 国产盗摄一区二区三区| 秋霞午夜av一区二区三区| 亚洲免费av网站| 欧美国产丝袜视频| 精品蜜桃在线看| 欧美一区二区大片| 欧美日韩中文另类| 色婷婷av一区二区三区大白胸| 国产精品18久久久久久久久 | 天堂在线亚洲视频| 1000精品久久久久久久久| 2023国产精品| 日韩三级伦理片妻子的秘密按摩| 欧美三区免费完整视频在线观看| 99国产精品视频免费观看| 国产乱人伦偷精品视频免下载| 天天操天天色综合| 亚洲国产精品视频| 亚洲综合一区二区精品导航| 综合av第一页| 亚洲欧洲日韩综合一区二区| 中文字幕+乱码+中文字幕一区| 欧美成人欧美edvon| 欧美老女人第四色| 欧美蜜桃一区二区三区| 欧美特级限制片免费在线观看| 色妞www精品视频| 99视频一区二区| 92精品国产成人观看免费| a级高清视频欧美日韩| 成人爽a毛片一区二区免费| 国产999精品久久| 国产宾馆实践打屁股91| 国产福利一区二区三区视频在线 | 欧美一区二区三区四区高清| 欧美日本在线一区| 日韩一区二区在线播放| 精品美女一区二区三区| 精品国产一区二区三区久久影院| 日韩女同互慰一区二区| 欧美大白屁股肥臀xxxxxx| 日韩欧美一区二区久久婷婷| 日韩女优毛片在线| 国产视频一区二区在线观看| 国产精品丝袜91| 亚洲美女屁股眼交| 性做久久久久久久久| 日本亚洲最大的色成网站www| 日韩电影在线一区| 国内精品久久久久影院薰衣草 | 国产高清不卡一区二区| 成人黄色软件下载| 日本道精品一区二区三区 | 97久久人人超碰| 在线免费视频一区二区| 在线播放视频一区| 欧美喷潮久久久xxxxx| 日韩免费一区二区| 国产精品护士白丝一区av| 一区二区三区久久| 久久精品国产99国产精品| 成人做爰69片免费看网站| 色美美综合视频| 日韩免费高清电影| 欧美日韩国产小视频在线观看| 日韩美女主播在线视频一区二区三区| 欧美不卡一二三| 亚洲精品国产一区二区精华液| 亚洲18女电影在线观看| 国产精品18久久久久久久久久久久 | 欧美日韩精品一区二区三区 | 亚洲成人三级小说| 国产精品1区二区.| 欧美色图一区二区三区| 精品国产百合女同互慰| 一区免费观看视频| 理论片日本一区| 99国产欧美另类久久久精品 | 欧美视频在线不卡| 久久―日本道色综合久久| 中文字幕一区免费在线观看| 日韩中文字幕1| www.久久久久久久久| 制服丝袜国产精品| 日韩一区日韩二区| 国内外精品视频| 欧美日韩在线播放三区| 国产欧美日韩精品在线| 日本不卡视频在线| 色婷婷亚洲综合| 精品国产免费一区二区三区香蕉| 亚洲美腿欧美偷拍| 国v精品久久久网| 欧美一区二区视频免费观看| 国产精品理论片| 国内精品伊人久久久久av一坑| 欧美日韩亚州综合| 自拍偷拍国产精品| 国产二区国产一区在线观看| 欧美一区午夜视频在线观看| 亚洲天堂成人在线观看| 国产福利电影一区二区三区| 91精品在线观看入口| 亚洲一区二区欧美激情| av在线免费不卡| 久久精品亚洲麻豆av一区二区| 图片区小说区国产精品视频| 色综合天天综合网天天狠天天| 国产欧美视频在线观看| 九色综合国产一区二区三区| 欧美日本国产一区| 亚洲制服丝袜一区| 91在线国内视频| 国产精品成人网| 国产成人精品影院| 国产欧美一二三区| 国产91丝袜在线播放| 久久网站最新地址| 国产一区二区三区美女| 精品国产一区二区三区久久久蜜月 | 亚洲美女视频一区| 99久久久精品| 亚洲欧洲日产国码二区| 国产a级毛片一区| 日本一区二区三区电影| 国产91清纯白嫩初高中在线观看| 精品日韩99亚洲| 精品伊人久久久久7777人| 欧美一区二区日韩| 久久精品久久综合| 精品sm捆绑视频| 久久99精品国产.久久久久久| 欧美一区永久视频免费观看| 美女视频一区在线观看| 精品国内二区三区| 国产很黄免费观看久久| 国产精品视频看| av电影天堂一区二区在线观看| 国产欧美日韩精品一区| 成人午夜激情视频| 国产精品久久久久毛片软件| 99热在这里有精品免费| 亚洲一区二区影院| 91精品蜜臀在线一区尤物| 麻豆国产91在线播放| 久久色.com| 成人夜色视频网站在线观看| 国产精品欧美一区喷水| 一本色道久久综合亚洲91| 午夜精品aaa| 精品国产凹凸成av人网站| 国产成人午夜99999| 中文字幕在线一区| 欧美性xxxxxxxx| 麻豆久久一区二区| 中文字幕的久久| 4hu四虎永久在线影院成人| 精品制服美女丁香| 中文字幕乱码日本亚洲一区二区| av电影在线不卡| 日本中文字幕一区二区有限公司| 欧美不卡123| av一本久道久久综合久久鬼色| 夜夜嗨av一区二区三区中文字幕| 欧美一区二视频| 懂色av一区二区夜夜嗨| 亚洲国产精品欧美一二99| 久久婷婷久久一区二区三区| 91丝袜美腿高跟国产极品老师| 亚洲一区二区精品3399| 久久日韩粉嫩一区二区三区| 日本韩国一区二区三区视频| 久久99精品久久久久婷婷| 亚洲美女免费视频| 精品精品欲导航| 欧美少妇bbb| 成人短视频下载| 青青草91视频| 亚洲精品国产a久久久久久| 久久亚洲一级片| 欧美日韩中文字幕一区| 成人免费av在线| 久久精品理论片| 亚洲成a人片在线不卡一二三区| 久久久久久久国产精品影院| 欧美日韩亚洲国产综合| 成人aa视频在线观看| 美女脱光内衣内裤视频久久网站|