mst.h
来自「MANTIS是由科罗拉多大学开发的传感器网络嵌入式操作系统。 这是mantis」· C头文件 代码 · 共 65 行
H
65 行
// 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 + =
减小字号Ctrl + -
显示快捷键?