repo_name stringlengths 6 97 | path stringlengths 3 341 | text stringlengths 8 1.02M |
|---|---|---|
tinyos-io/tinyos-3.x-contrib | nxtmote/tos/platforms/nxtmote/AT91SAM7S256_extra.h | /**
* Adapted for nxtmote.
* @author <NAME>
*/
#ifndef AT91SAM7S256_EXTRA_H
#define AT91SAM7S256_EXTRA_H
#define CPSR_I_BIT (0x80)
#define CPSR_F_BIT (0x40)
#define ARM_CPSR_INT_MASK (0x000000C0)
#define GPIO_pin_bit(_pin) (1 << _pin)
//TODO: Same
#define AT91C_AIC_SRCTYPE_INT_HIGH_LEVEL ((unsigned... |
tinyos-io/tinyos-3.x-contrib | vu/apps/TestPacketTimestamp/TestPacketTimestamp.h | <reponame>tinyos-io/tinyos-3.x-contrib
#ifndef TEST_PACKET_TIMESTAMP_H
#define TEST_PACKET_TIMESTAMP_H
typedef nx_struct ping_msg {
nx_uint16_t pinger;
nx_uint32_t ping_counter;
nx_uint32_t prev_ping_counter;
nx_uint8_t prev_ping_tx_timestamp_is_valid;
nx_uint32_t prev_ping_tx_timestamp;
} ping_msg_t;
type... |
tinyos-io/tinyos-3.x-contrib | berkeley/blip-2.0/support/sdk/c/blip/lib6lowpan/iovec.c | #include <stdint.h>
#include <stdio.h>
#include "lib6lowpan.h"
#include "iovec.h"
#define MIN(X,Y) ((X) < (Y) ? (X) : (Y))
/**
* read len bytes starting at offset into the buffer pointed to by buf
*
*
*/
int iov_read(struct ip_iovec *iov, int offset, int len, uint8_t *buf) {
int cur_offset = 0, written = 0;
... |
tinyos-io/tinyos-3.x-contrib | yuceg/tos/system/job.h | /* Copyright (c) 2008, Computer Engineering Group, Yazd University , Iran .
* 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
* not... |
tinyos-io/tinyos-3.x-contrib | ethz/nodule/tos/chips/at32uc3b/pins/at32uc3b_gpio.h | <filename>ethz/nodule/tos/chips/at32uc3b/pins/at32uc3b_gpio.h<gh_stars>0
/* $Id: at32uc3b_gpio.h,v 1.1 2008/03/09 16:36:17 yuecelm Exp $ */
/* @author <NAME> <<EMAIL>> */
#ifndef __AT32UC3B_GPIO_H__
#define __AT32UC3B_GPIO_H__
#include "at32uc3b.h"
#define PORTA_OFFSET 0x00000000
#define PORTB_OFFSET 0x00000100
... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/util/tinyrely/TinyStream.h | #include "TinyRely.h"
#ifndef TINYSTREAM_H_INCLUDED
#define TINYSTREAM_H_INCLUDED
#ifndef TS_BUF_LENGTH
#define TS_BUF_LENGTH 200
#endif
typedef struct TSStr {
bool lock;
bool valid;
bool sending;
uint8_t uid;
uint8_t txdata[TS_BUF_LENGTH];
uint8_t rxdata[TS_BUF_LENGTH];
uint16_t txhead;
uint16_t ... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/runtime/tinynode_2/DS2770.h | <gh_stars>1-10
//This code is a modified version of code from the Heliomote project
#ifndef _DS2770_h_
#define _DS2770_H_
#endif
|
tinyos-io/tinyos-3.x-contrib | tcd/powertossim-z/tinyos_files/tinyos-2.0.2/tos/lib/tossim/heap.c | // $Id: heap.c,v 1.1 2014/11/26 19:31:35 carbajor Exp $
/* tab:4
* "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 agr... |
tinyos-io/tinyos-3.x-contrib | ethz/meshbean900/tos/platforms/meshbean/chips/ds2411/PlatformIeeeEui64.h | <gh_stars>1-10
#ifndef PLATFORM_IEEE_EUI64_H
#define PLATFORM_IEEE_EUI64_H
/*
* Copyright (c) 2007, Vanderbilt University
* All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose, without fee, and without written agreement is
* hereby grante... |
tinyos-io/tinyos-3.x-contrib | diku/common/tools/daq/calibrate.c | /**
* 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 = 0x7FF or 0x800.
* Step 5: Adjust VR100 unt... |
tinyos-io/tinyos-3.x-contrib | eon/apps/turtle_snapper/impl/tinynode/beacon.h | <reponame>tinyos-io/tinyos-3.x-contrib
#ifndef BEACON_H_
#define BEACON_H_
//#define BEACON_COUNT 2L
//#define BEACON_COUNT 0L /* This means one beacon */
// BEACON COUNT is now deprecated. Only send one -mdc
#define BEACON_IVAL 1000L
#define ACTIVE_IVAL 2000L
#define ACTIVE_PRE 333L
#define AC... |
tinyos-io/tinyos-3.x-contrib | eon/tos/lib/tossim/radio.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 | diku/mcs51/tos/platforms/nano/platform_message.h |
#ifndef PLATFORM_MESSAGE_H
#define PLATFORM_MESSAGE_H
#include <CC2420.h>
typedef union message_header {
cc2420_header_t cc2420;
// serial_header_t serial;
} message_header_t;
typedef union TOSRadioFooter {
cc2420_footer_t cc2420;
} message_footer_t;
typedef union TOSRadioMetadata {
cc2420_metadata_t cc24... |
tinyos-io/tinyos-3.x-contrib | diku/mcs51/tos/chips/cc2430/adc/Adc.h | <filename>diku/mcs51/tos/chips/cc2430/adc/Adc.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 | antlab-polimi/sensors/intermediateNode/config.h | <reponame>tinyos-io/tinyos-3.x-contrib
/*
* Author: <NAME>
* contact: <EMAIL>
*/
#ifndef RADIOINTER_H
#define RADIOINTER_H
#define VIDEO_HEADER_LENGTH 3
#define PHOTO_HEADER_LENGTH 2
#define BIGMSG_DATA_SHIFT 6
#define PHOTO_DATA_LENGTH 40//(1<<BIGMSG_DATA_SHIFT)
#define VIDEO_DATA_LENGTH 40//64
//#define TOSH_DAT... |
tinyos-io/tinyos-3.x-contrib | antlab-polimi/dpcm_C/dpcm_encoder.h | <reponame>tinyos-io/tinyos-3.x-contrib<gh_stars>1-10
#include <stdio.h>
#include <stdlib.h>
#include "diff_idctfstBlk.h"
#include "diff_dctfstBlk.h"
#include "codeZeros.h"
#include "huffmanCompress.h"
#include "jpeghdr.h"
int dpcm_encode
(uint8_t* input,uint16_t width,uint16_t height,uint8_t qual,
char * filena... |
tinyos-io/tinyos-3.x-contrib | diku/mcs51/tos/chips/mcs51/keil_stdint.h | <reponame>tinyos-io/tinyos-3.x-contrib<filename>diku/mcs51/tos/chips/mcs51/keil_stdint.h<gh_stars>1-10
/*
* 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
... |
tinyos-io/tinyos-3.x-contrib | diku/common/lib/usb/usb-cdc.h |
#include <usb.h>
#ifndef _H_usb_cdc_H
#define _H_usb_cdc_H
// CDC ACM class specifc requests
#define SEND_ENCAPSULATED_COMMAND 0x00
#define GET_ENCAPSULATED_RESPONSE 0x01
#define SET_LINE_CODING 0x20
#define GET_LINE_CODING 0x21
#define SET_CONTROL_LINE_STATE 0x22
#define SEND_BREAK 0x23
typedef struct {
u... |
tinyos-io/tinyos-3.x-contrib | uni_valencia/ema/tos/chips/cc2420/sync/NeighbourSync.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/lib/blackbook/core/BlackbookConst.h | <filename>rincon/tos/lib/blackbook/core/BlackbookConst.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:
* - Redistr... |
tinyos-io/tinyos-3.x-contrib | eon/apps/server-e/impl/stargate/usermarshall.h | #ifndef USERMARSHAL_H_INCLUDED
#define USERMARSHAL_H_INCLUDED
#include "ServerE.h"
//int marshall_RequestMsg(int cid, RequestMsg data);
int unmarshall_RequestMsg(int cid, RequestMsg *data);
#endif
|
tinyos-io/tinyos-3.x-contrib | eon/eon/src/client/sfaccess/telossource.h | <filename>eon/eon/src/client/sfaccess/telossource.h
#ifndef TELOSSOURCE_H
#define TELOSSOURCE_H
//THis acts as a layer above sfsource.(c | h)
#include <stdint.h>
typedef struct {
uint8_t length;
uint8_t dsn;
uint16_t addr;
uint8_t type;
uint8_t group;
uint8_t *data;
} telospacket;
#define TELOS_MIN_SIZE ... |
tinyos-io/tinyos-3.x-contrib | berkeley/quanto/tos/lib/quanto/ResourceContexts.h | #ifndef _RESOURCE_CONTEXTS_H
#define _RESOURCE_CONTEXTS_H
/* These are globally known resource ids */
/* Resources represent energy sinks, peripherals that can independently spend energy.
* These are NOT activities, or contexts, but get attributed activities over time */
enum {
CPU_RESOURCE_ID = 0,
LED0_RESOU... |
tinyos-io/tinyos-3.x-contrib | intelmote2/support/sdk/c/compress/idctApp.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 | tcd/tinyhop/apps/TinyHopTest-v.1.0/TinyHopTest.h | <reponame>tinyos-io/tinyos-3.x-contrib
/*
* Copyright (c) 2009 Trinity College Dublin.
* 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 a... |
tinyos-io/tinyos-3.x-contrib | vu/tos/chips/atm128/uart/Atm128Usart.h | // $Id: Atm128Usart.h,v 1.1 2009/12/03 21:44:25 sallai Exp $
/*
* Copyright (c) 2004-2005 Crossbow Technology, Inc. All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose, without fee, and without written agreement is
* hereby granted, provi... |
tinyos-io/tinyos-3.x-contrib | rincon/tools/ft232r/d2xx/zag.c | /***********************************************************************
* zag.c -- Blink app for the UM232R
*
* Binary counting using bit-banging on 3 FT232R lines:
* D0 is bit 0
* D4 is bit 1 (it's right next to D0)
* D2 is bit 2 (it's right next to D4)
*
* Building:
* - Uninstall ALL existing FTDI dr... |
tinyos-io/tinyos-3.x-contrib | gems/wmtp/tinyos/apps/tests/TestWMTP/TestWmtp.h | /*
* WMTP - Wireless Modular Transport Protocol
*
* Copyright (c) 2008 <NAME> and IT - Instituto de Telecomunicacoes
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* ver... |
tinyos-io/tinyos-3.x-contrib | ethz/meshbean900/tos/platforms/meshbean900/platform_message.h | /*
* Copyright (c) 2007, Vanderbilt University
* All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose, without fee, and without written agreement is
* hereby granted, provided that the above copyright notice, the following
* two par... |
tinyos-io/tinyos-3.x-contrib | nxtmote/misc/src/libusb-win32/libusb-win32-src-0.1.12.1/src/driver/libusb_driver.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/blip-2.0/support/sdk/c/blip/lib6lowpan/6lowpan.h | <filename>berkeley/blip-2.0/support/sdk/c/blip/lib6lowpan/6lowpan.h<gh_stars>1-10
/*
* "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 w... |
tinyos-io/tinyos-3.x-contrib | uob/tossdr/ucla/gnuradio-802.15.4-demodulation/sos/modules/pong/pong.c | <filename>uob/tossdr/ucla/gnuradio-802.15.4-demodulation/sos/modules/pong/pong.c
/* -*- Mode: C; tab-width:4 -*- */
/* ex: set ts=4 shiftwidth=4 softtabstop=4 cindent: */
/**
* @brief
*/
/**
* Module needs to include <module.h>
*/
#include <sys_module.h>
#include <module.h>
#define LED_DEBUG
#include <led_dbg.h>
... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/runtime/tinyos/nodequeue.h |
#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 100
#define QUEUE_LENGTH 15
#define NEXT_IDX(X) ((X + 1) % QUEUE_LENGTH)
typedef struct EdgeIn
{... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/util/collect/sfcollect.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 <poll.h>
#include <sys/types.h>
#include "sfsource.h"
#include <time.h>
#ifndef TOSH_DATA_LENGTH
#define ... |
tinyos-io/tinyos-3.x-contrib | berkeley/quanto/tos/lib/quanto/MultiContext/MultiContext.h | #ifndef MULTI_ACTIVITY_H
#define MULTI_ACTIVITY_H
#define MULTI_CONTEXT_UNIQUE "Multi.Context.Unique"
#endif
|
tinyos-io/tinyos-3.x-contrib | berkeley/quanto/tools/quanto/labjack/QuantoLogger.c | <filename>berkeley/quanto/tools/quanto/labjack/QuantoLogger.c
/**
* Captures data on EIO and FIO on an external trigger and streams the
* data over a TCP stream. The required message exchanges between the
* host the LabJack device is as follows:
*
* 1. Host ----[StreamConfig]---> LabJack // Command
* 2. Ho... |
tinyos-io/tinyos-3.x-contrib | ethz/snpk/tos/lib/dsn/DSN.h | #ifndef DSN_H
#define DSN_H
enum {
LOG_DELIMITER = '\n',
MSP430_ID_ADDR = 0xfe00,
RXBUFFERSIZE = 128,
NO_ID = 0xffff,
LOG_NR_BUFFERSIZE = 32,
RX_TIMEOUT_MILLI = 5,
};
typedef struct VarStruct {
void * pointer;
uint8_t length;
uint8_t * description;
} VarStruct;
#ifndef BUFFERSIZE
#define BUFFERSIZE 1024
#... |
tinyos-io/tinyos-3.x-contrib | kasetsart/tos/chips/mrf24j40/mrf24.h | #ifndef __MRF24_H__
#define __MRF24_H__
#ifndef TFRAMES_ENABLED
#define MRF24_IFRAME_TYPE
#endif
#ifndef TOSH_DATA_LENGTH
#define TOSH_DATA_LENGTH 28
#endif
#ifndef MRF24_DEF_CHANNEL
#define MRF24_DEF_CHANNEL 26
#endif
/**
* The 6LowPAN NALP ID for a TinyOS network is 63 (TEP 125).
*/
#ifndef TINYOS_6LOWPAN_NETW... |
tinyos-io/tinyos-3.x-contrib | uoit/mda300ca/mda300.h | #ifndef _MDA300_H
#define _MDA300_H
#define UQ_ADC_RESOURCE "mts300.ADC"
#define UQ_DIO_RESOURCE "mts300.DIO"
#define UQ_SHT15_RESOURCE "mts300.SHT15"
#define UQ_ARBITER_RESOURCE "mts300.arbiter"
enum
{
TOS_SHT15_DATA_POT_ADDR = 0x5A,
TOS_SHT15_CLK_POT_ADDR = 0x58,
};
// debug leds
//#define _DEBUG_LEDS
#ifdef _... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/client/sfaccess/telossource.c |
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include "sfsource.h"
#include "telossource.h"
#include "teloscomm.h"
uint32_t platform;
uint8_t telos_dsn = 0;
pthread_mutex_t sfreadmutex = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t sfwritemutex = PTHREAD_MUTEX_INITIALIZER;
int open_telos_source(con... |
tinyos-io/tinyos-3.x-contrib | wustl/upma/lib/macs/scp-wustl/ScpSyncMsg.h | /*
* "Copyright (c) 2007 Washington University in St. Louis.
* 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 | tinybt/apps/BluetoothTester/src/bttester.h | #ifndef BTTESTER_H
#define BTTESTER_H
#include "bluetooth.h"
#ifndef FLUREC_SIZE
#define FLUREC_SIZE 20
#endif
typedef struct flurec_t {
bool occupied;
bdaddr_t baddr;
uint32_t start;
uint32_t end;
bool dropped;
} flurec_t;
enum {
AM_FLUREC_T = 42,
AM_BASEADDR = 0xff,
};
#endif /* BTTESTER_H */
|
tinyos-io/tinyos-3.x-contrib | diku/common/tools/daq/view-data.c | <filename>diku/common/tools/daq/view-data.c
/**
* 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 =... |
tinyos-io/tinyos-3.x-contrib | csm/tos/lib/tossim/sim_serial_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 copyright
* notice, the following two paragraphs and... |
tinyos-io/tinyos-3.x-contrib | berkeley/quanto/tos/lib/compression/BitBuffer.h | <gh_stars>1-10
#ifndef _BIT_BUFFER_H
#define _BIT_BUFFER_H
#define INVALID_BIT 255
typedef struct {
uint16_t size_in_bits;
uint16_t pos; //position in bits where to write next bit
uint16_t rpos; //position in bits where to read next bit
uint8_t buf[];
} bitBuf;
/* Functions to manipulate the bitBuf.
... |
tinyos-io/tinyos-3.x-contrib | diku/mcs51/tos/chips/mcs51/mcs51hardware.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 | usc/senzip/SenZip_v1.0/senzip/Senzip.h | /*
* @ author <NAME>
* @ affiliation Autonomous Networks Research Group
* @ institution University of Southern California
*/
#ifndef SENZIP_H
#define SENZIP_H
#include <message.h>
#define AGG_BEACON_INTERVAL 50
#define COMP_PACKET_COUNT 20
#define MAX_NUM_CHILDREN 10
enum {
AM_SENZIP_AGG_HEADER = 40... |
tinyos-io/tinyos-3.x-contrib | berkeley/quanto/tos/lib/quanto/QuantoLog/my_message.h | <reponame>tinyos-io/tinyos-3.x-contrib
#ifndef MY_MESSAGE_H
#define MY_MESSAGE_H
#define MY_MESSAGE_LENGTH 121
//#include "serial.h"
typedef uint8_t my_message_t[MY_MESSAGE_LENGTH];
#endif
|
tinyos-io/tinyos-3.x-contrib | stanford-sing/s4-tinyos-2.x/tos/lib/linkestimator/LinkEstimator.h | // ex: set tabstop=2 shiftwidth=2 expandtab syn=c:
// $Id: LinkEstimator.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.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any pur... |
tinyos-io/tinyos-3.x-contrib | tinybt/tos/lib/bluetooth/additional_hci.h | <reponame>tinyos-io/tinyos-3.x-contrib<gh_stars>1-10
/*
* additional HCI
*/
#ifndef __ADDITIONAL_HCI_H
#define __ADDITIONAL_HCI_H
/* ----- HCI Commands ----- */
/* Additional OGF & OCF values */
//Inquiry result format with RSSI 7.3.54
#define OCF_WRITE_INQUIRY_MODE 0x0045
#define STD_INQ_RESULT 0x00
#define... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/runtime/tinyos2/StatusMsg.h |
enum
{
AM_STATUS_MSG = 10,
AM_SLEEP_MSG = 11,
AM_PATHDONE_MSG = 12
};
typedef struct
{
bool sleepy; //indicates that the stargate has started sleep sequence
uint16_t load;
} StatusMsg_t;
typedef struct
{
bool finishload;
} SleepMsg_t;
typedef struct
{
uint16_t pathnum;
uint32_t elapsed_us; //time
}... |
tinyos-io/tinyos-3.x-contrib | stanford-lgl/libs/BigMsgCTP/BigMsgCTP.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,... |
tinyos-io/tinyos-3.x-contrib | stanford-sing/sensorboards/PowerNetDriver/ADE7753.h | /*
* Register definitions for the ADE7753 power chip.
* Some ideas borrowed from the Berkeley ACMeter.
*
* @author <NAME> <<EMAIL>>
* @date Oct 2, 2008
*
*/
// Addresses of registers we care about
//active power integrated over time
#define AENERGY 0x02
//active power, reset register to 0 after reading
#defin... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/runtime/linuxsim/simworld/callshims.c | #include <pthread.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <values.h>
#include <stdarg.h>
#include <string.h>
#include "simworld.h"
#define __USE_GNU
//#include "/usr/include/dlfcn.h"
#include <dlfcn.h>
void __attribute__ ((constructor)) myinit(void);
int (*old_pthread_create)() = 0;
v... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/runtime/stargate/rt_handler.c |
#include "rt_handler.h"
#include "sfaccess/telossource.h"
#define PATHDONEMSGSIZE 3
extern int curstate;
extern float curgrade;
enum
{
AM_PATHDONE_MSG = 0xd2
};
int sendPathDonePacket(rt_data _pdata);
bool isFunctionalState(int8_t state)
{
return (curstate >= state);
}
void reportError(uint16_t nodeid, ui... |
tinyos-io/tinyos-3.x-contrib | sensorscheme/tos/lib/SensorScheme/implementation.h | <filename>sensorscheme/tos/lib/SensorScheme/implementation.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;
#define APPLY_PRIM_CONFIG(name, pr) App.Apply[name... |
tinyos-io/tinyos-3.x-contrib | tub/tos/lib/tinycops/TinyCOPS.h | <reponame>tinyos-io/tinyos-3.x-contrib
/*
* Copyright (c) 2007, Technische Universitaet Berlin
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* - Redistributions of source code must ret... |
tinyos-io/tinyos-3.x-contrib | nxtmote/misc/src/libusb-win32/libusb-win32-src-0.1.12.1/src/driver/get_status.c | <filename>nxtmote/misc/src/libusb-win32/libusb-win32-src-0.1.12.1/src/driver/get_status.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 publish... |
tinyos-io/tinyos-3.x-contrib | intelmote2/support/sdk/c/camera_cmd/bigmsg_frame_part.h | /**
* This file is automatically generated by mig. DO NOT EDIT THIS FILE.
* This file defines the layout of the 'bigmsg_frame_part' message type.
*/
#ifndef BIGMSG_FRAME_PART_H
#define BIGMSG_FRAME_PART_H
#include <message.h>
enum {
/** The default size of this message type in bytes. */
BIGMSG_FRAME_PART_SIZE ... |
tinyos-io/tinyos-3.x-contrib | tinymulle/tos/chips/m16c62p/bits.h | /*
* Copyright (c) 2008, Embedded Internet System technology bothnia AB (EISTEC AB)
* 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 abo... |
tinyos-io/tinyos-3.x-contrib | eon/apps/eserver/impl/stargate/mImpl.h | #ifndef _MIMPL_H_
#define _MIMPL_H_
#include "mNodes.h"
#include "runtime/rt_structs.h"
#include "mStructs.h"
void init (int argc, char **argv);
int Reply (Reply_in * in, Reply_out * out);
int ReadRequest (ReadRequest_in * in, ReadRequest_out * out);
void BadRequest (ReadRequest_in * in, int err);
int Handler (Handler... |
tinyos-io/tinyos-3.x-contrib | wsu/telosw/ccxx00/lpl/Wor.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/rt_structs.h | #ifndef RT_STRUCTS_H_INCLUDED
#define RT_STRUCTS_H_INCLUDED
typedef struct rt_data
{
uint16_t sessionID;
uint32_t starttime;
uint16_t weight;
uint8_t minstate;
uint8_t wake;
uint32_t elapsed_us;
} rt_data;
typedef struct GenericNode
{
rt_data _pdata;
} GenericNode;
typedef uint8_t request_t[50];
#endif... |
tinyos-io/tinyos-3.x-contrib | diku/freescale/tos/lib/Debug.h | /* 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
* list of condi... |
tinyos-io/tinyos-3.x-contrib | usc/senzip/SenZip_v1.0/senzip/FixedRouting.h | /*
* @ author <NAME>
* @ affiliation Autonomous Networks Research Group
* @ institution University of Southern California
*/
#ifndef FIXEDROUTING_H
#define FIXEDROUTING_H
enum {
AM_FIXRT_MSG = 29,
};
typedef nx_struct fixrt_msg {
nx_uint8_t type;
nx_uint16_t parent;
nx_uint8_t numHops;
} FixRt... |
tinyos-io/tinyos-3.x-contrib | blaze/tos/chips/ccxx00_single/radios/cc2500/CC2500.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 | nxtmote/misc/src/libusb-win32/libusb-win32-src-0.1.12.1/src/driver/power.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 | mc/raven/tos/platforms/raven/raven.h | <filename>mc/raven/tos/platforms/raven/raven.h
/*
* Copyright (c) 2012 <NAME>
* 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 cop... |
tinyos-io/tinyos-3.x-contrib | uob/apps/UDPServices/Service.h | <gh_stars>1-10
#ifndef _SERVICE_H
#define _SERVICE_H
enum {
MAX_NAME_LENGTH = 20,
MAX_SNAME_LENGTH = 10,
MAX_DATA_LENGTH = 16,
};
/* enum{ */
/* INVALID_SERVICE_TYPE = 0, */
/* SOURCE_SERVICE_TYPE = 1, */
/* SINK_SERVICE_TYPE = 2, */
/* PROCESSING_SERVICE_TYPE = 3, */
/* }; */
/* nx_struct service_t { ... |
tinyos-io/tinyos-3.x-contrib | nxtmote/misc/src/libusb-win32/libusb-win32-src-0.1.12.1/tests/testlibusb_win.c | /* LIBUSB-WIN32, Generic Windows USB Library
* Copyright (c) 2002-2004 <NAME> <<EMAIL>>
* Copyright (c) 2000-2004 <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; ... |
tinyos-io/tinyos-3.x-contrib | berkeley/quanto/tos/chips/cc2420/CC2420Quanto.h | <reponame>tinyos-io/tinyos-3.x-contrib
#ifndef _CC2420_QUANTO_H
#define _CC2420_QUANTO_H
/* Quanto constants for the CC2420 */
/* Power states for the radio:
* OFF/LISTEN/RX/TX
* States are set on the msB of the powerstate_t
* Powerlevels are set on the lower 5 bits of the lsB
*/
enum {
ACT_PXY_CC2420_RX = ... |
tinyos-io/tinyos-3.x-contrib | tinymulle/apps/IRSensorTest/TestAdc.h | <gh_stars>1-10
#ifndef TEST_ADC_H
#define TEST_ADC_H
typedef nx_struct test_serial_msg {
nx_uint16_t data;
} adc_msg_t;
enum {
AM_ADC_MSG = 8,
};
#endif
|
tinyos-io/tinyos-3.x-contrib | nxtmote/misc/src/libusb-win32/libusb-win32-src-0.1.12.1/src/driver/libusb_driver.c | <reponame>tinyos-io/tinyos-3.x-contrib
/* 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 versi... |
tinyos-io/tinyos-3.x-contrib | sensorscheme/tos/lib/SensorScheme/Macros.h | <reponame>tinyos-io/tinyos-3.x-contrib
#ifndef MACROS_H
#define MACROS_H
/**
* Macros.h: defines macros that are used as functions inside the SSeval function, but cannot be
* defined as functions because they jump to labels.
*/
/*-- auxillary functions that need to be implemented as macro --*/
#define incFree (f... |
tinyos-io/tinyos-3.x-contrib | unlpt/FireSim/tos/lib/tossim/sim_fire.c | /*
* Copyright (c) 2007 New University of Lisbon - Faculty of Sciences and
* 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:
* - Redistributions of source code must retain the above ... |
tinyos-io/tinyos-3.x-contrib | berkeley/apps/AIIT_tutorials/3_PrintSerial/PrintSerial.h | <filename>berkeley/apps/AIIT_tutorials/3_PrintSerial/PrintSerial.h
#ifndef PRINT_SERIAL_H
#define PRINT_SERIAL_H
#include "message.h"
typedef nx_struct print_serial_msg {
//nx_uint16_t counter;
nx_uint8_t buffer[TOSH_DATA_LENGTH];
} print_serial_msg_t;
enum {
AM_PRINT_SERIAL_MSG = 0x0A,
};
#endif
|
tinyos-io/tinyos-3.x-contrib | uob/tossdr/ucla/gnuradio-802.15.4-demodulation/src/lib/ucla_interleave.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 | diku/common/tools/compression/simple/simple_decomp.c | <reponame>tinyos-io/tinyos-3.x-contrib
#include <inttypes.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include "../buffer.h"
#include <stdlib.h>
uint8_t membuffer[MEMBUFSIZE];
uint8_t *data;
uint8_t read_count;
uint16_t buffer;
static uint8_t read_bits(uint8_t len)
{
uint8_t res;
// Fill the buff... |
tinyos-io/tinyos-3.x-contrib | diku/mcs51/tos/chips/cc2430/CC2430_CSP.h | <reponame>tinyos-io/tinyos-3.x-contrib
/*
* 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 ... |
tinyos-io/tinyos-3.x-contrib | skel/tos/platforms/skel/hardware.h | <reponame>tinyos-io/tinyos-3.x-contrib<gh_stars>1-10
#ifndef HARDWARE_H
#define HARDWARE_H
inline void __nesc_enable_interrupt() { }
inline void __nesc_disable_interrupt() { }
typedef uint8_t __nesc_atomic_t;
inline __nesc_atomic_t __nesc_atomic_start(void) @spontaneous() {
return 0;
}
inline void __nesc_atomic_e... |
tinyos-io/tinyos-3.x-contrib | tcd/powertossim-z/tinyos_files/tinyos-2.0.2/tos/lib/tossim/sim_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 | diku/common/lib/compression/huffman_whole_diff.h | #define CODESET "../../tools/compression/huffman/huffman_whole_diff_codes.h"
#include "../../tools/compression/huffman/huffman_comp.c"
|
tinyos-io/tinyos-3.x-contrib | stanford-sing/s4-tinyos-2.x/tos/lib/interfaces/BVRSend.h | #ifndef BVRSEND_H
#define BVRSEND_H
#include "message.h"
#endif
|
tinyos-io/tinyos-3.x-contrib | tcd/powertossim-z/tinyos_files/tinyos-2.0.2/tos/chips/atm128/Atm128Power.h | // $Id: Atm128Power.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 | eon/eon/src/runtime/stargate/rt_marshall.c |
#include "rt_marshall.h"
#include "rt_structs.h"
#include <stdint.h>
#include "sfaccess/tinystream.h"
int unmarshall_start(int cid, uint16_t *nodeid)
{
uint8_t dtype;
uint8_t data[2];
int result;
dbg(APP,"unmarsh,start:");
result = tinystream_read(cid, &dtype, 1);
if (result)
{
dbg(APP,"read_error gettin... |
tinyos-io/tinyos-3.x-contrib | antlab-polimi/dpcm_C/dpcmDecodeApp.c |
/**
* @author <NAME> <EMAIL>
*/
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "tinyos_macros.h"
#include "dpcm_decoder.h"
int main(int argc, char **argv)
{
char filename[1024];
uint frame_num=0;
if (argc > 2) {
sprintf(filename,argv[1]);
frame_num = (uin... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/runtime/telos/adcs.h | <reponame>tinyos-io/tinyos-3.x-contrib
enum
{
TOS_ADC_A0_PORT = unique("ADCPort"),
TOSH_ACTUAL_ADC_A0_PORT = ASSOCIATE_ADC_CHANNEL (INPUT_CHANNEL_A0,
REFERENCE_VREFplus_AVss,
REFVOLT_LEVEL_1_5),
VREF = 2600,
TIMERRES = (uint32_t)32768
};
|
tinyos-io/tinyos-3.x-contrib | eon/eon/src/runtime/linuxsim/energymgr.h | <filename>eon/eon/src/runtime/linuxsim/energymgr.h
#ifndef __ENERGY_MGR_H
#define __ENERGY_MGR_H
#include "simworld.h"
#include <stdint.h>
#define EVAL_COUNT (3600 / ENERGY_TIME)
typedef struct
{
int energy_state;
double state_grade;
int64_t cost_of_reevaluation;
} energy_evaluation_struct_t;
void start_energy_m... |
tinyos-io/tinyos-3.x-contrib | wsu/telosw/ADC/Sensor.h | <filename>wsu/telosw/ADC/Sensor.h
/*
enum {
ENERGY_REQUEST = 0,
BATTERY_REQUEST = 1,
LIGHT_REQUEST= 2,
ACC_REQUEST1 = 3,
ACC_REQUEST2 = 4,
ACC_REQUEST3 = 5,
};
*/
enum {
ACC_REQUEST1 = 0,
ACC_REQUEST2 = 1,
ACC_REQUEST3 = 2,
LIGHT_REQUEST= 3,
ENERGY_REQUEST = 4,
BATTERY_REQUEST = 5,
};
enum{
LIGHT_WAKEUP_THRESHOLD = ... |
tinyos-io/tinyos-3.x-contrib | eon/apps/server-e/impl/stargate/ServerE.h |
#ifndef SERVERE_H_INCLUDED
#define SERVERE_H_INCLUDED
#include <stdint.h>
#include "runtime/rt_structs.h"
#define TOSH_DATA_LENGTH 60
#ifndef HEADER_LENGTH
#define HEADER_LENGTH 4
#endif
#ifndef DATA_HEADER_LENGTH
#define DATA_HEADER_LENGTH 8
#endif
#ifndef URL_LENGTH
#define URL_LENGTH (TOSH_DATA_LENGTH-HEADE... |
tinyos-io/tinyos-3.x-contrib | intelmote2/support/sdk/c/camera_cmd/camera_cmd.h | #ifndef CAMERA_CMD_H
#define CAMERA_CMD_H
#include <stdio.h>
#include <stdlib.h>
#include "sfsource.h"
int sf_fd;
enum {
IMG_TYPE_COL=1,
IMG_TYPE_JPG=2,
};
typedef struct{
int node_id;
int type;
int is_progressive;
int data_size;
int width;
int height;
} img_stat_t;
typedef struct {
int packet_siz... |
tinyos-io/tinyos-3.x-contrib | osu/platforms/psi/hardware.h | #ifndef _H_hardware_h
#define _H_hardware_h
#include "msp430hardware.h"
//#include "MSP430ADC12.h"
//#include "CC2420Const.h"
//#include "AM.h"
/**
* Copyright (c) 2007 - The Ohio State University.
* All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation f... |
tinyos-io/tinyos-3.x-contrib | berkeley/blip-2.0/support/sdk/c/blip/interface/tun_dev.h | /*
* "Copyright (c) 2008 The Regents of the University of California.
* All rights reserved."
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose, without fee, and without written agreement is
* hereby granted, provided that the above copyright notice, the fo... |
tinyos-io/tinyos-3.x-contrib | nxtmote/misc/src/libusb-win32/libusb-win32-src-0.1.12.1/src/registry.h | <gh_stars>1-10
/* 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 Li... |
tinyos-io/tinyos-3.x-contrib | antlab-polimi/dpcm_C/codeZeros.h | static inline uint32_t codeZeros(uint8_t *dataIn, uint8_t *dataOut, uint32_t dataSize,
uint32_t bandwidth)
{
uint32_t i;
uint32_t idx=0;
uint16_t zeroSeqLength=0, numZeroFreqs=0;
for (i=0; (i<dataSize && idx<(bandwidth-3)); i++)
{
if (dataIn[i]==0)
{
if (zeroSeqLength++==0xFF)
{
... |
tinyos-io/tinyos-3.x-contrib | ethz/snpk/apps/DSNBoot/msp430baudrates.h | //$Id: msp430baudrates.h,v 1.1 2007/02/23 14:51:45 rlim Exp $
//@author <NAME> <<EMAIL>>
#ifndef _H_msp430baudrates_h
#define _H_msp430baudrates_h
/**
Parameters for HPLUSARTControl.setClockRate() that generate some standard baud rates.
Usage is setClockRate(UBR_CLOCK_BAUDRATE, UMCTL_CLOCK_BAUDRATE), see HPLUARTM.nc ... |
tinyos-io/tinyos-3.x-contrib | tinymulle/tos/chips/m16c62p/timer/M16c62pTimer.h | <filename>tinymulle/tos/chips/m16c62p/timer/M16c62pTimer.h
#ifndef __M16C62PTIMER_H__
#define __M16C62PTIMER_H__
/*
* Precations when using Timer A1 and Timer A2.
* Read hardware manual page 139.
*
* Precations when using Timer B2.
* Read hardware manual page 156.
*/
enum
{
TMR_TIMER_MODE,
TMR_C... |
tinyos-io/tinyos-3.x-contrib | eon/eon/src/runtime/stargatehelper/pgm_util.h | #ifndef _PGM_UTIL_H_
#define _PGM_UTIL_H_
#if defined(PLATFORM_PC)
#define PROGMEM
inline int32_t read_pgm_int32(int32_t* pptr)
{
int32_t result;
memcpy((void*)&result, pptr, sizeof(int32_t));
return result;
}
inline int16_t read_pgm_int16(int16_t* pptr)
{
int16_t result;
memcpy(&result, pptr, sizeof(int16... |
tinyos-io/tinyos-3.x-contrib | uni_valencia/Gatherer/GathererReport.h | /* Copyright (c) 2011 Universitat de Valencia.
* 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 ... |
tinyos-io/tinyos-3.x-contrib | rincon/tos/lib/industrialCtp/Ctp.h |
/*
* Copyright (c) 2006 Stanford University.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* - Redistributions of source code must retain the above copyright
* notice, this list of ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.