Lets you control your mbed from an easy to use GUI. Entire project is on git hub: https://github.com/navin-bhaskar/Controller For usage info follow this link http://navinbhaskar.blogspot.in/2013/02/arduino-controller-3.html
Diff: PerAccess.h
- Revision:
- 0:fe5850ccdb6f
- Child:
- 1:9d3340bcd863
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PerAccess.h Tue Feb 26 03:45:52 2013 +0000 @@ -0,0 +1,19 @@ +/** + * Defines a abstract class that allows access to the peripherlas + * on board when implemented completely. + */ + +#ifndef _PER_ACCESS_H +#define _PER_ACCESS_H +#include "error.h" +#include <stdint.h> +class PerAccess +{ + public: + virtual uint digitalOut(uint pinNo, uint val) = 0; + virtual uint digitalIn(uint pinNo, uint * outVal) = 0; + virtual uint analogIn(uint pinNo, uint * outVal) = 0; + virtual uint analogOut(uint pinNo, uint val) = 0; + +}; +#endif