robotics/ openel.h File Reference Macros Macro Definition Documentation Typedefs Functions

Similar documents
Nubotics Device Interface DLL

The I2C BUS Interface

INTRODUCTION LEGO MINDSTORMS NXT AND LABVIEW 8.6

Experiment 6 The Real World Interface

EVShield Interface Specifications

Chapter 7 Building robot with MicroCamp kit

Improving Host-GPU Communication with Buffering Schemes

AMP DISPLAY INC. SPECIFICATIONS AMP DISPLAY INC 9856 SIXTH STREET RANCHO CUCAMONGA CA TEL: FAX:

More Fun with Timer Interrupts

Protocol of data exchange with modem via USB interface Version

Initialization: Display: Break: Help: Help: Initialization of all EV3-Functions Closing of all EV3-Functions

SPMI: System Power Management Interface

USB-I2C USB to I2C Communications Module Technical Specification

CrossWorks Device Library

Modern Robotics Inc. Sensor Documentation

XYZ Exporter Page 1. XYZ Exporter

NXShield Interface Specifications

MLCAD - optional. More MLCAD

Arduino Uno. Power & Interface. Arduino Part 1. Introductory Medical Device Prototyping. Digital I/O Pins. Reset Button. USB Interface.

Getting Started with ESPI Interface Using the Z8 Encore! XP F1680

EMBEDDED SYSTEMS WITH ROBOTICS AND SENSORS USING ERLANG

PROGMEM ESP8266EX RAM

RobotC Drivers. Version 14-May-09 10:56:00

User's Manual. USB 2.0 Audio PCA with 16 Bit I/O, 4 x 4 Audio Mixer

Motor Objects. Methods

FSD-F10 Lidar Sensor Specification

ADC to I 2 C. Data Sheet. 10 Channel Analog to Digital Converter. with output via I 2 C

This Document describes the API provided by the DVB-Multicast-Client library

Agreement. Objectives. General Guidelines for Labs. Reading Assignment

Droide Multi Language Platform. NXT S.D.K. - Java Documentation 2.1.8

mi:node User Manual Element14 element14.com/minode 1 User Manual V3.1

Data Storage. August 9, Indiana University. Geoffrey Brown, Bryce Himebaugh 2015 August 9, / 19

Motor Module Arduino API Manual

SPLDuino Programming Guide

Part A: Monitoring the Rotational Sensors of the Motor

PCI-DIO12 API Programming (Rev 1.0)

Technical Manual Rev1.1

Clearpath Communication Protocol. For use with the Clearpath Robotics research platforms

Colin Harman and Jonathan Kim

Modeling HDL components for FPGAs in control applications

Hide & Seek Project. Table of Contents. 1 P a g e

OS3DM SUBMINIATURE 3D ORIENTATION SENSOR. Interface Control Document Rev. 1.8

KOLLMORGEN. SERVOSTAR CD. SERCOS IDN Manual M-SS rev. F. Solutions by D A N A H E R M O T I O N

#define CE_PIN 12 //wireless module CE pin #define CSN_PIN 13 //wireless module CSN pin. #define angleaveragenum 1

PDF Document structure, that need for managing of PDF file. It uses in all functions from EMF2PDF SDK.

Opus Generated by Doxygen Thu May :22:05

SECOND EDITION. Arduino Cookbook. Michael Margolis O'REILLY- Tokyo. Farnham Koln Sebastopol. Cambridge. Beijing

AUTO FOCUS MODULE CUSTOM CAMERAS FOR MASS PRODUCTION APPLICATIONS USER GUIDE

libacarsd documentation 12. December 2003 libacarsd 1.46 ACARS Decoder Library ,2004 by KjM

Arduino and Matlab for prototyping and manufacturing

USB-910H API DLL and Include File Reference Manual

LEGO Mindstorm EV3 Robots

Project 12 Piezo Sounder Melody Player

EE445L Fall 2010 Final Version A Page 1 of 10

Acroloop Motion Controller CAcroLite C++ Class

Experiment 4.A. Speed and Position Control. ECEN 2270 Electronics Design Laboratory 1

Program your face off

Artemis SDK. Copyright Artemis CCD Limited October 2011 Version

BeRobot the Robotic Development Kits, Be your Robot

OS3D-FG MINIATURE 3D ORIENTATION SENSOR

Sound Programming with PC Speaker

General Syntax. Operators. Variables. Arithmetic. Comparison. Assignment. Boolean. Types. Syntax int i; float j = 1.35; int k = (int) j;

LatticeMico32 GPIO. Version. Features

University of Portland EE 271 Electrical Circuits Laboratory. Experiment: Arduino

Variables Data types Variable I/O. C introduction. Variables. Variables 1 / 14

ArduCAM USB Camera SDK

Send commands via bluetooth, e.g. irise app for Android

Python 3 Interface for the Robotics Cape on the Beaglebone Black and the Beaglebone Blue

ADVENTURE_IO Input/Output format and libraries for ADVENTURE modules List of Input/Output Functions February 17, 2006

F²MC-8FX FAMILY 8-BIT MICROCONTROLLER MB95200H SERIES SPI SW REALIZATION USING GPIO APPLICATION NOTE

CODE TIME TECHNOLOGIES. Abassi RTOS. I2C Support

Bachelor of Engineering in Computer and Electronic Engineering

int fnvgetconfig(handle h, UINT32 id, const void *cfg, size_t sz);... 4

Modern Robotics Inc. Core Device Discovery

How to Use the BeagleBone Black to Control the NXT Brick Through Bluetooth

GUIDE TO SP STARTER SHIELD (V3.0)

Robotics and Electronics Unit 5

Golander Peristaltic Pump MODBUS Communication Instruction

MEMORY SAFETY ATTACKS & DEFENSES

Temperature Sensor. Overview. Features

URM06 UART Ultrasonic SKU:SEN0150

New APIs and Hacks. Servo API. Chapter 4. The Theory versus Practice

User Manual SUSI 4.0. Secured & Unified Smart Interface Software APIs

HikVision Mpeg4 linux Player SDK

OS3D MINIATURE 3D ORIENTATION SENSOR. Interface Control Document Rev. 1.14

RCX Tutorial. Commands Sensor Watchers Stack Controllers My Commands

Arduino Cookbook O'REILLY* Michael Margolis. Tokyo. Cambridge. Beijing. Farnham Koln Sebastopol

CSE 509: Computer Security

L76-L I2C Application Note

TETRIX Getting Started Guide FTC Extension. Programming Guide (ROBOTC ) Autonomous Programming

irobot Create 2 Open Interface (OI) Specification based on the irobot Roomba 600

Introduction to Lab 2

FireBeetle Covers-OSD Character Overlay Module SKU:DFR0515

IME-100 ECE. Lab 3. Electrical and Computer Engineering Department Kettering University. G. Tewolde, IME100-ECE,

Esercitazione con un robot umanoide programmabile per edutainment

USB3-DIO01 API Programming (Rev 1.1)

Interfacing Z8 Encore! XP MCUs with an I 2 C-Based Character LCD

CoDeSys Library Extension for EASY242 Applications. FBE - Library. Reference Guide for use with EASY242

CHAPI/VAX-Qbus. The CHARON-VAX Application Programming Interface (CHAPI) for Qbus peripheral emulation in Windows

Advance Robotics with Embedded System Design (ARESD)

Transcription:

openel.h File Reference Macros #define EL_TRUE 1 #define EL_FALSE 0 #define EL_NXT_PORT_A 0 #define EL_NXT_PORT_B 1 #define EL_NXT_PORT_C 2 #define EL_NXT_PORT_S1 0 #define EL_NXT_PORT_S2 1 #define EL_NXT_PORT_S3 2 #define EL_NXT_PORT_S4 4 #define EL_BT_NO_INIT 4 #define EL_BT_INITIALIZED 5 #define EL_BT_CONNECTED 6 #define EL_BT_STREAM 7 #define OPENEL_MAJOR 0 #define OPENEL_MINOR 1 #define OPENEL_PATHLEVEL 1 #define OPENEL_VERSION "OpenEL 0.1.1" Typedefs typedef signed char ELChar typedef unsigned char ELUChar typedef signed char ELInt8 typedef signed short ELInt16 typedef signed int ELInt32 typedef signed long long ELInt64 typedef unsigned char ELUInt8 typedef unsigned short ELUInt16 typedef unsigned int ELUInt32 typedef unsigned long long ELUInt64 typedef float ELFloat32 typedef double ELFloat64 typedef unsigned char ELBool Functions ELFloat64 elmotorgetangle (ELUInt32 portid ELFloat64 elmotorsetangle (ELUInt32 portid, ELFloat64 angle, ELInt32 speed void elmotorresetencoder (ELUInt32 portid ELInt32 elmotorgetspeed (ELUInt32 portid void elmotorsetspeed (ELUInt32 portid, ELInt32 speed ELBool elmotorgetbrake (ELUInt32 portid void elmotorsetbrake (ELUInt32 portid, ELBool brake ELUInt16 elgyrosensorgetvalue (ELUInt32 portid ELUInt16 elgyrosensorgetoffset (ELUInt32 portid void elgyrosensorsetoffset (ELUInt32 portid, ELUInt16 offset ELUInt16 ellightsensorgetvalue (ELUInt32 portid ELBool ellightsensorgetled (ELUInt32 portid void ellightsensorsetled (ELUInt32 portid, ELBool light ELBool eltouchsensorgetstate (ELUInt32 portid ELUInt16 elbatterygetvoltage (void ELBool elspeakeroutput (ELUInt32 freq, ELUInt32 ms, ELUInt32 vol void elsonarsensorinitialize (ELUInt32 portid void elsonarsensorterminate (ELUInt32 portid ELInt32 elsonarsensorgetvalue (ELUInt32 portid void elbluetoothinitializemaster (const ELUChar *addr, const char *pin void elbluetoothinitializeslave (const char *pin void elbluetoothterminate (void ELUInt32 elbluetoothsenddata (const void *buf, ELUInt32 offset, ELUInt32 len ELUInt32 elbluetoothreceivedata (void *buf, ELUInt32 offset, ELUInt32 len ELBool elbluetoothgetdevicename (char *name ELBool elbluetoothsetdevicename (const char *name ELInt32 elbluetoothgetstatus (void ELInt16 elbluetoothgetsignalstrength (void Macro Definition Documentation #define EL_BT_CONNECTED 6 #define EL_BT_INITIALIZED 5 #define EL_BT_NO_INIT 4 #define EL_BT_STREAM 7 #define EL_FALSE 0 #define EL_NXT_PORT_A 0 #define EL_NXT_PORT_B 1 #define EL_NXT_PORT_C 2 #define EL_NXT_PORT_S1 0 #define EL_NXT_PORT_S2 1 #define EL_NXT_PORT_S3 2 #define EL_NXT_PORT_S4 4 robotics/2012-12-16

#define EL_TRUE 1 typedef unsigned char ELUInt8 #define OPENEL_MAJOR 0 #define OPENEL_MINOR 1 Function Documentation ELUInt16 elbatterygetvoltage ( void #define OPENEL_PATHLEVEL 1 #define OPENEL_VERSION "OpenEL 0.1.1" Typedef Documentation typedef unsigned char ELBool typedef signed char ELChar Gets the battery voltage. the current battery voltage. ELBool elbluetoothgetdevicename ( char * name Gets the Bluetooth device name. [in] name the head address of the buffer that stores the device name. true if succeeded to get the device name, false otherwise. typedef float ELFloat32 ELInt16 elbluetoothgetsignalstrength ( void typedef double ELFloat64 typedef signed short ELInt16 Gets the signal strength of the Bluetooth. If the connection has not been established, it returns -1. the strength of the Bluetooth. (range: [0,100] typedef signed int ELInt32 ELInt32 elbluetoothgetstatus ( void typedef signed long long ELInt64 Gets the status of the connection of the Bluetooth. List of constants representing the status of Bluetooth connection: typedef signed char ELInt8 typedef unsigned char ELUChar typedef unsigned short ELUInt16 EL_BT_NO_INIT(Uninitialized state EL_BT_INITIALIZED(Initialized state EL_BT_CONNECTED(Connection established state EL_BT_STREAM(State data can be transmitted and received the constant representing the status of Bluetooth connection. typedef unsigned int ELUInt32 typedef unsigned long long ELUInt64

void elbluetoothinitializemaster ( const ELUChar * addr, const char * Initializes the Bluetooth as a master device. pin [in] addr the head address of the Bluetooth device address of a slave device. [in] pin the head address of the pin code for the passkey exchange. ELBool elbluetoothsetdevicename ( const char * name Sets the Bluetooth device name. [in] name the device name. true if succeeded to set the device name, false otherwise. void elbluetoothinitializeslave ( const char * pin Initializes the Bluetooth as a slave device. [in] pin the head address of the pin code for the passkey exchange. void elbluetoothterminate ( void Ternimates the Bluetooth. This function can be used in both the master device and slave devices. ELUInt16 elgyrosensorgetoffset ( ELUInt32 portid ELUInt32 elbluetoothreceivedata ( void * buf, ELUInt32 offset, ELUInt32 len Receives the data to the buffer via the Bluetooth. [in] buf the head address of the receiving data buffer. [in] offset the offset of the receiving data buffer. [in] len the receiving data buffer size. the number of bytes of data received. ELUInt32 elbluetoothsenddata ( const void * buf, ELUInt32 ELUInt32 Sends the data in the buffer via the Bluetooth. offset, len [in] buf the head address of the sending data buffer. [in] offset the offset of the sending data buffer. [in] len the sending data buffer size. Gets the offset value of the gyro sensor. [in] portid the port id of the gyro sensor the offset value of the gyro sensor. ELUInt16 elgyrosensorgetvalue ( ELUInt32 portid Gets the value of the gyro sensor. [in] portid the port id of the gyro sensor. the value of the gyro sensor. void elgyrosensorsetoffset ( ELUInt32 portid, ELUInt16 offset Sets the offset value of the gyro sensor. [in] portid the port id of the gyro sensor. [in] offset the offset value which is set to the gyro sensor. the number of bytes of data sent.

ELBool ellightsensorgetled ( ELUInt32 portid ELInt32 elmotorgetspeed ( ELUInt32 portid Gets whether the LED of light sensor is turned on. true if the LED is turned on, false otherwise. Gets the rotational velocity(pwm value which is set to the motor. the rotational velocity which is set to the motor. (range: [-100,100] ELUInt16 ellightsensorgetvalue ( ELUInt32 portid void elmotorresetencoder ( ELUInt32 portid Gets the value of the light sensor. Resets the encoder value, and set the current angle as a criteria(zero radian. the value of the light sensor. void ellightsensorsetled ( ELUInt32 portid, ELBool light Sets the lighting state of the LED of light sensor. [in] light true if turn on the LED of light sensor, false otherwise. ELFloat64 elmotorgetangle ( ELUInt32 portid Gets the angle of the encoder of the motor. the angle of the encoder. (unit: radian ELFloat64 elmotorsetangle ( ELUInt32 portid, ELFloat64 angle, ELInt32 speed Rotates the motor to the specified angle. If it is unable to do so, this function is finished. A motor angle is defined as base angle(0radian at the time of starting program or doing elmotorresetencoder. If This return value is difference between the parameter angle and the actual rotation angle. [in] angle the angle specifies to the encoder. (unit: radian [in] speed the pwm value specifies to the motor. (range: [-100,100] the difference between the parameter angle and the actual rotation angle (unit: radian void elmotorsetbrake ( ELUInt32 portid, ELBool brake ELBool elmotorgetbrake ( ELUInt32 portid Gets whether the brake of motor is enabled. Enables/Disables the brake of motor. [in] brake true enables the brake of motor, and false disables. true if the brake of motor is enabled, false otherwise.

void elmotorsetspeed ( ELUInt32 portid, ELInt32 speed Sets the rotational velocity(pwm value to the motor. [in] speed the rotational velocity which is set to the motor. (range: [-100,100] ELInt32 elsonarsensorgetvalue ( ELUInt32 portid Gets the value of sonar sensor. If the sonar sensor has not been initialized, it returns -1. the measured distance. (unit: cm void elsonarsensorinitialize ( ELUInt32 portid Initializes the sonar sensor. This function should be called only once before using the sonar sensor. ELBool elspeakeroutput ( ELUInt32 freq, ELUInt32 ms, ELUInt32 vol Outputs the tone sound from the speaker. [in] freq the frequency. (unit: Hz [in] ms the output duration. (unit: 10ms [in] vol the volume. (unit: % true if the output was succeeded, false otherwise. ELBool eltouchsensorgetstate ( ELUInt32 portid Gets the touch sensor state. [in] portid the port id of the touch sensor. true if the touch sensor is on, false otherwise. Generated on Wed Jul 4 2012 01:21:01 for OpenEL API by 1.8.1.1 void elsonarsensorterminate ( ELUInt32 portid Terminates the sonar sensor. This function should be called only once before terminating the use of the sonar sensor.