Stepper-Motor-Control  v3.0.0
System on a Chip 2014 - Group 04
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
dataTypes.h File Reference

Header file for all own data types. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  systemState
 Struct to store state of system and use case information. More...
 
struct  outputTaskData
 Datatype of global variable for transmitting information from InputTask to OutputTask. More...
 

Typedefs

typedef enum state state_t
 general state of system
 
typedef enum useCases useCases_t
 general state of system
 
typedef struct systemState systemState_t
 Struct to store state of system and use case information.
 
typedef enum direction direction_t
 Motor direction.
 
typedef struct outputTaskData outputTaskData_t
 Datatype of global variable for transmitting information from InputTask to OutputTask.
 
typedef enum heartbeatState heartbeatState_t
 The state-machine for the heartbeat. More...
 

Enumerations

enum  state { ERROR = 0, FUNCTIONAL = 1, DEBUG = 2 }
 general state of system More...
 
enum  useCases {
  STOP = 0, QUARTER_ROTATION = 1, HALF_ROTATION = 2, FULL_ROTATION = 3,
  DOUBLE_ROTATION = 4, CONTINOUS = 5
}
 general state of system More...
 
enum  direction { LEFT = 0, RIGHT = 1 }
 Motor direction.
 
enum  heartbeatState { FIRST = 1, SECOND = 2, THIRD = 3, FOURTH = 4 }
 The state-machine for the heartbeat. More...
 

Detailed Description

Header file for all own data types.

Author
Michael Riedel
Marc Kossmann
Version
v1.0.0
Date
13.11.2014
History:

v1.0.0 13.11.2014 Kossmann

  • put all own data types together in one file

Definition in file dataTypes.h.

Typedef Documentation

The state-machine for the heartbeat.

state red LED9 HEX3-display
FIRST on LINE
SECOND off LOWER_O
THIRD on LINE
FOURTH off UPPDER_O

Enumeration Type Documentation

The state-machine for the heartbeat.

state red LED9 HEX3-display
FIRST on LINE
SECOND off LOWER_O
THIRD on LINE
FOURTH off UPPDER_O

Definition at line 66 of file dataTypes.h.

enum state

general state of system

Enumerator
ERROR 

system is not working properly

FUNCTIONAL 

everything is full functional

DEBUG 

debugging is active

Definition at line 20 of file dataTypes.h.

enum useCases

general state of system

Enumerator
STOP 

Motor not moving.

QUARTER_ROTATION 

Motor turning 1/4 rotation.

HALF_ROTATION 

Motor turning 1/2 rotation.

FULL_ROTATION 

Motor turning one rotation.

DOUBLE_ROTATION 

Motor turning two rotation.

CONTINOUS 

Motor is continously running.

Definition at line 27 of file dataTypes.h.