Eurobot2012_Primary
Dependencies: mbed Eurobot_2012_Primary
Kalman/Sonar/RF12B/RFSerial.h@0:f3bf6c7e2283, 2012-04-20 (annotated)
- Committer:
- narshu
- Date:
- Fri Apr 20 20:39:35 2012 +0000
- Revision:
- 0:f3bf6c7e2283
inverted sonar echo input at pin14 and pin15
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
narshu | 0:f3bf6c7e2283 | 1 | #include "mbed.h" |
narshu | 0:f3bf6c7e2283 | 2 | #include "RF12B.h" |
narshu | 0:f3bf6c7e2283 | 3 | |
narshu | 0:f3bf6c7e2283 | 4 | class RFSerial : public Stream, public RF12B { |
narshu | 0:f3bf6c7e2283 | 5 | public: |
narshu | 0:f3bf6c7e2283 | 6 | /* Constructor */ |
narshu | 0:f3bf6c7e2283 | 7 | RFSerial(PinName _SDI, |
narshu | 0:f3bf6c7e2283 | 8 | PinName _SDO, |
narshu | 0:f3bf6c7e2283 | 9 | PinName _SCK, |
narshu | 0:f3bf6c7e2283 | 10 | PinName _NCS, |
narshu | 0:f3bf6c7e2283 | 11 | PinName _NIRQ); |
narshu | 0:f3bf6c7e2283 | 12 | |
narshu | 0:f3bf6c7e2283 | 13 | protected: |
narshu | 0:f3bf6c7e2283 | 14 | // Stream implementation functions |
narshu | 0:f3bf6c7e2283 | 15 | virtual int _putc(int value); |
narshu | 0:f3bf6c7e2283 | 16 | virtual int _getc(); |
narshu | 0:f3bf6c7e2283 | 17 | }; |