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

📄 phy.h

📁 This network protcol stack,it is very strong and powerful!
💻 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

⌨️ 快捷键说明

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