/* 
 * File:   types.h
 * Author: hamilton
 *
 * Created on July 19, 2015, 11:21 AM
 */

#ifndef TYPES_H
#define	TYPES_H

struct StatusBits {
    unsigned int Mode : 2;
    unsigned int RetractLimitSwitchState : 1;
    unsigned int ExtendLimitSwitchState : 1;
    unsigned int LimitSearchState : 2;
};

typedef  union
{
    unsigned int status;
    struct StatusBits bits;
}  STATUS;


#endif	/* TYPES_H */

