Mindstorms 3rd Party ROBOTC Drivers RobotC
[Home] [Download] [Submit a bug/suggestion] [ROBOTC Forums] [Blog] [Support this project]
Defines | Enumerations | Functions | Variables

mindsensors-rcxmotormux.h File Reference

RobotC Mindsensors RCX Motor MUX Driver. More...

#include "common.h"

Go to the source code of this file.

Defines

#define MSMTRMX_I2C_ADDR   0xB4
#define MSMTRMX_MOTOR_REG   0x42

Enumerations

enum  tMSMTRMXSettings { MSMTRMX_MODE_FLOAT = 0, MSMTRMX_MODE_FORWARD = 1, MSMTRMX_MODE_REVERSE = 2, MSMTRMX_MODE_BRAKE = 3 }
enum  tMSMTRMXMotors { MSMTRMX_M1 = 0, MSMTRMX_M2 = 1, MSMTRMX_M3 = 2, MSMTRMX_M4 = 3 }

Functions

bool MSMTRMX_Control (tSensors link, tMSMTRMXMotors channel, int power, ubyte address=MSMTRMX_I2C_ADDR)
bool MSMTRMX_Brake (tSensors link, tMSMTRMXMotors channel, unsigned byte brakeForce, ubyte address=MSMTRMX_I2C_ADDR)

Variables

tByteArray MSMTRMX_I2CMessage

Detailed Description

RobotC Mindsensors RCX Motor MUX Driver.

mindsensors-rcxmotormux.h provides an API for the Mindsensors RCX Motor MUX Driver. License: You may use this code as you wish, provided you give credit where its due.

THIS CODE WILL ONLY WORK WITH ROBOTC VERSION 3.59 AND HIGHER.

Author:
Daniel Playfair Cal (daniel.playfair.cal_at_gmail.com)
Date:
2011-09-20
Version:
2

Definition in file mindsensors-rcxmotormux.h.