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

📄 flood.h

📁 MANTIS是由科罗拉多大学开发的传感器网络嵌入式操作系统。 这是mantis的0.9.5版本的源码。
💻 H
字号:
//  This file is part of MANTIS OS, Operating System//  See http://mantis.cs.colorado.edu/////  Copyright (C) 2003,2004,2005 University of Colorado, Boulder////  This program is free software; you can redistribute it and/or//  modify it under the terms of the mos license (see file LICENSE)/**************************************************************************//* File:       flood.h                                                    *//* Author:     Jeff Rose   :  rosejn@colorado.edu                         *//*   Date: 04/15/04                                                       *//*                                                                        *//* Broadcast flooding implemented for the mos net layer.                  *//**************************************************************************//** @file flood.h * @brief A broadcast flooding implementation for the mos net layer. * @author Jeff Rose * @date 04/15/2004 */#ifndef _FLOOD_H_#define _FLOOD_H_#include "mos.h"#include "net.h"#include "com.h"#include "printf.h"#include <stdarg.h>#define FLOOD_PROTO_ID 1typedef struct flood_pkt_t{   uint16_t src;   uint16_t dest;   uint8_t seq_num;} flood_pkt;/** @brief Setup the flooding protocol and register with the net layer. */void flood_init();/** @brief Send a packet using the flooding protocol.  * @param pkt Packet to send * @param args Arguements*/int8_t flood_send(comBuf * pkt, va_list args);/** @brief Receive a packet that came using the flooding protocol.  * * NOTE: Must subtract the sizeof route header from pkt->size so *       the net layer can determine whether any more data is available. * @param pkt Packet received * @param footer Location * @return FALSE if failure, else return TRUE */boolean flood_recv(comBuf *pkt, uint8_t **footer, uint8_t port);/* Set some protocol specific parameters. *//** @brief Set some protocol specific parameters.  * @param request IO request * @param args Arguements */int8_t flood_ioctl(uint8_t request, va_list args);#endif

⌨️ 快捷键说明

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