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

MMUX Functions
[Common functions]

Data Structures

struct  mmuxDataT

Files

file  common-mmux.h
 

Commonly used types and defines used by Motor MUX drivers.


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.


Define Documentation

#define MPORT (   X )    X % 4

Convert tMUXSensor to MUX port number Struct to hold MMUX info

Definition at line 42 of file common-mmux.h.

#define SPORT (   X )    X / 4

Convert tMUXSensor to sensor port number

Definition at line 38 of file common-mmux.h.


Enumeration Type Documentation

enum tMUXmotor
Enumerator:
mmotor_S1_1 
mmotor_S1_2 
mmotor_S1_3 
mmotor_S1_4 
mmotor_S2_1 
mmotor_S2_2 
mmotor_S2_3 
mmotor_S2_4 
mmotor_S3_1 
mmotor_S3_2 
mmotor_S3_3 
mmotor_S3_4 
mmotor_S4_1 
mmotor_S4_2 
mmotor_S4_3 
mmotor_S4_4 

Definition at line 63 of file common-mmux.h.


Variable Documentation

Holds all the MMUX info, one for each sensor port

Definition at line 82 of file common-mmux.h.