Code Search for Developers
 
 
  

defs.h from EmStar at Krugle


Show defs.h syntax highlighted

/*
 *	defs.h
 *
 *	Useful definitions for the ezkey95 protocol 
 *
*/

#ifndef	_DEFS_H_
#define _DEFS_H_

#define NUL				0x00
#define SOH				0x01		/* Start of Header */
#define TYPE			'Z'			/* Type Code - Z = All signs */
#define	STX				0x02		/* Start of Text character */
#define ASCII_ZERO		0x30		/* For the sign address */

#define	ETX				0x03		/* End of TeXt */
#define ESC				0x1b		/* Escape character */
#define EOT				0x04		/* End of transmission */
#define PRI				0x30		/* Priority message */

#define	WRITE			'A'			/* Write TEXT file */
#define READ			'B'			/* Read TEXT file */
#define WRITE_SPEC		'E'			/* Write SPECIAL FUNCTION file */
#define	READ_SPEC		'F'		 	/* Read SPECIAL FUNCTION file */
#define WRITE_STRING	'G'			/* Write STRING file */
#define READ_STRING		'H'			/* Read STRING file */
#define WRITE_DOT		'I'			/* Write DOT file */
#define READ_DOT		'J'			/* Read DOT file */

#define ROTATE			0x61		/* Message travels right to left */
#define HOLD			0x62		/* Message remains stationary */

#define FLASH			0x63		/* Message flashes */

#define POS_MIDDLE		0x20		/* Middle line */
#define POS_TOP			0x22		/* Top line */
#define POS_BOTTOM		0x26		/* Bottom line */
#define POS_FILL		0x30		/* Fill all available lines */

#endif	/* end of defs.h */




See more files for this project here

EmStar

EmStar is a software system for developing and deploying wireless sensor networks involving Linux-based platforms. As the wireless sensor network community has attempted to deploy more complex designs---large-scale, long-lived systems that need self-organization and adaptivity---a number of difficult software design issues have arisen. Advances in software design have not kept pace with the capabilities of hardware. This is because designing for an adaptive, efficient, and useful sensor network has turned out to be surprisingly complex and difficult. EmStar is a Linux-based software framework, whose goal is to dramatically reduce this complexity, enabling work to be shared and reused, and simplifying and speeding the design of new sensor network applications.

Project homepage: http://cvs.cens.ucla.edu/emstar/
Programming language(s): C,Shell Script
License: other

  scripts/
    assym_potvals.cfg
    ceiling_on.pl
    ceiling_reset.pl
    ceiling_setup.pl
    node.info
    sym_potvals.cfg
  Makefile
  defs.h
  mote-to-sign.pl
  printsign.c
  sensorlogger.c
  sizetest.c
  startall