repo_name stringlengths 6 97 | path stringlengths 3 341 | text stringlengths 8 1.02M |
|---|---|---|
tinyos-io/tinyos-3.x-contrib | dexma/tos/platforms/z1/hardware.h | #ifndef _H_hardware_h
#define _H_hardware_h
#include "msp430hardware.h"
// LEDs
TOSH_ASSIGN_PIN(RED_LED, 5, 4);
TOSH_ASSIGN_PIN(GREEN_LED, 5, 6);
TOSH_ASSIGN_PIN(YELLOW_LED, 5, 5);
// UART pins
TOSH_ASSIGN_PIN(SOMI0, 3, 2);
TOSH_ASSIGN_PIN(SIMO0, 3, 1);
TOSH_ASSIGN_PIN(UCLK0, 3, 3);
TOSH_ASSIGN_PIN(UTXD0, 3, 4);
TOS... |
tinyos-io/tinyos-3.x-contrib | tcd/powertossim-z/tinyos_files/tinyos-2.0.2/tos/lib/tossim/csma.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 | diku/mcs51/tos/chips/mcs51/bits/pthreadtypes.h | /*
* We don't need any of this stuff - we just wan't to not load the system one
*/
#ifndef _BITS_PTHREADTYPES_H
#define _BITS_PTHREADTYPES_H 1
#endif /* bits/pthreadtypes.h */
|
tinyos-io/tinyos-3.x-contrib | berkeley/blip-2.0/support/sdk/c/blip/interface/tun_dev_linux.c | <reponame>tinyos-io/tinyos-3.x-contrib
/*
* "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 ... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/runtime/tinyos/fluxhandler.h | <gh_stars>1-10
#ifndef FLUXHANDLER_H_INCLUDED
#define FLUXHANDLER_H_INCLUDED
#include "rt_structs.h"
//#include "MemAlloc.h"
result_t callEdge (uint16_t dest, void *invar, void *outvar);
result_t adjustIntervals();
task void FinishRecoverTask();
int16_t getOutSize (uint16_t nodeid);
result_t handle_error (uint16_t... |
tinyos-io/tinyos-3.x-contrib | intelmote2/apps/cameraMultiHop/c/get_jpg.c | #include <time.h>
#include "camera_cmd.h"
void callback(int percentage, char* filename){
//((part_idx*100)/max_row)
printf("\b\b\b\b\b%4d%%",percentage);
fflush(stdout);
}
int main(int argc, char **argv)
{
if (argc != 3 && argc != 4)
{
fprintf(stderr,
"Usage: %s <ip_port> <mote_id> [<img_type>]\... |
tinyos-io/tinyos-3.x-contrib | ethz/snpk/apps/Harvester/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 | rincon/tos/chips/msp430/selfdestruct/SelfDestruct.h |
#ifndef SELFDESTRUCT_H
#define SELFDESTRUCT_H
#endif
|
tinyos-io/tinyos-3.x-contrib | wustl/upma/apps/tests/TestSCP/TestMsg.h | #ifndef __TESTMSG_H
#define __TESTMSG_H
typedef nx_struct TestMsg
{
nx_uint8_t payload[5];
} TestMsg;
enum { AM_TESTMSG = 101 };
#endif /* __TESTMSG_H */
|
tinyos-io/tinyos-3.x-contrib | rincon/tos/lib/string/TinyosString.h | <gh_stars>1-10
/**
* @author <NAME>
*/
#ifndef TINYOS_STRING_H
#define TINYOS_STRING_H
#ifndef DEFAULT_STRING_LENGTH
#define DEFAULT_STRING_LENGTH 100 // max should be 135 + 2 byte length + 2 byte crc on rx
#endif
typedef struct string_t {
uint8_t length;
uint8_t data[DEFAULT_STRING_LENGTH];
} string_t;
#e... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/runtime/telos/fluxmarshal.h | <reponame>tinyos-io/tinyos-3.x-contrib<filename>eon/eon/src/runtime/telos/fluxmarshal.h
#ifndef FLUXMARSHAL_H_INCLUDED
#define FLUXMARSHAL_H_INCLUDED
#include "../nodes.h"
#include "../usermarshal.h"
#define TYPE_START 0
#define TYPE_END 1
#define TYPE_UINT8 2
#define TYPE_UINT16 3
#define TYPE_UINT32 4
#define ... |
tinyos-io/tinyos-3.x-contrib | wsu/WakeNet/tos/lib/net/ctp/CtpForwardingEngine.h | #ifndef FORWARDING_ENGINE_H
#define FORWARDING_ENGINE_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 mu... |
tinyos-io/tinyos-3.x-contrib | diku/freescale/tos/platforms/dig528/include/ctype.h | /** Dummy header to avoid inclusion of the standard library header **/
#ifndef _CTYPE_H_
#define NULL 0
#define _CTYPE_H_
#endif
|
tinyos-io/tinyos-3.x-contrib | nxtmote/misc/src/libusb-win32/libusb-win32-src-0.1.12.1/src/descriptors.c | <filename>nxtmote/misc/src/libusb-win32/libusb-win32-src-0.1.12.1/src/descriptors.c
/*
* Parses descriptors
*
* Copyright (c) 2001 <NAME> <<EMAIL>>
*
* This library is covered by the LGPL, read LICENSE for details.
*/
#include <stdio.h>
#include <string.h>
#include "usbi.h"
int usb_get_descriptor_by_endpoint(us... |
tinyos-io/tinyos-3.x-contrib | tcd/powertossim-z/tinyos_files/tinyos-2.0.2/tos/chips/atm128/Atm128I2C.h | <gh_stars>0
// $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 gr... |
tinyos-io/tinyos-3.x-contrib | wsu/tools/simx/simx/python/simx/act/React.h | <reponame>tinyos-io/tinyos-3.x-contrib<filename>wsu/tools/simx/simx/python/simx/act/React.h
/*
Messages understood by TReact.
Since these messages are ONLY transfered between the Python TReact
driver and an external application the message size is restricted
only by the size that the serial-forward protocol ca... |
tinyos-io/tinyos-3.x-contrib | tinymulle/tos/platforms/mulle/chips/rv8564/rv8564.h | <gh_stars>1-10
/*
* Copyright (c) 2008 EISLAB, Lulea University of Technology
* 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 | eon/eon/src/runtime/linuxsim/simworld.h | #ifndef SIM_WORLD_H
#define SIM_WORLD_H
#include <pthread.h>
#define ACTION_USER 10
#define ENERGY_TIME 5 //seconds in between energy updates
typedef void (*__energyfunc) (int, int, unsigned int);
extern unsigned int predict_src_energy(unsigned int hours);
extern unsigned int get_battery_size();
extern unsigned i... |
tinyos-io/tinyos-3.x-contrib | ecosensory/apps/ReadMoistureSensors/ReadMoistureSensors.h | /* 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>>
* Rev 1.0 14 Dec 2007
*/
#ifndef READMOISTURESENSORS_H
#def... |
tinyos-io/tinyos-3.x-contrib | tcd/powertossim-z/powercurses/strarg.c | <reponame>tinyos-io/tinyos-3.x-contrib
#include <stdlib.h>
#include <string.h>
/*
strarg("a b c d e f", " ", 1); => a
strarg(" a b ", " ", 2); => b
strarg(",.a,.b,.c,.", ".,", 3); => c
strarg(" ,. ; a... cdef", " ;,.c", 2) => def (1 would be "a")
*/
char *strarg( const char *str, const char *delims... |
tinyos-io/tinyos-3.x-contrib | intelmote2/support/sdk/c/compress/codeZeros.h | <filename>intelmote2/support/sdk/c/compress/codeZeros.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 mus... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/simulator/energypredictor.h | /* This is the same predictor used in the HelioMote project
* It is a simple autoregressive filter of order 1.
*
*
*/
#ifndef ENERGYPREDICTOR_H
#define ENERGYPREDICTOR_H
#include "simulator.h"
#include "nodes.h"
using namespace std;
#ifndef EP_EPOCH_HRS
#define EP_EPOCH_HRS 24
#endif
#ifndef EP_FILTER_WT
#d... |
tinyos-io/tinyos-3.x-contrib | tinybotics/tos/chips/xbee/Xbee.h | /*
* 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
* notice, this lis... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/runtime/linuxsim/rt_handler.c |
#include "rt_handler.h"
#include "../mNodes.h"
//extern int curstate;
//extern float curgrade;
//extern int32_t timerVals[NUMSOURCES][NUMSTATES][2];
unsigned int get_timer_interval(int source)
{
unsigned int minval, maxval;
minval = timerVals[source][curstate][0];
maxval = timerVals[source][curstate][1];
... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/runtime/stargate/sfaccess/Semaphore.h | /****************************************************************************\
*
* Written by
* <NAME> (<EMAIL>)
* at the Distributed Problem Solving Lab
* Department of Computer Science, University of Massa... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/runtime/tinyos2/SolarSrc.h | <filename>eon/eon/src/runtime/tinyos2/SolarSrc.h<gh_stars>1-10
#ifndef SOLARSRC_H_INCLUDED
#define SOLARSRC_H_INCLUDED
#define _NUMEPOCHS 12L
#define _HRS_PER_DAY 24L
#define _DAYLENGTH (_HRS_PER_DAY * 60L)
#define _EPOCHLENGTH (_DAYLENGTH / _NUMEPOCHS)
#define _HRS_PER_EP (_HRS_PER_DAY / _NUMEPOCHS)
#endif
|
tinyos-io/tinyos-3.x-contrib | csau/misc/apps/tests/Ieee154Test/src/Ieee154Test.h | #ifndef IEEE154TEST_H
#define IEEE154TEST_H
#include "message.h"
enum {
AM_TEST_MSG = 10,
#ifdef TOSSIM
SENDER_ID = 0,
RECEIVER_ID = 1,
#else
SENDER_ID = 2,
RECEIVER_ID = 3,
#endif
};
typedef nx_struct test_msg {
nx_uint8_t data[TOSH_DATA_LENGTH];
} test_msg_t;
#endif
|
tinyos-io/tinyos-3.x-contrib | uob/tossdr/tos/lib/tossdr/packet.c | <filename>uob/tossdr/tos/lib/tossdr/packet.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 copyrigh... |
tinyos-io/tinyos-3.x-contrib | ethz/nodule/support/make/avr32/startup/include/exception.h | <gh_stars>0
/* $Id: exception.h,v 1.1 2008/01/07 14:20:00 yuecelm Exp $ */
/* author: <NAME> <<EMAIL>> */
#ifndef __AVR32_EXCEPTION__
#define __AVR32_EXCEPTION__
/**
* Exception vector offsets
*/
#define EVBA_UNRECOVERABLE 0x000
#define EVBA_TLB_MULTIPLE 0x004
#define EVBA_BUS_ERROR_DATA 0x008
#define EVB... |
tinyos-io/tinyos-3.x-contrib | intelmote2/support/sdk/c/compress/huffmanCompress.h | <filename>intelmote2/support/sdk/c/compress/huffmanCompress.h<gh_stars>1-10
/*************************************************************************
* Name: huffman.c
* Author: <NAME>
* Description: Huffman coder/decoder implementation.
* Reentrant: Yes
*
* This is a very straight forward implementation... |
tinyos-io/tinyos-3.x-contrib | cotsbots/tos/lib/MotorBoard.h | /* tab:4
*
*
* "Copyright (c) 2002 and 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 ... |
tinyos-io/tinyos-3.x-contrib | antlab-polimi/dpcm_C/quanttables.h | <reponame>tinyos-io/tinyos-3.x-contrib
/*
* 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 abov... |
tinyos-io/tinyos-3.x-contrib | rincon/apps/tests/TestLpl/TestMultipleTx/TestMulti.h |
#ifndef TESTMULTI_H
#define TESTMULTI_H
#include "message.h"
typedef nx_struct TestMultiMsg {
nx_uint8_t myData[TOSH_DATA_LENGTH];
} TestMultiMsg;
enum {
AM_TESTMULTIMSG = 0x5,
};
#endif
|
tinyos-io/tinyos-3.x-contrib | stanford-sing/s4-tinyos-2.x/tos/lib/bvr/topology.h | <filename>stanford-sing/s4-tinyos-2.x/tos/lib/bvr/topology.h
/* This file autogenerated by generate_topology.pl. Do not edit
* Parameters: n:200 density:12 roots:5 root placement:edges seed:123
* Author: <NAME>
*/
#ifndef TOPOLOGY_H
#define TOPOLOGY_H
uint16_t TOS_LOCAL_ADDRESS=1;
enum {
N_NODES = 225,
N_ROOT_... |
tinyos-io/tinyos-3.x-contrib | berkeley/quanto/tools/quanto/compression/libquantocode.h | <filename>berkeley/quanto/tools/quanto/compression/libquantocode.h
/*
* 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, i... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/runtime/stargate/sfaccess/sfaccess.c | <reponame>tinyos-io/tinyos-3.x-contrib
#include <stdio.h>
#include <stdlib.h>
#include "telossource.h"
int main(int argc, char **argv)
{
int fd;
if (argc != 3)
{
fprintf(stderr, "Usage: %s <host> <port> - dump packets from a serial forwarder\n", argv[0]);
exit(2);
}
fd = open_telos_source(argv[1... |
tinyos-io/tinyos-3.x-contrib | rincon/tos/lib/industrialCtp/routing/CtpRoutingEngine.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 code must retain the above copyright
* notice, th... |
tinyos-io/tinyos-3.x-contrib | ethz/nodule/tos/chips/at32uc3b/at32uc3b_config.h | /* $Id: at32uc3b_config.h,v 1.2 2008/03/11 23:41:55 yuecelm Exp $ */
/* @author <NAME> <<EMAIL>> */
#ifndef __AT32UC3B_CONFIG_H__
#define __AT32UC3B_CONFIG_H__
#include "at32uc3b.h"
/* interrupt priority table (0-3, 0 means highest priority) */
#define AVR32_INTC_INTLEVEL_DEFAULT 3
#define AVR32_INTC_INTLEVEL_PM ... |
tinyos-io/tinyos-3.x-contrib | rincon/tos/chips/cc1000_sync/UniqueReceive.h |
#ifndef UNIQUERECEIVE_H
#define UNIQUERECEIVE_H
#define RECEIVE_HISTORY_SIZE 4
#endif
|
tinyos-io/tinyos-3.x-contrib | sensorscheme/tos/lib/SensorScheme/Components.h | <filename>sensorscheme/tos/lib/SensorScheme/Components.h<gh_stars>1-10
#ifndef COMPONENTS_H
#define COMPONENTS_H
#define DEF_COMPONENTS(name, pr) components pr as PR_##name;
#define SIMPLE_PRIM_CONFIG(name, pr) App.Primitive[name] -> PR_##name;
#define EVAL_PRIM_CONFIG(name, pr) App.Eval[name] -> PR_##name;... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/runtime/tinyos2/nodepower.h | <filename>eon/eon/src/runtime/tinyos2/nodepower.h
#ifndef NODEPOWER_H_INCLUDED
#define NODEPOWER_H_INCLUDED
//StatePower in mW
double
getStatePower (uint8_t state, bool max)
{
int i;
double power = 0.0;
for (i = 0; i < NUMPATHS; i++)
{
if (state <= minPathState[i])
{
//good
if (max)
{
... |
tinyos-io/tinyos-3.x-contrib | nxtmote/misc/src/libusb-win32/libusb-win32-src-0.1.12.1/src/driver/vendor_request.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 | blaze/tos/chips/ccxx00_single/RadioStackPacket.h |
#ifndef RADIOSTACKPACKET_H
#define RADIOSTACKPACKET_H
#include "message.h"
/** The message pointer passed around every layer in the radio stack */
message_t *RADIO_STACK_PACKET;
#endif
|
tinyos-io/tinyos-3.x-contrib | nxtmote/misc/src/libnxt/main_sambaget.c | <reponame>tinyos-io/tinyos-3.x-contrib
/**
* Main program code for the sambaget utility. Write the SAM-BA boot
* monitor program to a given file name.
*
* Copyright 2006 <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public Licens... |
tinyos-io/tinyos-3.x-contrib | stanford-sing/s4-tinyos-2.x/tos/lib/util/util.h | // ex: set tabstop=2 shiftwidth=2 expandtab syn=c:
// $Id: util.h,v 1.1 2008/10/23 22:22:41 genie1 Exp $
/*
* "Copyright (c) 2000-2003 The Regents of the University of California.
* All rights reserved. ... |
tinyos-io/tinyos-3.x-contrib | berkeley/blip-2.0/support/sdk/c/blip/interface/tun_dev_cygwin.c |
#include <Windows.h>
#include <stdio.h>
#include <string.h>
#include <ddk/ntddk.h>
#include <stdint.h>
#include <netinet/in.h>
#include <unistd.h>
#include <fcntl.h>
#define AF_INET6 23
#include <ip.h>
#include <in_cksum.h>
/* tun defs we'll need. */
#define ADAPTER_KEY "SYSTEM\\CurrentControlSet\\C... |
tinyos-io/tinyos-3.x-contrib | rincon/tos/chips/cc1000_sync/CC1000Sync.h | <filename>rincon/tos/chips/cc1000_sync/CC1000Sync.h
#ifndef CC1000SYNC_H
#define CC1000SYNC_H
enum {
SYNC_NUM_TIMERS = 5,
SYNC_NUM_NEIGHBORS = 7,
LIFE_INCREMENT = 32,
LIFE_DECREMENT = 1,
/*
* PREEMPTIVE_DELAY is the number of microseconds before the next receive
* check to start sending the messag... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/runtime/stargatehelper/fluxhandler.h | <reponame>tinyos-io/tinyos-3.x-contrib
#ifndef FLUXHANDLER_H_INCLUDED
#define FLUXHANDLER_H_INCLUDED
//#include "rt_structs.h"
#include "MemAlloc.h"
//bool isReadyByID (EdgeIn * edge);
//result_t callEdge (EdgeIn * e);
//result_t adjustIntervals();
task void FinishRecoverTask();
//result_t getOutSize (EdgeIn * e);
... |
tinyos-io/tinyos-3.x-contrib | ethz/snpk/tos/lib/net/TimeSync/TimeSyncMsg.h | /*
* Copyright (c) 2007, ETH Zuerich
* All rights reserved.
* Author: <NAME>
*/
#ifndef TIMESYNCMSG_STRUCT
#define TIMESYNCMSG_STRUCT
typedef nx_struct TimeSyncMsg
{
nx_uint16_t rootID; // the node id of the synchronization root
nx_uint8_t seqNum; // sequence number for the root
... |
tinyos-io/tinyos-3.x-contrib | intelmote2/tools/platforms/intelmote2/jflashmm/src/Jflash.h | <gh_stars>1-10
/******************************************************************************
**
** 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 commi... |
tinyos-io/tinyos-3.x-contrib | tub/apps/PacketSniffer_802_15_4/sniff802154.h | #ifndef SNIFF802154_H
#define SNIFF802154_H
enum {
AM_CONTROL_PKT_T = 215, /* AM id for Serial packet containing control information as payload (i.e. #channel) */
};
typedef nx_struct control_pkt_t {
nx_uint8_t channel; /* which channel to listen on */
} control_pkt_t;
#endif
|
tinyos-io/tinyos-3.x-contrib | eon/eon/src/runtime/tinyos2/fluxsourcepredictor.h | #ifndef FLUXSOURCEPREDICTOR_H_INCLUDED
#define FLUXSOURCEPREDICTOR_H_INCLUDED
void update_source
int32_t predict_source (uint8_t hours)
{
return 5; //TODO come back to this
}
#endif
|
tinyos-io/tinyos-3.x-contrib | wsu/telosw/ADC/WakeupADC.h | #ifndef __WAKEUPADC_H__
#define __WAKEUPADC_H__
enum{
ADDR_BYTE = 0x58
};
#endif
|
tinyos-io/tinyos-3.x-contrib | eon/apps/turtle_snapper/impl/mica2dot/userstructs.h | <filename>eon/apps/turtle_snapper/impl/mica2dot/userstructs.h
#ifndef USERSTRUCTSH_H_INCLUDED
#define USERSTRUCTSH_H_INCLUDED
#include "gps.h"
#include "SingleStream.h"
#include "AM.h"
#include "uservariables.h"
enum
{
AM_BEACONMSG = 4,
AM_INTERESTEDMSG = 5,
AM_ACK_MSG = 6,
AM_ACK_MSG_ACK = 8,
AM_OFFERMSG = 9,
... |
tinyos-io/tinyos-3.x-contrib | diku/common/tools/compression/lz77/lz77_decomp.c | <gh_stars>1-10
/**************************************************************************
*
* lz77_decomp.c
*
* The LZ77 decompression algorithm.
*
* This file is licensed under the GNU GPL.
*
* (C) 2005, <NAME> <<EMAIL>>
*
*/
#include "lz77.h"
#include <inttypes.h>
#include <errno.h>
#include <stdio.h>
#inc... |
tinyos-io/tinyos-3.x-contrib | mts4x0/tos/sensorboards/mts400/mts400.h |
/******************************************************************************/
/* 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 ... |
tinyos-io/tinyos-3.x-contrib | diku/common/tools/daq/test.c | <reponame>tinyos-io/tinyos-3.x-contrib<filename>diku/common/tools/daq/test.c
#include <stdio.h>
#include "daq_lib.h"
int main(int argc, char *argv[])
{
daq_card_t daq;
uint16_t sample;
if (argc != 2) {
fprintf(stderr, "Too few arguments\n");
return 1;
}
if (daq_open(argv[1], &daq)) {
perror("E... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/motelog/sunlog.h | enum { MY_FLASH_REGION_ID = unique("ByteEEPROM") };
|
tinyos-io/tinyos-3.x-contrib | wsu/tools/simx/simx/lib/simx/sync/sync.h | #ifndef SIMX_SYNC_H_INCLUDE
#define SIMX_SYNC_H_INCLUDE
#include <sim_tossim.h>
class SimxSync {
public:
SimxSync();
~SimxSync();
int waitUntilNextEvent(long max_wait_msec);
int runNextEventInTime();
int runNextEvent();
sim_time_t simTime();
sim_time_t realTime();
void synchronize();
void setClo... |
tinyos-io/tinyos-3.x-contrib | nxtmote/tos/platforms/nxtmote/Board.h | /*----------------------------------------------------------------------------
* ATMEL Microcontroller Software Support - ROUSSET -
*----------------------------------------------------------------------------
* The software is delivered "AS IS" without warranty or condition of any
* kind, either express, im... |
tinyos-io/tinyos-3.x-contrib | uob/tossdr/ucla/gnuradio-802.15.4-demodulation/sos/modules/pong/pong.h | #ifndef _PING_H_
#define _PING_H_
#ifndef _MODULE_
int8_t ping_init();
#endif
#endif
|
tinyos-io/tinyos-3.x-contrib | eon/eon/src/simulator/omnienergypredictor.h | <filename>eon/eon/src/simulator/omnienergypredictor.h<gh_stars>1-10
/* This is the same predictor used in the HelioMote project
* It is a simple autoregressive filter of order 1.
*
*
*/
#ifndef OMNIENERGYPREDICTOR_H
#define OMNIENERGYPREDICTOR_H
#include "simulator.h"
#include "nodes.h"
using namespace std;
... |
tinyos-io/tinyos-3.x-contrib | tinymulle/apps/MotionSensorTest/Motion.h | <reponame>tinyos-io/tinyos-3.x-contrib
#ifndef MOTION_H
#define MOTION_H
typedef nx_struct motion_msg {
nx_uint16_t data;
} motion_msg_t;
enum {
AM_MOTION_MSG = 8,
};
#endif
|
tinyos-io/tinyos-3.x-contrib | hitdke/tos/sensorboards/synsb/sim/synsb.h | <reponame>tinyos-io/tinyos-3.x-contrib<gh_stars>0
// $Id: synsb.h,v 1.5 2010/06/25 14:03:30 pineapple_liu Exp $
/*
* Copyright (c) 2010 Data & Knowledge Engineering Research Center,
* Harbin Institute of Technology, P. R. China.
* All rights reserved.
*/
/**
* Demo sensor for synthetic sensorb... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/runtime/telos/fluxstatedecider.h | <reponame>tinyos-io/tinyos-3.x-contrib
#ifndef FLUXSTATEDECIDER_H_INCLUDED
#define FLUXSTATEDECIDER_H_INCLUDED
#include "../nodes.h"
#include "fluxenergypredictor.h"
uint8_t decide_state (uint16_t connid, bool data)
{
uint8_t state = 0; //set to max state
uint8_t timeframe = 0;
int32_t netenergy;
int32_t batter... |
tinyos-io/tinyos-3.x-contrib | intelmote2/support/sdk/c/camera_cmd/status.c | <reponame>tinyos-io/tinyos-3.x-contrib<gh_stars>1-10
/**
* This file is automatically generated by mig. DO NOT EDIT THIS FILE.
* This file implements the functions for encoding and decoding the
* 'status' message type. See status.h for more details.
*/
#include <message.h>
#include "status.h"
uint16_t status_node... |
tinyos-io/tinyos-3.x-contrib | eon/apps/turtle_snapper/impl/mica2dot/typechecks.h | #ifndef TYPECHECKS_H_INCLUDED
#define TYPECHECKS_H_INCLUDED
/*
AM_BEGIN_TRAVERSAL_MSG = 17,
AM_GO_NEXT_MSG = 18,
AM_GET_NEXT_CHUNK = 19,
AM_GET_BUNDLE_MSG = 20,
AM_DELETE_BUNDLE_MSG = 21,
AM_END_DATA_COLLECTION_SESSION = 22,
AM_BUNDLE_INDEX_ACK = 23
*/
bool
IsGetNextChunkMsg (int value)
{
return value == AM_G... |
tinyos-io/tinyos-3.x-contrib | diku/mcs51/tos/chips/cc2430/timer/CC2430Timer.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 code must retain the above copyright
* notice, this list ... |
tinyos-io/tinyos-3.x-contrib | nxtmote/misc/src/libusb-win32/libusb-win32-src-0.1.12.1/src/usb.c | /*
* Main API entry point
*
* Copyright (c) 2000-2003 <NAME> <<EMAIL>>
*
* This library is covered by the LGPL, read LICENSE for details.
*/
#include <stdlib.h> /* getenv */
#include <stdio.h> /* stderr */
#include <string.h> /* strcmp */
#include <errno.h>
#include "usbi.h"
int usb_debug = 0;
struct usb_bus *... |
tinyos-io/tinyos-3.x-contrib | ucd/Octopus/motes/OctopusConfig.h | <filename>ucd/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 any purpose, ... |
tinyos-io/tinyos-3.x-contrib | eon/apps/turtle_snapper/impl/tinynode/uservariables.h | #ifndef USERVARIABLES_H_
#define USERVARIABLES_H_
#define NUM_TURTLES 20
/**************************************************************************************************
// GLOBAL SINGLE STREAM VARIABLES
************************************************************************************************... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/runtime/linuxsim/rt_structs.h | #ifndef RT_STRUCTS_H_INCLUDED
#define RT_STRUCTS_H_INCLUDED
#include <stdint.h>
typedef int8_t result_t;
#define TRUE 1
#define FALSE 0
typedef struct rt_data
{
uint16_t sessionID;
//uint32_t starttime;
uint16_t weight;
//uint8_t minstate;
//uint32_t elapsed_us;
} rt_data;
typedef struct GenericNode
{
... |
tinyos-io/tinyos-3.x-contrib | diku/mcs51/tos/platforms/nRF24E1_EVBOARD/platform.h | <reponame>tinyos-io/tinyos-3.x-contrib
//Nothing to see here. move along
|
tinyos-io/tinyos-3.x-contrib | kasetsart/tos/chips/atm328/atm328hardware.h | <gh_stars>1-10
/**
* This file defines various macros and functions for ATmega328 low-level
* hardware control such as interrupts and power management.
*
* @notes
* This file is modified from
* <code>tinyos-2.1.0/tos/chips/atm128/atm128hardware.h</code>
*
* @author
* <NAME> (<EMAIL>)
*/
#ifndef _H_atmega32... |
tinyos-io/tinyos-3.x-contrib | nxtmote/misc/src/libusb-win32/libusb-win32-src-0.1.12.1/src/driver/driver_api.h | /* 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 | berkeley/quanto/tools/quanto/compression/quanto_decode.c | <filename>berkeley/quanto/tools/quanto/compression/quanto_decode.c
/*
* 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, i... |
tinyos-io/tinyos-3.x-contrib | uob/tossdr/tos/lib/tossdr/sim_log.c | <filename>uob/tossdr/tos/lib/tossdr/sim_log.c
// $Id: sim_log.c,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
* agr... |
tinyos-io/tinyos-3.x-contrib | uob/tossdr/tos/lib/tossdr/sim_log.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 | uob/tossdr/tos/chips/atm128/sdr/atm128const.h | <filename>uob/tossdr/tos/chips/atm128/sdr/atm128const.h
/* $Id: atm128const.h,v 1.2 2009/05/28 21:13:06 mab-cn Exp $
* Copyright (c) 2005 Intel Corporation
* All rights reserved.
*
* This file is distributed under the terms in the attached INTEL-LICENSE
* file. If you do not find these files, copies can be fo... |
tinyos-io/tinyos-3.x-contrib | antlab-polimi/dpcm_C/jpegUncompress.c | /*
* 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 | eon/eon/src/util/collect/sfcomm.c | <reponame>tinyos-io/tinyos-3.x-contrib
#include <stdio.h>
#include <pthread.h>
#include <stdlib.h>
#include <stdint.h>
//#include <curses.h>
#include <ctype.h>
#include <limits.h>
#include <string.h>
#include <sys/types.h>
#include "sfsource.h"
#ifndef TOSH_DATA_LENGTH
#define TOSH_DATA_LENGTH 29
#define BUNDLE_ACK... |
tinyos-io/tinyos-3.x-contrib | kasetsart/tos/platforms/iwing-mrf/platform_message.h | <reponame>tinyos-io/tinyos-3.x-contrib
/**
* Defining the platform-independently named packet structures to be the
* chip-specific MRF24J40 packet structures.
*
* @author
* <NAME> (<EMAIL>)
*/
#ifndef PLATFORM_MESSAGE_H
#define PLATFORM_MESSAGE_H
#include "mrf24.h"
#include "Serial.h"
typedef union message_he... |
tinyos-io/tinyos-3.x-contrib | uob/tossdr/ucla/gnuradio-802.15.4-demodulation/src/lib/ucla_sos_packet_sink.h | /* -*- c++ -*- */
/*
* Copyright 2005 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 | intelmote2/support/sdk/c/camera_cmd/img_stat.c | <reponame>tinyos-io/tinyos-3.x-contrib
/**
* This file is automatically generated by mig. DO NOT EDIT THIS FILE.
* This file implements the functions for encoding and decoding the
* 'img_stat' message type. See img_stat.h for more details.
*/
#include <message.h>
#include "img_stat.h"
uint16_t img_stat_node_id_ge... |
tinyos-io/tinyos-3.x-contrib | stanford-lgl/tos/chips/ov7649/OV7649.h | <gh_stars>1-10
/*
* 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 li... |
tinyos-io/tinyos-3.x-contrib | diku/common/lib/compression/lz77_diff.h | #define DIFFERENCE
#include "../../tools/compression/lz77/lz77_comp.c"
|
tinyos-io/tinyos-3.x-contrib | nxtmote/misc/src/libusb-win32/libusb-win32-src-0.1.12.1/src/driver/get_descriptor.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 | nxtmote/misc/src/libusb-win32/libusb-win32-src-0.1.12.1/src/driver/dispatch.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 | tcd/powertossim-z/tinyos_files/tinyos-2.0.2/tos/lib/tossim/csma.h | <reponame>tinyos-io/tinyos-3.x-contrib<gh_stars>0
/*
* "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 cop... |
tinyos-io/tinyos-3.x-contrib | berkeley/quanto/tos/chips/msp430/msp430quantoconsts.h | <reponame>tinyos-io/tinyos-3.x-contrib
#ifndef _MSP430QUANTOCONSTS_H
#define _MSP430QUANTOCONSTS_H
//Quanto: these are the primary proxy activities for each
// interrupt that TinyOS uses from the MSP430.
enum {
ACT_PXY_ADC = 0x40,
ACT_PXY_DACDMA = 0x41,
ACT_PXY_NMI = 0x42,
ACT_PXY_P... |
tinyos-io/tinyos-3.x-contrib | antlab-polimi/dpcm_C/huffmanUncompress.c | <gh_stars>1-10
/*************************************************************************
* Name: huffman.c
* Author: <NAME>
* Description: Huffman coder/decoder implementation.
* Reentrant: Yes
*
* This is a very straight forward implementation of a Huffman coder and
* decoder.
*
* Primary flaws with thi... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/util/tinyrely/TinyRely.h |
#include <AM.h>
#ifndef TINYRELY_H_INCLUDED
#define TINYRELY_H_INCLUDED
#ifndef RELY_HEADER_LENGTH
#define RELY_HEADER_LENGTH 6
#endif
#ifndef RELY_PAYLOAD_LENGTH
#define RELY_PAYLOAD_LENGTH (TOSH_DATA_LENGTH-RELY_HEADER_LENGTH)
#endif
#ifndef RELY_MAX_CONNECTIONS
#define RELY_MAX_CONNECTIONS 3
#endif
#ifnde... |
tinyos-io/tinyos-3.x-contrib | tinymulle/tos/platforms/mulle/platform_message.h | /**
* @author <NAME>
*/
#ifndef PLATFORM_MESSAGE_H
#define PLATFORM_MESSAGE_H
#include "Serial.h"
#include <RF230ActiveMessage.h>
typedef union message_header {
rf230packet_header_t rf230;
serial_header_t serial;
} message_header_t;
typedef union message_footer {
rf230packet_footer_t rf230;
} message_footer_t;
... |
tinyos-io/tinyos-3.x-contrib | antlab-polimi/dpcm_C/decodeZeros.h | <gh_stars>1-10
uint32_t decodeZeros(uint8_t *dataIn, unsigned char *dataOut,
uint32_t size, uint32_t maxSize)
{
uint32_t i,r,j, idx=0;
r=0;
for (i=0; i<size; i++)
{
if (dataIn[r] == 0 && (r+1)<size)
{
// doppio zero: zeri fino a fine file
if(dataIn[(r+1)]==0){
while (idx<ma... |
tinyos-io/tinyos-3.x-contrib | intelmote2/tos/chips/pxa27x/mmu.h | /**
* author <NAME>
**/
#ifndef __MMU_H__
#define __MMU_H__
/**
* Initialize the processor's MMU unit. The page table to use and some
other parameters are defined in platform/pxa27x/mmu_table.s
**/
void initMMU();
/**
* Place the attached flash chip into synchronous mode
**/
void initSyncFlash() __attribut... |
tinyos-io/tinyos-3.x-contrib | wsu/telosw/teloswplatform/platform_message.h |
#ifndef PLATFORM_MESSAGE_H
#define PLATFORM_MESSAGE_H
#include "Blaze.h"
#include "Serial.h"
typedef union message_header {
blaze_header_t blazeHeader;
serial_header_t serial;
} message_header_t;
typedef union TOSRadioFooter {
blaze_footer_t blazeFooter;
} message_footer_t;
typedef union TOSRadioMetadata {
... |
tinyos-io/tinyos-3.x-contrib | berkeley/blip-2.0/support/sdk/c/blip/interface/logging.h | <reponame>tinyos-io/tinyos-3.x-contrib
/*
* "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 ... |
tinyos-io/tinyos-3.x-contrib | usc/senzip/SenZip_v1.0/senzip/TreeRouting.h | #ifndef _TREE_ROUTING_H
#define _TREE_ROUTING_H
enum {
AM_TREE_ROUTING_CONTROL = 0xCE,
BEACON_INTERVAL = 8192,
INVALID_ADDR = TOS_BCAST_ADDR,
ETX_THRESHOLD = 50, // link quality=20% -> ETX=5 -> Metric=50
PARENT_SWITCH_THRESHOLD = 15,
MAX_METRIC = 0xFFFF,
};
typedef struct {
am_add... |
tinyos-io/tinyos-3.x-contrib | kasetsart/tos/platforms/iwing-mrf/hardware.h | <reponame>tinyos-io/tinyos-3.x-contrib<gh_stars>1-10
#ifndef _H_hardware_h
#define _H_hardware_h
#include "atm328hardware.h"
#endif // _H_hardware_h
|
tinyos-io/tinyos-3.x-contrib | berkeley/blip-2.0/support/sdk/c/blip/interface/queue.c | <gh_stars>1-10
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include "queue.h"
int queue_init(struct blocking_queue *q) {
pthread_mutex_init(&q->mut, NULL);
pthread_cond_init(&q->cond, NULL);
q->head = NULL;
}
int queue_push(struct blocking_queue *q, void *data) {
struct queue_entry *new = (s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.