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

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

?? debug.c

?? Infineon公司有一款實現SHDSL協議(ADSL協議的變種)的芯片
?? C
?? 第 1 頁 / 共 3 頁
字號:
      for (i = 0;i < (nr-1); i++)
      {
         V24_PRINT (("0x%02X,", data_array[i]));
      }
      V24_PRINT (("0x%02X", data_array[i]));

                                       /* Write data via the synchron.  
                                          serial interface.                   */
      Ssc_Write (cs, nr, data_array);

   }  
                                       /* V24 control message:          
                                          When error.                         */
   if (error_text != NULL)
   {
      V24_PRINT (("\nDebug_Write_Sync: %s ", Error_Text_Start));
      V24_PRINT (("%s ", error_text));     
      V24_PRINT (("%s", Error_Text_End));     
   }
     
                                       /* Free received message         
                                          because no message is         
                                          returned to the user.               */
   DdsMsgFree (pMsg);
}

/*******************************************************************************
Description:
   Receive message to read data via synchronous serial interface (Ssc_Read).
Arguments:
   pMsg  -  Pointer to received message.
Return:
   NONE.
Remarks:
   NONE.
*******************************************************************************/
static void Debug_Read_Sync (P_DDS_MSG pMsg)
{
   WORD8   cs;
   WORD8   nr_tr;
   WORD8   nr_rc;
   WORD8   data_array[16];
   WORD8   i;
   const   WORD8 *error_text = NULL;

                                       /* Read parameters of received   
                                          message.                            */
   G_V24  = MsgReadWord8 (pMsg, 0);
   cs     = MsgReadWord8 (pMsg, 1);
   nr_rc  = MsgReadWord8 (pMsg, 2);
   nr_tr  = MsgReadWord8 (pMsg, 3);
                                       /* Set error text dependent on   
                                          the received parameters.            */
   if ((cs == 0) || (cs > 6))
      error_text = "CS";
   if ((nr_rc == 0) || (nr_rc > 0x10))
      error_text = "NR";
   if ((nr_tr == 0) || (nr_tr > 0x10))
      error_text = "NR";

                                       /* Start processing if all       
                                          parameters are correct.             */
   if (error_text == NULL)
   {
                                       /* V24 control message:          
                                          When processing (part1)             */
      for (i = 0;i < nr_tr; i++)                
      {
         data_array[i] = MsgReadWord8 (pMsg, (i+4));
      }
      V24_PRINT (("\nDebug_Read_Sync: CS=0x%02X; data_tr=", cs));
      for (i = 0;i < (nr_tr-1); i++)
      {
         V24_PRINT (("0x%02X,", data_array[i]));
      }
      V24_PRINT (("0x%02X ", data_array[i]));
     
                                       /* Read data via the synchronous 
                                          serial interface.                   */
      Ssc_Read (cs, nr_rc, nr_tr, data_array);

                                       /* V24 control message:          
                                          When processing (part2).            */
      V24_PRINT ((";data_rc="));
      for (i = 0;i < (nr_rc-1); i++)
      {
         V24_PRINT (("0x%02X,", data_array[i]));
      }
      V24_PRINT (("0x%02X ", data_array[i]));
      
                                       /* Send answer to user.                */
      MsgWriteWord8 (pMsg, 0, cs)
      for (i = 0; i < nr_rc; i++)
         MsgWriteWord8 (pMsg, i+1, data_array[i]);
      pMsg->dst     = 0;
      pMsg->src     = MOD_ID_DEBUG_MODULE;
      pMsg->id      = MSG_ID_DEBUG_READ_SYNC;
      pMsg->length  = (nr_rc+1);
      DdsMsgSend (pMsg);
   }

                                       /* V24 control message:          
                                          When error.                         */
   if (error_text != NULL)
   {
      V24_PRINT (("\nDebug_Read_Sync: %s ", Error_Text_Start));
      V24_PRINT (("%s ", error_text));     
      V24_PRINT (("%s", Error_Text_End));     
      DdsMsgFree (pMsg);
   }
}

/*******************************************************************************
Description:
   Receive message to read a 8 bit value from specified register
   calling function In().
Arguments:
   pMsg  -  Pointer to received message.
Return:
   NONE.
Remarks: 
   This adds the based address of the respective AOM. Because of this only
   register offset must be specified in this message.
 ******************************************************************************/
static void Debug_Read_Register (P_DDS_MSG pMsg)
{
   WORD16 regadr;
   WORD8  val;

                                       /* Read parameters of received   
                                          message.                            */
   G_V24  = MsgReadWord8 (pMsg, 0);
   regadr = MsgReadWord16 (pMsg, 1);
   
                                       /* Read value of register in mux or    
                                          demux mode                          */
   val = In(regadr);
                                       /* V24 control message:          
                                          When processing.                    */
   V24_PRINT (("\nDebug_Read_Register RegAdr: 0x%04X", regadr));
   V24_PRINT ((" val: 0x%02X",val));

                                       /* Send answer to user.                */
   MsgWriteWord8 (pMsg, 0, val);
   pMsg->dst     = 0;
   pMsg->src     = MOD_ID_DEBUG_MODULE;
   pMsg->id      = MSG_ID_DEBUG_READ_REGISTER;
   pMsg->length  = 1;
   DdsMsgSend (pMsg);
}


/*******************************************************************************
Description:
   Receive message to write a 8 bit value to specified  register
   Calling function Out().
Arguments:
   pMsg  -  Pointer to received message.
Return:
   NONE.
Remarks:
   This adds the based address of the respective AOM. Because of this only
   register offset must be specified in this message.
 ******************************************************************************/
static void Debug_Write_Register (P_DDS_MSG pMsg)
{
                                       /* Read parameters of received   
                                          message.                            */
   WORD16 regadr;
   WORD8  val;
                                       /* Read parameters of received   
                                          message.                            */
   G_V24  = MsgReadWord8 (pMsg, 0);
   regadr = MsgReadWord16 (pMsg, 1);
   val    = MsgReadWord16 (pMsg, 3);
                                       /* Start processing:             
                                          Write value to address.             */
   Out (regadr,  val);
                                       /* V24 control message:          
                                          When processing.                    */
   V24_PRINT (("\nDebug_Write_Register RegAdr: 0x%04X", regadr));
   V24_PRINT ((" val: 0x%02X",val));
                                       /* Free received message         
                                          because no message is         
                                          returned to the user.               */
   DdsMsgFree (pMsg);
}

/*******************************************************************************
Description:
   Receive message to write a 8 bit value to specified  register
   Calling function Out().
Arguments:
   pMsg  -  Pointer to received message.
Return:
   NONE.
Remarks:
   This adds the based address of the respective AOM. Because of this only
   register offset must be specified in this message.
 ******************************************************************************/
static void Debug_Write_Register_Time (P_DDS_MSG pMsg)
{
                                       /* Read parameters of received   
                                          message.                            */
   WORD16 regadr, time;
   WORD8  val;
                                       /* Read parameters of received   
                                          message.                            */
   G_V24  = MsgReadWord8 (pMsg, 0);
   regadr = MsgReadWord16 (pMsg, 1);
   val    = MsgReadWord8 (pMsg, 3);
   time   = MsgReadWord16 (pMsg, 4);
   
                                       /* V24 control message:          
                                          When entering.                    */
   V24_PRINT (("\nDebug_Write_Register_Time RegAdr: 0x%04X", regadr));
   V24_PRINT ((" val: 0x%02X for 0x%04X x 6ms", val, time));
   
                                       /* Start processing:  */           
   G_Register_Timer.Old_Value = In (regadr);
   G_Register_Timer.Counter   = time;
   
                                       /* Write value to address.             */
   Out (regadr,  val);
                                       
   Start_Timer (TIMER_REG_WAIT);
                                       
                                       
                                       /* Free received message         
                                          because no message is         
                                          returned to the user.               */
   DdsMsgFree (pMsg);
}

/*******************************************************************************
Description:
   Write SSC buffer of synchronous serial interface.
Arguments:
   val   -  Value to be written.
Return:
   NONE.
Remarks:
   NONE.
*******************************************************************************/
static void Ssc_Write_Buffer (WORD8 val)
{
  while (!SSCTIR);
  SSCTIR = 0;
  SSCTB = val;
}

/*******************************************************************************
Description:
   Read SSC buffer of synchronous serial interface.
Arguments:
   NONE.
Return:
   WORD8 -  Returns read value.
Remarks:
   NONE.
*******************************************************************************/
static WORD8 Ssc_Read_Buffer (void)
{
  while (!SSCRIR);
  SSCRIR = 0;
  return (SSCRB);
}

/*******************************************************************************
Description: 
   Message entry function of this module. Assigns all module functions to 
   the according function identifier.
Arguments: 
   pMsg  -  Pointer to received message.
Return:
   NONE.
Remarks:
   NONE.
******************************************************************************/
static void Debug_Msg_Entry (P_DDS_MSG pMsg)
{
   switch (pMsg->id)
   {
   case MSG_ID_DEBUG_V24:
      Debug_V24 (pMsg);
      break;

   case MSG_ID_DEBUG_READ_BYTE:
      Debug_Read_Byte (pMsg);
      break;

   case MSG_ID_DEBUG_WRITE_BYTE:
      Debug_Write_Byte (pMsg);
      break; 
      
   case MSG_ID_DEBUG_READ_WORD:
      Debug_Read_Word (pMsg);
      break;

   case MSG_ID_DEBUG_WRITE_WORD:
      Debug_Write_Word (pMsg);
      break; 
      
   case MSG_ID_DEBUG_WRITE_SYNC:
      Debug_Write_Sync (pMsg);
      break;

   case MSG_ID_DEBUG_READ_SYNC:
      Debug_Read_Sync (pMsg);
      break;

   case MSG_ID_DEBUG_READ_REGISTER:
      Debug_Read_Register (pMsg);
      break;

   case MSG_ID_DEBUG_WRITE_REGISTER:
      Debug_Write_Register (pMsg);
      break; 
      
   case MSG_ID_DEBUG_WRITE_REGISTER_TIME:
      Debug_Write_Register_Time (pMsg);
      break;
      
   default:
      printf ("\n(SLOT %d) Module DEBUG.C\t: unknown msg id (0x%02X).", SLOT_NR, pMsg->id);
      DdsMsgFree (pMsg);
      break;
   }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
麻豆国产91在线播放| 五月天视频一区| 国产福利一区在线| 亚洲影视在线播放| 国产精品久久久久久亚洲伦| 日韩女优毛片在线| 国产精品女人毛片| 中文字幕一区二区不卡| 亚洲电影中文字幕在线观看| 成人一区二区三区视频| 久久久精品国产免费观看同学| 亚洲国产精品久久一线不卡| 91日韩一区二区三区| 最新久久zyz资源站| 97精品国产97久久久久久久久久久久 | 99精品在线免费| 亚洲欧洲精品天堂一级| 本田岬高潮一区二区三区| 中文字幕第一页久久| 色www精品视频在线观看| 亚洲国产美国国产综合一区二区| 欧美私人免费视频| 黑人精品欧美一区二区蜜桃 | 国产精品女同互慰在线看| 国产一区二区在线观看免费| 欧美一级爆毛片| 99re66热这里只有精品3直播 | 久久精品水蜜桃av综合天堂| 亚洲国产精品精华液2区45| 亚洲国产一区二区a毛片| 国产一级精品在线| 26uuu国产日韩综合| 欧洲一区二区三区免费视频| 成人午夜在线播放| 国产精品一区二区在线播放| 日本欧美大码aⅴ在线播放| 欧美激情在线看| 极品少妇xxxx精品少妇偷拍| 欧美日韩在线精品一区二区三区激情 | 亚洲美女淫视频| 99精品视频在线观看| 国产亚洲欧美激情| 9色porny自拍视频一区二区| 久久久久9999亚洲精品| 国产一区二区视频在线| 久久久亚洲综合| 国产成人欧美日韩在线电影| 国产精品美女久久久久aⅴ国产馆| 狠狠色狠狠色综合| 国产精品国产自产拍在线| 日韩一级二级三级| 成人短视频下载| 久久狠狠亚洲综合| 亚洲天堂久久久久久久| 久久久精品综合| 日韩一区二区电影在线| 欧美日韩五月天| 欧美日韩精品一区二区在线播放| 国产精品一区二区久久精品爱涩| 亚洲国产一区视频| 亚洲h在线观看| 日韩精品一区第一页| 性做久久久久久免费观看| 亚洲综合在线五月| 亚洲一区二区视频在线| 亚洲男人都懂的| 亚洲精品菠萝久久久久久久| 亚洲免费视频中文字幕| 国产精品女人毛片| 天堂成人国产精品一区| 亚洲高清免费视频| 久久99精品久久久| 国产一区视频在线看| 成人黄色小视频在线观看| 午夜伦欧美伦电影理论片| 99re热视频这里只精品| 欧美群妇大交群的观看方式| 中文字幕中文在线不卡住| 精品在线播放午夜| 在线播放日韩导航| 亚洲一区二区三区中文字幕在线| 国产麻豆视频一区| 精品久久国产字幕高潮| 天堂精品中文字幕在线| 欧美色爱综合网| 国产精品久99| 国产精品成人免费在线| 国产欧美一区二区精品久导航| 日本一区二区视频在线| 久久国产精品99久久久久久老狼| 成人免费观看av| 国产午夜三级一区二区三| 久久精工是国产品牌吗| 在线视频你懂得一区二区三区| 国产精品你懂的| 91在线你懂得| 亚洲欧美欧美一区二区三区| 成人精品小蝌蚪| 久久久久久久一区| 成人免费看视频| 亚洲欧洲av色图| 91福利小视频| 激情伊人五月天久久综合| 日韩精品专区在线影院重磅| 激情图区综合网| 国产日韩欧美制服另类| 99精品国产热久久91蜜凸| 一区二区三区小说| 欧美夫妻性生活| 狠狠色丁香久久婷婷综| 精品国产乱码久久久久久1区2区| 成人性视频免费网站| 亚洲精品伦理在线| 日韩精品一区二区三区视频在线观看| 国产精品自产自拍| 亚洲国产一区在线观看| 欧美草草影院在线视频| 91丨九色丨尤物| 亚洲成人777| 亚洲免费视频成人| 国产日产亚洲精品系列| 久久久久国产精品免费免费搜索| 日韩精品一区二区三区四区视频| 欧美日韩高清一区二区| 7777精品伊人久久久大香线蕉的| 在线视频综合导航| 制服丝袜日韩国产| 亚洲精品一线二线三线| 日本一区二区三区高清不卡| 国产女人18水真多18精品一级做| 国产精品视频一二三区 | av一区二区三区| 97久久精品人人澡人人爽| 欧美日韩一区高清| 久久这里只有精品视频网| 欧美国产精品一区二区| 亚洲成人资源在线| 久久99国产精品成人| 91在线免费视频观看| 日韩亚洲欧美一区| 亚洲免费在线视频| 久久精品国产秦先生| 色婷婷精品久久二区二区蜜臀av| 日韩一级免费观看| 亚洲国产精品影院| 色综合久久久久| 久久精品亚洲精品国产欧美| 亚洲免费观看高清在线观看| 久久国产夜色精品鲁鲁99| 欧洲一区在线电影| 亚洲美腿欧美偷拍| 岛国精品一区二区| 久久综合丝袜日本网| 亚洲成人一区在线| 99久久99久久综合| 国产精品污www在线观看| 视频一区视频二区在线观看| 久久久久久日产精品| 亚洲愉拍自拍另类高清精品| 麻豆国产精品一区二区三区| a级精品国产片在线观看| 日韩精品在线看片z| 肉丝袜脚交视频一区二区| 91啦中文在线观看| 国产精品精品国产色婷婷| 国产麻豆欧美日韩一区| 欧美精品一二三区| 婷婷综合另类小说色区| 色综合一个色综合| 亚洲在线视频一区| 欧美羞羞免费网站| 午夜精品久久一牛影视| 91麻豆精品国产91久久久使用方法 | 日韩三级免费观看| 9191国产精品| 日本午夜精品视频在线观看 | 99精品一区二区三区| 最新欧美精品一区二区三区| 91美女片黄在线观看| 亚洲永久精品大片| 久久亚洲捆绑美女| 欧美精品一级二级三级| 亚洲成a人片在线观看中文| 亚洲黄色小说网站| 91日韩一区二区三区| 日韩专区中文字幕一区二区| 国产日韩视频一区二区三区| 色狠狠色噜噜噜综合网| 国产精品自产自拍| 美日韩一区二区三区| 一区二区三区四区蜜桃| 国产日韩欧美在线一区| 在线播放中文字幕一区| 欧美中文字幕一区| 91在线高清观看| 不卡一区二区在线| 亚洲成人免费在线观看| 蜜臀av性久久久久蜜臀aⅴ四虎| 色综合天天综合| 亚洲国产精品一区二区久久恐怖片 |