芯片解密,芯片破解,IC解密,单片机解密,MCU解密,STM解密

飞芯科技提供芯片解密,芯片破解,IC解密,单片机解密,MCU解密,STM解密逆向服务

CY7C68013A USB Board教程IC解密

IC解密单片机源程序如下:

  1. /*! ----------------------------------------------------------------------------
  2. *  @file    main.c
  3. *  @brief   main loop for the DecaRanging application
  4. *
  5. * @attention
  6. *
  7. * Copyright 2013 (c) DecaWave Ltd, Dublin, Ireland.
  8. *
  9. * All rights reserved.
  10. *
  11. * @author DecaWave
  12. */
  13. /* Includes */
  14. #include "compiler.h"
  15. #include "port.h"

  16. #include "instance.h"

  17. #include "deca_types.h"

  18. #include "deca_spi.h"
  19. #include "stdio.h"

  20. extern void usb_run(void);
  21. extern int usb_init(void);
  22. extern void usb_printconfig(int, uint8*, int);
  23. extern void send_usbmessage(uint8*, int);


  24. #define DWINTERRUPT_EN (1)  //set to 1 when using DW interrupt, set to 0 to poll DW1000 IRQ line

  25. #define SOFTWARE_VER_STRING    "Version 3.05    " //


  26. #define SWS1_SRM_MODE 0x80  //slow ranging mode with PC - response is configurable and > 150 ms
  27. #define SWS1_ANC_MODE 0x08  //anchor mode
  28. #define SWS1_SHF_MODE 0x10        //short frame mode (6.81M) (switch S1-5)
  29. #define SWS1_64M_MODE 0x20        // 64M PRF mode (switch S1-6)
  30. #define SWS1_CH5_MODE 0x40        //channel 5 mode (switch S1-7)

  31. int instance_anchaddr = 0; //0 = 0xDECA020000000001; 1 = 0xDECA020000000002; 2 = 0xDECA020000000003
  32. //NOTE: switches TA_SW1_7 and TA_SW1_8 are used to set tag/anchor address
  33. int dr_mode = 0;
  34. //if instance_mode = TAG_TDOA then the device cannot be selected as anchor
  35. int instance_mode = ANCHOR;
  36. //int instance_mode = TAG;
  37. //int instance_mode = TAG_TDOA;
  38. //int instance_mode = LISTENER;

  39. uint8 s1switch = 0;
  40. int chan, tagaddr, ancaddr;

  41. #define LCD_BUFF_LEN (100)
  42. uint8 dataseq[LCD_BUFF_LEN];
  43. uint8 dataseq1[LCD_BUFF_LEN];

  44. int ranging = 0;

  45. typedef struct
  46. {
  47.     uint8 channel ;
  48.     uint8 prf ;
  49.     uint8 datarate ;
  50.     uint8 preambleCode ;
  51.     uint8 preambleLength ;
  52.     uint8 pacSize ;
  53.     uint8 nsSFD ;
  54.     uint16 sfdTO ;
  55. } chConfig_t ;


  56. //Configuration for DecaRanging Modes (8 default use cases selectable by the switch S1 on EVK)
  57. chConfig_t chConfig[8] ={
  58.                     //mode 1 - S1: 7 off, 6 off, 5 off
  59.                     {
  60.                         2,              // channel
  61.                         DWT_PRF_16M,    // prf
  62.                         DWT_BR_110K,    // datarate
  63.                         3,             // preambleCode
  64.                         DWT_PLEN_1024,  // preambleLength
  65.                         DWT_PAC32,      // pacSize
  66.                         1,       // non-standard SFD
  67.                         (1025 + 64 - 32) //SFD timeout
  68.                     },
  69.                     //mode 2
  70.                     {
  71.                         2,              // channel
  72.                         DWT_PRF_16M,    // prf
  73.                         DWT_BR_6M8,    // datarate
  74.                         3,             // preambleCode
  75.                         DWT_PLEN_128,   // preambleLength
  76.                         DWT_PAC8,       // pacSize
  77.                         0,       // non-standard SFD
  78.                         (129 + 8 - 8) //SFD timeout
  79.                     },
  80.                     //mode 3
  81.                     {
  82.                         2,              // channel
  83.                         DWT_PRF_64M,    // prf
  84.                         DWT_BR_110K,    // datarate
  85.                         9,             // preambleCode
  86.                         DWT_PLEN_1024,  // preambleLength
  87.                         DWT_PAC32,      // pacSize
  88.                         1,       // non-standard SFD
  89.                         (1025 + 64 - 32) //SFD timeout
  90.                     },
  91.                     //mode 4
  92.                     {
  93.                         2,              // channel
  94.                         DWT_PRF_64M,    // prf
  95.                         DWT_BR_6M8,    // datarate
  96.                         9,             // preambleCode
  97.                         DWT_PLEN_128,   // preambleLength
  98.                         DWT_PAC8,       // pacSize
  99.                         0,       // non-standard SFD
  100.                         (129 + 8 - 8) //SFD tim



联系方式

地址:石家庄市新华区民族路77号华强广场D座2009
电话:0311-88816616/87087811
手机:13315190088
传真:0311-67901001
联系人:张工
网址:www.taihedz.cn
邮箱:feixindz@163.com
微信:xinpianjiemi
QQ:527263666/568069805

在线客服
热线电话

企业微信