repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
hananiahhsu/OpenCAD
XUXUCAM/cam_newmaterial.h
#ifndef CAM_NEWMATERIAL_H #define CAM_NEWMATERIAL_H /* ************************************ *** @<NAME> *** @2017.05.10 *** @NanJing,China *** @<EMAIL> ************************************ */ #include <QDialog> #include <QDir> #include "FileIO/cam_fileio.h" namespace Ui { class CAM_NewMaterial; ...
hananiahhsu/OpenCAD
XUXUCAM/CamCores/CamEng/cam_document.h
#ifndef CAM_DOCUMENT_H #define CAM_DOCUMENT_H /* ************************************ *** @<NAME> *** @2017.05.10 *** @NanJing,China *** @<EMAIL> ************************************ */ #include "CamCores/CamEng/cam_pen.h" #include <QString> /* ************************************ *** @<NAME...
hananiahhsu/OpenCAD
XUXUCAM/CamCores/CamEng/cam_blocklist.h
<reponame>hananiahhsu/OpenCAD #ifndef CAM_BLOCKLIST_H #define CAM_BLOCKLIST_H /* ************************************ *** @<NAME> *** @2017.05.10 *** @NanJing,China *** @<EMAIL> ************************************ */ class Cam_BlockList { public: Cam_BlockList() {} virtual ~Cam_BlockL...
hananiahhsu/OpenCAD
XUXUCAM/CamDxf/camswap.h
<reponame>hananiahhsu/OpenCAD<filename>XUXUCAM/CamDxf/camswap.h #ifndef CAMSWAP_H #define CAMSWAP_H /* ************************************ *** @<NAME> *** @2017.05.10 *** @NanJing,China *** @<EMAIL> ************************************ */ #include <QtGui> #include <QWidget> #include "CamDxf/qpointf...
hananiahhsu/OpenCAD
XUXUCAM/camexpert.h
<reponame>hananiahhsu/OpenCAD #ifndef CAMEXPERT_H #define CAMEXPERT_H /* ************************************ *** @<NAME> *** @2017.05.10 *** @NanJing,China *** @<EMAIL> ************************************ */ #include <QMainWindow> #include <QMdiArea> #include <QSplitter> #include <QTreeView> #in...
miyamotok0105/deeplearning-learning-sample
src/cuda_sample/sample1/cuda_main.c
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <sys/time.h> #include <unistd.h> #include "sample.h" double gettimeofday_sec() { struct timeval tv; gettimeofday(&tv, NULL); return tv.tv_sec + tv.tv_usec * 1e-6; } int main(int argc, char *argv[]) { double t1,t2; int n = 100; if (argc > 1...
miyamotok0105/deeplearning-learning-sample
src/cuda_sample/sample1/sample.h
#ifndef SAMPLE_H #define SAMPLE_H void cuda_kernel_exec(int n); #endif /* SAMPLE_H */
janklab/FasterDatevec
Mcode/+jl/+time/+internal/fastdateparts_precalc_mex.c
#include "mex.h" #include "matrix.h" #include <stdio.h> #include <math.h> #include <stdint.h> void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { // Inputs if (nrhs != 2) { mexErrMsgIdAndTxt("jl:time:InvalidInput", "Exactly 2 inputs are required."); } const mxA...
JasonElbert/LocalyticsAndroid
src/ios/Localytics.h
// // Localytics.h // Copyright (C) 2014 Char Software Inc., DBA Localytics // // This code is provided under the Localytics Modified BSD License. // A copy of this license has been distributed in a file called LICENSE // with this source code. // // Please visit www.localytics.com for more information. // #impor...
JasonElbert/LocalyticsAndroid
src/ios/LocalyticsPlugin.h
// // LocalyticsPlugin.h // // Copyright 2015 Localytics. All rights reserved. // #import <Cordova/CDVPlugin.h> @interface LocalyticsPlugin : CDVPlugin - (void)integrate:(CDVInvokedUrlCommand *)command; - (void)autoIntegrate:(CDVInvokedUrlCommand *)command; - (void)openSession:(CDVInvokedUrlCommand *)command; - (v...
WarZhan/Graphics-Demo
Solar/Angel.h
<reponame>WarZhan/Graphics-Demo ////////////////////////////////////////////////////////////////////////////// // // --- Angel.h --- // // The main header file for all examples from Angel 6th Edition // ////////////////////////////////////////////////////////////////////////////// #ifndef __ANGEL_H__ #define __ANG...
onezens/HttpsDemo
HttpsDemo/ViewController.h
// // ViewController.h // HttpsDemo // // Created by leaf on 2017/8/15. // Copyright © 2017年 cc.onezen. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
onezens/HttpsDemo
HttpsDemo/UIAHttps.h
<reponame>onezens/HttpsDemo<gh_stars>0 // // UIAHttps.h // UIADemo // // Created by zhangchao on 16/12/13. // Copyright © 2016年 王龙. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface UIAHttps : NSObject + (UIAHttps *)shared; - (void)POST:(NSString *)urlString Dictio...
pjcollins/java.interop
src/java-interop/java-interop-gc-bridge-mono.c
#include <assert.h> #include <stdlib.h> #include <string.h> #include <pthread.h> #include <inttypes.h> #include "java-interop.h" #include "java-interop-gc-bridge.h" #include "java-interop-mono.h" #ifdef __linux__ #include <unistd.h> #endif /* !defined (__linux__) */ #if defined (ANDROID) #include "logger.h" #endi...
pjcollins/java.interop
src/java-interop/java-interop.c
<gh_stars>0 #include <stdlib.h> #include <string.h> #include "java-interop.h" char* java_interop_strdup (const char* value) { return strdup (value); } void java_interop_free (void *p) { free (p); }
pjcollins/java.interop
src/java-interop/java-interop.h
#ifndef INC_JAVA_INTEROP_H #define INC_JAVA_INTEROP_H #include <stdint.h> #if defined(_MSC_VER) #define MONO_API_EXPORT __declspec(dllexport) #define MONO_API_IMPORT __declspec(dllimport) #else /* defined(_MSC_VER */ #ifdef __GNUC__ #define MONO_API_EXPORT __attribute__ ((visibility ("default"))) #else #...
pjcollins/java.interop
src/java-interop/java-interop-mono.h
#ifndef INC_JAVA_INTEROP_MONO_H #define INC_JAVA_INTEROP_MONO_H #include "java-interop.h" #if defined (ANDROID) #include "dylib-mono.h" #include "monodroid-glue.h" #define mono_class_from_mono_type (mono.mono_class_from_mono_type) #define mono_class_from_name (mono.mono_class_f...
pjcollins/java.interop
src/java-interop/java-interop-mono.c
#include "java-interop-mono.h"
dayananth/TwitterClient
TwitterClient/MessageComposeController.h
// // MessageComposeController.h // TwitterClient // // Created by <NAME> on 11/8/15. // Copyright © 2015 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> #import "Tweet.h" @class MessageComposeController; @protocol MessageComposeControllerDelegate <NSObject> -(void) MessageComposeController: (MessageCom...
dayananth/TwitterClient
TwitterClient/TwitterClient.h
<gh_stars>0 // // TwitterClient.h // TwitterClient // // Created by <NAME> on 11/4/15. // Copyright © 2015 <NAME>. All rights reserved. // #import <BDBOAuth1Manager/BDBOAuth1RequestOperationManager.h> #import "Tweet.h" #import "User.h" @interface TwitterClient : BDBOAuth1RequestOperationManager + (TwitterClient ...
dayananth/TwitterClient
TwitterClient/LoginViewController.h
// // LoginViewController.h // TwitterClient // // Created by <NAME> on 11/4/15. // Copyright © 2015 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface LoginViewController : UIViewController @end
dayananth/TwitterClient
Tweet.h
// // Tweet.h // TwitterClient // // Created by <NAME> on 11/5/15. // Copyright © 2015 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import "User.h" @interface Tweet : NSObject @property (nonatomic, strong) NSNumber *twetID; @property (nonatomic, strong) NSString *text; @property (nonatomic,...
dayananth/TwitterClient
TwitterClient/TweetDetailViewController.h
<gh_stars>1-10 // // TweetDetailViewController.h // TwitterClient // // Created by <NAME> on 11/8/15. // Copyright © 2015 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> #import "Tweet.h" @class TweetDetailViewController; @protocol TweetDetailViewControllerDelegate <NSObject> -(void) TweetDetailViewCont...
dayananth/TwitterClient
User.h
<filename>User.h // // User.h // TwitterClient // // Created by <NAME> on 11/5/15. // Copyright © 2015 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> extern NSString * const UserDidLoginNotification; extern NSString * const UserDidLogoutNotification; @interface User : NSObject -(id) initWithD...
dayananth/TwitterClient
TwitterClient/TweetsViewController.h
// // TweetsViewController.h // TwitterClient // // Created by <NAME> on 11/6/15. // Copyright © 2015 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface TweetsViewController : UIViewController @end
dayananth/TwitterClient
TwitterClient/TweetCell.h
<reponame>dayananth/TwitterClient<filename>TwitterClient/TweetCell.h // // TweetCell.h // TwitterClient // // Created by <NAME> on 11/7/15. // Copyright © 2015 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> #import "Tweet.h" @interface TweetCell : UITableViewCell @property (weak, nonatomic) IBOutlet UIIm...
tinyos-io/tinyos-3.x-contrib
uob/tossdr/tos/lib/tossdr/sim_tossdr.c
<reponame>tinyos-io/tinyos-3.x-contrib<filename>uob/tossdr/tos/lib/tossdr/sim_tossdr.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...
tinyos-io/tinyos-3.x-contrib
vu/tos/lib/remotecontrol/RemoteControl.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
berkeley/blip-2.0/support/sdk/c/blip/lib6lowpan/lib6lowpan-includes.h
<gh_stars>1-10 #ifndef _LIB6LOWPAN_INCLUDES_H #define _LIB6LOWPAN_INCLUDES_H #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <Ieee154.h> #ifdef PC #include "blip-pc-includes.h" // typedef uint16_t ieee154_saddr_t; typedef uint16_t hw_pan_t; enum { HW_BROADCAST_ADDR = 0xffff, }; #else #include "blip-tinyos...
tinyos-io/tinyos-3.x-contrib
berkeley/blip-2.0/support/sdk/c/blip/lib6lowpan/lib6lowpan_frag.c
#include <stdint.h> #include <string.h> #include <stdlib.h> #include "6lowpan.h" #include "Ieee154.h" #include "ip.h" #include "lib6lowpan.h" #include "nwbyte.h" #include "ip_malloc.h" #include "iovec.h" int lowpan_recon_complete(struct lowpan_reconstruct *recon, struct ip6_packet_headers *...
tinyos-io/tinyos-3.x-contrib
diku/mcs51/tos/chips/mcs51/io8051.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/driver/get_configuration.c
<reponame>tinyos-io/tinyos-3.x-contrib<gh_stars>1-10 /* LIBUSB-WIN32, Generic Windows USB Library * Copyright (c) 2002-2005 <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation...
tinyos-io/tinyos-3.x-contrib
rincon/tos/lib/Nmea/NmeaCoordinates.h
/* * Copyright (c) 2008 Rincon Research Corporation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * - Redistributions of source code must retain the above copyright * notice, this li...
tinyos-io/tinyos-3.x-contrib
eon/tos/platforms/turtlenet/hardware.h
<reponame>tinyos-io/tinyos-3.x-contrib<filename>eon/tos/platforms/turtlenet/hardware.h /* * Copyright (c) 2005-2006, Ecole Polytechnique Federale de Lausanne (EPFL) * and Shockfish SA, Switzerland. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are p...
tinyos-io/tinyos-3.x-contrib
diku/mcs51/tos/platforms/c8051F340TB/hardware.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
ethz/tinynode184/tos/chips/msp430/msp430regtypes.h
/* "Copyright (c) 2000-2003 The Regents of the University of California. * All rights reserved. * * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose, without fee, and without written agreement * is hereby granted, provided that the above copyright notice, the...
tinyos-io/tinyos-3.x-contrib
berkeley/apps/BlinkSPOT/EnergyMsg.h
enum { AM_ENERGYMSG = 13, }; typedef struct EnergyMsg { uint16_t src; uint32_t base; uint32_t energy; } EnergyMsg_t;
tinyos-io/tinyos-3.x-contrib
diku/freescale/tos/chips/hcs08/uart/Hcs08Uart.h
/* Copyright (c) 2007, <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * - Redistributions of source code must retain the above copyright notice, this * list of condi...
tinyos-io/tinyos-3.x-contrib
kth/tkn154-gts/tos/platforms/telosb/mac/tkn154/TKN154_platform.h
<reponame>tinyos-io/tinyos-3.x-contrib /* * Copyright (c) 2008, 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 re...
tinyos-io/tinyos-3.x-contrib
shimmer/apps/SimpleAccelGyro/SimpleAccelGyro.h
#ifndef SYNCD_TIMING_H #define SYNCD_TIMING_H #include "AM.h" typedef nx_struct simple_send_msg { nx_uint16_t counter; nx_uint8_t message[TOSH_DATA_LENGTH-2]; // 114 bytes - 2 byte counter } simple_send_msg_t; enum { BASE_STATION_ADDRESS = 0, AM_SYNCD_TIMING_MSG = 0x7F, }; #endif
tinyos-io/tinyos-3.x-contrib
diku/common/lib/compression/huffman.h
<gh_stars>1-10 #define CODESET "../../tools/compression/huffman/huffman_codes.h" #include "../../tools/compression/huffman/huffman_comp.c"
tinyos-io/tinyos-3.x-contrib
cotsbots/tos/lib/SlotMsg.h
<filename>cotsbots/tos/lib/SlotMsg.h /* * Author: <NAME> * Date last modified: 10/2/2003 * */ // The message type for Slot-Ring Protocol Management (SlotManager) /** * @author <NAME> */ enum { MAX_NODES_IN_RING = 8 }; typedef struct SlotMsg { int16_t src; uint8_t sync; int16_t table[MAX_NODES_IN_RI...
tinyos-io/tinyos-3.x-contrib
timetossim/tinyos-2.x/tools/cgram/examples/check_time3.c
inline int check_time(sim_time_t avr_time){ //printf("%lld",sim_time()); sim_time_t temp=((sim_time_t)avr_time * sim_ticks_per_sec()); temp /= 7372800ULL; sim_set_time(sim_time()+temp); return 0; }
tinyos-io/tinyos-3.x-contrib
eon/eon/src/client/sfaccess/tinystream.h
<filename>eon/eon/src/client/sfaccess/tinystream.h #ifndef _TINYSTREAM_H_ #define _TINYSTREAM_H_ #include "teloscomm.h" #include "tinyrely.h" int tinystream_init(const char* host, int port); int tinystream_close(); int tinystream_connect(int addr); int tinystream_close_connection(int id); int tinystream_read(int ...
tinyos-io/tinyos-3.x-contrib
eon/eon/src/util/collect/platform.h
<gh_stars>1-10 #ifndef PLATFORM_H #define PLATFORM_H #define AVRMOTE 1 #define TELOS 2 #define MICAZ 3 #define EYES 4 #define TINYNODE 5 #if !defined(__CYGWIN__) #include <inttypes.h> #else //__CYGWIN #include <sys/types.h> // Earlier cygwins do not define uint8_t & co #ifndef _STDINT_H #ifndef __uint32_t_defined...
tinyos-io/tinyos-3.x-contrib
nxtmote/tos/chips/bc4/d_bt.h
// // Date init 14.12.2004 // // Revision date $Date: 2007/12/18 21:48:12 $ // // Filename $Workfile:: d_bt.h $ // // Version $Revision: 1.1 $ // // Archive $Archive:: /LMS2006/Sys01/Main/Firmware/Source/d_bt.h $ // // Platform C // #ifnd...
tinyos-io/tinyos-3.x-contrib
usc/senzip/SenZip_v1.0/SenZipApp/SenZipApp.h
#ifndef SENZIPAPP_H #define SENZIPAPP_H #define BASE_ID 127 #define SINK_NODE_ID 0 #define NUM_MEASUREMENTS 3 #define SAMPLE_PERIOD 2000 enum { AM_BASE_MSG = 37, }; enum { START = 1, }; typedef nx_struct base_msg { nx_int16_t data[NUM_MEASUREMENTS]; nx_uint8_t type; nx_uint8_t src; nx_uint8_t parent; ...
tinyos-io/tinyos-3.x-contrib
osu/platforms/psi/chips/msp430/usart/Msp430PSI.h
/** * Copyright (c) 2007 - The Ohio State 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
csm/tos/lib/tossim/SerialPacket.h
<filename>csm/tos/lib/tossim/SerialPacket.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...
tinyos-io/tinyos-3.x-contrib
cedt/tos/lib/tossim/sim_energy_estimate.c
/** * "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 copyright * notic...
tinyos-io/tinyos-3.x-contrib
eon/eon/src/runtime/tinyos2/fluxconsumptionpredictor.h
#ifndef FLUXSOURCEPREDICTOR_H_INCLUDED #define FLUXSOURCEPREDICTOR_H_INCLUDED int32_t predict_consumption(uint8_t hours, uint8_t state); { return 5; //TODO come back to this } #endif
tinyos-io/tinyos-3.x-contrib
berkeley/acme/tos/sensorboards/ACme/ADE7753.h
/********************** * types and register defs for ADE7753 energy meter * @author <NAME> <<EMAIL>> */ // Register addresses #define ADE7753_GAIN 0x0F #define ADE7753_AENERGY 0x02 #define ADE7753_RAENERGY 0x03 #define ADE7753_MODE 0x09 #define ADE7753_IRMS 0x16 ...
tinyos-io/tinyos-3.x-contrib
eon/apps/server-e/mImpl.c
<gh_stars>1-10 #include "mImpl.h" #include "mImpl.h" #include <unistd.h> #include <fcntl.h> #include <sys/socket.h> #include <sys/mman.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/types.h> #include <netinet/tcp.h> #include <netinet/in.h> const uint8_t minPathState[NUMPATHS] = { STATE_BASE, STATE_B...
tinyos-io/tinyos-3.x-contrib
stanford-sing/s4-tinyos-2.x/tos/lib/bvr/topology-old.h
/* Topology file. Ids 1 to 5 are beacons. * Parameters: n:256 nodes * Author: <NAME> */ #ifndef TOPOLOGY_H #define TOPOLOGY_H enum { N_NODES = 256, N_ROOT_BEACONS = 5, DIAMETER = 10, INVALID_BEACON_ID = 0xff, }; uint8_t hc_root_beacon_id[N_NODES] = { 0xff, 0, 1, 2, 3, 4, 0xff, 0xff, 0xff, 0...
tinyos-io/tinyos-3.x-contrib
antlab-polimi/sensors/sdram.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
berkeley/apps/AIIT_tutorials/6_Readings/PrintCounterReading.h
#ifndef PRINT_SERIAL_H #define PRINT_SERIAL_H #include "message.h" typedef nx_struct print_counter_reading_msg { nx_uint8_t flag; nx_uint16_t nodeid; nx_uint16_t counter; nx_uint16_t voltage_reading; } print_counter_reading_msg_t; enum { AM_PRINT_COUNTER_READING_MSG = 0x0D, FLAG_COUNTER = 0x01, FLAG_V...
tinyos-io/tinyos-3.x-contrib
tcd/powertossim-z/tinyos_files/tinyos-2.0.2/tos/chips/atm128/adc/Atm128Adc.h
// $Id: Atm128Adc.h,v 1.1 2014/11/26 19:31:33 carbajor Exp $ /* * Copyright (c) 2004-2005 Crossbow Technology, Inc. All rights reserved. * * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose, without fee, and without written agreement is * hereby granted, provi...
tinyos-io/tinyos-3.x-contrib
diku/sensinode/tos/platforms/micro4/platform.h
<reponame>tinyos-io/tinyos-3.x-contrib /* Changes the clock frequency from the default 4 MHz to 1 MHz */ #ifndef __4MHz__ #ifndef __1MHz__ #define __1MHz__ #endif #endif /* old TOSH_uwait - more precise than the new TOS2 timers */ inline void TOSH_uwait(uint16_t u) { uint16_t i; // 1MHz clock - no...
tinyos-io/tinyos-3.x-contrib
diku/mcs51/tos/chips/mcs51/sys/select.h
/* * Dummy to prevent inclution of system includes (that Keil don't like) */ #ifndef _SYS_SELECT_H #define _SYS_SELECT_H 1 #endif _SYS_SELECT_H
tinyos-io/tinyos-3.x-contrib
nxtmote/misc/src/libusb-win32/libusb-win32-src-0.1.12.1/src/driver/claim_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
nxtmote/misc/src/libusb-win32/libusb-win32-src-0.1.12.1/src/driver/set_feature.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
uob/tossdr/tos/lib/tossdr/tossim_sync_impl.c
/* When included into a TOSSIM application this module will allow using the C++/Python TossimSync interface run simulation events in "real-world" time. !!Assumes sim_time_t is in nano-seconds. */ #ifdef __cplusplus extern "C" { #endif #include <sys/time.h> #include <time.h> #include <stdio.h> #include <e...
tinyos-io/tinyos-3.x-contrib
nxtmote/misc/src/libusb-win32/libusb-win32-src-0.1.12.1/src/inf_wizard.c
<gh_stars>1-10 /* LIBUSB-WIN32, Generic Windows USB Library * Copyright (c) 2002-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 ...
tinyos-io/tinyos-3.x-contrib
rincon/apps/BlackbookBridge/BDictionaryBridge/Link_BDictionary.h
<filename>rincon/apps/BlackbookBridge/BDictionaryBridge/Link_BDictionary.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: * - Red...
tinyos-io/tinyos-3.x-contrib
eon/eon/src/client/sfaccess/tinystream.c
<reponame>tinyos-io/tinyos-3.x-contrib #include "tinystream.h" #include <string.h> #include <unistd.h> #define TS_BUFSIZE 5000 uint8_t ts_buffer[TS_BUFSIZE]; pthread_mutex_t read_mutex = {0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, __LOCK_INITIALIZER}; int bufhead = 0; int buftail = 0; bool all_abort = FALSE; bool pushbyt...
tinyos-io/tinyos-3.x-contrib
intelmote2/support/sdk/c/camera_cmd/cmd_msg.h
<reponame>tinyos-io/tinyos-3.x-contrib<filename>intelmote2/support/sdk/c/camera_cmd/cmd_msg.h /** * This file is automatically generated by mig. DO NOT EDIT THIS FILE. * This file defines the layout of the 'cmd_msg' message type. */ #ifndef CMD_MSG_H #define CMD_MSG_H #include <message.h> enum { /** The default ...
tinyos-io/tinyos-3.x-contrib
nxtmote/tos/chips/bc4/Bc4.h
<reponame>tinyos-io/tinyos-3.x-contrib /* * Copyright (c) 2007 nxtmote project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * - Redistributions of source code must retain the above cop...
tinyos-io/tinyos-3.x-contrib
diku/mcs51/tos/chips/cip51/spi/spi.h
<filename>diku/mcs51/tos/chips/cip51/spi/spi.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 cop...
tinyos-io/tinyos-3.x-contrib
stanford-lgl/tos/chips/ov7670/SCCB.h
/* * Copyright (c) 2006 Stanford University. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * - Redistributions of source code must retain the above copyright * notice, this list of c...
tinyos-io/tinyos-3.x-contrib
uob/tossdr/ucla/gnuradio-802.15.4-demodulation/src/lib/ucla_delay_cc.h
<reponame>tinyos-io/tinyos-3.x-contrib /* -*- 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 Foundat...
tinyos-io/tinyos-3.x-contrib
eon/eon/src/runtime/stargate/sfaccess/tinyrely.h
#ifndef _TINYRELY_H_ #define _TINYRELY_H_ #include "teloscomm.h" #include <stdint.h> #include <pthread.h> typedef uint8_t bool; #define TRUE 1 #define FALSE 0 #ifndef TOSH_DATA_LENGTH #define TOSH_DATA_LENGTH 60 #endif #ifndef RELY_HEADER_LENGTH #define RELY_HEADER_LENGTH 6 #endif #ifndef RELY_PAYLOAD_LENGTH #def...
tinyos-io/tinyos-3.x-contrib
gems/wmtp/tinyos/tos/lib/net/wmtp/Wmtp.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
intelmote2/support/sdk/c/camera_cmd/camera_cmd.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <fcntl.h> #include <errno.h> #include <time.h> #include <sys/time.h> #include <unistd.h> #include "serialsource.h" #ifndef NO_JPEG #include "jpeglib.h" #endif #include "camera_cmd.h" #include "img_stat.h" #include "cmd_msg.h" #include "status.h" #inclu...
tinyos-io/tinyos-3.x-contrib
berkeley/acme/apps/ACMeterApp/EnergyMsg.h
<filename>berkeley/acme/apps/ACMeterApp/EnergyMsg.h<gh_stars>1-10 enum { AM_ENERGYMSG = 8, }; typedef nx_struct EnergyMsg { nx_uint16_t src; nx_uint32_t energy; } EnergyMsg_t; enum { AM_SWITCHMSG = 9, }; typedef nx_struct SwitchMsg { nx_uint8_t nodeID; nx_uint16_t toggle; } SwitchMsg_t;
tinyos-io/tinyos-3.x-contrib
crypto/tos/system/trivium.h
<gh_stars>1-10 /* * Copyright (c) 2009 Centre for Electronics Design and Technology (CEDT), * Indian Institute of Science (IISc) and Laboratory for Cryptologic * Algorithms (LACAL), Ecole Polytechnique Federale de Lausanne (EPFL). * * Author: <NAME> <<EMAIL>> * * All rights reserved. * * Redistribution and use in so...
tinyos-io/tinyos-3.x-contrib
eon/eon/src/runtime/stargatehelper/SolarSrc.h
<gh_stars>1-10 #ifndef SOLARSRC_H_INCLUDED #define SOLARSRC_H_INCLUDED #define _NUMEPOCHS 6 #define _HISTORYLENGTH 5 #define _DAYLENGTH (24*60) #define _EPOCHLENGTH (_DAYLENGTH / _NUMEPOCHS) #endif
tinyos-io/tinyos-3.x-contrib
diku/common/tools/compression/buffer.c
/************************************************************************** * * buffer.c * * 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> <<EMAIL>> * */ #include "buffer.h" #ifdef ...
tinyos-io/tinyos-3.x-contrib
berkeley/blip-2.0/support/sdk/c/blip/interface/logging.c
/* * "Copyright (c) 2008 The Regents of the University of California. * All rights reserved." * * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose, without fee, and without written agreement is * hereby granted, provided that the above copyright notice, the fo...
tinyos-io/tinyos-3.x-contrib
eon/eon/src/runtime/tinyos2/eon_network.h
<reponame>tinyos-io/tinyos-3.x-contrib #ifndef EON_NETWORK_H_INCLUDED #define EON_NETWORK_H_INCLUDED #include "message.h" /*enum { AM_BEACONMSG = 4, //AM_ACCEPTMSG = 5, AM_PREDATA = 8, AM_OFFERMSG = 9, AM_DATAMSG = 11, AM_DATAACK = 12, AM_ARCHIVEMSG = 13, AM_ACKMSG = 14, AM_COLLECTMSG = 15, AM_STATUSMSG...
tinyos-io/tinyos-3.x-contrib
tcd/tinyhop/tos/lib/TinyHop-v.1.0/TinyHop.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
sensorscheme/tos/lib/SensorScheme/SensorScheme.h
#ifndef SENSORSCHEME_H #define SENSORSCHEME_H #include "Types.h" #include "Macros.h" #include "SensorSchemeMsg.h" enum { AM_SSCOLLECT_MSG = 8, CL_SSCOLLECT_MSG = 9, CL_SSINTERCEPT_MSG = 10, COLLECTION_ROOTNODE = 0, }; enum { POOL_SIZE = 8, ROOT_QUEUE_SIZE = 8, SS_TICKS_PER_SECOND = 16, }; enum entryp...
tinyos-io/tinyos-3.x-contrib
tcd/powertossim-z/tinyos_files/tinyos-2.0.2/tos/chips/atm128/pins/Atm128Interrupt.h
<filename>tcd/powertossim-z/tinyos_files/tinyos-2.0.2/tos/chips/atm128/pins/Atm128Interrupt.h // $Id: Atm128Interrupt.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 * d...
tinyos-io/tinyos-3.x-contrib
berkeley/blip-2.0/support/sdk/c/blip/lib6lowpan/tests/test_unpack_ipnh.c
<reponame>tinyos-io/tinyos-3.x-contrib<gh_stars>1-10 #include <stdint.h> #include <stdio.h> #include "Ieee154.h" #include "ip.h" #include "lib6lowpan.h" #include "nwbyte.h" #include "6lowpan.h" uint8_t *unpack_ipnh(uint8_t *dest, uint8_t *nxt_hdr, uint8_t *buf); struct { uint8_t nxt_hdr; uint16_t unpacked_len...
tinyos-io/tinyos-3.x-contrib
tub/apps/PacketSniffer_802_15_4/wiresharkPlugins/t2am/packet-t2am.h
/* packet-t2sam.h * Definitions for TinyOs2 Serial Active Message * Copyright 2007, <NAME> <<EMAIL>> * * $Id: packet-t2am.h,v 1.1 2007/05/30 15:05:31 phihup Exp $ * * Wireshark - Network traffic analyzer * By <NAME> <<EMAIL>> * Copyright 1998 <NAME> * * This program is free software; you can redistribute it a...
tinyos-io/tinyos-3.x-contrib
eon/eon/src/runtime/tinyos/DS2770.h
//This code is a modified version of code from the Heliomote project #ifndef _DS2770_H_ #define _DS2770_H_ unsigned char ds2770_init (void) { unsigned char presence; //TOSH_SEL_ADC2_IOFUNC (); TOSH_MAKE_ADC4_OUTPUT (); //TOSH_SEL_GIO1_IOFUNC (); //TOSH_MAKE_GIO1_OUTPUT (); TOSH_CLR_ADC4_PIN (); TOSH_uw...
tinyos-io/tinyos-3.x-contrib
intelmote2/support/sdk/c/camera_cmd/bigmsg_frame_part.c
/** * This file is automatically generated by mig. DO NOT EDIT THIS FILE. * This file implements the functions for encoding and decoding the * 'bigmsg_frame_part' message type. See bigmsg_frame_part.h for more details. */ #include <message.h> #include "bigmsg_frame_part.h" uint16_t bigmsg_frame_part_part_id_get(t...
tinyos-io/tinyos-3.x-contrib
pisync/SampleApplication/TSyncApp.h
/* * Copyright (c) 2014, Ege University, Izmir, Turkey & University of Padova, Padova, Italy * 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
iowa/T2.tsync/IAtsync/Wakker.h
<gh_stars>1-10 typedef struct { uint8_t id; // id of client application uint8_t indx; // user's index for the alarm uint32_t wake_time; // in 1/8 seconds; ffffffff => inactive } sched_list; // The following is the maximum number of wakeups scheduled // initial guess: 4 * the number of client...
tinyos-io/tinyos-3.x-contrib
hitdke/support/sdk/c/synsb/DataSource.h
// $Id: DataSource.h,v 1.2 2010/06/22 08:32:17 pineapple_liu Exp $ /* * Copyright (c) 2010 Data & Knowledge Engineering Research Center, * Harbin Institute of Technology, P. R. China. * All rights reserved. */ /** * HITDKE Synthetic DataSource (SDS). * * @author <NAME> <<EMAIL>> * @date ...
tinyos-io/tinyos-3.x-contrib
dexma/tos/lib/net/blip/IPDispatch.h
<reponame>tinyos-io/tinyos-3.x-contrib<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 gran...
tinyos-io/tinyos-3.x-contrib
blaze/apps/NetworkEnergyAnalysis/Analysis.h
#ifndef ANALYSIS_H #define ANALYSIS_H typedef nx_struct AnalysisMsg { nx_uint32_t intervalBetweenMessagesMs; nx_uint16_t worInterval; nx_uint8_t nodesInSurroundingNetwork; } AnalysisMsg; enum { AM_DUMMYMSG = 0x4, AM_ANALYSISMSG = 0x5, }; #endif
tinyos-io/tinyos-3.x-contrib
stanford-sing/apps/PowerNetBase/4bitle/LinkEstimator.h
<reponame>tinyos-io/tinyos-3.x-contrib<filename>stanford-sing/apps/PowerNetBase/4bitle/LinkEstimator.h<gh_stars>0 /* $Id: LinkEstimator.h,v 1.1 2011/01/20 19:24:40 thenilly Exp $ */ /* * "Copyright (c) 2006 University of Southern California. * All rights reserved. * * Permission to use, copy, modify, and distribute...
tinyos-io/tinyos-3.x-contrib
ethz/rest-api/tos/lib/net/blip/mdns/MDNS.h
/* Copyright (c) 2009, Distributed Computing Group (DCG), 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 *...
tinyos-io/tinyos-3.x-contrib
nxtmote/tos/chips/bc4/BT.h
#ifndef BT_H #define BT_H typedef uint8_t bt_addr_t[SIZE_OF_BDADDR]; #endif
tinyos-io/tinyos-3.x-contrib
cire/support/sdk/c/motenet/motenet.c
/* * Copyright 2011, <NAME> * All rights reserved * * MoteNet: Provide a sockets interface for TinyOS network traffic. * * In server or serial mode, motenet provides a sockets interface to * traffic using the AM (Active Message) light weight protocol. A gateway * between IP (either IPv4 or IPv6) and the AM mot...
tinyos-io/tinyos-3.x-contrib
gems/ttsp/tinyos/apps/profilers/ProfileTsnDrift/ProfileTsnDrift.h
<gh_stars>1-10 #ifndef PROFILE_TSN_DRIFT_H #define PROFILE_TSN_DRIFT_H typedef nx_struct ReportMsg { nx_uint16_t srcAddr; nx_uint32_t refId; nx_uint32_t localTimestamp; nx_uint32_t refTimestamp; nx_uint32_t temperature; } ReportMsg_t; enum { AM_REPORTMSG = 181 }; #endif
tinyos-io/tinyos-3.x-contrib
usc/senzip/SenZip_v1.0/senzip/Compression.h
<reponame>tinyos-io/tinyos-3.x-contrib /* * @ author <NAME> * @ affiliation Autonomous Networks Research Group * @ institution University of Southern California */ #ifndef _COMPRESSION_H #define _COMPRESSION_H #include <message.h> #define COMP_RX_DELAY 1000 #define LOST_PKT_THRESHOLD 2 #define SEND_TA...
tinyos-io/tinyos-3.x-contrib
eon/apps/blink/impl/tinyos/userstructs.h
#ifndef USERSTRUCTSH_H_INCLUDED #define USERSTRUCTSH_H_INCLUDED #endif // NODES_H_INCLUDED
tinyos-io/tinyos-3.x-contrib
ethz/tinynode184/tos/chips/msp430/usart/msp430usart.h
/* * Copyright (c) 2004-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, * ...
tinyos-io/tinyos-3.x-contrib
rincon/tos/chips/msp430/timer/tseconds.h
<reponame>tinyos-io/tinyos-3.x-contrib #ifndef TSECONDS_H #define TSECONDS_H typedef struct { int notUsed; } TSeconds; #define UQ_TIMER_SECONDS "HilTimerSecondsC.Timer" #endif