Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: TextLCD mbed PS2
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 }*/
Generated on Wed Jul 20 2022 01:09:21 by
1.7.2