repo_name stringlengths 6 97 | path stringlengths 3 341 | text stringlengths 8 1.02M |
|---|---|---|
tinyos-io/tinyos-3.x-contrib | intelmote2/support/sdk/c/compress/huffmanUncompress.h | #include <inttypes.h>
void Huffman_Uncompress( uint8_t *in, uint8_t *out, uint16_t insize, uint16_t outsize );
|
tinyos-io/tinyos-3.x-contrib | tinybt/tos/lib/bluetooth/btpackets.h | <gh_stars>0
/**
*
* $Rev:: 112 $: Revision of last commit
* $Author: sengg $: Author of last commit
* $Date: 2011/12/09 19:48:58 $: Date of last commit
*
**/
#ifndef __BTPACKET_H__
#define __BTPACKET_H__
// Remember that this packet size must be "large enough" to contain both
// data AND what ever hea... |
tinyos-io/tinyos-3.x-contrib | wustl/upma/lib/macs/scp-wustl/ScpConstants.h | /*
* Copyright (c) 2007 Washington University in St. Louis
* and the University of Southern California.
* All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose, without fee, and without written agreement is
* hereby granted, provided that t... |
tinyos-io/tinyos-3.x-contrib | tinybt/tos/platforms/btnode3/Latch.h | <filename>tinybt/tos/platforms/btnode3/Latch.h
#ifndef LATCH_H
#define LATCH_H
#define LATCH_PIN_LED0 0
#define LATCH_PIN_LED1 1
#define LATCH_PIN_LED2 2
#define LATCH_PIN_LED3 3
#define LATCH_PIN_CCPOWER 4
#define LATCH_PIN_IOPOWER 5
#define LATCH_PIN_BTPOWER 6
#define LATCH_PIN_BTRESET 7
#endi... |
tinyos-io/tinyos-3.x-contrib | berkeley/quanto/tools/quanto/labjack/ue9.c | <gh_stars>1-10
//Author: LabJack
//Aug. 8, 2008
//Example UE9 helper functions. Function descriptions are in ue9.h.
#include "ue9.h"
void normalChecksum(uint8 *b, int n)
{
b[0]=normalChecksum8(b, n);
}
void extendedChecksum(uint8 *b, int n)
{
uint16 a;
a = extendedChecksum16(b, n);
b[4] = (uint8)(a & 0xff... |
tinyos-io/tinyos-3.x-contrib | shimmer/swtest/SerialTime/serial_recv.c | /*
* Read usb-dongle attached sd card
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <fcntl.h>
#include <termios.h>
#include <inttypes.h>
#include <sys/ioctl.h>
#include <linux/types.h>
void bailout(char *msg)
{
perror(msg);
fprintf(stderr,"er... |
tinyos-io/tinyos-3.x-contrib | diku/common/tos/system/tos.h |
// This file is a copy of the tinyos tos.h header. It adds a
// combine function for booleans
#if !defined(__CYGWIN__)
#if defined(__MSP430__)
#include <sys/inttypes.h>
#else
#include <inttypes.h>
#endif
#else //cygwin
#include <unistd.h>
#include <stdio.h>
#include <sys/types.h>
#endif
#include <string.h>
#include ... |
tinyos-io/tinyos-3.x-contrib | iowa/T2.tsync/IAtsync/OTime.h | #ifndef TS_OTIME
/**
* NestArch definition of TimeSync interface structures
*/
typedef struct timeSync_t {
uint16_t ClockH; // jiffies for this clock are 1/(4 Mhz) or 0.25 microsec
// so we use 48-bit clock (about 2.2 years of jiffies)
uint32_t ClockL;
} timeSync_t;
typedef timeSync_t *... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/runtime/tinyos/rt_structs.h | #ifndef RT_STRUCTS_H_INCLUDED
#define RT_STRUCTS_H_INCLUDED
#include "nodes.h"
typedef struct rt_data
{
uint16_t sessionID;
uint16_t weight;
uint8_t minstate;
} rt_data;
typedef struct GenericNode
{
rt_data _pdata;
} GenericNode;
#define SRC_QUEUE_SIZE 3
#define RTCLOCKSEC (5L)
#define RTCLOCKINTERVAL (RT... |
tinyos-io/tinyos-3.x-contrib | diku/common/lib/simplemac/cc2420.h | #ifndef CC2420_H
#define CC2420_H
#include <packet.h>
enum cc2420_defaults {
CC2420_DEFAULT_CHANNEL = 17, // IEEE channel 11-26
CC2420_DEFAULT_POWER = 100, // Power in procent
};
enum cc2420_error_codes {
// FAIL = 0,
// SUCCESS = 1,
CC2420_ERROR_CCA = 0x02,
CC2420_ERROR_TX = 0x03,
CC2420_ERROR_RADIO_OFF =... |
tinyos-io/tinyos-3.x-contrib | eon/apps/null_test/impl/tinyos/typechecks.h | #ifndef TYPECHECKS_H_INCLUDED
#define TYPECHECKS_H_INCLUDED
bool IsEven(int val)
{
return ((val % 2) == 0);
}
bool IsOdd(int val)
{
return !IsEven(val);
}
#endif // TYPECHECKS_H_INCLUDED
|
tinyos-io/tinyos-3.x-contrib | uob/tossdr/ucla/gnuradio-802.15.4-demodulation/src/lib/ucla_manchester_ff.h | /* -*- c++ -*- */
/*
* Copyright 2004 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your opti... |
tinyos-io/tinyos-3.x-contrib | berkeley/acme/tools/ACReport.h | /*
* "Copyright (c) 2008 The Regents of the University of California.
* All rights reserved."
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose, without fee, and without written agreement is
* hereby granted, provided that the above copyright notice, the fo... |
tinyos-io/tinyos-3.x-contrib | eon/eon/doc/mTypes.h | #ifndef _MTYPES_H_
#define _MTYPES_H_
/*
StargateTestAudio 1
StargateTestVideo 2
StargateTestImage 3
*/
bool
StargateTestAudio (uint8_t value)
{
return value == 1;
}
bool
StargateTestVideo (uint8_t value)
{
return value == 2;
}
bool
TestVideo (uint8_t value)
{
return FALSE;
}
bool
TestAudio (uint8_t value)... |
tinyos-io/tinyos-3.x-contrib | wsu/telosw/ccxx00/lpl/boxmac/Boxmac.h | <filename>wsu/telosw/ccxx00/lpl/boxmac/Boxmac.h
#ifndef BOXMAC_H
#define BOXMAC_H
/**
* This is what we divide the original wake-up transmission by. The more
* divisions, the more efficient your wake-up transmission with less time
* on-air, but your receptions will become less reliable.
* See the readme.txt file... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/runtime/stargate/sfaccess/teloscomm.c | <reponame>tinyos-io/tinyos-3.x-contrib
#include "teloscomm.h"
#include <pthread.h>
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
const char *dbglevel[] = {"TELOSSOURCE","TINYRELY","APP"};
void hton_int16(uint8_t *buf, int16_t data)
{
buf[0] = data & 0x00ff;
buf[1] = (data >> 8) & 0x00ff;
}
void hton_int32... |
tinyos-io/tinyos-3.x-contrib | diku/common/tools/compression/buffer_pc.c | <reponame>tinyos-io/tinyos-3.x-contrib
#include <stdio.h>
#include "buffer.h"
void handle_full_buffer(uint8_t *buffer, uint16_t nobytes)
{
fwrite(buffer, nobytes, 1, stdout);
}
|
tinyos-io/tinyos-3.x-contrib | wsu/tools/simx/simx/test/Octopus/motes/OctopusConfig.h | <filename>wsu/tools/simx/simx/test/Octopus/motes/OctopusConfig.h
// $Id: OctopusConfig.h,v 1.4 2008/03/13 14:16:37 a_barbirato Exp $
/* tab:4
* Copyright (c) 2007 University College Dublin.
* All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for... |
tinyos-io/tinyos-3.x-contrib | rincon/tos/chips/msp430/dac12/Msp430Dac12.h |
/**
* @author <NAME>
*/
#ifndef MSP430DAC12_H
#define MSP430DAC12_H
/**
* DAC12 Control Register
*/
typedef struct {
/** MSB is reserved */
unsigned int reserved : 1;
/** Reference Voltage. 0 = Vref+; 1 = Vref+; 2 = VeRef+; 3 = VeRef+ */
unsigned int dac12srefx : 2;
/** Resolution. 0 = 12-bit ... |
tinyos-io/tinyos-3.x-contrib | ethz/snpk/apps/DSNBoot/msp430usart.h | <reponame>tinyos-io/tinyos-3.x-contrib
// $Id: msp430usart.h,v 1.1 2007/02/23 14:51:41 rlim Exp $
/*
* "Copyright (c) 2000-2005 The Regents of the University of California.
* All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose, witho... |
tinyos-io/tinyos-3.x-contrib | rincon/tos/platforms/blaze2/hardware.h | <reponame>tinyos-io/tinyos-3.x-contrib<gh_stars>1-10
#ifndef _H_hardware_h
#define _H_hardware_h
#include "msp430hardware.h"
//#include "MSP430ADC12.h"
//#include "CC2420Const.h"
//#include "AM.h"
// P1
TOSH_ASSIGN_PIN(TILT_SENSE, 1, 7);
TOSH_ASSIGN_PIN(EXT_INT4, 1, 6);
TOSH_ASSIGN_PIN(EXT_VCC_SENSE, 1, 5);
TOSH_ASSI... |
tinyos-io/tinyos-3.x-contrib | antlab-polimi/dpcm_C/dpcm.h |
int dpcm_encode(uint8_t* input,uint16_t width,uint16_t height,uint8_t qual,char * filename);
int dpcm_decode(char * filename,uint8_t frame_num);
|
tinyos-io/tinyos-3.x-contrib | ahhr-ipsn09/tos/utils/NxVector.h | /*
* IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. By
* downloading, copying, installing or using the software you agree to
* this license. If you do not agree to this license, do not download,
* install, copy or use the software.
*
* Copyright (c) 2006-2008 Vrije Universiteit Amsterda... |
tinyos-io/tinyos-3.x-contrib | eon/tos/lib/tossim/sim_radio.h | /*
* "Copyright (c) 2005 Stanford University. All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and
* its documentation for any purpose, without fee, and without written
* agreement is hereby granted, provided that the above copyright
* notice, the following two paragraphs and... |
tinyos-io/tinyos-3.x-contrib | ucd/Octopus/motes/build/aquisgrain/app.c | #define nx_struct struct
#define nx_union union
#define dbg(mode, format, ...) ((void)0)
#define dbg_clear(mode, format, ...) ((void)0)
#define dbg_active(mode) 0
# 65 "/usr/lib/gcc/avr/3.4.3/../../../../avr/include/stdint.h"
typedef signed char int8_t;
typedef unsigned char uint8_t;
# 104 "/usr/lib/gcc/avr/3.4.3/.... |
tinyos-io/tinyos-3.x-contrib | tinymulle/tos/platforms/mulle/softwarei2c/MulleI2C.h | /**
* @author <NAME>
*/
#ifndef __MULLEI2C_H__
#define __MULLEI2C_H__
#define UQ_MULLE_SOFTI2CMASTER "SoftI2CMasterC.SoftI2CPacket"
#endif // __MULLEI2C_H__
|
tinyos-io/tinyos-3.x-contrib | tcd/powertossim-z/tinyos_files/tinyos-2.0.2/tos/lib/tossim/sim_noise.c | /*
* "Copyright (c) 2006 Stanford University. All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and
* its documentation for any purpose, without fee, and without written
* agreement is hereby granted, provided that the above copyright
* notice, the following two paragraphs and... |
tinyos-io/tinyos-3.x-contrib | diku/common/tools/daq/kernel-driver/pci.c | <reponame>tinyos-io/tinyos-3.x-contrib
/* PCI series device driver.
Author: <NAME>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later vers... |
tinyos-io/tinyos-3.x-contrib | timetossim/tinyos-2.x/tools/cgram/examples/check_time3b.c | typedef struct Event_Data{
sim_event_t * tevent;
struct Event_Data * next;
}Event_Data;
typedef struct Event_List{
struct Event_Data *first;
}Event_List;
sim_time_t nodeTime;
bool noNode;
inline int adjust_queue(long long increase){
bool a = 1;
bool b = 0;
int prior=0;
Event_List list;
Event_Data *curr;
Event_Da... |
tinyos-io/tinyos-3.x-contrib | ecosensory/tos/sensorboards/a2d12ch/a2d12ch.h | <reponame>tinyos-io/tinyos-3.x-contrib<gh_stars>1-10
/* Copyright (c) 2007, Ecosensory Austin Texas All rights reserved.
* This code funded by TX State San Marcos University. BSD license full text at:
* http://tinyos.cvs.sourceforge.net/tinyos/tinyos-2.x-contrib/ecosensory/license.txt
* by <NAME> <<EMAIL>>
* Re... |
tinyos-io/tinyos-3.x-contrib | diku/mcs51/tos/chips/cip51/uart/serial.h | <filename>diku/mcs51/tos/chips/cip51/uart/serial.h
/*
* Copyright (c) 2008 Polaric
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* - Redistributions of source code must retain the above... |
tinyos-io/tinyos-3.x-contrib | usc/bcp/src/Bcp.h | #ifndef BCP_H
#define BCP_H
#include "AM.h"
#include <message.h>
/**
* PKT_NORMAL: Indicates that a BCP packet contains source-originated data.
* PKT_NULL: Indicates that a BCP packet was dropped, and a subsequent virtual
* packet was eventually forwarded.
*/
enum{
PKT_NORMAL = 1,
PKT_NULL = 2
};
... |
tinyos-io/tinyos-3.x-contrib | uob/apps/UDPServices/MoteIdDb.h | <filename>uob/apps/UDPServices/MoteIdDb.h
#ifndef _MOTEIDDB_H_
#define _MOTEIDDB_H_
enum {
MOTE_NO = 25, // modify, when adding new motes in the array
ID_SIZE = 6, // 48 bits
USB_ID_SIZE = 9, // 8 chars + \0
};
struct id_addr_usbid {
uint8_t id[ID_SIZE];
ieee154_saddr_t addr;
char usbid[USB_ID_S... |
tinyos-io/tinyos-3.x-contrib | tcd/powertossim-z/tinyos_files/tinyos-2.0.2/tos/chips/atm128/timer/Atm128Timer.h | // $Id: Atm128Timer.h,v 1.1 2014/11/26 19:31:34 carbajor Exp $
/*
* Copyright (c) 2004-2005 Crossbow Technology, Inc. All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose, without fee, and without written agreement is
* hereby granted, pro... |
tinyos-io/tinyos-3.x-contrib | tcd/powertossim-z/tinyos_files/tinyos-2.0.2/tos/chips/atm128/i2c/Atm128I2C.h | // $Id: Atm128I2C.h,v 1.1 2014/11/26 19:31:33 carbajor Exp $
/*
* Copyright (c) 2004-2005 Crossbow Technology, Inc. All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose, without fee, and without written agreement is
* hereby granted, provi... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/runtime/tinynode_2/DS2751.h | <gh_stars>1-10
//This code is a modified version of code from the Heliomote project
#ifndef DS2751_H_
#define DS2751_H_
#endif
|
tinyos-io/tinyos-3.x-contrib | intelmote2/tools/platforms/intelmote2/jflashmm/src/Global_Variables.h | /******************************************************************************
**
** COPYRIGHT (C) 2000, 2001, 2002 Intel Corporation.
**
** The information in this file is furnished for informational use
** only, is subject to change without notice, and should not be construed as
** a commitment by Intel ... |
tinyos-io/tinyos-3.x-contrib | eon/apps/eserver/impl/stargate/mTypes.h | <gh_stars>1-10
#ifndef _MTYPES_H_
#define _MTYPES_H_
int suffixT(char *val, char *suffix) {
int len = strlen(val);
int s_len = strlen(suffix);
int i;
for (i=0;i<s_len;i++) {
if (val[len-i]!=suffix[s_len-i])
return 0;
}
return 1;
}
bool
TestVideo (char *value)
{
if(suffixT(value,".mp4")||suff... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/runtime/telos/fluxconst.h | <gh_stars>1-10
#ifndef FLUXCONST_H_INCLUDED
#define FLUXCONST_H_INCLUDED
//define error codes
#define ERR_OK 0
#define ERR_NOMEMORY 1
#define ERR_FREEMEM 2
#define ERR_QUEUE 3
#define ERR_USR 10
#endif
|
tinyos-io/tinyos-3.x-contrib | cedt/tos/chips/cc1000/sim/CC1000Const.h | <gh_stars>0
// $Id: CC1000Const.h,v 1.4 2007/09/05 06:11:10 venkatesh2012 Exp $
/* -*- Mode: C; c-basic-indent: 2; indent-tabs-mode: nil -*- */
/* tab:4
* IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. By
* downloading, copying, installing or using the software you agree to
* this li... |
tinyos-io/tinyos-3.x-contrib | diku/freescale/tos/platforms/dig528/include/string.h | <reponame>tinyos-io/tinyos-3.x-contrib
/** Dummy header to avoid inclusion of the standard library header **/
#ifndef _STDIO_H_
#define _STDIO_H_
#endif
|
tinyos-io/tinyos-3.x-contrib | wsu/tools/simx/simx/python/simx/test/probe/ProbeTest/ProbeTest.h | #ifndef PROBE_TEST_H
#define PROBE_TEST_H
#define NREADINGS 10
typedef nx_struct nx_varied_struct {
nx_int8_t int8;
nx_uint8_t uint8;
nx_int16_t int16;
nx_uint16_t uint16;
nx_int32_t int32;
nx_uint32_t uint32;
} nx_varied_struct_t;
typedef nx_union nx_varied_union {
nx_int8_t int8;
nx_uint8_t uint8;
... |
tinyos-io/tinyos-3.x-contrib | wsu/telosw/ccxx00/spi/InterruptState.h | <filename>wsu/telosw/ccxx00/spi/InterruptState.h
/*
* Copyright (c) 2005-2006 Rincon Research Corporation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* - Redistributions of source cod... |
tinyos-io/tinyos-3.x-contrib | ecosensory/tos/platforms/ecosens1/hardware.h | <reponame>tinyos-io/tinyos-3.x-contrib<filename>ecosensory/tos/platforms/ecosens1/hardware.h
#ifndef _H_hardware_h
#define _H_hardware_h
#include "msp430hardware.h"
//#include "MSP430ADC12.h"
//#include "CC2420Const.h"
//#include "AM.h"
// LEDs
TOSH_ASSIGN_PIN(RED_LED, 5, 4);
TOSH_ASSIGN_PIN(GREEN_LED, 5, 5);
TOSH_AS... |
tinyos-io/tinyos-3.x-contrib | eon/apps/server-e/impl/stargate/mTypes.h | #ifndef _MTYPES_H_
#define _MTYPES_H_
bool
TestVideo (uint8_t value)
{
return (value == 4);
}
bool
TestAudio (uint8_t value)
{
return (value == 3);
}
bool
TestImage (uint8_t value)
{
return (value == 2);
}
bool
TestText (uint8_t value)
{
return (value == 1);
}
#endif // _MTYPES_H_
|
tinyos-io/tinyos-3.x-contrib | eon/eon/src/runtime/tinyos2/stats.h | #ifndef STATS_H_INCLUDED
#define STATS_H_INCLUDED
bool wakeWaiting;
uint32_t wakeStart;
#endif
|
tinyos-io/tinyos-3.x-contrib | tcd/powertossim-z/tinyos_files/tinyos-2.0.2/tos/lib/tossim/sim_binary.h | /*
* "Copyright (c) 2005 Stanford University. All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and
* its documentation for any purpose, without fee, and without written
* agreement is hereby granted, provided that the above copyright
* notice, the following two paragraphs and... |
tinyos-io/tinyos-3.x-contrib | intelmote2/tools/platforms/intelmote2/jflashmm/src/jtag.h | <reponame>tinyos-io/tinyos-3.x-contrib
/******************************************************************************
**
** COPYRIGHT (C) 2000, 2001, 2002 Intel Corporation.
**
** The information in this file is furnished for informational use
** only, is subject to change without notice, and should not be co... |
tinyos-io/tinyos-3.x-contrib | tcd/powertossim-z/tinyos_files/tinyos-2.0.2/tos/chips/atm128/Atm128Uart.h | // $Id: Atm128Uart.h,v 1.1 2014/11/26 19:31:33 carbajor Exp $
/*
* Copyright (c) 2004-2005 Crossbow Technology, Inc. All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose, without fee, and without written agreement is
* hereby granted, prov... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/util/collect/sfsource.h | #ifndef SFSOURCE_H
#define SFSOURCE_H
int open_sf_source(const char *host, int port);
/* Returns: file descriptor for serial forwarder at host:port, or
-1 for failure
(see init_sf_source for description of platform handling)
*/
int init_sf_source(int fd);
/* Effects: Checks that fd is following the serial ... |
tinyos-io/tinyos-3.x-contrib | gems/wmtp/tinyos/tos/lib/net/wmtp/WmtpMsgs.h | /*
* WMTP - Wireless Modular Transport Protocol
*
* Copyright (c) 2008 <NAME> and IT - Instituto de Telecomunicacoes
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* ver... |
tinyos-io/tinyos-3.x-contrib | diku/freescale/tos/chips/mc13192/mc13192Msg.h | #ifndef MC13192_MSG_H
#define MC13192_MSG_H
#include "AM.h"
typedef nx_struct MC13192Header {
nx_am_addr_t dest;
nx_am_addr_t source;
nx_uint8_t length;
nx_am_group_t group;
nx_am_id_t type;
} mc13192_header_t;
typedef nx_struct MC13192Footer {
nx_uint8_t foo; // We always send an uneven number of bytes
... |
tinyos-io/tinyos-3.x-contrib | ethz/snpk/tos/lib/cc2420PacketLogger/packetlogger.h | <reponame>tinyos-io/tinyos-3.x-contrib<filename>ethz/snpk/tos/lib/cc2420PacketLogger/packetlogger.h
#ifndef PACKETLOGGER_H
#define PACKETLOGGER_H
typedef nx_struct {
nx_uint16_t logId;
nx_uint8_t type;
nx_uint32_t time;
nx_uint16_t count;
nx_am_addr_t source;
nx_uint8_t dsn;
nx_bool ack;
} packet_logger... |
tinyos-io/tinyos-3.x-contrib | tub/apps/PacketSniffer_802_15_4/wiresharkPlugins/t2sf/packet-t2sf.c | <gh_stars>0
/* packet-t2sf.c
* Routines for TinyOs2 Serial Active Message
* Copyright 2007, <NAME> <<EMAIL>>
*
* $Id: packet-t2sf.c,v 1.2 2008/05/13 00:10:30 vlahan Exp $
*
* Wireshark - Network traffic analyzer
* By <NAME> <<EMAIL>>
* Copyright 1998 <NAME>
*
* This program is free software; you can redistrib... |
tinyos-io/tinyos-3.x-contrib | berkeley/hotmac/tos/chips/cc2420_hotmac/hotmac.h | <gh_stars>1-10
/*
* "Copyright (c) 2010 The Regents of the University of California.
* All rights reserved."
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose, without fee, and without written agreement is
* hereby granted, provided that the above copyright... |
tinyos-io/tinyos-3.x-contrib | ethz/nodule/tos/platforms/atevk1101/hardware.h | /* $Id: hardware.h,v 1.2 2008/02/17 16:36:27 yuecelm Exp $ */
/* author: <NAME> <<EMAIL>> */
#ifndef HARDWARE_H
#define HARDWARE_H
#include "at32uc3b.h"
/* No operation */
inline void nop()
{
asm volatile ("nop");
}
/* Enables interrupts. */
inline void __nesc_enable_interrupt()
{
avr32_clr_global_interrupt_ma... |
tinyos-io/tinyos-3.x-contrib | ethz/tinynode184/tos/chips/msp430/timer/Msp430DcoSpec.h | <filename>ethz/tinynode184/tos/chips/msp430/timer/Msp430DcoSpec.h
/* -*- mode:c++; indent-tabs-mode: nil -*-
* Copyright (c) 2007, Technische Universitaet Berlin
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following c... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/runtime/stargatehelper/DS2751.h | <reponame>tinyos-io/tinyos-3.x-contrib
//This code is a modified version of code from the Heliomote project
#ifndef DS2751_H_
#define DS2751_H_
unsigned char
ds2751_init (void)
{
unsigned char presence;
//TOSH_SEL_ADC2_IOFUNC ();
TOSH_MAKE_ADC5_OUTPUT ();
//TOSH_SEL_GIO1_IOFUNC ();
//TOSH_MAKE_GIO1_OUTPUT... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/runtime/msp430/timerdefs.h | <filename>eon/eon/src/runtime/msp430/timerdefs.h
#ifndef TIMERDEFS
#define TIMERDEFS
//defines the timer interval for the msp430s SysTime module.
enum
{
TIMERRES = (uint32_t)32768L
};
#endif
|
tinyos-io/tinyos-3.x-contrib | tcd/powertossim-z/tinyos_files/tinyos-2.0.2/tos/chips/atm128/spi/Atm128Spi.h | // $Id: Atm128Spi.h,v 1.1 2014/11/26 19:31:34 carbajor Exp $
/*
* Copyright (c) 2004-2005 Crossbow Technology, Inc. All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose, without fee, and without written agreement is
* hereby granted, provi... |
tinyos-io/tinyos-3.x-contrib | eon/apps/blink/impl/tinyos/uservariables.h | #ifndef USERVARIABLES_H_
#define USERVARIABLES_H_
#endif
|
tinyos-io/tinyos-3.x-contrib | intelmote2/support/sdk/c/camera_cmd/camera_cmd_test.c | <filename>intelmote2/support/sdk/c/camera_cmd/camera_cmd_test.c<gh_stars>1-10
#include <time.h>
#include "camera_cmd.h"
#include <stdbool.h>
void callback(int percentage, char* filename, bool updated){
//((part_idx*100)/max_row)
printf("\b\b\b\b\b%4d%%",percentage);
fflush(stdout);
}
int main(int argc, char **a... |
tinyos-io/tinyos-3.x-contrib | csau/misc/tos/lib/tossim/sim/CC2420.h | <reponame>tinyos-io/tinyos-3.x-contrib
#ifndef __CC2420_H__
#define __CC2420_H__
#include "Ieee154.h"
#ifndef CC2420_DEF_CHANNEL
#define CC2420_DEF_CHANNEL 26
#endif
/**
* Ideally, your receive history size should be equal to the number of
* RF neighbors your node will have
*/
#ifndef RECEIVE_HISTORY_SIZE
#define... |
tinyos-io/tinyos-3.x-contrib | csau/misc/tos/lib/tossim/sim/TossimRadioMsg.h | <filename>csau/misc/tos/lib/tossim/sim/TossimRadioMsg.h
#ifndef TOSSIM_RADIO_MSG_H
#define TOSSIM_RADIO_MSG_H
#include "AM.h"
typedef nx_struct tossim_header {
nx_am_addr_t dest;
nx_am_addr_t src;
nx_uint8_t length;
nx_am_group_t group;
nx_am_id_t type;
nx_uint8_t dsn;
} tossim_header_t;
typedef nx_struc... |
tinyos-io/tinyos-3.x-contrib | diku/mcs51/tos/platforms/c8051F340TB/platform_message.h | <reponame>tinyos-io/tinyos-3.x-contrib<gh_stars>1-10
#ifndef PLATFORM_MESSAGE_H
#define PLATFORM_MESSAGE_H
typedef union message_header {
uint8_t serial;
// serial_header_t serial;
} message_header_t;
typedef union TOSRadioFooter {
uint8_t serial;
} message_footer_t;
typedef union TOSRadioMetadata {
uint8_... |
tinyos-io/tinyos-3.x-contrib | diku/freescale/tos/chips/hcs08/timer/Hcs08Timer.h | /* Copyright (c) 2007, <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice, this
* list of condi... |
tinyos-io/tinyos-3.x-contrib | intelmote2/support/sdk/c/compress/ycc2rgb.h | <filename>intelmote2/support/sdk/c/compress/ycc2rgb.h
/**************** YCbCr -> RGB conversion: most common case **************/
/*
* YCbCr is defined per CCIR 601-1, except that Cb and Cr are
* normalized to the range 0..MAXJSAMPLE rather than -0.5 .. 0.5.
* The conversion equations to be implemented are therefor... |
tinyos-io/tinyos-3.x-contrib | nxtmote/misc/src/libusb-win32/libusb-win32-src-0.1.12.1/src/driver/driver_debug.c | <gh_stars>1-10
/* LIBUSB-WIN32, Generic Windows USB Library
* Copyright (c) 2002-2005 <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
... |
tinyos-io/tinyos-3.x-contrib | diku/mcs51/tos/chips/mcs51/string.h | /**
* Prototypes for Keil built-in functions, that differ from glibc
*
* @author <NAME> <<EMAIL>>
*/
#ifndef STRING_H
#define STRING_H
extern int strlen (char *);
extern void *memcpy (void *s1, void *s2, int n);
extern char memcmp (void *s1, void *s2, int n);
extern void *memset (void *s, char val, int n);
#end... |
tinyos-io/tinyos-3.x-contrib | diku/freescale/tos/platforms/dig528/hardware.h | <reponame>tinyos-io/tinyos-3.x-contrib
#ifndef __HARDWARE_H__
#define __HARDWARE_H__
/* Include our CPU definitions */
#include <hcs08hardware.h>
// The baudrate to be used by the serial ports
enum {
PLATFORM_BAUDRATE = 38400,
PLATFORM_BYTETIME = 208
};
#endif // _H_hardware_h
|
tinyos-io/tinyos-3.x-contrib | diku/common/tools/daq/daq_lib.h | <filename>diku/common/tools/daq/daq_lib.h
/**
* The headerfile for the daq library
*/
#ifndef DAQ_LIB_H
#define DAQ_LIB_H
#ifdef __cplusplus
extern "C" {
#endif
#include <inttypes.h>
typedef int daq_card_t;
/**
* daq_open opens the daq device pointed to by dev_file, and resets
* the card.
*
* @param dev_file... |
tinyos-io/tinyos-3.x-contrib | tcd/powertossim-z/tinyos_files/tinyos-2.0.2/tos/lib/tossim/sim_packet.c | <reponame>tinyos-io/tinyos-3.x-contrib
/*
* "Copyright (c) 2005 Stanford University. All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and
* its documentation for any purpose, without fee, and without written
* agreement is hereby granted, provided that the above copyright
* n... |
tinyos-io/tinyos-3.x-contrib | tinymulle/tos/platforms/mulle/softwarespi/Mulle_RF230Spi.h | <gh_stars>1-10
/**
* @author <NAME>
*/
#ifndef __MULLE_RF230SPI_H__
#define __MULLE_RF230SPI_H__
#define UQ_MULLE_SOFTSPIRF230 "SoftSPIRF230C.SoftSPIPacket"
#endif // __MULLE_RF230SPI_H__
|
tinyos-io/tinyos-3.x-contrib | diku/common/lib/compression/simple.h | <reponame>tinyos-io/tinyos-3.x-contrib<gh_stars>1-10
#include "../../tools/compression/simple/simple_comp.c"
|
tinyos-io/tinyos-3.x-contrib | wsnlab/apps/SecureBaseStation/secure_key.h | #ifndef SECURE_KEY_H
#define SECURE_KEY_H
#define DEFAULT_KEY_USED // Defined only in this generic 'secure_key.h'
#define KEY_SIZE 16
#define KEY {<KEY>}
#define MIC_LENGTH 4
#endif |
tinyos-io/tinyos-3.x-contrib | osu/platforms/psi/chips/msp430/adc12/Msp430Adc12.h | <reponame>tinyos-io/tinyos-3.x-contrib<gh_stars>0
/*
* Copyright (c) 2006, Technische Universitaet Berlin
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* - Redistributions of source co... |
tinyos-io/tinyos-3.x-contrib | rincon/tos/lib/Nmea/NmeaGga.h | /*
* Copyright (c) 2008 Rincon Research Corporation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* - Redistributions of source code must retain the above copyright
* notice, this li... |
tinyos-io/tinyos-3.x-contrib | ethz/tinynode184/tos/chips/sx1211/LowPowerListening/SX1211LowPowerListening.h | <reponame>tinyos-io/tinyos-3.x-contrib<gh_stars>1-10
/* Copyright (c) 2007 Shockfish SA
* All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose, without fee, and without written
* agreement is hereby granted, provided that the above copyright
... |
tinyos-io/tinyos-3.x-contrib | eon/apps/turtle_snapper/impl/mica2dot/uservariables.h | <filename>eon/apps/turtle_snapper/impl/mica2dot/uservariables.h
#ifndef USERVARIABLES_H_
#define USERVARIABLES_H_
#define NUM_TURTLES 15
/**************************************************************************************************
// GLOBAL SINGLE STREAM VARIABLES
*******************************************... |
tinyos-io/tinyos-3.x-contrib | tinymulle/tos/platforms/mulle/chips/rf230/RadioConfig.h | /*
* Copyright (c) 2007, Vanderbilt University
* All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose, without fee, and without written agreement is
* hereby granted, provided that the above copyright notice, the following
* two paragraphs... |
tinyos-io/tinyos-3.x-contrib | tcd/powertossim-z/tinyos_files/tinyos-2.0.2/tos/lib/tossim/sim_event_queue.c | <gh_stars>0
// $Id: sim_event_queue.c,v 1.1 2014/11/26 19:31:35 carbajor Exp $
/* tab:4
* "Copyright (c) 2005 Stanford University. All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and
* its documentation for any purpose, without fee, and without written
* agreement is ... |
tinyos-io/tinyos-3.x-contrib | eon/apps/server-e/impl/telos/usermarshal.h | <reponame>tinyos-io/tinyos-3.x-contrib
#ifndef USERMARSHAL_H_INCLUDED
#define USERMARSHAL_H_INCLUDED
#define TYPE_START 0
#define TYPE_END 1
#define TYPE_UINT8 2
#define TYPE_UINT16 3
#define TYPE_UINT32 4
#define TYPE_INT8 5
#define TYPE_INT16 6
#define TYPE_INT32 7
#define MARSH_OK 0
#define MARSH_ERR ... |
tinyos-io/tinyos-3.x-contrib | eon/tos/platforms/turtlenet/sim/platform_hardware.h | <gh_stars>1-10
#ifndef HARDWARE_H
#define HARDWARE_H
/*#include <atm128hardware.h>
#include <Atm128Adc.h>
// A/D constants (channels, etc)
enum {
CHANNEL_RSSI = ATM128_ADC_SNGL_ADC0,
CHANNEL_THERMISTOR = ATM128_ADC_SNGL_ADC1, // normally unpopulated
CHANNEL_BATTERY = ATM128_ADC_SNGL_ADC7,
CHANNE... |
tinyos-io/tinyos-3.x-contrib | berkeley/apps/AIIT_tutorials/5_Smooth/PrintReadingArr.h |
#ifndef PRINT_READING_ARR_H
#define PRINT_READING_ARR_H
#include "message.h"
enum {
AM_PRINT_READING_ARR_MSG = 0x0C,
MAX_READINGS = 5,
SMOOTH_FACTOR = 3,
DENOMINATOR = 10,
};
typedef nx_struct print_reading_arr_msg {
nx_uint16_t nodeid;
nx_uint16_t min;
nx_uint16_t max;
nx_uint16_t mean;
nx_uint16... |
tinyos-io/tinyos-3.x-contrib | ucc/PLScheduler/tos/lib/PreemptivePriorityScheduler/TaskPriority.h | /*
* "Copyright (c) 2007 The Regents of the University College Cork
* All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose, without fee, and without written agreement is
* hereby granted, provided that the above copyright notice, the follow... |
tinyos-io/tinyos-3.x-contrib | nxtmote/misc/src/libusb-win32/libusb-win32-src-0.1.12.1/src/usbi.h | <filename>nxtmote/misc/src/libusb-win32/libusb-win32-src-0.1.12.1/src/usbi.h
#ifndef _USBI_H_
#define _USBI_H_
#include "usb.h"
#include "error.h"
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
//rup: This resulted in a build error due to multiple definitions in (my) Cygwin
//typedef unsigned long... |
tinyos-io/tinyos-3.x-contrib | antlab-polimi/sensors/cameraComm/radio_Backup.h | /*
* Copyright (c) 2006 Stanford University.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* - Redistributions of source code must retain the above copyright
* notice, this list of c... |
tinyos-io/tinyos-3.x-contrib | diku/common/tools/compression/huffman/huffman_comp.c | <gh_stars>1-10
/**************************************************************************
*
* huffman_comp.c
*
* A simple static huffman compressor.
*
* This file is licensed under the GNU GPL.
*
* (C) 2005, <NAME> <<EMAIL>>
*
*/
#ifndef __AVR_ATmega128__
#define prog_uint8_t uint8_t
#define read_byte(x, y) ... |
tinyos-io/tinyos-3.x-contrib | intelmote2/libs/BigMsg/BigMsg.h | /*
* Copyright (c) 2006 Stanford University.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* - Redistributions of source code must retain the above copyright
* notice, this list of condition... |
tinyos-io/tinyos-3.x-contrib | wsu/tools/XMonitor/oasis/apps/OasisApp/build/imote2/app.c | <reponame>tinyos-io/tinyos-3.x-contrib<filename>wsu/tools/XMonitor/oasis/apps/OasisApp/build/imote2/app.c
#define nx_struct struct
#define nx_union union
#define dbg(mode, format, ...) ((void)0)
#define dbg_clear(mode, format, ...) ((void)0)
#define dbg_active(mode) 0
# 4 "/opt/tinyos-1.x/tos/platform/pxa27x/inttypes.h... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/runtime/stargatehelper/rt_structs.h | #ifndef RT_STRUCTS_H_INCLUDED
#define RT_STRUCTS_H_INCLUDED
#include "../nodes.h"
typedef struct rt_data
{
uint16_t sessionID;
uint32_t starttime;
uint16_t weight;
uint8_t minstate;
uint8_t wake;
uint32_t elapsed_us;
} rt_data;
typedef struct GenericNode
{
rt_data _pdata;
} GenericNode;
#define RTCLO... |
tinyos-io/tinyos-3.x-contrib | stanford-lgl/tos/chips/ov7670/OV7670.h | /*
* Copyright (c) 2008 Stanford University. All rights reserved.
* This file may be distributed under the terms of the GNU General
* Public License, version 2.
*/
/**
* @brief Driver module for the OmniVision OV7670 Camera, inspired by V4L2
* linux driver for OV7670.
* @author <NAME> (<EMAIL>)
*/
... |
tinyos-io/tinyos-3.x-contrib | diku/common/tools/compression/lz77/lz77.h | #define WINDOW_SIZE (1024 + 512)
#define LOOK_AHEAD_SIZE 32
#define LENGTH_BITS 5
#define OFFSET_BITS 11 /* If OFFSET_BITS is lower than 9, we need to
change the do_compress algorithm */
|
tinyos-io/tinyos-3.x-contrib | csau/ub/tos/lib/net/ub/UnifiedBroadcast.h | <filename>csau/ub/tos/lib/net/ub/UnifiedBroadcast.h
/**
* @author <NAME> <mth at cs dot au dot dk>
* @date June 6 2010
*/
#ifndef UNIFIEDBROADCAST_H
#define UNIFIEDBROADCAST_H
enum {
AM_UNIFIEDBROADCAST_MSG = 131,
};
typedef struct broadcast_data {
nx_uint8_t len; // length of id + data
nx_am_id_t id;
nx_u... |
tinyos-io/tinyos-3.x-contrib | rincon/apps/BlackbookBridge/BFileDirBridge/BFileDir.h | <gh_stars>1-10
/*
* Copyright (c) 2005-2006 Rincon Research Corporation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* - Redistributions of source code must retain the above copyright
... |
tinyos-io/tinyos-3.x-contrib | vu/tos/platforms/telosa/TimeSyncMessageLayer.h | /*
* Copyright (c) 2010, Vanderbilt University
* All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose, without fee, and without written agreement is
* hereby granted, provided that the above copyright notice, the following
* two paragraphs... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/runtime/tinyos2/fluxenergypredictor.h | <filename>eon/eon/src/runtime/tinyos2/fluxenergypredictor.h
#ifndef FLUXENERGYPREDICTOR_H_INCLUDED
#define FLUXENERGYPREDICTOR_H_INCLUDED
#include "../nodes.h"
#define NUMTIMEFRAMES 8
const uint8_t ENERGY_TIMESCALES[NUMTIMEFRAMES] = {1,2,4,8,16,32,64,128};
int32_t predict_energy (uint8_t timeframe, uint8_t state)... |
tinyos-io/tinyos-3.x-contrib | diku/common/tools/daq/kernel-driver/proc.c | <reponame>tinyos-io/tinyos-3.x-contrib
/* Procfs interface for the PCI series device driver.
Author: <NAME>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your ... |
tinyos-io/tinyos-3.x-contrib | berkeley/blip-2.0/support/sdk/c/blip/interface/tun_dev_darwin.c | <filename>berkeley/blip-2.0/support/sdk/c/blip/interface/tun_dev_darwin.c<gh_stars>1-10
/*
* "Copyright (c) 2008 The Regents of the University of California.
* All rights reserved."
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose, without fee, and without ... |
tinyos-io/tinyos-3.x-contrib | diku/freescale/tos/chips/hcs08/hcs08regs.h | //$Id: hcs08regs.h,v 1.3 2008/10/26 20:44:40 mleopold Exp $
//@author <NAME> <<EMAIL>>
// This file was automatically generated with the command:
// ./make_hcs08regs.pl hcs08regs.txt > hcs08regs.h
#ifndef _H_hcs08regs_h
#define _H_hcs08regs_h
#define HC08_REGISTER(type,addr) (*((type*)(addr)))
enum { PTAD_Addr = 0... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.