📄 pc_radio.h
字号:
/************************************************************************************
* PC Radio Header File
*
* Author(s): $B03847
*
* (c) Copyright 2008, Freescale, Inc. All rights reserved.
*
* No part of this document must be reproduced in any form - including copied,
* transcribed, printed or by any electronic means - without specific written
* permission from Freescale.
*
* Last Inspected: 05/16/2008
* Last Tested:
************************************************************************************/
#ifndef __PC_RADIO_H__
#define __PC_RADIO_H__
#include "Common_Defs.h"
#include "../Configure/app_config.h"
#if OTAP_ENABLED == TRUE
#include "../Otap/Otap.h"
#endif
#define ACCELEROMETER_RX_BUFFER_SIZE (18)
#if OTAP_ENABLED == TRUE
#define RX_SIZE OTAP_RX_SIZE
#else
#define RX_SIZE (smac_pdu_size(ACCELEROMETER_RX_BUFFER_SIZE))
#endif
#define ACCELEROMETER_TX_BUFFER_SIZE (17)
#define TX_SIZE (smac_pdu_size(ACCELEROMETER_TX_BUFFER_SIZE))
#define LOW_POWER_WHILE() do{}while(FALSE);
extern uint8_t gua8sciString[6];
extern uint8_t gu8SCIData[1];
extern message_t TX_msg;
extern message_t RX_msg;
extern int8_t gi8PCRadioState;
extern bool_t gbDataIndicationFlag;
extern uint8_t gu8Channel;
/*******************************************************************************
* This is the main thread of execution when no button is pressed
* on reset, the PC_Radio application. Read the SCI value from the Triax
* Software from the PC and response to the PC with the Update information of
* the X axis, Y axis and Z axis.
*
* Interface assumptions: None
*
* Routine limitations.
*
* Return value: void.
*
* Effects on global data:
*
* Source of algorithm used:
*
* Revison history:
* date Author Comments
* ------ ------ --------
*
*******************************************************************************/
extern void PC_Radio_App(void);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -