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: vt100 mbed afLib_1_3
af_utils/edgeSerial.h
- Committer:
- Rhyme
- Date:
- 2019-01-21
- Revision:
- 1:90652e9012b9
- Parent:
- 0:87662653a3c6
File content as of revision 1:90652e9012b9:
#ifndef _EDGESERIAL_H_
#define _EDGESERIAL_H_
#include "mbed.h"
class edgeSerial : public Serial {
public:
edgeSerial(PinName txPin, PinName rxPin, int baud) ;
bool edge_available(void) { return Serial::readable() ; }
char edge_peek(void) ;
char edge_read(void) ;
void edge_read(uint8_t *buffer, int len) ;
void edge_write(uint8_t *buffer, int len) ;
private:
bool _is_peeked ;
uint8_t _peeked_byte ;
} ;
#endif