a command line interface that can dynamically assign pins

Dependencies:   TextLCD mbed PS2

Committer:
gsulc
Date:
Thu Oct 20 20:27:04 2011 +0000
Revision:
0:4b04cc4cccb4

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
gsulc 0:4b04cc4cccb4 1 /**************************************************************/
gsulc 0:4b04cc4cccb4 2 // Name: Interface.h
gsulc 0:4b04cc4cccb4 3 //
gsulc 0:4b04cc4cccb4 4 // Description: defines an interface object for assigning
gsulc 0:4b04cc4cccb4 5 // interfaces on the fly
gsulc 0:4b04cc4cccb4 6 //
gsulc 0:4b04cc4cccb4 7 /**************************************************************/
gsulc 0:4b04cc4cccb4 8
gsulc 0:4b04cc4cccb4 9 #include "mbed.h"
gsulc 0:4b04cc4cccb4 10
gsulc 0:4b04cc4cccb4 11 #ifndef _INTERFACE_H
gsulc 0:4b04cc4cccb4 12 #define _INTERFACE_H
gsulc 0:4b04cc4cccb4 13 //enum InterfaceType = {INVALID, DIGITAL_IN, DIGITAL_OUT, PWM, I2C, SERIAL};
gsulc 0:4b04cc4cccb4 14 typedef struct{
gsulc 0:4b04cc4cccb4 15 //unsigned char bottom_pin;
gsulc 0:4b04cc4cccb4 16 //InterfaceType type;
gsulc 0:4b04cc4cccb4 17 void* p_object;
gsulc 0:4b04cc4cccb4 18 DigitalOut* dout;
gsulc 0:4b04cc4cccb4 19 } Interface;
gsulc 0:4b04cc4cccb4 20
gsulc 0:4b04cc4cccb4 21 #endif
gsulc 0:4b04cc4cccb4 22
gsulc 0:4b04cc4cccb4 23 PinName getPin(int pin);
gsulc 0:4b04cc4cccb4 24
gsulc 0:4b04cc4cccb4 25 /*class Interface {
gsulc 0:4b04cc4cccb4 26 public:
gsulc 0:4b04cc4cccb4 27 Interface(char type_str[], char pins_str[]);
gsulc 0:4b04cc4cccb4 28 InterfaceType type;
gsulc 0:4b04cc4cccb4 29 unsigned char* pins;
gsulc 0:4b04cc4cccb4 30 unsigned char mask;
gsulc 0:4b04cc4cccb4 31 }*/