Interface layer for the mbed boards ready for the JAVA library

Dependencies:   C12832 LM75B MMA7660 mbed FXOS8700Q

Fork of frdm_serial by Michael Berry

Committer:
Condo2k4
Date:
Tue Dec 01 15:00:12 2015 +0000
Revision:
4:39e949908fc5
Child:
5:d9f8c2f63323
Various updates.; - LEDs, LCD and Temp working.;  - Interrupts cannot interfere with data transmits.;  - Can read from mag and accel, but cannot confirm returned values are correct yet.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Condo2k4 4:39e949908fc5 1 #ifndef DATASERIAL
Condo2k4 4:39e949908fc5 2 #define DATASERIAL
Condo2k4 4:39e949908fc5 3
Condo2k4 4:39e949908fc5 4 #include "mbed.h"
Condo2k4 4:39e949908fc5 5
Condo2k4 4:39e949908fc5 6 class DataSerial : public Serial
Condo2k4 4:39e949908fc5 7 {
Condo2k4 4:39e949908fc5 8 public:
Condo2k4 4:39e949908fc5 9 DataSerial(PinName tx, PinName rx);
Condo2k4 4:39e949908fc5 10 ~DataSerial();
Condo2k4 4:39e949908fc5 11
Condo2k4 4:39e949908fc5 12 void sendFloat(float &f);
Condo2k4 4:39e949908fc5 13 void sendInt16(uint16_t &i);
Condo2k4 4:39e949908fc5 14 void sendChar(char c);
Condo2k4 4:39e949908fc5 15
Condo2k4 4:39e949908fc5 16 float readFloat();
Condo2k4 4:39e949908fc5 17 uint16_t readInt16();
Condo2k4 4:39e949908fc5 18 char readChar();
Condo2k4 4:39e949908fc5 19
Condo2k4 4:39e949908fc5 20 void sendSpecialCommand(char char1, char char2);
Condo2k4 4:39e949908fc5 21
Condo2k4 4:39e949908fc5 22 protected:
Condo2k4 4:39e949908fc5 23 void sendData(void* data, uint8_t len);
Condo2k4 4:39e949908fc5 24 void readData(void* data, uint8_t len);
Condo2k4 4:39e949908fc5 25 };
Condo2k4 4:39e949908fc5 26
Condo2k4 4:39e949908fc5 27 #endif