repo_name stringlengths 6 97 | path stringlengths 3 341 | text stringlengths 8 1.02M |
|---|---|---|
tinyos-io/tinyos-3.x-contrib | nxtmote/misc/src/libusb-win32/libusb-win32-src-0.1.12.1/src/driver/ioctl.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 | antlab-polimi/dpcm_C/dpcmEncodeApp.c | <reponame>tinyos-io/tinyos-3.x-contrib
/**
* @author <NAME> (<EMAIL>)
*/
#include <math.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "tinyos_macros.h"
#include "jpeghdr.h"
#include "jpegTOS.h"
#include "jpegUncompress.h"
#include "quanttables.h"
#include ... |
tinyos-io/tinyos-3.x-contrib | csm/tos/lib/tossim/SerialPacket.c | <reponame>tinyos-io/tinyos-3.x-contrib<gh_stars>1-10
/*
* "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 ... |
tinyos-io/tinyos-3.x-contrib | nxtmote/misc/src/libusb-win32/libusb-win32-src-0.1.12.1/src/registry.c | /* LIBUSB-WIN32, Generic Windows USB Library
* Copyright (c) 2002-2005 <NAME> <<EMAIL>>
*
* 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
* version 2 of the License, or (at y... |
tinyos-io/tinyos-3.x-contrib | nxtmote/tos/chips/sensor/c_input.h | #ifndef C_INPUT_H
#define C_INPUT_H
//// c_input.h ////
#define ACTUAL_AD_RES 1023L
#define SENSOR_RESOLUTION 1023L
#define DEBOUNCERELOAD 100
#define THRESHOLD_FALSE (UWORD)(ACTUAL_AD_RES * 45L / 100L)
#define THRESHOLD_TRUE (UWORD)(AC... |
tinyos-io/tinyos-3.x-contrib | rincon/tos/lib/onewire/usleep.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 | eon/eon/src/simulator/loadpredictor.h | <filename>eon/eon/src/simulator/loadpredictor.h
#ifndef LOADPREDICTOR_H
#define LOADPREDICTOR_H
#include "simulator.h"
#include "nodes.h"
using namespace std;
#define LOAD_HISTORY 24
#define LOAD_DOUBT 8
#define EPOCH_HRS 1
int64_t last_time;
int64_t start_epoch;
int64_t event_count;
int64_t prediction;
int64_t... |
tinyos-io/tinyos-3.x-contrib | rincon/tos/lib/industrialCtpRoot/linkestimators/4bitle/LinkEstimator.h | <reponame>tinyos-io/tinyos-3.x-contrib
/*
* "Copyright (c) 2006 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 the ab... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/runtime/stargate/rt_intercomm.h | <gh_stars>1-10
#ifndef _RT_INTERCOMM_H_
#define _RT_INTERCOMM_H_
#include "rt_marshall.h"
int intercomm_start(short port);
int intercomm_stop();
#endif
|
tinyos-io/tinyos-3.x-contrib | berkeley/apps/AIIT_tutorials/4_Single/PrintReading.h | <reponame>tinyos-io/tinyos-3.x-contrib<gh_stars>1-10
#ifndef PRINT_SERIAL_H
#define PRINT_SERIAL_H
#include "message.h"
typedef nx_struct print_reading_msg {
nx_uint8_t flag;
nx_uint8_t buffer[TOSH_DATA_LENGTH - 5];
nx_uint16_t voltage_reading;
nx_uint16_t temperature_reading;
} print_reading_msg_t;
enum {
... |
tinyos-io/tinyos-3.x-contrib | tinymulle/tos/chips/m16c62p/m16c62phardware.h | <filename>tinymulle/tos/chips/m16c62p/m16c62phardware.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.
*
... |
tinyos-io/tinyos-3.x-contrib | eon/tos/platforms/turtlenet/sim/hardware.h |
#ifndef _H_hardware_h
#define _H_hardware_h
/*#include "msp430hardware.h"
// XE1205 radio
TOSH_ASSIGN_PIN(NSS_DATA, 1, 0);
TOSH_ASSIGN_PIN(DATA, 5, 7);
TOSH_ASSIGN_PIN(NSS_CONFIG, 1, 4);
TOSH_ASSIGN_PIN(IRQ0, 2, 0);
TOSH_ASSIGN_PIN(IRQ1, 2, 1);
TOSH_ASSIGN_PIN(SW_RX, 2, 6);
TOSH_ASSIGN_PIN(SW_TX, 2, 7);
TOSH_ASSIGN... |
tinyos-io/tinyos-3.x-contrib | antlab-polimi/dpcm_C/dpcm_decoder.h | #include <stdio.h>
#include "diff_idctfstBlk.h"
#include "diff_dctfstBlk.h"
#include "decodeZeros.h"
#include "huffmanUncompress.h"
#include "jpeghdr.h"
#include "quanttables.h"
int getBytes(char* filename, uint8_t *dataIn)
{
FILE *fdIn;
if (!(fdIn = fopen(filename, "r")) ){
printf("Can't open %s for reading\... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/runtime/linuxsim/evaluator.c | #include <pthread.h>
#include "energymgr.h"
//#include <stdint.h>
#include "../mNodes.h"
#include <math.h>
#ifndef NUMTIMEFRAMES
#define NUMTIMEFRAMES 12
#endif
#ifdef STATIC_POLICY
int static_state = STATIC_STATE;
double static_grade = STATIC_GRADE;
#endif
int ENERGY_TIMESCALES[NUMTIMEFRAMES];
extern unsigned i... |
tinyos-io/tinyos-3.x-contrib | rincon/tos/chips/msp430/dac12/vref/msp430vref.h |
#ifndef MSP430VREF_H
#define MSP430VREF_H
/** Time for generator to become stable (don't change). */
#define STABILIZE_INTERVAL 17
/**
* Delay before generator is switched off after it has been stopped (in ms).
* This avoids having to wait the 17ms in case the generator is needed again
* shortly after it has bee... |
tinyos-io/tinyos-3.x-contrib | nxtmote/misc/src/libnxt/samba.c | /**
* NXT bootstrap interface; NXT Bootstrap control functions.
*
* 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 License as
* published by the Free Software Foundation; either version 2 of the
* License, o... |
tinyos-io/tinyos-3.x-contrib | wsu/tools/simx/simx/lib/simx/sync/sync_impl.c | /*
* Bridge to allow TOSSIM applications to run simulation events "in
* real-world" time.
*
* WARNING:: It is assumed that sim_time_t is a small multiple of a
* nano-second (10 by default). Adjust TICKS_PER_NSEC below as needed.
*/
#ifdef __cplusplus
extern "C" {
#endif
#if 0
}
#endif
#include <sys/time.h>
#inc... |
tinyos-io/tinyos-3.x-contrib | diku/freescale/tos/chips/hcs08/hcs08hardware.h | <filename>diku/freescale/tos/chips/hcs08/hcs08hardware.h
// $Id: hcs08hardware.h,v 1.3 2008/10/26 20:44:40 mleopold 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 a... |
tinyos-io/tinyos-3.x-contrib | diku/common/tools/daq/calibrate_magic.c | <reponame>tinyos-io/tinyos-3.x-contrib
/**
* Calibration program.
*
* Does the same as DEMO19.C
*
* In order to calibrate the board, perform the following steps:
*
* Step 1: Apply 0V to channel 0
* Step 2: Apply 4.996V to channel 1
* Step 3: Apply 4.996mV to channel 2
* Step 4: Adjust VR101 until CAL:0 = 0x7F... |
tinyos-io/tinyos-3.x-contrib | berkeley/quanto/tos/chips/cc2420/CC2420PowerStates.h | #ifndef _CC2420POWERSTATES_H
#define _CC2420POWERSTATES_H
#define SET_BITS(name, value) \
setBits(name##_LEN, name##_OFF, value)
#define LEN2MASK(name) ((1 << ((name))) - 1)
typedef uint16_t powerstate_t;
typedef union {
powerstate_t state;
struct {
unsigned int tx_pwr: 5,
unsigned int :3... |
tinyos-io/tinyos-3.x-contrib | rincon/tools/ft232r/d2xx/spi.c | <reponame>tinyos-io/tinyos-3.x-contrib<gh_stars>1-10
/***********************************************************************
* spi.c -- umph spi module
*/
#include <Python.h>
typedef unsigned char uc;
typedef unsigned long ul;
#define QSIZE 32768
typedef struct spi_state {
uc spien, rst, sck, mosi, miso... |
tinyos-io/tinyos-3.x-contrib | tcd/powertossim-z/tinyos_files/tinyos-2.0.2/tos/chips/atm128/Atm128Clock.h | // $Id: Atm128Clock.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, pro... |
tinyos-io/tinyos-3.x-contrib | diku/common/tools/compression/buffer.h | <reponame>tinyos-io/tinyos-3.x-contrib
/**************************************************************************
*
* buffer.h
*
* An implementation of the most basic buffer manipulation functions,
* needed for the compression algorithms.
*
* This file is licensed under the GNU GPL.
*
* (C) 2005, <NAME> <<EMA... |
tinyos-io/tinyos-3.x-contrib | uob/tossdr/ucla/gnuradio-802.15.4-demodulation/sos/config/ping/ping_app.c | <reponame>tinyos-io/tinyos-3.x-contrib
#include <sos.h>
/**
* Must also include the header file that defines the
* ping_get_header() function.
*/
mod_header_ptr ping_get_header();
mod_header_ptr loader_get_header();
/**
* application start
* This function is called once at the end od SOS initialization
*/
void ... |
tinyos-io/tinyos-3.x-contrib | kasetsart/tos/chips/atm328/atm328const.h | <reponame>tinyos-io/tinyos-3.x-contrib
/**
* const_[u]int[8/16/32]_t types are used to declare single and array
* constants that should live in ROM/FLASH. These constants must be read
* via the corresponding read_[u]int[8/16/32]_t functions.
*
* This file defines the ATmega328 version of these types and functions.... |
tinyos-io/tinyos-3.x-contrib | ethz/nodule/tos/chips/at32uc3b/uart/at32uc3b_uart.h | /* $Id: at32uc3b_uart.h,v 1.1 2008/03/09 16:36:18 yuecelm Exp $ */
/* @author <NAME> <<EMAIL>> */
#ifndef __AT32UC3B_UART_H__
#define __AT32UC3B_UART_H__
#include "at32uc3b.h"
#define get_avr32_usart_baseaddress(usart) \
((usart == 0) ? AVR32_USART0_ADDRESS : ((usart == 1) ? AVR32_USART1_ADDRESS : ((usart =... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/runtime/mica2dot/timerdefs.h | #ifndef TIMERDEFS
#define TIMERDEFS
enum
{
TIMERRES = (uint32_t)500000
};
#endif
|
tinyos-io/tinyos-3.x-contrib | eon/eon/src/runtime/stargate/rt_intercomm.c | <filename>eon/eon/src/runtime/stargate/rt_intercomm.c<gh_stars>1-10
#include "sfaccess/tinystream.h"
#include "rt_intercomm.h"
#include "../mMarsh.h"
pthread_t icommthread;
bool icomm_abort = FALSE;
int icomm_cid = 0;
void *icomm_routine(void *arg)
{
icomm_cid = tinystream_connect();
if (icomm_cid == RELY_IDX... |
tinyos-io/tinyos-3.x-contrib | rincon/tos/lib/bittable/BitTable.h | <reponame>tinyos-io/tinyos-3.x-contrib
#ifndef BITTABLE_H
#define BITTABLE_H
#ifndef SIZE_OF_BIT_TABLE_IN_BYTES
#define SIZE_OF_BIT_TABLE_IN_BYTES 4 // 32 bits
#endif
#ifndef TOTAL_BIT_TABLE_ELEMENTS
#define TOTAL_BIT_TABLE_ELEMENTS SIZE_OF_BIT_TABLE_IN_BYTES * 8
#endif
typedef struct bit_table_t {
uint8_t data[... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/runtime/stargate/sfaccess/teloscomm.h | #ifndef _TELOSCOMM_H_
#define _TELOSCOMM_H_
#include <stdint.h>
#include <stdarg.h>
#include <stdio.h>
#define DEBUG
void hton_int16(uint8_t *buf, int16_t data);
void hton_int32(uint8_t *buf, int32_t data);
void hton_uint16(uint8_t *buf, uint16_t data);
void hton_uint32(uint8_t *buf, uint32_t data);
void ntoh_... |
tinyos-io/tinyos-3.x-contrib | gems/ttsp/tinyos/apps/tests/TestTtsp/TestTtsp.h | <reponame>tinyos-io/tinyos-3.x-contrib
#ifndef TEST_TTSP_H
#define TEST_TTSP_H
typedef nx_struct TestTtspMsg {
nx_uint16_t srcAddr;
nx_uint32_t globalTime;
nx_uint32_t localTime;
nx_int32_t offset;
nx_uint32_t beaconId;
nx_uint16_t rootId;
nx_uint32_t syncPeriod;
nx_uint32_t maxPrecisionErro... |
tinyos-io/tinyos-3.x-contrib | cotsbots/tos/lib/BeepDiffusionMsg.h | <filename>cotsbots/tos/lib/BeepDiffusionMsg.h<gh_stars>1-10
/* tab:4
*
*
* "Copyright (c) 2000-2002 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 wr... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/runtime/stargate/sfaccess/Semaphore.c | <reponame>tinyos-io/tinyos-3.x-contrib
/****************************************************************************\
*
* Written by
* <NAME> (<EMAIL>)
* at the Distributed Problem Solving Lab
* Department o... |
tinyos-io/tinyos-3.x-contrib | diku/common/lib/simplemac/hplcc2420.h | #ifndef HPLCC2420_H
#define HPLCC2420_H
typedef enum
{
CC_REG_SNOP =0x00,
CC_REG_SXOSCON =0x01,
CC_REG_STXCAL =0x02,
CC_REG_SRXON =0x03,
CC_REG_STXON =0x04,
CC_REG_STXONCCA =0x05,
CC_REG_SRFOFF =0x06,
CC_REG_SXOSCOFF =0x07,
CC_REG_... |
tinyos-io/tinyos-3.x-contrib | tcd/powertossim-z/tinyos_files/tinyos-2.0.2/tos/lib/tossim/radio.c | <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 copyright
* notice, the following two pa... |
tinyos-io/tinyos-3.x-contrib | rincon/tos/lib/Nmea/Nmea.h | <reponame>tinyos-io/tinyos-3.x-contrib<filename>rincon/tos/lib/Nmea/Nmea.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:
* - Redistri... |
tinyos-io/tinyos-3.x-contrib | nxtmote/misc/src/libusb-win32/libusb-win32-src-0.1.12.1/src/driver/set_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 | diku/common/tools/compression/huffman/test.c | <filename>diku/common/tools/compression/huffman/test.c
#ifndef __AVR_ATmega128__
#define prog_uint8_t uint8_t
#endif
#include <inttypes.h>
#include <stdio.h>
#include "huffman_codes.h"
#if VALUE_BITS < 9
typedef uint8_t huffman_t;
#elif VALUE_BITS < 17
typedef uint16_t huffman_t;
#elif VALUE_BITS < 33
typedef uint32_... |
tinyos-io/tinyos-3.x-contrib | berkeley/quanto/tos/lib/quanto/SingleContext/SingleContext.h | <filename>berkeley/quanto/tos/lib/quanto/SingleContext/SingleContext.h
#ifndef SINGLE_CONTEXT_H
#define SINGLE_CONTEXT_H
#define SINGLE_CONTEXT_UNIQUE "Single.Context.Unique"
#endif
|
tinyos-io/tinyos-3.x-contrib | stanford-lgl/tos/chips/ov7670/ov7670.c | <filename>stanford-lgl/tos/chips/ov7670/ov7670.c
/*
* A V4L2 driver for OmniVision OV7670 cameras.
*
* Copyright 2006 One Laptop Per Child Association, Inc. Written
* by <NAME> with substantial inspiration from Mark
* McClelland's ovcamchip code.
*
* Copyright 2006-7 <NAME> <<EMAIL>>
*
* This file may be dist... |
tinyos-io/tinyos-3.x-contrib | diku/common/tools/compression/lz77/lz77_comp.c | /**************************************************************************
*
* lz77_comp.c
*
* The LZ77 compression algorithm.
*
* This file is licensed under the GNU GPL.
*
* (C) 2005, <NAME> <<EMAIL>>
*
*/
#include "../compressor.h"
#include "../buffer.h"
#include "lz77.h"
#ifdef HAVE_ASSERT
# include <ass... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/util/collect/sf_lo_radio.c | #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 <poll.h>
#include <sys/types.h>
#include "sfsource.h"
#include <time.h>
#ifndef TOSH_DATA_LENGTH
#define TOSH_DATA_LENGTH 29
#define BUNDLE_ACK_... |
tinyos-io/tinyos-3.x-contrib | wustl/upma/lib/macs/ss-tdma/ss_tdma.h | <filename>wustl/upma/lib/macs/ss-tdma/ss_tdma.h
#define ZMAC_OFFSET 16 //32Hz
#define ZMAC_CHECK_INTERVAL 1 //ms
#define ZMAC_BACKOFF 16
#define ZMAC_SLOT_SIZE 10 *32 //ms |
tinyos-io/tinyos-3.x-contrib | nxtmote/misc/src/libnxt/main_fwflash.c | /**
* Main program code for the fwflash utility.
*
* 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 License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your opti... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/runtime/tinyos2/fluxhandler.h | #ifndef FLUXHANDLER_H_INCLUDED
#define FLUXHANDLER_H_INCLUDED
#include "rt_structs.h"
//#include "MemAlloc.h"
bool isReadyByID (EdgeIn * edge);
error_t callEdge (EdgeIn * e);
error_t adjustIntervals();
task void FinishRecoverTask();
error_t getOutSize (EdgeIn * e);
error_t handle_error (uint16_t nodeid, uint8_t * i... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/runtime/stargate/rt_marshall.h | <filename>eon/eon/src/runtime/stargate/rt_marshall.h
#ifndef _RT_MARSHALL_H_
#define _RT_MARSHALL_H_
#include "rt_structs.h"
#include "../usermarshall.h"
#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 T... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/runtime/tinyos2/energystructs.h | #ifndef ENERGYSTRUCTS_H_INCLUDED
#define ENERGYSTRUCTS_H_INCLUDED
#define _NUMBUCKETS 10
typedef struct energy_pdf_t
{
} energy_pred_t;
#endif |
tinyos-io/tinyos-3.x-contrib | vu/tos/lib/dfrf/DfrfMsg.h | /*
* 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
* two paragraphs... |
tinyos-io/tinyos-3.x-contrib | uob/tossdr/ucla/gnuradio-802.15.4-demodulation/src/lib/ucla_multichanneladd_cc.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/quanto/tos/lib/quanto/QuantoLog/QuantoLogStagedMyUART.h | #ifndef _QUANTO_MY_UART_H
#define _QUANTO_MY_UART_H
#include "RawUartMsg.h"
#include "my_message.h"
enum {
QLOG_CONTINUOUS = TRUE,
QLOG_ONESHOT = FALSE,
};
enum {
LOGSIZE = 700, //MAKE LOGSIZE A MULTIPLE OF N
N = (MY_MESSAGE_LENGTH-1)/sizeof(nx_entry_t), // N = 120/12 = 10
};
typ... |
tinyos-io/tinyos-3.x-contrib | nxtmote/misc/src/libnxt/flash.c | <filename>nxtmote/misc/src/libnxt/flash.c
/**
* NXT bootstrap interface; NXT flash chip code.
*
* 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 License as
* published by the Free Software Foundation; either ... |
tinyos-io/tinyos-3.x-contrib | diku/common/tools/daq/kernel-driver/pci1202.c | <reponame>tinyos-io/tinyos-3.x-contrib<gh_stars>1-10
/* PCI-1202 Service Module
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)
an... |
tinyos-io/tinyos-3.x-contrib | diku/mcs51/tos/chips/nRF24E1/ionRF24E1.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 | tcd/powertossim-z/tinyos_files/tinyos-2.0.2/tos/lib/tossim/sim_gain.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 | tub/tos/lib/tinycops/attributes/Attributes.h | /*
* 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 code must retain the above copyright notice,
* th... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/runtime/stargate/rt_handler.h | #ifndef _RT_HANDLER_H_
#define _RT_HANDLER_H_
#include <stdint.h>
#include "rt_structs.h"
bool isFunctionalState(int8_t state);
void reportError(uint16_t nodeid, uint8_t error, rt_data _pdata);
void reportExit(rt_data _pdata);
int getNextSession();
int sendPathStartPacket(int id);
#endif
|
tinyos-io/tinyos-3.x-contrib | tinymulle/tos/platforms/mulle/hardware.h | <reponame>tinyos-io/tinyos-3.x-contrib<filename>tinymulle/tos/platforms/mulle/hardware.h<gh_stars>1-10
#ifndef __HARDWARE_H__
#define __HARDWARE_H__
#define MAIN_CRYSTAL_SPEED 10 /*MHz*/
#include "m16c62phardware.h" // Header file for the MCU
//#define ENABLE_STOP_MODE 0
#endif // __HARDWARE_H__
|
tinyos-io/tinyos-3.x-contrib | mc/raven/tos/chips/atm1284/timer/Atm128Timer.h |
/*
* Copyright (c) 2004-2005 Crossbow Technology, Inc. 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 | rincon/tos/lib/blackbook/core/Blackbook.h | <filename>rincon/tos/lib/blackbook/core/Blackbook.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 ... |
tinyos-io/tinyos-3.x-contrib | rincon/apps/tests/TestParameterStorage/ComponentA.h |
/**
* @author <NAME>
* @author <NAME> (<EMAIL>)
*/
#ifndef COMPONENTA_H
#define COMPONENTA_H
#define UQ_COMPONENTA_EXTENSION "componentA.ExtendMetadata"
typedef nx_struct cc5000_metadata_t {
nx_uint8_t tx_power;
nx_uint8_t rssi;
nx_uint8_t lqi;
nx_bool crc;
nx_bool ack;
nx_uint16_t time;
nx_uint8... |
tinyos-io/tinyos-3.x-contrib | wsu/telosw/ADC/Accelerometer.h | #ifndef __ACCELEROMETER_H
#define __ACCELEROMETER_H
enum{
QUEUE_SIZE = 8,
ADDRESS_DEVID = 0x00,
ADDRESS_THRESH_TAP = 0x1D,
ADDRESS_OFSX = 0x1E,
ADDRESS_OFSY = 0x1F,
ADDRESS_OFSZ = 0x20,
ADDRESS_DUR = 0x21,
ADDRESS_LATENT = 0x22,
ADDRESS_WINDOW = 0x23,
ADDRESS_THRESH_ACT = 0x24,
ADDRESS_THRESH_INACT = 0x25... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/runtime/tinyos/fluxconst.h | <reponame>tinyos-io/tinyos-3.x-contrib<filename>eon/eon/src/runtime/tinyos/fluxconst.h
#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_TRANSLATE 4
#define ERR_RTDATA 5
#define ERR_SRC 6
#... |
tinyos-io/tinyos-3.x-contrib | diku/mcs51/tos/chips/mcs51/timer/mcs51-timer.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 copyright
* notice, this list of conditions and... |
tinyos-io/tinyos-3.x-contrib | diku/common/lib/simplemac/packet.h | /*
Copyright (C) 2004 <NAME> <<EMAIL>>
Copyright (C) 2006 <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 option) any later v... |
tinyos-io/tinyos-3.x-contrib | ethz/snpk/apps/tests/SyncMac/syncmac.h | <reponame>tinyos-io/tinyos-3.x-contrib<gh_stars>1-10
#ifndef SYNCMACTEST_H
#define SYNCMACTEST_H
#include "AM.h"
#ifndef SYNCMAC_MIN_NEIGHBOURS
#define SYNCMAC_MIN_NEIGHBOURS 3
#endif
typedef nx_struct beacon_msg {
nx_am_addr_t id;
nx_uint8_t data[10];
} beacon_msg_t;
typedef nx_struct unicast_msg {
nx_am_addr_t... |
tinyos-io/tinyos-3.x-contrib | berkeley/quanto/tools/quanto/labjack/QuantoLogger.h | <filename>berkeley/quanto/tools/quanto/labjack/QuantoLogger.h<gh_stars>1-10
#define NUM_CHANNELS 4
typedef struct channelopts_t {
uint8_t channel;
uint8_t options;
}
typedef struct streamconfigmsg_t {
uint8_t checksum8;
uint8_t command;
uint8_t numchansplusthree;
uint8_t extcommand;
uint16_t checksum16;... |
tinyos-io/tinyos-3.x-contrib | iowa/T2.tsync/IAtsync/T2spy.c | <reponame>tinyos-io/tinyos-3.x-contrib
/*
* Copyright (c) 2007 University of Iowa
* 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 copyri... |
tinyos-io/tinyos-3.x-contrib | berkeley/acme/apps/ACMeterReactive/EnergyMsg.h | #ifndef ENERGYMSG_H_
#define ENERGYMSG_H_
#include <IeeeEui64.h>
enum {
AM_ENERGYMSG = 8,
};
typedef nx_struct EnergyMsg {
nx_uint16_t src;
nx_uint32_t energy;
nx_uint32_t laenergy;
nx_uint32_t lvaenergy;
nx_uint32_t lvarenergy;
nx_uint8_t eui64[IEEE_EUI64_LENGTH];
} EnergyMsg_t;
enum {
AM_SWITCHMSG... |
tinyos-io/tinyos-3.x-contrib | diku/common/tools/compression/compressor.h | <filename>diku/common/tools/compression/compressor.h
/**************************************************************************
*
* compressor.h
*
* The platform specific parts needed by the compressors.
*
* This file is licensed under the GNU GPL.
*
* (C) 2005, <NAME> <<EMAIL>>
*
*/
#ifndef __MSP430__
#incl... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/simulator/evaluator.h | <filename>eon/eon/src/simulator/evaluator.h<gh_stars>1-10
#ifndef EVALUATOR_H
#define EVALUATOR_H
#include "simulator.h"
#include <stdint.h>
#ifdef PLOAD
#include "omniloadpredictor.h"
#include "consumptionpredictor.h"
#else
#include "loadpredictor.h"
#include "consumptionpredictor.h"
#endif
#ifdef PENERGY
#include... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/runtime/tinyos2/SrcAccum.h | <reponame>tinyos-io/tinyos-3.x-contrib<filename>eon/eon/src/runtime/tinyos2/SrcAccum.h
#ifndef SRCACCUM_H
#define SRCACCUM_H
#define BIN_MS 1024L
#define POLL_2770_INTERVAL (3L * 1024L)
#define POLL_2751_INTERVAL (256L)
#define POLL_DIFF_FACTOR (POLL_2770_INTERVAL / POLL_2751_INTERVAL)
#define POLL_CYCLES 1
#e... |
tinyos-io/tinyos-3.x-contrib | nxtmote/misc/src/libusb-win32/libusb-win32-src-0.1.12.1/src/error.h | #ifndef __ERROR_H__
#define __ERROR_H__
/* Connection timed out */
#define ETIMEDOUT 116
typedef enum {
USB_ERROR_TYPE_NONE = 0,
USB_ERROR_TYPE_STRING,
USB_ERROR_TYPE_ERRNO,
} usb_error_type_t;
void usb_error(char *format, ...);
void usb_message(char *format, ...);
const char *usb_win_error_to_string(void);
... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/runtime/linuxsim/simworld/testsw.c | #include "simworld.h"
//#include <pthread.h>
void energy_cb(int uJin, int uJout, unsigned int uJbatt)
{
log_output(ACTION_USER,"%d,%d,%u",uJin, uJout, uJbatt);
}
void * recv_thread(void *arg)
{
while(1)
{
int to, val;
val = recv_network_int(0, &to);
//sim_sleep(10);
if (!to)
{
send_network_int(val)... |
tinyos-io/tinyos-3.x-contrib | eon/apps/server-e/impl/stargate/userstructs.h | #ifndef USER_STRUCTS_H_INCLUDED
#define USER_STRUCTS_H_INCLUDED
#include "ServerE.h"
#endif
|
tinyos-io/tinyos-3.x-contrib | berkeley/blip-2.0/support/sdk/c/blip/interface/config.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 written agreement is
* hereby granted, provided that the above copyright... |
tinyos-io/tinyos-3.x-contrib | berkeley/blip-2.0/support/sdk/c/blip/lib6lowpan/utility.c |
#include <stdint.h>
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include "lib6lowpan-includes.h"
#include "lib6lowpan.h"
#include "ip.h"
#define TO_CHAR(X) (((X) < 10) ? ('0' + (X)) : ('a' + ((X) - 10)))
#define CHAR_VAL(X) (((X) >= '0' && (X) <= '9') ? ((X) - '0') : \
(((X) >=... |
tinyos-io/tinyos-3.x-contrib | rincon/apps/BlackbookBridge/BFileReadBridge/BFileRead.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 | eon/eon/src/runtime/telos/fluxhandler.h | <gh_stars>1-10
#ifndef FLUXHANDLER_H_INCLUDED
#define FLUXHANDLER_H_INCLUDED
#include "../marshaller.h"
#include "rt_structs.h"
bool isReadyByID (EdgeIn * edge);
result_t callEdge (EdgeIn * e);
result_t callError (uint16_t nodeid, Handle in, uint8_t error);
uint16_t getErrorWeight (uint16_t nodeid);
//void factorSGDC... |
tinyos-io/tinyos-3.x-contrib | csau/misc/apps/tests/LplTest/src/LplTest.h | <filename>csau/misc/apps/tests/LplTest/src/LplTest.h
#ifndef LPLTEST_H
#define LPLTEST_H
#include "message.h"
#include "AM.h"
enum {
AM_LPLTEST_MSG = 10,
};
typedef nx_struct lpltest_msg {
nx_uint32_t seqno;
nx_uint8_t values[TOSH_DATA_LENGTH-sizeof(nx_uint32_t)];
} lpltest_msg_t;
#endif
|
tinyos-io/tinyos-3.x-contrib | cedt/tos/chips/atm128/sim/atm128current.h | <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 hereby granted, provided that the above cop... |
tinyos-io/tinyos-3.x-contrib | blaze/tos/chips/ccxx00_single/Fcf.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 | diku/common/tools/daq/kernel-driver/ixpci_kernel.h | /* 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 (at your option)
any later version.
This program is distrib... |
tinyos-io/tinyos-3.x-contrib | eon/apps/server-e/impl/stargate/usermarshall.c | <filename>eon/apps/server-e/impl/stargate/usermarshall.c
#include "usermarshall.h"
#include "rt_structs.h"
#include <stdint.h>
int unmarshall_RequestMsg(int cid, RequestMsg *data)
{
int result;
int i=0;
dbg(APP,"umarsh_RequestMsg:\n");
result = unmarshall_uint16_t(cid, &data->src);
if (result) return -1;
d... |
tinyos-io/tinyos-3.x-contrib | diku/mcs51/tos/chips/cc2430/ioCC2430.h | <filename>diku/mcs51/tos/chips/cc2430/ioCC2430.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 r... |
tinyos-io/tinyos-3.x-contrib | diku/freescale/tos/chips/mc13192/mc13192Const.h | <gh_stars>1-10
/* Copyright (c) 2006, <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
* ... |
tinyos-io/tinyos-3.x-contrib | kasetsart/tos/chips/atm328/adc/Atm328Adc.h | <reponame>tinyos-io/tinyos-3.x-contrib
/**
* This file is modified from
* <code>tinyos-2.1.0/tos/chips/atm128/adc/Atm128Adc.h</code>
*
* @author
* <NAME> (<EMAIL>)
*/
#ifndef ATM328ADC_H
#define ATM328ADC_H
//================== 8 channel 10-bit ADC ==============================
/* Voltage Reference Settings ... |
tinyos-io/tinyos-3.x-contrib | antlab-polimi/dpcm_C/jpegTOS.c | <reponame>tinyos-io/tinyos-3.x-contrib<filename>antlab-polimi/dpcm_C/jpegTOS.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:
* - Redistribut... |
tinyos-io/tinyos-3.x-contrib | nxtmote/tos/chips/at91/i2c/c_lowspeed.h | //
// Date init 14.12.2004
//
// Revision date $Date: 2007/12/18 21:48:12 $
//
// Filename $Workfile:: c_lowspeed.h $
//
// Version $Revision: 1.1 $
//
// Archive $Archive:: /LMS2006/Sys01/Main/Firmware/Source/c_lowspeed $
//
// Platform C
//
#ifnd... |
tinyos-io/tinyos-3.x-contrib | berkeley/blip-2.0/support/sdk/c/blip/lib6lowpan/blip-pc-includes.h | <filename>berkeley/blip-2.0/support/sdk/c/blip/lib6lowpan/blip-pc-includes.h
#ifndef _BLIP_PC_INCLUDES_H_
#define _BLIP_PC_INCLUDES_H_
#include <stddef.h>
#include <string.h>
#include <stdio.h>
#if HAVE_CONFIG_H
#include "config.h"
#endif
#if HAVE_STDINT_H
# include <stdint.h>
#else
# if HAVE_INTTYPES_H
# include <... |
tinyos-io/tinyos-3.x-contrib | tinybotics/tos/platforms/robostix/RobostixTimer.h | /*
* Copyright (c) 2005-2006 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 found by writing to
* Intel Research Berkeley, 2150 Shattuck Avenue, Suite 1300, Berkeley, CA,
* 94704. Att... |
tinyos-io/tinyos-3.x-contrib | berkeley/blip-2.0/tos/chips/cc2420_hotmac/hotmac.h | <filename>berkeley/blip-2.0/tos/chips/cc2420_hotmac/hotmac.h
#ifndef HOTMAC_H
#define HOTMAC_H
#include <Ieee154.h>
typedef enum {
S_IDLE = 0,
S_RECEIVE,
S_TRANSMIT,
S_OFF,
} hotmac_state_t;
nx_struct hotmac_beacon {
nx_uint8_t network;
nx_uint16_t period; /* how often our receive checks are ... |
tinyos-io/tinyos-3.x-contrib | diku/common/lib/compression/huffman_whole.h | <filename>diku/common/lib/compression/huffman_whole.h
#define CODESET "../../tools/compression/huffman/huffman_whole_codes.h"
#include "../../tools/compression/huffman/huffman_comp.c"
|
tinyos-io/tinyos-3.x-contrib | eon/tos/lib/tossim/sim_radio.c | <reponame>tinyos-io/tinyos-3.x-contrib
#include <sim_radio.h>
radio_entry_t* connectivity[TOSSIM_MAX_NODES + 1];
radio_entry_t* sim_radio_allocate_link(int mote);
void sim_radio_deallocate_link(radio_entry_t* linkToDelete);
radio_entry_t* sim_radio_first(int src)
{
if (src > TOSSIM_MAX_NODES) {
return connec... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/runtime/telos/DS2770.h |
//This code is a modified version of code from the Heliomote project
unsigned char
ds2770_init (void)
{
unsigned char presence;
TOSH_SEL_ADC2_IOFUNC ();
TOSH_MAKE_ADC2_INPUT ();
TOSH_SEL_GIO1_IOFUNC ();
TOSH_MAKE_GIO1_OUTPUT ();
TOSH_CLR_GIO1_PIN ();
TOSH_uwait (300); // Keep low for about 600 us
/... |
tinyos-io/tinyos-3.x-contrib | blaze/tos/chips/ccxx00_single/Blaze.h | <filename>blaze/tos/chips/ccxx00_single/Blaze.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 ... |
tinyos-io/tinyos-3.x-contrib | rincon/tos/platforms/blazehw/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, 1, 0);
TOSH_ASSIGN_PIN(GREEN_LED, 1, 1);
TOSH_ASSIGN_PIN(YELLOW_LED, 2, 2);
TOSH_ASSIGN_PIN(BLUE_LED, 2, 3);
// UART pins
TOSH_ASSIGN_PIN(SO... |
tinyos-io/tinyos-3.x-contrib | shimmer/apps/BtStream/Shimmer.h | /*
* Copyright (c) 2010, Shimmer Research, Ltd.
* 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, thi... |
tinyos-io/tinyos-3.x-contrib | rincon/apps/tests/TestLpl/TestInvalidDestination/TestBroadcast.h | <filename>rincon/apps/tests/TestLpl/TestInvalidDestination/TestBroadcast.h<gh_stars>1-10
#ifndef TESTSYNC_H
#define TESTSYNC_H
typedef nx_struct TestBroadcastMsg {
nx_uint8_t count;
} TestBroadcastMsg;
enum {
AM_TESTSYNCMSG = 0x5,
};
#endif
|
tinyos-io/tinyos-3.x-contrib | gems/ttsp/tinyos/apps/profilers/ProfileTsnDrift/Sensors.h | #ifndef SENSORS_H
#define SENSORS_H
enum {
SENSOR_TYPE_PHOTO = 0,
SENSOR_TYPE_TEMP = 1,
SENSOR_TYPE_VOLTAGE = 2,
SENSOR_TYPE_SINE = 3,
SENSOR_NUM_TYPES = 4
};
#endif |
tinyos-io/tinyos-3.x-contrib | eon/apps/server-e/impl/telos/userstructs.h | #ifndef RT_STRUCTS_H_INCLUDED
#define RT_STRUCTS_H_INCLUDED
#include "ServerE.h"
#endif
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.