Yuki Suga / RTnoV4

Dependencies:   EthernetInterface mbed-rtos

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers SerialDevice.h Source File

SerialDevice.h

00001 #ifndef SERIAL_DEVICE_HEADER_INCLUDED
00002 #define SERIAL_DEVICE_HEADER_INCLUDED
00003 
00004 #include <stdint.h>
00005 
00006 #define TIMEOUT 1
00007 
00008 
00009 extern void(*SerialDevice_putc)(const char c);
00010 extern uint8_t(*SerialDevice_available)();
00011 extern uint8_t(*SerialDevice_getc)();
00012 
00013 extern int32_t INFINITE;
00014 int8_t SerialDevice_read(uint8_t* buffer, const uint8_t size, const int32_t &wait_usec=INFINITE);
00015 #endif