Gordon Sulc / Mbed 2 deprecated CLI

Dependencies:   TextLCD mbed PS2

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Interface.h Source File

Interface.h

00001 /**************************************************************/
00002 // Name: Interface.h
00003 // 
00004 // Description: defines an interface object for assigning 
00005 //  interfaces on the fly
00006 //
00007 /**************************************************************/
00008 
00009 #include "mbed.h"
00010 
00011 #ifndef _INTERFACE_H
00012 #define _INTERFACE_H
00013 //enum InterfaceType = {INVALID, DIGITAL_IN, DIGITAL_OUT, PWM, I2C, SERIAL};
00014 typedef struct{
00015     //unsigned char bottom_pin;
00016     //InterfaceType type;
00017     void* p_object;
00018     DigitalOut* dout;
00019 } Interface;
00020 
00021 #endif
00022 
00023 PinName getPin(int pin);
00024 
00025 /*class Interface {
00026     public:
00027         Interface(char type_str[], char pins_str[]);
00028         InterfaceType type;
00029         unsigned char* pins;
00030         unsigned char mask;
00031 }*/