?? phy.h
字號:
/************************************************************************************
* Header file physical layer
*
* Author(s): Thomas O. Jensen
*
* (c) Copyright 2004, Freescale, Inc. All rights reserved.
*
* Freescale Confidential Proprietary
* Digianswer Confidential
*
* 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.
************************************************************************************/
#ifndef _PHY_H_
#define _PHY_H_
/************************************************************************************
*************************************************************************************
* Includes
*************************************************************************************
************************************************************************************/
//#include <stdio.h>
// Include target dependent information
#include "DigiType.h"
#include "MacPhy.h"
#include "AbelReg.h"
#ifdef PLATFORM_WINDOWS
#include "client.h"
#else
#include "Phy_Spi.h"
#endif
/************************************************************************************
*************************************************************************************
* Public macros
*************************************************************************************
************************************************************************************/
/************************************************************************************
*************************************************************************************
* Private prototypes
*************************************************************************************
************************************************************************************/
typedef enum ePhyEnums_t phyTxRxState_t;
/************************************************************************************
*************************************************************************************
* Public prototypes
*************************************************************************************
************************************************************************************/
void IrqStreamingRx(void);
void IrqStreamingRxFirst(void);
void IrqStreamingTx(void);
void DoFastEdEof(void);
void DoFastCcaEof(void);
void InitRxStream(void);
void IsrTx2prime(void);
void SetupPendingProtected(void);
void SetupImmediateRx(void);
void SetupPendingCca(void);
void SetupPendingEd(void);
void SetupPendingNop(void);
void DoFastTxEof(void);
void DoFastRxEofCrcValid(void);
void DoFastRxEofCrcInvalid(void);
void RxTimeout(void);
void ConvertLinkQuality(void);
uint8_t GetEnergyLevel(void);
/************************************************************************************
*************************************************************************************
* Private type definitions
*************************************************************************************
************************************************************************************/
/************************************************************************************
*************************************************************************************
* Private macros
*************************************************************************************
************************************************************************************/
#define gAbelWarmupTimeSym_c (9)
#define gPhyMinRestartRxTimeSym_c (12)
/************************************************************************************
*************************************************************************************
* Public memory declarations
*************************************************************************************
************************************************************************************/
extern uint8_t *gpPhyPacketHead;
extern int8_t gTxRemainingLength;
extern void (*mpfPendingSetup)(void);
extern uint16_t gIsrMask;
extern phyTxRxState_t mPhyTxRxState;
extern void (*gpTimer2Isr)(void);
extern uint8_t gIsrEntryCounter;
/************************************************************************************
*************************************************************************************
* Private memory declarations
*************************************************************************************
************************************************************************************/
/************************************************************************************
*************************************************************************************
* Public functions
*************************************************************************************
************************************************************************************/
/************************************************************************************
*************************************************************************************
* Private functions
*************************************************************************************
************************************************************************************/
/***********************************************************************************/
#endif
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -