repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
tinyos-io/tinyos-3.x-contrib
wsu/tools/XMonitor/oasis/apps/OasisApp/build/telosb/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 # 38 "/usr/msp430/include/sys/inttypes.h" typedef signed char int8_t; typedef unsigned char uint8_t; typedef int int16_t; typedef unsigned int uint16_t; ty...
tinyos-io/tinyos-3.x-contrib
berkeley/blip-2.0/support/sdk/c/blip/lib6lowpan/lib6lowpan_4944.c
<filename>berkeley/blip-2.0/support/sdk/c/blip/lib6lowpan/lib6lowpan_4944.c /* * "Copyright (c) 2008,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...
tinyos-io/tinyos-3.x-contrib
diku/common/lib/usb/usb.h
<filename>diku/common/lib/usb/usb.h<gh_stars>1-10 #ifndef _H_usb_H #define _H_usb_H #include <byteorder.h> #ifdef BIG_ENDIAN #define usbToHost16(x) _BSWAP_UINT16(x) #define hostToUsb16(x) _BSWAP_UINT16(x) #define usbToHost32(l) _BSWAP_UINT32(l) #define hostToUsb32(l) _BSWAP_UINT32(l) #else #define usbToHost16(x) x #...
tinyos-io/tinyos-3.x-contrib
eon/apps/turtle_snapper/impl/tinynode/wake.h
#ifndef WAKE_H_ #define WAKE_H_ #define WAKE_COUNT 3 #define WAKE_IVAL 2500 #endif
tinyos-io/tinyos-3.x-contrib
berkeley/quanto/tools/quanto/compression/libquantocode.c
<gh_stars>1-10 /* * Copyright (c) 2009 <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, c...
tinyos-io/tinyos-3.x-contrib
berkeley/quanto/tos/chips/msp430/msp430hardware.h
/* "Copyright (c) 2000-2003 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...
tinyos-io/tinyos-3.x-contrib
eon/eon/src/simulator/consumptionpredictor.h
#ifndef CONSUMPTIONPREDICTOR_H #define CONSUMPTIONPREDICTOR_H #include "simulator.h" #include "nodes.h" using namespace std; #define PATH_ENERGY_WEIGHT 5 /*extern uint8_t isPathTimed[NUMPATHS]; extern uint8_t pathSrc[NUMPATHS]; extern uint8_t timedPaths[NUMTIMEDPATHS]; extern uint16_t timerVals[NUMSOURCES][NUMSTAT...
tinyos-io/tinyos-3.x-contrib
cedt/tos/chips/cc1000/sim/CC1000Current.h
<filename>cedt/tos/chips/cc1000/sim/CC1000Current.h /** * "Copyright (c) 2007 CENTRE FOR ELECTRONICS AND DESIGN TECHNOLOGY,IISc. * 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...
tinyos-io/tinyos-3.x-contrib
tinyos-programming/FlashSampler/flashsampler.h
/* * Copyright (c) 2007-2009 Intel Corporation * All rights reserved. * This file is distributed under the terms in the attached INTEL-LICENS * file. If you do not find this file, a copy can be found by writing to * Intel Research Berkeley, 2150 Shattuck Avenue, Suite 1300, Berkeley, CA, * 94704. Attention: I...
tinyos-io/tinyos-3.x-contrib
antlab-polimi/sensors/driverCam/xbow_cb/xbowCam.h
<reponame>tinyos-io/tinyos-3.x-contrib /* * Copyright (c) 2005 Yale 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: * 1. Redistributions of source code must retain the ...
tinyos-io/tinyos-3.x-contrib
berkeley/quanto/tos/lib/timer/QuantoTimer.h
#ifndef _QUANTO_TIMER_H #define _QUANTO_TIMER_T enum { ACT_TIMER = 0x31, }; #endif
tinyos-io/tinyos-3.x-contrib
shimmer/swtest/SyncedRadioTx/SyncedRadio.h
<reponame>tinyos-io/tinyos-3.x-contrib<filename>shimmer/swtest/SyncedRadioTx/SyncedRadio.h #ifndef SYNCED_TIMING_H #define SYNCED_TIMING_H #include "AM.h" typedef nx_struct simple_send_msg { nx_uint16_t counter; nx_uint8_t message[TOSH_DATA_LENGTH - 2]; // 114 bytes - 2 byte counter } simple_send_msg_t; enum...
tinyos-io/tinyos-3.x-contrib
rincon/tos/lib/industrialCtpRoot/debug/CtpDebugMsg.h
<reponame>tinyos-io/tinyos-3.x-contrib /* * "Copyright (c) 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, without fee, and without written agreement is * hereby granted, provide...
tinyos-io/tinyos-3.x-contrib
eon/apps/turtle_snapper/impl/mica2dot/sizes.h
#ifndef SIZES_H #define SIZES_H /* * Debug messages */ //#define INDEX_DEBUG //#define ARRAY_DEBUG //#define CHUNK_DEBUG //#define QUEUE_DEBUG //#define STACK_DEBUG //#define STREAM_DEBUG //#define STREAM_INDEX_DEBUG //#define CHECKPOINT_DEBUG //#define ROOT_DIR_DEBUG //#define COMPACT_DEBUG #if defined(INDEX_DEBU...
tinyos-io/tinyos-3.x-contrib
eon/eon/src/client/sfaccess/testtinyrely.c
<filename>eon/eon/src/client/sfaccess/testtinyrely.c #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include "tinystream.h" /*void cb(int id, uint8_t *data, int length) { int i; printf("recv cb (%i, %i)\n",id,length); for (i=0; i < length; i++) { printf("%02x ", data[i]); } printf("\n"); }*/ int ...
tinyos-io/tinyos-3.x-contrib
nxtmote/tos/chips/at91/at91_registers.h
#ifndef _AT91_REGISTER_H #define _AT91_REGISTER_H #define _AT91REG(_addr) (*((volatile uint32_t *)(_addr))) #define _AT91REG_OFFSET(_addr,_off) (_NXTREG((uint32_t)(_addr) + (uint32_t)(_off))) #endif /* _NXT_REGISTER_H */
tinyos-io/tinyos-3.x-contrib
iowa/T2.tsync/IAtsync/Beacon.h
<reponame>tinyos-io/tinyos-3.x-contrib #include "Tnbrhood.h" #include "OTime.h" #ifndef TS_BEACON_STRUCTS enum { AM_BEACON=40, AM_BEACON_PROBE=41, AM_PROBE_ACK=42, AM_PROBE_DEBUG=43, AM_NEIGHBOR=44, AM_NEIGHBOR_DEBUG=45, AM_SKEW=47, AM_UART=50 }; // please change ...
tinyos-io/tinyos-3.x-contrib
nxtmote/tos/chips/motor/d_output.h
<reponame>tinyos-io/tinyos-3.x-contrib #ifndef D_OUTPUT_H #define D_OUTPUT_H //// d_output.h //// //Constant reffering to new motor #define REG_CONST_DIV 32 // Constant which the PID constants value will be divided with #define DEFAULT_P_GAIN_FACTOR 96//3 #define DEFAULT_I_GAIN_FACTOR 32//1 #def...
tinyos-io/tinyos-3.x-contrib
eon/apps/simtest/impl/linuxsim/userstructs.h
#ifndef USERSTRUCTS_H_ #define USERSTRUCTS_H_ //typedef int bool; #endif
tinyos-io/tinyos-3.x-contrib
nxtmote/misc/src/libusb-win32/libusb-win32-src-0.1.12.1/src/driver/reset_device.c
<reponame>tinyos-io/tinyos-3.x-contrib<filename>nxtmote/misc/src/libusb-win32/libusb-win32-src-0.1.12.1/src/driver/reset_device.c /* 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 t...
tinyos-io/tinyos-3.x-contrib
diku/common/tools/daq/kernel-driver/ixpci.h
<filename>diku/common/tools/daq/kernel-driver/ixpci.h /* User space declarations for PCI DAQ series. 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 (...
tinyos-io/tinyos-3.x-contrib
eon/eon/src/runtime/stargate/sfaccess/sfsource.c
<filename>eon/eon/src/runtime/stargate/sfaccess/sfsource.c #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <netdb.h> #include <unistd.h> #include <errno.h> #include <stdlib.h> #include <string.h> #include "sfsource.h" uint32_t platform; int saferead(int fd, void *buffer, int count) { ...
tinyos-io/tinyos-3.x-contrib
wsu/WakeNet/tos/lib/net/ctp/Ctp.h
/* $Id: Ctp.h,v 1.6 2008/07/10 18:59:47 idgay Exp $ */ /* * 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 mus...
tinyos-io/tinyos-3.x-contrib
gems/ttsp/tinyos/apps/BeaconBroadcaster/BeaconBroadcaster.h
#ifndef BEACONBROADCAST_H #define BEACONBROADCAST_H typedef nx_struct BeaconMsg { nx_uint16_t srcAddr; nx_uint32_t beaconId; } BeaconMsg_t; enum { AM_BEACONMSG = 181 }; #endif
tinyos-io/tinyos-3.x-contrib
rincon/tos/chips/msp430/pwm/Msp430Pwm.h
<reponame>tinyos-io/tinyos-3.x-contrib<filename>rincon/tos/chips/msp430/pwm/Msp430Pwm.h #ifndef PWM_H #define PWM_H enum timer_outmode_enum { MSP430TIMER_OUTMODE_OUTPUT = 0, MSP430TIMER_OUTMODE_SET = 1, MSP430TIMER_OUTMODE_TOGGLERESET = 2, MSP430TIMER_OUTMODE_SETRESET = 3, MSP430TIMER_OUTMODE_TOGGLE = 4, ...
tinyos-io/tinyos-3.x-contrib
rincon/tools/ft232r/d2xx/d2xx.c
/*********************************************************************** * d2xx.c -- python ftdi d2xx driver interface (partial) */ #include <Python.h> #include "windows.h" #include "ftd2xx.h" static char c; static void _del(void *fp, void *desc) { if (desc == &c) { FT_Close(*(FT_HANDLE *) fp); PyMem_Fr...
tinyos-io/tinyos-3.x-contrib
rincon/apps/BlackbookBridge/BFileWriteBridge/BFileWrite.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
diku/sensinode/tos/platforms/micro4/hpl1wire.h
typedef uint8_t b1w_reg[8];
tinyos-io/tinyos-3.x-contrib
ethz/snpk/apps/tests/DSNTest/DSNTest.h
<reponame>tinyos-io/tinyos-3.x-contrib #ifndef DSNTEST_H #define DSNTEST_H enum { TIMER_TIMEOUT_MILLI = 5000, }; #endif
tinyos-io/tinyos-3.x-contrib
uob/tossdr/ucla/gnuradio-802.15.4-demodulation/src/lib/ucla_cc1k_correlator_cb.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
dexma/tos/chips/msp430X/timer/Msp430Timer.h
//$Id: Msp430Timer.h,v 1.3 2010/04/12 07:53:39 dexma Exp $ /* "Copyright (c) 2000-2003 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 here...
tinyos-io/tinyos-3.x-contrib
antlab-polimi/sensors/dpcmSupport/diff_idctfstBlk.h
<gh_stars>1-10 #ifndef _DIFF_IDCTFSTBLK_H #define _DIFF_IDCTFSTBLK_H #include <stdio.h> #include <inttypes.h> #define CONST_BITS 8 #define PASS1_BITS 2 #define MAXJSAMPLE 255 #define CENTERJSAMPLE 128 #define DCTSIZE 8 #define FIX_1_082392200 ((int32_t) 277) /* FIX(1.082392200) */ #define FIX_1_414213562 ((int3...
tinyos-io/tinyos-3.x-contrib
eon/eon/src/tests/unittest/tinyunittest.h
<filename>eon/eon/src/tests/unittest/tinyunittest.h #ifndef _TINYUNITTEST_H_ #define _TINYUNITTEST_H_ #define __TINY_TEST(COND,COMMENT) \ do { \ if (COND) { \ fprintf(stdout, "@@UNITTEST@@: SUCCESS : " COMMENT "\n"); \ } else { \ fprintf(stdout, "@@UNITTEST@@: FAILED : " __FILE__ " @ %d : " #COND " : "...
tinyos-io/tinyos-3.x-contrib
gems/ttsp/tinyos/tos/lib/ttsp/TimeSync.h
#ifndef TIMESYNC_H #define TIMESYNC_H enum { TIMESYNC_TABLE_MAX_ENTRIES = 8, TIMESYNC_TABLE_VALID_ENTRIES_LIMIT = 4, TIMESYNC_DEFAULT_ROOT_ID = 1, TIMESYNC_IGNORE_ROOT_MSG = 4, }; typedef struct SyncPoint { uint32_t localTime; int32_t timeOffset; } SyncPoint_t; typedef struct TableItem { SyncP...
tinyos-io/tinyos-3.x-contrib
tinyos-programming/SoundLocalizer/Detector/detector.h
#ifndef DETECTOR_H #define DETECTOR_H typedef nx_struct coordination_msg { nx_uint16_t count, sample_at, interval; } coordination_msg_t; typedef nx_struct detection_msg { nx_uint16_t id; nx_uint32_t time; /* Debug information */ nx_uint16_t intercept; nx_uint16_t slope; nx_uint32_t t0, localDetectTime, ...
tinyos-io/tinyos-3.x-contrib
tinyos-programming/ReliableSerial/reliableserial.h
/* * Copyright (c) 2007-2009 Intel Corporation * All rights reserved. * This file is distributed under the terms in the attached INTEL-LICENS * file. If you do not find this file, a copy can be found by writing to * Intel Research Berkeley, 2150 Shattuck Avenue, Suite 1300, Berkeley, CA, * 94704. Attention: I...
tinyos-io/tinyos-3.x-contrib
ucc/PLScheduler/tos/chips/atm128/context_switch.h
#ifndef __context_switch_h__ #define __context_switch_h__ #define GET_SP(sp) {asm volatile("in %A0, __SP_L__\n\t in %B0, __SP_H__\n\t" : "=r" (sp) : );} #define CONTEXT_SWITCH_PREAMBLE(FROM, TO) \ { \ asm volatile("in %A0, __SP_L__\n\t in %B0, __SP_H__\n\t" : "=r" (contexts[FROM].sp) : ); \ asm vo...
tinyos-io/tinyos-3.x-contrib
uni_valencia/ema/Harvester.h
/* Copyright (c) 2007 ETH Zurich. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions...
tinyos-io/tinyos-3.x-contrib
stanford-sing/apps/RssiSample/NoiseSample.h
/****************************************************************** NoiseSample.h created by <NAME> (<EMAIL>) ******************************************************************/ #ifndef _NOISESAMPLE_H_ #define _NOISESAMPLE_H_ enum { ALARM_PERIOD = 32, //i.e. 1KHz AM_RSSI_SAMPLE_MSG = 6, BUF_SIZE = 512, TOTA...
tinyos-io/tinyos-3.x-contrib
intelmote2/support/sdk/c/camera_cmd/img_stat.h
<reponame>tinyos-io/tinyos-3.x-contrib<filename>intelmote2/support/sdk/c/camera_cmd/img_stat.h<gh_stars>1-10 /** * This file is automatically generated by mig. DO NOT EDIT THIS FILE. * This file defines the layout of the 'img_stat' message type. */ #ifndef IMG_STAT_H #define IMG_STAT_H #include <message.h> enum { ...
tinyos-io/tinyos-3.x-contrib
uob/tossdr/ucla/gnuradio-802.15.4-demodulation/sos/modules/ping/ping.c
<filename>uob/tossdr/ucla/gnuradio-802.15.4-demodulation/sos/modules/ping/ping.c /* -*- Mode: C; tab-width:4 -*- */ /* ex: set ts=4 shiftwidth=4 softtabstop=4 cindent: */ /** * @brief simple module for testing radio */ /** * Module needs to include <module.h> */ #include <sys_module.h> #include <module.h> #define ...
tinyos-io/tinyos-3.x-contrib
diku/common/tools/daq/test_setup.c
/** * */ #include <stdio.h> #include <signal.h> #include <stdlib.h> #include <unistd.h> #include <sys/time.h> #include <time.h> #include "daq_lib.h" #define DOWNSAMPLE_BY 1 struct config { FILE *f; char *filename; int channel; daq_gain_t gain; daq_range_t range; char *unit; double multiplier; dou...
tinyos-io/tinyos-3.x-contrib
eon/apps/turtle_snapper/impl/tinynode/GetGPS.h
<reponame>tinyos-io/tinyos-3.x-contrib #ifndef _GETGPS_H_ #define _GETGPS_H_ #define SNR_THOLD 15 #define SNR_TIMEOUT 20 #define GPS_TIMEOUT 360 #define GPS_IMPROVEMENT_TIMEOUT 20 //#define GPS_TIMEOUT 200 //#define GPS_TIMEOUT 600 //#define GPS_TIMEOUT 30 //#define WETNESS_THRESHOLD 300 #e...
tinyos-io/tinyos-3.x-contrib
diku/freescale/tos/platforms/dig528/include/stdlib.h
<reponame>tinyos-io/tinyos-3.x-contrib /** Dummy header to avoid inclusion of the standard library header **/ #ifndef _STDLIB_H_ #define _STDLIB_H_ /* The memset function in Codewarior doesnt work */ void *memset(void *s, unsigned char c, int n) { char *target = (char*)s; while(n > 0) { *target = c; t...
tinyos-io/tinyos-3.x-contrib
eon/tos/lib/tossim/EnergyMonitor.h
#ifndef _ENERGYMONITOR_H_ #define _ENERGYMONITOR_H_ class EnergyMonitor { public: EnergyMonitor(int id); ~EnergyMonitor(); double getEnergyStored(); double getEnergyIn(); double getEnergyOut(); double getBatterySize(); double getWaste(); void setEnergyStored(double mJ); void harvestEnergy(do...
tinyos-io/tinyos-3.x-contrib
vu/apps/TestPacketTimeSync/TestPacketTimeSync.h
#ifndef TEST_PACKET_TIMESYNC_H #define TEST_PACKET_TIMESYNC_H typedef nx_struct ping_msg { nx_uint16_t pinger; nx_uint32_t ping_counter; nx_uint32_t ping_event_time; nx_uint32_t prev_ping_counter; nx_uint8_t prev_ping_tx_timestamp_is_valid; nx_uint32_t prev_ping_tx_timestamp; nx_uint32_t mac_timestamp; ...
tinyos-io/tinyos-3.x-contrib
unlpt/PowerTossim-TelosB/tos/lib/tossim/tossim.c
/* * "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
eon/eon/src/runtime/tinyos2/MarkovAlloc.h
<reponame>tinyos-io/tinyos-3.x-contrib<filename>eon/eon/src/runtime/tinyos2/MarkovAlloc.h<gh_stars>1-10 #ifndef MARKOV_ALLOC_H_INCLUDED #define MARKOV_ALLOC_H_INCLUDED #define HEAPSIZE 2048 #endif
tinyos-io/tinyos-3.x-contrib
tcd/powertossim-z/powercurses/powercurses.c
#include <stdio.h> #include <stdlib.h> #include <curses.h> #include <strings.h> enum batterystatus { GOODBATTERY = 1, MIDBATTERY, LOWBATTERY }; struct mote_state { float battery_state; int mote_num; WINDOW *mote; }; #define STARTX 1 #define STARTY 1 #define ...
tinyos-io/tinyos-3.x-contrib
eon/apps/turtle_snapper/impl/mica2dot/GetGPS.h
<filename>eon/apps/turtle_snapper/impl/mica2dot/GetGPS.h<gh_stars>1-10 #ifndef _GETGPS_H_ #define _GETGPS_H_ #define GPS_TIMEOUT 360 //#define GPS_TIMEOUT 600 //#define GPS_TIMEOUT 30 #define WETNESS_THRESHOLD 200 #endif
tinyos-io/tinyos-3.x-contrib
tinybt/tos/platforms/btnode3/chips/sd/SD.h
<filename>tinybt/tos/platforms/btnode3/chips/sd/SD.h /* *********************************************************** * THIS PROGRAM IS PROVIDED "AS IS". TI MAKES NO WARRANTIES OR * REPRESENTATIONS, EITHER EXPRESS, IMPLIED OR STATUTORY, * INCLUDING ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR P...
tinyos-io/tinyos-3.x-contrib
diku/mcs51/tos/chips/cc2430/dma/dma.h
<filename>diku/mcs51/tos/chips/cc2430/dma/dma.h /* * Copyright (c) 2007 University of Copenhagen * 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
intelmote2/support/sdk/c/camera_cmd/status.h
<reponame>tinyos-io/tinyos-3.x-contrib /** * This file is automatically generated by mig. DO NOT EDIT THIS FILE. * This file defines the layout of the 'status' message type. */ #ifndef STATUS_H #define STATUS_H #include <message.h> enum { /** The default size of this message type in bytes. */ STATUS_SIZE = 8, ...
tinyos-io/tinyos-3.x-contrib
ethz/tinynode184/tos/chips/sx1211/sx1211debug.h
//#include "DSN.h" uint8_t var; uint16_t lasterr; void sx1211error(uint8_t loc, uint8_t value_) __attribute__ ((noinline)) { // this is just to make sure the compiler doesn't optimize // out calls to this function, since we use it as a gdb breakpoint atomic var += value_ + loc; } void sx1211check(uint8_t lo...
tinyos-io/tinyos-3.x-contrib
stanford-lgl/tos/chips/pxa27x/memsetup-pxa.h
<filename>stanford-lgl/tos/chips/pxa27x/memsetup-pxa.h<gh_stars>1-10 #ifndef MEMSETUP_PXA_H #define MEMSETUP_PXA_H extern void memsetup(); #endif //TOSH_HARDWARE_H
tinyos-io/tinyos-3.x-contrib
eon/tos/lib/tossim/EnergyMonitor.c
#include "sim_energy.h" #include "EnergyMonitor.h" EnergyMonitor::EnergyMonitor(int id) { sim_energy_init(id); m_id = id; } EnergyMonitor::~EnergyMonitor() { } double EnergyMonitor::getEnergyStored() { return sim_node_energy(m_id); } double EnergyMonitor::getEnergyIn() { return sim_node_energy_in(m_id);...
tinyos-io/tinyos-3.x-contrib
diku/freescale/tos/chips/hcs08/adc/Hcs08Adc.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
nxtmote/misc/src/libusb-win32/libusb-win32-src-0.1.12.1/src/driver/driver_registry.c
/* 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 * (at your opt...
tinyos-io/tinyos-3.x-contrib
diku/common/tools/compression/huffman/huffman_decomp.c
#ifndef __AVR_ATmega128__ #define prog_uint8_t uint8_t #endif #define DECOMPRESSOR #include <inttypes.h> #include <errno.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include "../buffer.h" #include CODESET uint8_t membuffer[MEMBUFSIZE]; uint8_t *data; uint8_t read_count; uint16_t buffer; static uin...
tinyos-io/tinyos-3.x-contrib
ahhr-ipsn09/apps/HierarchicalRoutingDemo/TrafficStats.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/apps/turtle_snapper/impl/tinynode/mktime.c
<gh_stars>1-10 #ifndef MKTIME_C_INCLUDE #define MKTIME_C_INCLUDE #ifdef MKTIME_TEST #include <stdint.h> #include <time.h> #endif #define YEAR0 1900 #define EPOCH_YR 1970 #define SECS_DAY (24L * 60L * 60L) #define LEAPYEAR(year) (!((year) % 4) && (((year) % 100)...
tinyos-io/tinyos-3.x-contrib
dexma/tos/platforms/z1/chips/tmp102/TMP102.h
<gh_stars>0 /* * Copyright (c) 2005-2006 Arch Rock 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 * noti...
tinyos-io/tinyos-3.x-contrib
berkeley/quanto/tos/lib/quanto/QuantoLog/QuantoLogCompressedMyUartWriter.h
<reponame>tinyos-io/tinyos-3.x-contrib #ifndef QLOG_COMP_MY_UART #define QLOG_COMP_MY_UART enum { CBLOCKSIZE = 20, // # msgs compressed at once BUFFERSIZE = 100, // # msgs in event buffer. Must be // a multiple of CBLOCKSIZE. BITBUFSIZE = 234, // # size i...
tinyos-io/tinyos-3.x-contrib
intelmote2/support/sdk/c/camera_cmd/cmd_msg.c
/** * This file is automatically generated by mig. DO NOT EDIT THIS FILE. * This file implements the functions for encoding and decoding the * 'cmd_msg' message type. See cmd_msg.h for more details. */ #include <message.h> #include "cmd_msg.h" uint16_t cmd_msg_node_id_get(tmsg_t *msg) { return tmsg_read_ube(msg...
tinyos-io/tinyos-3.x-contrib
eon/eon/src/runtime/tinyos2/scheduler.h
<reponame>tinyos-io/tinyos-3.x-contrib #ifndef SCHEDULER_H_INCLUDED #define SCHEDULER_H_INCLUDED /************************** * The queues in the run time system represent pending * incoming edges in the graph. **************************/ #define QUEUE_DELAY 100 #define QUEUE_LENGTH 5 #define NEXT_IDX(X) ((X +...
tinyos-io/tinyos-3.x-contrib
asu-impact/lib/echote_telos/EchoTETelos.h
<gh_stars>1-10 /* * Copyright (c) 2008, Arizona Board of Regents * 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, ...
tinyos-io/tinyos-3.x-contrib
uob/apps/TrickleSim/TrickleSim.h
#ifndef TRICKLE_SIM_H #define TRICKLE_SIM_H // 2 * 1024 #define UOB_TAU_LOW (2048L) // 128 * 1024 #define UOB_TAU_HIGH (131072L) #define UOB_K 1 //#define UOB_K 2 //#define PUSH 1 // 40 * 1024 -> same cycle count #define UOB_PUSH (40960L) typedef nx_struct trickle_sim_msg { nx_uint16_t sender; nx_uint16_t c...
tinyos-io/tinyos-3.x-contrib
sensorscheme/tos/lib/SensorScheme/Types.h
<reponame>tinyos-io/tinyos-3.x-contrib<filename>sensorscheme/tos/lib/SensorScheme/Types.h #ifndef TYPES_H #define TYPES_H typedef union ss_val_t { uint16_t idx; struct s { uint16_t tp :2; int16_t sval :13; uint16_t gc :1; } s; struct sn { uint16_t tp :2; int16_t sval :14; } sn; } ss...
tinyos-io/tinyos-3.x-contrib
nxtmote/tos/chips/uc1601/LCD.h
/* * Copyright (c) 2007 nxtmote project * 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 conditions an...
tinyos-io/tinyos-3.x-contrib
kasetsart/tos/chips/atm328/spi/Atm328Spi.h
/** * Definitions for ATmega328's SPI hardware * * @notes * This file is modified from * <code>tinyos-2.1.0/tos/chips/atm128/spi/Atm128Spi.h</code> * * @author * <NAME> (<EMAIL>) */ #ifndef _H_Atm328SPI_h #define _H_Atm328SPI_h //====================== SPI Bus ================================== enum { ...
tinyos-io/tinyos-3.x-contrib
eon/apps/turtle_snapper/impl/tinynode/userstructs.h
#ifndef USERSTRUCTSH_H_INCLUDED #define USERSTRUCTSH_H_INCLUDED #include "gps.h" #include "AM.h" #include "uservariables.h" //bundle types enum { BTYPE_GPSFIRST = 1, BTYPE_GPSSECOND = 2, BTYPE_TEMP_WET = 3, BTYPE_RTSTATE = 4, BTYPE_RTPATH = 5, BTYPE_CONN = 6, }; enum { TX_HI_BW = 2500...
tinyos-io/tinyos-3.x-contrib
ahhr-ipsn09/tos/le/LinkEstimator.h
<reponame>tinyos-io/tinyos-3.x-contrib /* * 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...
tinyos-io/tinyos-3.x-contrib
eon/eon/src/client/sfaccess/tinyrely.c
#include "tinyrely.h" #include "telossource.h" #include <pthread.h> #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <string.h> uint8_t suid=0; int relyfd = 0; uint8_t ackdsn = 0; ConnStr connections[RELY_MAX_CONNECTIONS]; pthread_t recvthread; bool done = FALSE; pthread_mutex_t conn_mutex = {0, ...
tinyos-io/tinyos-3.x-contrib
diku/freescale/tos/platforms/dig528/include/math.h
<filename>diku/freescale/tos/platforms/dig528/include/math.h /** Dummy header to avoid inclusion of the standard library header **/ #ifndef _MATH_H_ #define _MATH_H_ #endif
tinyos-io/tinyos-3.x-contrib
cedt/tos/chips/cc1000/sim/sim_channel.h
<reponame>tinyos-io/tinyos-3.x-contrib<gh_stars>1-10 /** * "Copyright (c) 2007 CENTRE FOR ELECTRONICS AND DESIGN TECHNOLOGY,IISc. * 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 hereb...
tinyos-io/tinyos-3.x-contrib
tinyos-programming/AntiTheftBook/6.5.2/antitheft.h
<gh_stars>1-10 /* * Copyright (c) 2007-2009 Intel Corporation * All rights reserved. * This file is distributed under the terms in the attached INTEL-LICENS * file. If you do not find this file, a copy can be found by writing to * Intel Research Berkeley, 2150 Shattuck Avenue, Suite 1300, Berkeley, CA, * 94704....
tinyos-io/tinyos-3.x-contrib
iitk/TOSSIM/TossimRadioMsg.h
<filename>iitk/TOSSIM/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; } tossim_header_t; typedef nx_struct tossim_footer { nxle_uint16_t c...
tinyos-io/tinyos-3.x-contrib
uvigo/tos/lib/net/zigvigo/Nwk.h
/* * Copyright (c) 2009 GTI/TC-1 Research Group. Universidade de Vigo. * Gradiant (www.gradiant.org) * 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 so...
tinyos-io/tinyos-3.x-contrib
eon/eon/src/runtime/telos/nodequeue.h
<reponame>tinyos-io/tinyos-3.x-contrib #ifndef NODE_Q_H_INCLUDED #define NODE_Q_H_INCLUDED /************************** * The queues in the run time system represent pending * incoming edges in the graph. **************************/ #define QUEUE_DELAY 3 #define QUEUE_LENGTH 30 #define NEXT_IDX(X) ((X + 1) % Q...
tinyos-io/tinyos-3.x-contrib
diku/freescale/tos/platforms/dig528/include/inttypes.h
/** * @author <NAME> * @author <NAME> */ #ifndef _INTTYPES_H #define _INTTYPES_H 1 #include <stdtypes.h> #ifndef __uint8_t_defined #define __uint8_t_defined // typedef Byte uint8_t; typedef unsigned char uint8_t; #endif #ifndef __int8_t_defined #define __int8_t_defined // typedef sByte int8_t; typedef signed char...
tinyos-io/tinyos-3.x-contrib
tub/apps/PacketSniffer_802_15_4/wiresharkPlugins/802_15_4/plugin.c
/* Do not modify this file. */ /* It is created automatically by the Makefile. */ #ifdef HAVE_CONFIG_H # include "config.h" #endif #include <gmodule.h> #include "moduleinfo.h" #ifndef ENABLE_STATIC G_MODULE_EXPORT const gchar version[] = VERSION; /* Start the functions we need for the plugin stuff */ G_MODULE_E...
tinyos-io/tinyos-3.x-contrib
gems/ttsp/tinyos/apps/ReferenceBroadcaster/ReferenceBroadcaster.h
<filename>gems/ttsp/tinyos/apps/ReferenceBroadcaster/ReferenceBroadcaster.h #ifndef REFBROADCAST_H #define REFBROADCAST_H typedef nx_struct ReferenceMsg { nx_uint16_t srcAddr; nx_uint32_t refTimestamp; nx_uint32_t refId; } ReferenceMsg_t; enum { AM_REFERENCEMSG = 180 }; #endif
tinyos-io/tinyos-3.x-contrib
tcd/powertossim-z/tinyos_files/tinyos-2.0.2/tos/lib/tossim/sim_noise.h
<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
eon/eon/src/client/client.c
//#include "../mImpl.h" //#include "rt_intercomm.h" #include "sfaccess/telossource.h" #include "sfaccess/teloscomm.h" #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <netdb.h> #include <unistd.h> #include <signal.h> #include <stdio.h> #include <time.h> #define AM_REQUESTMSG 0x14 #defi...
tinyos-io/tinyos-3.x-contrib
diku/mcs51/tos/chips/mcs51/unistd.h
/* * Dummy to prevent inclution of system includes (that Keil don't like) */
tinyos-io/tinyos-3.x-contrib
ethz/nodule/tos/platforms/atevk1101/platform.h
<reponame>tinyos-io/tinyos-3.x-contrib<filename>ethz/nodule/tos/platforms/atevk1101/platform.h<gh_stars>0 /* $Id: platform.h,v 1.1 2007/12/05 18:08:29 yuecelm Exp $ */
tinyos-io/tinyos-3.x-contrib
eon/eon/src/runtime/linuxsim/energymgr.c
<reponame>tinyos-io/tinyos-3.x-contrib<filename>eon/eon/src/runtime/linuxsim/energymgr.c #include <pthread.h> #include "simworld.h" #include "energymgr.h" #include "../mNodes.h" #include <stdint.h> #define MAX_PATHS 10 typedef struct p_ent { int valid; unsigned int session; unsigned int pathid; unsigned int ener...
tinyos-io/tinyos-3.x-contrib
uob/tossdr/tos/lib/tossdr/sim_event_queue.h
// $Id: sim_event_queue.h,v 1.3 2010/03/26 15:17:01 mab-cn Exp $ /* * "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 tha...
tinyos-io/tinyos-3.x-contrib
berkeley/blip-2.0/support/sdk/c/blip/lib6lowpan/tests/test_unpack_address.c
<gh_stars>1-10 #include <stdint.h> #include <stdio.h> #include "Ieee154.h" #include "ip.h" #include "lib6lowpan.h" #include "nwbyte.h" #include "6lowpan.h" uint8_t *unpack_address(struct in6_addr *addr, uint8_t dispatch, int context, uint8_t *buf, ieee154_addr_t *fram...
tinyos-io/tinyos-3.x-contrib
diku/freescale/tos/platforms/dig528/include/stdio.h
<reponame>tinyos-io/tinyos-3.x-contrib /** Dummy header to avoid inclusion of the standard library header **/ #ifndef _STRING_H_ #define _STRING_H_ #endif
tinyos-io/tinyos-3.x-contrib
dexma/tos/chips/tmp102/TMP102.h
#ifndef TMP102_H #define TMP102_H #define TMP102_ADDRESS 0x48 #define TMP102_TEMPREG 0x00 #define TMP_READ_TMP 1 #endif
tinyos-io/tinyos-3.x-contrib
uob/tossdr/ucla/gnuradio-802.15.4-demodulation/sos/config/pong/pong_app.c
<gh_stars>1-10 #include <sos.h> /** * Must also include the header file that defines the * pong_get_header() function. */ mod_header_ptr pong_get_header(); mod_header_ptr loader_get_header(); /** * application start * This function is called once at the end od SOS initialization */ void sos_start(void) { ker_...
tinyos-io/tinyos-3.x-contrib
kth/tkn154-gts-mod/apps/beacon-enabled/TestNetworkManager/app_profile.h
#ifndef __APP_PROFILE_H #define __APP_PROFILE_H enum { RADIO_CHANNEL = 0x10, PAN_ID = 0x1234, COORDINATOR_ADDRESS = 0x0000, BEACON_ORDER = 6, SUPERFRAME_ORDER = 4, TX_POWER_BEACON = 0, TX_POWER = -20, // in dBm }; #endif
tinyos-io/tinyos-3.x-contrib
eon/eon/src/util/lzss-c/lzari.c
<gh_stars>1-10 /************************************************************** LZARI.C -- A Data Compression Program (tab = 4 spaces) *************************************************************** 4/7/1989 <NAME> Use, distribute, and modify this program freely. Please send me your improved versions. PC-V...
tinyos-io/tinyos-3.x-contrib
nxtmote/misc/src/libusb-win32/libusb-win32-src-0.1.12.1/src/driver/get_interface.c
/* 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 * (at your opt...
tinyos-io/tinyos-3.x-contrib
rincon/apps/tests/TestParameterStorage/ComponentB.h
<reponame>tinyos-io/tinyos-3.x-contrib<gh_stars>1-10 /** * @author <NAME> * @author <NAME> (<EMAIL>) */ #ifndef COMPONENTB_H #define COMPONENTB_H #define UQ_COMPONENTB_EXTENSION "componentB.ExtendMetadata" typedef struct growing_struct_t { uint8_t extendedParameters[uniqueCount(UQ_COMPONENTB_EXTENSION)]; } gr...
tinyos-io/tinyos-3.x-contrib
wsu/telosw/ccxx00/radios/cc1100/CC1100_500kBaud.h
<filename>wsu/telosw/ccxx00/radios/cc1100/CC1100_500kBaud.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...
tinyos-io/tinyos-3.x-contrib
vu/tos/lib/dfrf/Dfrf.h
<gh_stars>1-10 /* * Copyright (c) 2009, 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 *...
tinyos-io/tinyos-3.x-contrib
usc/senzip/SenZip_v1.0/SenZipApp/StorageVolumes.h
#ifndef STORAGE_VOLUMES_H #define STORAGE_VOLUMES_H enum { VOLUME_BLOCKTEST, }; #endif #if defined(VS) VS(VOLUME_BLOCKTEST, 1024) #undef VS #endif #if defined(VB) VB(VOLUME_BLOCKTEST, 0) #undef VB #endif
tinyos-io/tinyos-3.x-contrib
nxtmote/misc/src/libusb-win32/libusb-win32-src-0.1.12.1/src/error.c
/* * USB Error messages * * Copyright (c) 2000-2001 <NAME> <<EMAIL>> * * This library is covered by the LGPL, read LICENSE for details. */ #include <errno.h> #include <string.h> #include <stdio.h> #include "usb.h" #include "error.h" #include "driver_api.h" char usb_error_str[1024] = ""; int usb_error_errno = 0...