pc_radio.h

来自「基于MMA7260QR2的跌落检查程序」· C头文件 代码 · 共 71 行

H
71
字号
/************************************************************************************
* 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 + =
减小字号Ctrl + -
显示快捷键?