a command line interface that can dynamically assign pins

Dependencies:   TextLCD mbed PS2

Interface.h

Committer:
gsulc
Date:
2011-10-20
Revision:
0:4b04cc4cccb4

File content as of revision 0:4b04cc4cccb4:

/**************************************************************/
// Name: Interface.h
// 
// Description: defines an interface object for assigning 
//  interfaces on the fly
//
/**************************************************************/

#include "mbed.h"

#ifndef _INTERFACE_H
#define _INTERFACE_H
//enum InterfaceType = {INVALID, DIGITAL_IN, DIGITAL_OUT, PWM, I2C, SERIAL};
typedef struct{
    //unsigned char bottom_pin;
    //InterfaceType type;
    void* p_object;
    DigitalOut* dout;
} Interface;

#endif

PinName getPin(int pin);

/*class Interface {
    public:
        Interface(char type_str[], char pins_str[]);
        InterfaceType type;
        unsigned char* pins;
        unsigned char mask;
}*/