C4EV3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Macros | Functions
ev3_output.h File Reference

Functions and constants for controlling EV3 outputs. More...

#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <signal.h>
#include <sys/mman.h>
#include <stdbool.h>
#include <limits.h>
#include "ev3_wait.h"
#include "ev3_constants.h"

Go to the source code of this file.

Macros

#define ev3_output_h
 

Functions

bool OutputGetCount (uint8_t Output, int *Tacho)
 
bool OutputGetTachoCount (uint8_t Output, int *Tacho)
 
bool OutputGetActualSpeed (uint8_t Output, int8_t *Speed)
 
void OffEx (uint8_t Outputs, uint8_t reset)
 
void FloatEx (uint8_t Outputs, uint8_t reset)
 
void OnFwdEx (uint8_t Outputs, int8_t Power, uint8_t reset)
 
void OnFwdRegEx (uint8_t Outputs, int8_t Speed, uint8_t RegMode, uint8_t reset)
 
void OnFwdSyncEx (uint8_t Outputs, int8_t Speed, short Turn, uint8_t reset)
 
void RotateMotorNoWaitEx (uint8_t Outputs, int8_t Speed, int Angle, short Turn, bool Sync, bool Stop)
 
void RotateMotorEx (uint8_t Outputs, int8_t Speed, int Angle, short Turn, bool Sync, bool Stop)
 
void OnForSyncEx (uint8_t Outputs, int Time, int8_t Speed, short Turn, bool Stop)
 
void OnForEx (uint8_t Outputs, int Time, int8_t Power, uint8_t reset)
 
void ResetTachoCount (uint8_t Outputs)
 
void ResetBlockTachoCount (uint8_t Outputs)
 
void ResetRotationCount (uint8_t Outputs)
 
void ResetAllTachoCounts (uint8_t Outputs)
 
void ResetCount (uint8_t Outputs, uint8_t reset)
 
int MotorTachoCount (uint8_t Output)
 
int MotorBlockTachoCount (uint8_t Output)
 
int8_t MotorPower (uint8_t Output)
 
int8_t MotorActualSpeed (uint8_t Output)
 
int MotorRotationCount (uint8_t Output)
 

Detailed Description

Functions and constants for controlling EV3 outputs.

ev3_output.h contains declarations for the EV3 C API output functions.

License:

The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/

Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.

The Initial Developer of this code is John Hansen. Portions created by John Hansen are Copyright (C) 2009-2013 John Hansen. All Rights Reserved.


Author
John Hansen (bricxcc_at_comcast.net)
Date
2013-06-20
Version
1

Macro Definition Documentation

#define ev3_output_h

Function Documentation

void FloatEx ( uint8_t  Outputs,
uint8_t  reset 
)
int8_t MotorActualSpeed ( uint8_t  Output)
int MotorBlockTachoCount ( uint8_t  Output)
int8_t MotorPower ( uint8_t  Output)
int MotorRotationCount ( uint8_t  Output)
int MotorTachoCount ( uint8_t  Output)
void OffEx ( uint8_t  Outputs,
uint8_t  reset 
)
void OnForEx ( uint8_t  Outputs,
int  Time,
int8_t  Power,
uint8_t  reset 
)
void OnForSyncEx ( uint8_t  Outputs,
int  Time,
int8_t  Speed,
short  Turn,
bool  Stop 
)
void OnFwdEx ( uint8_t  Outputs,
int8_t  Power,
uint8_t  reset 
)
void OnFwdRegEx ( uint8_t  Outputs,
int8_t  Speed,
uint8_t  RegMode,
uint8_t  reset 
)
void OnFwdSyncEx ( uint8_t  Outputs,
int8_t  Speed,
short  Turn,
uint8_t  reset 
)
bool OutputGetActualSpeed ( uint8_t  Output,
int8_t *  Speed 
)
bool OutputGetCount ( uint8_t  Output,
int *  Tacho 
)
bool OutputGetTachoCount ( uint8_t  Output,
int *  Tacho 
)
void ResetAllTachoCounts ( uint8_t  Outputs)
void ResetBlockTachoCount ( uint8_t  Outputs)
void ResetCount ( uint8_t  Outputs,
uint8_t  reset 
)
void ResetRotationCount ( uint8_t  Outputs)
void ResetTachoCount ( uint8_t  Outputs)
void RotateMotorEx ( uint8_t  Outputs,
int8_t  Speed,
int  Angle,
short  Turn,
bool  Sync,
bool  Stop 
)
void RotateMotorNoWaitEx ( uint8_t  Outputs,
int8_t  Speed,
int  Angle,
short  Turn,
bool  Sync,
bool  Stop 
)