📄 physical.h
字号:
/*
****************************************************************************
* 宁波中科集成电路设计中心 版权所有 Copyright 2005
* http:\\www.nbicc.com
*文件名: physical.h
*程序员: 夏鹏 xpsonny@nbicc.com
*主要内容 物理层相关
*如有问题或BUG,请登录www.wsn.net.cn 提问或用邮件和作者联系
****************************************************************************
*/
#ifndef _PHY_H
#define _PHY_H
#include "type.h"
//--------------------------供上层调用的函数------------------------
result_t PhysicalInit(void); // 初始化
result_t PhysicalTxPkt(void *packet, uint8_t length); // 发送数据包接口,由mac层调用
result_t PhysicalTxByteReady(void);// 发送下一字节,由radio层调用
//--------------------------由底层调用的函数------------------------
result_t PhysicalStartSymDetected(void); // 检测同步字,里面加入了对mac层的同步字检测调用
result_t PhysicalRxByteDone(char data); // 接受radio层的调用,包收完后会通知mac层
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -