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

📄 simple_mac.lst

📁 在飞思卡尔MC9S08GB60单片机环境下实现了无线监控
💻 LST
📖 第 1 页 / 共 2 页
字号:
  156:  	return status;
  003e 8c               CLRH  
  157:  }
  003f a705             AIS   #5
  0041 81               RTS   
  158:  
  159:  /**************************************************************
  160:  *	Function: 	Set the MC13192 receiver OFF
  161:  *	Parameters: None
  162:  *	Return:		status
  163:  **************************************************************/
  164:  int MLME_RX_disable_request(void)
  165:  {

Function: MLME_RX_disable_request
Source  : D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\Sources\simple_mac.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_mac.c.o" -WmsgSd1106 -WmsgSd1420 -WmsgSd1801 -WmsgSd2705 -WmsgSd3303 -WmsgSd4200

  166:  	PLME_disable_MC13192_timer1(); /* In case the timeout is being used, disable it also */
  0000 cd0000           JSR   PLME_disable_MC13192_timer1
  167:  	if (PLME_set_trx_state_request(IDLE_MODE) == SUCCESS) /* Attempt to disable the timer */
  0003 4f               CLRA  
  0004 cd0000           JSR   PLME_set_trx_state_request
  0007 650077           CPHX  #119
  000a 2703             BEQ   LF ;abs = 000f
  168:  	{
  169:  		return SUCCESS;
  170:  	}
  171:  	else
  172:  	{
  173:  		return ERROR;
  000c ae01             LDX   #1
  000e 8c               CLRH  
  000f          LF:     
  174:  	}
  175:  }
  000f 81               RTS   
  176:  
  177:  /**************************************************************
  178:  *	Function: 	Set MC13192 CLKo frequency
  179:  *	Parameters: frequency value enumeration (0-7)
  180:  *	Return:		status
  181:  *	Notes:
  182:  *	FREQ 	OUTPUT_FREQ
  183:  *	0 		16MHz (Recommended default)
  184:  *	1 		8MHz
  185:  *	2 		4MHz
  186:  *	3 		2MHz
  187:  *	4 		1MHz
  188:  *	5 		62.5kHz
  189:  *	6 		32.786kHz
  190:  *	7 		16.393kHz
  191:  **************************************************************/
  192:  int MLME_set_MC13192_clock_rate(__uint8__ freq)
  193:  {

Function: MLME_set_MC13192_clock_rate
Source  : D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\Sources\simple_mac.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_mac.c.o" -WmsgSd1106 -WmsgSd1420 -WmsgSd1801 -WmsgSd2705 -WmsgSd3303 -WmsgSd4200

  194:  	__uint8__ status;
  195:  	status = PLME_set_MC13192_clock_rate(freq);
  0000 cd0000           JSR   PLME_set_MC13192_clock_rate
  196:  	return status;
  0003 8c               CLRH  
  197:  }
  0004 81               RTS   
  198:  
  199:  /**************************************************************
  200:  *	Function: 	Set MC13192 timer frequency
  201:  *	Parameters: frequency value enumeration (0-7)
  202:  *	Return:		status
  203:  *	Notes:
  204:  *	FREQ 	OUTPUT_FREQ
  205:  *	0 		2MHz
  206:  *	1 		1MHz
  207:  *	2 		500kHz
  208:  *	3 		250kHz (Recommended default)
  209:  *	4 		125kHz
  210:  *	5 		62.5kHz
  211:  *	6 		31.25kHz
  212:  *	7 		15.625kHz
  213:  **************************************************************/
  214:  int MLME_set_MC13192_tmr_prescale (__uint8__ freq)
  215:  {

Function: MLME_set_MC13192_tmr_prescale
Source  : D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\Sources\simple_mac.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_mac.c.o" -WmsgSd1106 -WmsgSd1420 -WmsgSd1801 -WmsgSd2705 -WmsgSd3303 -WmsgSd4200

  216:  	__uint8__ status;
  217:  	status = PLME_set_MC13192_tmr_prescale (freq);
  0000 cd0000           JSR   PLME_set_MC13192_tmr_prescale
  218:  	return status;
  0003 8c               CLRH  
  219:  }
  0004 81               RTS   
  220:  
  221:  /**************************************************************
  222:  *	Function: 	Measure channel energy
  223:  *	Parameters: none
  224:  *	Return:		energy
  225:  *	Notes: 
  226:  *	Actual power returned is: -(power/2)
  227:  *	Global calibration required for accuracy (from MLME_MC13192_FE_gain_adjust).
  228:  **************************************************************/
  229:  __uint8__ MLME_energy_detect (void)
  230:  {

Function: MLME_energy_detect
Source  : D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\Sources\simple_mac.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_mac.c.o" -WmsgSd1106 -WmsgSd1420 -WmsgSd1801 -WmsgSd2705 -WmsgSd3303 -WmsgSd4200

  231:    __uint8__ power;
  232:    power = PLME_energy_detect();
  0000 cc0000           JMP   PLME_energy_detect
  233:    return power;
  234:  }
  235:  
  236:  /**************************************************************
  237:  *	Function: 	Report energy from last successful RX packet
  238:  *	Parameters: none
  239:  *	Return:		energy
  240:  *	Notes: 
  241:  *	Actual power returned is: -(power/2)
  242:  *	Global calibration required for accuracy (from MLME_MC13192_FE_gain_adjust).
  243:  **************************************************************/
  244:  __uint8__ MLME_link_quality (void)
  245:  {

Function: MLME_link_quality
Source  : D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\Sources\simple_mac.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_mac.c.o" -WmsgSd1106 -WmsgSd1420 -WmsgSd1801 -WmsgSd2705 -WmsgSd3303 -WmsgSd4200

  246:    __uint8__ power;
  247:    power = PLME_link_quality ();
  0000 cc0000           JMP   PLME_link_quality
  248:    return power;
  249:  }
  250:  
  251:  /**************************************************************
  252:  *	Function: 	Force the MC13192 into a soft reset condition
  253:  *	Parameters: none
  254:  *	Return:		status
  255:  **************************************************************/
  256:  int MLME_MC13192_soft_reset(void)
  257:  {

Function: MLME_MC13192_soft_reset
Source  : D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\Sources\simple_mac.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_mac.c.o" -WmsgSd1106 -WmsgSd1420 -WmsgSd1801 -WmsgSd2705 -WmsgSd3303 -WmsgSd4200

  258:  	/* Performs a soft reset of MC13192 via writing to register 0*/
  259:  	int status;
  260:  	status = PLME_MC13192_soft_reset();
  0000 cc0000           JMP   PLME_MC13192_soft_reset
  261:  	return status;
  262:  }
  263:  
  264:  /**************************************************************
  265:  *	Function: 	Adjust the MC13192s crystal trim value
  266:  *	Parameters: trim value (0-255)
  267:  *	Return:		status
  268:  **************************************************************/
  269:  int MLME_MC13192_xtal_adjust(__uint8__ req_value)
  270:  {

Function: MLME_MC13192_xtal_adjust
Source  : D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\Sources\simple_mac.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_mac.c.o" -WmsgSd1106 -WmsgSd1420 -WmsgSd1801 -WmsgSd2705 -WmsgSd3303 -WmsgSd4200

  271:    int status;
  272:    status = PLME_MC13192_xtal_adjust(req_value);
  0000 cc0000           JMP   PLME_MC13192_xtal_adjust
  273:    return status;
  274:  }
  275:  
  276:  /**************************************************************
  277:  *	Function: 	Adjust the MC13192s gain compensator
  278:  *	Parameters: gain compensation value (0 to 255. 128 is center point)
  279:  *	Return:		status
  280:  **************************************************************/
  281:  int MLME_MC13192_FE_gain_adjust(__uint8__ gain_value)
  282:  {

Function: MLME_MC13192_FE_gain_adjust
Source  : D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\Sources\simple_mac.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_mac.c.o" -WmsgSd1106 -WmsgSd1420 -WmsgSd1801 -WmsgSd2705 -WmsgSd3303 -WmsgSd4200

  283:    int status;
  284:    status = PLME_MC13192_FE_gain_adjust(gain_value);
  0000 cc0000           JMP   PLME_MC13192_FE_gain_adjust
  285:    return status;
  286:  }
  287:  
  288:  /**************************************************************
  289:  *	Function: 	Adjust the Output power of the transmitter
  290:  *	Parameters: Course Value
  291:  *	Return:		status
  292:  **************************************************************/
  293:  int MLME_MC13192_PA_output_adjust(__uint8__ pa_value)
  294:  {

Function: MLME_MC13192_PA_output_adjust
Source  : D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\Sources\simple_mac.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_mac.c.o" -WmsgSd1106 -WmsgSd1420 -WmsgSd1801 -WmsgSd2705 -WmsgSd3303 -WmsgSd4200

  295:    int status;
  296:    status = PLME_MC13192_PA_output_adjust(pa_value);
  0000 cc0000           JMP   PLME_MC13192_PA_output_adjust
  297:    return status;
  298:  }
  299:  
  300:  /**************************************************************
  301:  *	Function: 	Reads the version number of the IC
  302:  *	Parameters: none
  303:  *	Return:		The version number of the IC.
  304:  *
  305:  **************************************************************/
  306:  __uint8__ MLME_get_rfic_version(void)
  307:  {

Function: MLME_get_rfic_version
Source  : D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\Sources\simple_mac.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_mac.c.o" -WmsgSd1106 -WmsgSd1420 -WmsgSd1801 -WmsgSd2705 -WmsgSd3303 -WmsgSd4200

  308:    __uint8__ version;
  309:    version = PLME_get_rfic_version();
  0000 cc0000           JMP   PLME_get_rfic_version
  310:    return version;
  311:  }
  312:  
  313:  

⌨️ 快捷键说明

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