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

📄 mst.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:       mst_proto.h                                             *//* Author:     Carl Hartunge  :  carl.hartung@colorado.edu                *//*   Date: 11/12/04                                                       *//*                                                                        *//* MST protocol example                                                *//**************************************************************************//** @file mst.h * @brief MST protocol example * @author Carl Hartung * @date Created: 11/12/2004 */#include "mos.h"#include <stdarg.h>#include "printf.h"#include "net.h"#include "com.h"#ifndef _MST_H_#define _MST_H_//Ioctl macros#define SET_ADDR 1#define SET_DTB 2#define SET_DEST 3#define MST_CONTROL 1#define MST_DATA 2typedef struct {   uint8_t sender_dtb;   uint8_t last_src;   uint8_t src;   uint8_t dest;   uint8_t type;   uint8_t seqno;   uint8_t dtb;   uint8_t ttl;   uint8_t parent;} mst_packet_t;uint8_t mst_dtb();uint8_t mst_parent();void mst_proto_init();int8_t mst_proto_send(comBuf *pkt, va_list args);boolean mst_proto_recv(comBuf *pkt, uint8_t **footer, uint8_t port);int8_t mst_proto_ioctl(uint8_t request, va_list args);#endif

⌨️ 快捷键说明

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