⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 simple_phy.lst

📁 在飞思卡尔MC9S08GB60单片机环境下实现了无线监控
💻 LST
📖 第 1 页 / 共 5 页
字号:

  466:  	MLME_MC13192_reset_indication();
  0000 cc0000           JMP   MLME_MC13192_reset_indication
  467:  }
  468:  
  469:  /**************************************************************
  470:  *	Function: 	Force the MC13192 into a soft reset condition
  471:  *	Parameters: none
  472:  *	Return:		status
  473:  **************************************************************/
  474:  int PLME_MC13192_soft_reset(void)
  475:  {

Function: PLME_MC13192_soft_reset
Source  : D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\Sources\simple_phy.c
Options : -Cs08 -DAXM_0308 -Env"GENPATH=*D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac;D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\target\include;*C:\Program Files\Metrowerks\CW08 V3.1" -Env"LIBPATH=*C:\Program Files\Metrowerks\CW08 V3.1" -Env"OBJPATH=D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\bin" -Env"TEXTPATH=D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\bin" -Lasm=%n.lst -Ms -ObjN="D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\smac_Data\GB60_(EVB_-_rev_A-B-C)\ObjectCode\simple_phy.c.o" -WmsgSd1106 -WmsgSd1420 -WmsgSd1801 -WmsgSd2705 -WmsgSd3303 -WmsgSd4200

  476:  	drv_write_spi_1(RESET, 0x00);
  0000 4f               CLRA  
  0001 5f               CLRX  
  0002 8c               CLRH  
  0003 cd0000           JSR   drv_write_spi_1
  477:  	return SUCCESS;
  0006 ae77             LDX   #119
  0008 8c               CLRH  
  478:  }
  0009 81               RTS   
  479:  
  480:  /**************************************************************
  481:  *	Function: 	Adjust the MC13192s crystal trim value
  482:  *	Parameters: trim
  483:  *	Return:		status
  484:  **************************************************************/
  485:  int PLME_MC13192_xtal_adjust(__int8__ trim_value)
  486:  {

Function: PLME_MC13192_xtal_adjust
Source  : D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\Sources\simple_phy.c
Options : -Cs08 -DAXM_0308 -Env"GENPATH=*D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac;D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\target\include;*C:\Program Files\Metrowerks\CW08 V3.1" -Env"LIBPATH=*C:\Program Files\Metrowerks\CW08 V3.1" -Env"OBJPATH=D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\bin" -Env"TEXTPATH=D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\bin" -Lasm=%n.lst -Ms -ObjN="D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\smac_Data\GB60_(EVB_-_rev_A-B-C)\ObjectCode\simple_phy.c.o" -WmsgSd1106 -WmsgSd1420 -WmsgSd1801 -WmsgSd2705 -WmsgSd3303 -WmsgSd4200

  0000 a7fb             AIS   #-5
  487:  	__uint16__ reg;
  488:  	__uint16__ reg_value;
  489:  	reg_value = (trim_value << 8);	/* Shift the req value into the higher half word */
  0002 95               TSX   
  0003 e701             STA   1,X
  0005 6f02             CLR   2,X
  490:  	reg = drv_read_spi_1(XTAL_ADJ_ADDR);	/* Read the current value of XTAL Reg */
  0007 a60a             LDA   #10
  0009 cd0000           JSR   drv_read_spi_1
  000c 9eff04           STHX  4,SP
  491:  	reg = ((reg & 0x00FF) | reg_value);
  000f 95               TSX   
  0010 e604             LDA   4,X
  0012 ea02             ORA   2,X
  492:  	drv_write_spi_1(XTAL_ADJ_ADDR, reg);
  0014 f7               STA   ,X
  0015 fe               LDX   ,X
  0016 9ee602           LDA   2,SP
  0019 87               PSHA  
  001a 8a               PULH  
  001b a60a             LDA   #10
  001d cd0000           JSR   drv_write_spi_1
  493:  	return SUCCESS;
  0020 ae77             LDX   #119
  0022 8c               CLRH  
  494:  }
  0023 a705             AIS   #5
  0025 81               RTS   
  495:  
  496:  /**************************************************************
  497:  *	Function: 	Adjust the MC13192s gain compensator
  498:  *	Parameters: gain compensation
  499:  *	Return:		status
  500:  **************************************************************/
  501:  int PLME_MC13192_FE_gain_adjust(__int8__ gain_value)
  502:  {

Function: PLME_MC13192_FE_gain_adjust
Source  : D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\Sources\simple_phy.c
Options : -Cs08 -DAXM_0308 -Env"GENPATH=*D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac;D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\target\include;*C:\Program Files\Metrowerks\CW08 V3.1" -Env"LIBPATH=*C:\Program Files\Metrowerks\CW08 V3.1" -Env"OBJPATH=D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\bin" -Env"TEXTPATH=D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\bin" -Lasm=%n.lst -Ms -ObjN="D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\smac_Data\GB60_(EVB_-_rev_A-B-C)\ObjectCode\simple_phy.c.o" -WmsgSd1106 -WmsgSd1420 -WmsgSd1801 -WmsgSd2705 -WmsgSd3303 -WmsgSd4200

  0000 87               PSHA  
  0001 a7fd             AIS   #-3
  503:  	__uint16__ reg;
  504:  	reg = drv_read_spi_1(FEGAIN_ADDR);	/* Read the current value of GAIN Reg */
  0003 a604             LDA   #4
  0005 cd0000           JSR   drv_read_spi_1
  0008 9eff02           STHX  2,SP
  505:  	reg = ((reg & 0xFF00) | gain_value);
  000b 95               TSX   
  000c e603             LDA   3,X
  000e 87               PSHA  
  000f 48               LSLA  
  0010 4f               CLRA  
  0011 a200             SBC   #0
  0013 ea01             ORA   1,X
  506:  	drv_write_spi_1(FEGAIN_ADDR, reg);
  0015 f7               STA   ,X
  0016 88               PULX  
  0017 87               PSHA  
  0018 8a               PULH  
  0019 a604             LDA   #4
  001b cd0000           JSR   drv_write_spi_1
  507:  	return SUCCESS;
  001e ae77             LDX   #119
  0020 8c               CLRH  
  508:  }
  0021 a704             AIS   #4
  0023 81               RTS   
  509:  
  510:  /**************************************************************
  511:  *	Function: 	Adjust the MC13192s Output power
  512:  *	Parameters: PA Output adjust
  513:  *	Return:		status
  514:  **************************************************************/
  515:  int PLME_MC13192_PA_output_adjust(__uint8__ requested_pa_value)
  516:  {

Function: PLME_MC13192_PA_output_adjust
Source  : D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\Sources\simple_phy.c
Options : -Cs08 -DAXM_0308 -Env"GENPATH=*D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac;D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\target\include;*C:\Program Files\Metrowerks\CW08 V3.1" -Env"LIBPATH=*C:\Program Files\Metrowerks\CW08 V3.1" -Env"OBJPATH=D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\bin" -Env"TEXTPATH=D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\bin" -Lasm=%n.lst -Ms -ObjN="D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\smac_Data\GB60_(EVB_-_rev_A-B-C)\ObjectCode\simple_phy.c.o" -WmsgSd1106 -WmsgSd1420 -WmsgSd1801 -WmsgSd2705 -WmsgSd3303 -WmsgSd4200

  0000 87               PSHA  
  0001 a7fd             AIS   #-3
  517:  	__uint16__ reg;
  518:  	__uint8__ pa_value;
  519:  	int status = SUCCESS;
  520:  	switch (requested_pa_value)
  0003 413208           CBEQA #50,LE ;abs = 000e
  0006 a164             CMP   #100
  0008 2609             BNE   L13 ;abs = 0013
  521:  	{
  522:  		case MAX_POWER:	/* Sets the PA drive level and PA gain to MAX. */
  523:  			pa_value = 0xFF;
  000a a6ff             LDA   #-1
  524:  			break;
  000c 200e             BRA   L1C ;abs = 001c
  000e          LE:     
  525:  		case MIN_POWER:
  526:  			pa_value = 0x00; //Sets the PA drive level and PA gain to min.
  000e 95               TSX   
  000f 6f02             CLR   2,X
  527:  			break;
  0011 200c             BRA   L1F ;abs = 001f
  0013          L13:    
  528:  		default:
  529:  			if (requested_pa_value > 15)
  0013 a10f             CMP   #15
  0015 2305             BLS   L1C ;abs = 001c
  530:  			{
  531:  				return OVERFLOW;
  0017 ae01             LDX   #1
  0019 8c               CLRH  
  001a 203a             BRA   L56 ;abs = 0056
  001c          L1C:    
  532:  			}
  533:  			else
  534:  			{
  535:  				pa_value = requested_pa_value;
  001c 95               TSX   
  001d e702             STA   2,X
  001f          L1F:    
  536:  			}
  537:  			break;
  538:  	}
  539:  	
  540:  	reg = drv_read_spi_1(PA_ADJUST_ADDR);	/* Read the current value of GAIN Reg */
  001f a612             LDA   #18
  0021 cd0000           JSR   drv_read_spi_1
  0024 9eff01           STHX  1,SP
  541:  	reg &= 0xFF00;
  0027 95               TSX   
  0028 6f01             CLR   1,X
  542:  	
  543:  	if ((requested_pa_value == MAX_POWER) || (requested_pa_value == MIN_POWER))
  002a e603             LDA   3,X
  002c 416404           CBEQA #100,L33 ;abs = 0033
  002f a132             CMP   #50
  0031 2607             BNE   L3A ;abs = 003a
  0033          L33:    
  544:  		reg |= pa_value;
  0033 e602             LDA   2,X
  0035 e701             STA   1,X
  0037 f6               LDA   ,X
  0038 2010             BRA   L4A ;abs = 004a
  003a          L3A:    
  545:  	else {
  546:  		reg |= ((pa_value << 4) | 0x000C);
  003a e602             LDA   2,X
  003c ae10             LDX   #16
  003e 42               MUL   
  003f aa0c             ORA   #12
  0041 9eea02           ORA   2,SP
  0044 9ee702           STA   2,SP
  0047 9f               TXA   
  0048 95               TSX   
  0049 fa               ORA   ,X
  004a          L4A:    
  004a f7               STA   ,X
  547:  	}
  548:  	drv_write_spi_1(PA_ADJUST_ADDR, reg);
  004b a612             LDA   #18
  004d 9efe01           LDHX  1,SP
  0050 cd0000           JSR   drv_write_spi_1
  549:  	return SUCCESS;
  0053 ae77             LDX   #119
  0055 8c               CLRH  
  0056          L56:    
  550:  }
  0056 a704             AIS   #4
  0058 81               RTS   
  551:  
  552:  /**************************************************************
  553:  *	Function: 	Returns the RFIC version number.
  554:  *	Parameters: none
  555:  *	Return:		version number
  556:  **************************************************************/
  557:  __uint8__ PLME_get_rfic_version(void)
  558:  {

Function: PLME_get_rfic_version
Source  : D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\Sources\simple_phy.c
Options : -Cs08 -DAXM_0308 -Env"GENPATH=*D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac;D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\target\include;*C:\Program Files\Metrowerks\CW08 V3.1" -Env"LIBPATH=*C:\Program Files\Metrowerks\CW08 V3.1" -Env"OBJPATH=D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\bin" -Env"TEXTPATH=D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\bin" -Lasm=%n.lst -Ms -ObjN="D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\smac_Data\GB60_(EVB_-_rev_A-B-C)\ObjectCode\simple_phy.c.o" -WmsgSd1106 -WmsgSd1420 -WmsgSd1801 -WmsgSd2705 -WmsgSd3303 -WmsgSd4200

  0000 a7fe             AIS   #-2
  559:  	__uint16__ reg;
  560:  	reg = drv_read_spi_1(VERSION_REG);	/* Read the version register version[12:10] */
  0002 a62c             LDA   #44
  0004 cd0000           JSR   drv_read_spi_1
  0007 9eff01           STHX  1,SP
  561:  	reg &= VERSION_MASK;			/* Shift to generate accurate number */
  000a 95               TSX   
  000b 6f01             CLR   1,X
  000d f6               LDA   ,X
  000e a41c             AND   #28
  0010 f7               STA   ,X
  562:  	
  563:  	reg = reg >> 10;				/* Hard coded to shift */
  0011 a60a             LDA   #10
  0013          L13:    
  0013 74               LSR   ,X
  0014 6601             ROR   1,X
  0016 4bfb             DBNZA L13 ;abs = 0013
  564:  	return (__uint8__) reg;
  0018 e601             LDA   1,X
  565:  }
  001a a702             AIS   #2
  001c 81               RTS   
  566:  
  567:  

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -