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

common-mmux.h File Reference

Commonly used types and defines used by Motor MUX drivers. More...

Go to the source code of this file.

Data Structures

struct  mmuxDataT

Defines

#define SPORT(X)   X / 4
#define MPORT(X)   X % 4

Enumerations

enum  tMUXmotor {
  mmotor_S1_1 = 0, mmotor_S1_2 = 1, mmotor_S1_3 = 2, mmotor_S1_4 = 3,
  mmotor_S2_1 = 4, mmotor_S2_2 = 5, mmotor_S2_3 = 6, mmotor_S2_4 = 7,
  mmotor_S3_1 = 8, mmotor_S3_2 = 9, mmotor_S3_3 = 10, mmotor_S3_4 = 11,
  mmotor_S4_1 = 12, mmotor_S4_2 = 13, mmotor_S4_3 = 14, mmotor_S4_4 = 15
}

Variables

mmuxDataT mmuxData [4]

Detailed Description

Commonly used types and defines used by Motor MUX drivers.

common-MMUX.h provides a number of frequently used types and defines that are useful for writing Motor MUX drivers.

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.

Changelog:

Author:
Xander Soldaat (xander_at_botbench.com)
Date:
18 January 2011
Version:
0.1

Definition in file common-mmux.h.